How North American area codes work
A North American telephone number is three codes stacked together: an area code, an exchange code and a four-digit line number.
Three parts, ten digits
Every number in the North American Numbering Plan (NANP) follows the same pattern: NPA-NXX-XXXX. The first three digits are the Numbering Plan Area, or area code. The next three are the NXX, the central office code, sometimes called the exchange code. The last four are the line number, assigned by whichever carrier serves that exchange. An example makes the split obvious: in 212-555-0142, the area code is 212, the exchange is 555 and the subscriber line is 0142.
What the area code identifies
An area code identifies a numbering plan area: a region, usually covering many towns and telephone exchanges, drawn so that a place can grow without exhausting its numbers. Area codes are not city boundaries. One code can cover a whole province or a large slice of a state, and a large city can carry several codes at once because it is split across several exchanges. The code is really a routing label: network equipment uses it to send a call toward the right part of the system, and the digits after it narrow the destination down to one line.
Why 0 and 1 are excluded from the leading position
No area code and no exchange code begins with 0 or 1. Those digits are reserved in the North American plan: 0 reaches an operator, and 1 is the trunk prefix that tells the network a long-distance number follows. That is why the first digit of every NPA and every NXX is 2 through 9, and why 012-555-0142 cannot be a valid number. The rule is structural, not cosmetic: it lets a switch tell a dialed area code apart from an operator or trunk signal.
The exchange code (NXX)
The NXX pins a number to one central office, a switching centre that serves a defined area, often a single town or a neighbourhood in a city. Its first digit is again 2 through 9. Combinations of the N11 shape are excluded: 211, 311, 411, 511, 611, 711, 811 and 911 are held aside for short-code services, which is why 911 can never be an area code or an exchange code.
The middle digit, then and now
In the plan's original design every geographic area code was written N 0/1 X, so the middle digit had to be 0 or 1. That capped the system at 160 geographic codes (8 x 2 x 10), which was generous when the plan was drawn up but far too small later. When those combinations ran out, the restriction was dropped and codes with any middle digit were assigned. That history explains the split people notice today: older codes such as 201, 310, 415 and 519 have 0 or 1 in the middle, while newer ones such as 234, 332 and 458 do not. The middle digit carries no routing meaning now; it is simply part of the three-digit code.
The line number
The last four digits are the part most people never think about. Within one exchange code there are 10,000 possible line numbers, from 0000 through 9999, and the carrier allocates them as service is ordered. Change the last four digits and you have a different customer on the same switch.
Frequently asked questions
Can an area code start with 0 or 1?
No. The leading digits 0 and 1 are reserved in the NANP: 0 reaches an operator and 1 is the long-distance trunk prefix, so every area code starts with a digit from 2 through 9.
Is the exchange code the same as the area code?
No. The area code (NPA) covers a region; the exchange code (NXX) identifies one central office inside that region. Both are three digits, but they play different roles.
Why do some newer area codes have a 2, 3 or 4 in the middle?
Because the original format allowed only 0 or 1 there. When that space ran out, the plan was widened to any middle digit, so new codes such as 234 and 332 look unusual next to older ones like 212.
Does an area code show where a phone is right now?
Not reliably. The code reflects where the number was first issued. Number portability and internet telephony mean it can be answered somewhere else entirely.
Are all North American numbers ten digits?
Yes. Every number is three digits of area code, three of exchange code and four of line number. The extra 1 in front of a long-distance number is a dialing prefix, not part of the number itself.