Understanding US Area Codes & North American Numbering Plan (NANP)

Published: July 10, 2026 | Author: Sarah Jenkins (Telecom API Architect) | Category: Telecommunications

A deep dive into how American telephone numbers are structured under the North American Numbering Plan (NANP) for developer form validation.


The North American Numbering Plan (NANP) is the unified 10-digit telephone numbering format (NXX-NXX-XXXX) governing telecommunications across the United States, Canada, and 18 Caribbean nations under the administration of NANPA.

What is the North American Numbering Plan (NANP)?

The North American Numbering Plan (NANP) is the telephone numbering system administered by the North American Numbering Plan Administrator (NANPA) for 20 North American countries, including the United States, Canada, and Bermuda. Under NANP, all phone numbers consist of 10 digits structured as NXX-NXX-XXXX.


Anatomy of a 10-Digit US Phone Number

A standard US phone number comprises three distinct components:

Number SegmentSegment NameFormat PatternPermitted Values & Validation Rules
Digits 1–3Numbering Plan Area (NPA) / Area CodeNXXFirst digit N is 2–9; second and third X are 0–9 (e.g. 212, 415, 312)
Digits 4–6Central Office Exchange CodeNXXFirst digit N is 2–9; 555-0100 to 555-0199 reserved for fictional testing
Digits 7–10Subscriber Line NumberXXXXAny 4 digits 0000–9999 identifying the individual telephone line
Leading PrefixCountry Calling Code (E.164)+1International prefix mandatory for global SMS gateways
(3 1 0)  -  5 5 5  -  0 1 9 9
[Area Code] [Exchange] [Subscriber Line]

Syntax Rules & Regex Validation for Developers

Under NANP specifications:

  • The first digit of the Area Code (N) cannot be 0 or 1 (must be digits 2-9).
  • The first digit of the Central Office Exchange Code (N) cannot be 0 or 1 (must be digits 2-9).
  • Special reserved exchange prefixes: 555-0100 through 555-0199 are officially reserved by AT&T and NANPA for fictional use in media and software testing. You can generate compliant test numbers with verified area codes and fictional exchanges instantly with our random US phone number generator.

Recommended E.164 Regex Pattern

^\+1[2-9]\d{2}[2-9]\d{6}$

E.164 International Format Standard

For international SMS integration (e.g., Twilio, Plivo, MessageBird), phone numbers must be formatted in ITU-T Recommendation E.164:

  • Leading country code prefix: +1
  • 10-digit subscriber number with no spaces, hyphens, or parentheses.
  • Example: +13105550199

Generate compliant test phone numbers, standardized addresses, and synthetic developer personas using our Random US Phone Generator, Fake Persona Generator, and US Address Generator.