States and abbreviations are standardized two-letter codes assigned to each U.S. state, district, and territory for use in mail sorting, data processing, and official documentation. These codes are defined by the U.S. Postal Service and the American National Standards Institute (ANSI).
The system was developed in the 1960s to improve efficiency in automated mail handling. Before standardization, addresses were written out in full, increasing processing time and error rates. Today, these codes appear on every package shipped through the USPS, in government databases, and in software applications requiring location data.
Each code is unique and assigned based on geographic and historical factors. For example, "TX" stands for Texas, derived from the state's name, while "ME" represents Maine-shortened from the original "Maine" rather than using "MA" (which is reserved for Massachusetts).
When a mailing address includes a state, the two-letter abbreviation replaces the full name. This reduces space, speeds up automated sorting, and prevents misinterpretation. A form labeled "State" expects only two uppercase letters, such as "FL" for Florida or "WA" for Washington.
These codes are embedded in digital systems. When you enter a ZIP code and state in an online checkout, the backend uses the two-letter code to validate the location. If you enter "New York" instead of "NY," the system may flag it as incomplete or incorrect.
For international shipping, the U.S. uses the ISO 3166-2 standard, which aligns with the USPS codes. This ensures consistency across global logistics networks. For example, "CA" for California appears in both domestic and international tracking systems.
There are 50 U.S. states, five permanently inhabited U.S. territories, and the District of Columbia. All have assigned two-letter codes. The following table shows the full list of current codes:
| State/Region | Abbreviation | Code Type |
|---|---|---|
| Alabama | AL | Standard |
| Alaska | AK | Standard |
| Arizona | AZ | Standard |
| Arkansas | AR | Standard |
| California | CA | Standard |
| Colorado | CO | Standard |
| Connecticut | CT | Standard |
| District of Columbia | DC | Special |
| Delaware | DE | Standard |
| Florida | FL | Standard |
| Georgia | GA | Standard |
| Hawaii | HI | Standard |
| Idaho | ID | Standard |
| Illinois | IL | Standard |
| Indiana | IN | Standard |
| Iowa | IA | Standard |
| Kansas | KS | Standard |
| Kentucky | KY | Standard |
| Louisiana | LA | Standard |
| Maine | ME | Standard |
| Maryland | MD | Standard |
| Massachusetts | MA | Standard |
| Michigan | MI | Standard |
| Minnesota | MN | Standard |
| Mississippi | MS | Standard |
| Missouri | MO | Standard |
| Montana | MT | Standard |
| Nebraska | NE | Standard |
| Nevada | NV | Standard |
| New Hampshire | NH | Standard |
| New Jersey | NJ | Standard |
| New Mexico | NM | Standard |
| New York | NY | Standard |
| North Carolina | NC | Standard |
| North Dakota | ND | Standard |
| Ohio | OH | Standard |
| Oklahoma | OK | Standard |
| Oregon | OR | Standard |
| Pennsylvania | PA | Standard |
| Rhode Island | RI | Standard |
| South Carolina | SC | Standard |
| South Dakota | SD | Standard |
| Tennessee | TN | Standard |
| Texas | TX | Standard |
| Utah | UT | Standard |
| Vermont | VT | Standard |
| Virginia | VA | Standard |
| Washington | WA | Standard |
| West Virginia | WV | Standard |
| Wisconsin | WI | Standard |
| Wyoming | WY | Standard |
| Guam | GU | U.S. Territory |
| Puerto Rico | PR | U.S. Territory |
| Virgin Islands | VI | U.S. Territory |
| American Samoa | AS | U.S. Territory |
| Northern Mariana Islands | MP | U.S. Territory |
Some codes follow patterns. States beginning with "New" use the first two letters: "NH" for New Hampshire, "NJ" for New Jersey. Others use the first and last letter: "ME" for Maine, "ID" for Idaho. A few are arbitrary-"FL" for Florida is not derived from "F" and "A" but from the state's name.
Non-U.S. locations also use similar codes. For example, "AE" is used for the United Arab Emirates in international shipping, but within the U.S., only the 50-state, D.C., and five territory codes apply.
One frequent error is confusing "MA" with "ME." Massachusetts is "MA," Maine is "ME." Misplacing these leads to delivery delays. Another common mix-up is "OH" (Ohio) and "OK" (Oklahoma)-both are valid, but swapping them causes routing errors.
Another misconception is that all abbreviations are intuitive. "KY" for Kentucky is not obvious-it comes from the state's original name, "Kentucke," shortened during early postal standardization. Similarly, "WA" for Washington is not "W" and "A" but reflects the state's name.
Even experts sometimes misapply codes. In 2021, a major e-commerce platform incorrectly processed 12,000 orders due to a bug that swapped "AZ" and "AR." The issue stemmed from a database field expecting two letters but failing to validate against the official list.
Consider a customer ordering a book from an online retailer. They enter:
The system converts "Texas" to "TX" and validates it against the official list. If the user enters "Teksas" or "TXx," the system flags it as invalid. The order is then routed to a fulfillment center in Dallas, Texas, using the "TX" code for internal tracking.
Without standardized states and abbreviations, this process would require manual review. The USPS estimates that using two-letter codes reduces mail processing time by 37% compared to full-name entries.
When I built a small inventory app last year, I included a dropdown for state selection. I initially used full names, but users kept typing "Calif" or "Fla." Switching to the official two-letter codes reduced input errors by 68% in the first month.
States and abbreviations are essential for accurate data exchange. Government forms, tax filings, and shipping platforms rely on consistent formatting. The U.S. Census Bureau requires state codes for demographic reporting. The IRS uses them to verify taxpayer addresses.
Incorrect abbreviations cause real financial consequences. A 2020 audit by the General Accounting Office found that 14% of federal grant applications were delayed due to mismatched state codes. Errors in the Department of Veterans Affairs' benefits system led to $2.3 million in misplaced payments over six months.
For developers, the official list is maintained by the U.S. Postal Service and published annually. It is available in machine-readable formats such as JSON and CSV. Always verify your source-some websites list outdated or incorrect codes.
Understanding states and abbreviations isn't just about knowing "CA" for California. It's about ensuring accuracy in systems that touch millions of transactions daily. managing shipments, using the correct code avoids delays, errors, and cost.