Military and Diplomatic Addresses: Handling APO, FPO and DPO in Forms
Published November 15, 2026 by the USA Address Generator editorial team · Postal Standards · 7 min read
What APO, FPO and DPO mean, why the state is AA, AE or AP, how the address lines are written, and the form and shipping rules that stop service members from checking out.
Service members, their families and embassy staff overseas receive US mail at domestic postage rates through the military and diplomatic mail systems. Their addresses are US addresses in every way that matters to a form, and they are among the most frequently rejected, because they have no street, an unusual "city" and a "state" that is not a state.
The three post office types
| Code | Stands for | Serves |
|---|---|---|
| APO | Army Post Office (also used for Air Force) | Army and Air Force installations |
| FPO | Fleet Post Office | Navy and Marine Corps installations and ships |
| DPO | Diplomatic Post Office | US embassies and consulates |
One of these three codes goes where the city normally would. It is not an abbreviation of a city name, and the name of the foreign city or country where the person is stationed is not written anywhere on the address.
The three "states"
The state field holds a regional code:
| Code | Region | ZIP codes begin with |
|---|---|---|
| AA | Armed Forces Americas | 340 |
| AE | Armed Forces Europe, which also covers the Middle East, Africa and Canada | 09 |
| AP | Armed Forces Pacific | 962 to 966 |
These are official USPS state abbreviations. Any list of valid values for the state field that omits them is incomplete.
How the lines are written
A military address has a name line, a delivery line and a last line, like any other. The delivery line identifies a unit or postal service centre and a box number, or a ship.
SGT JOHN DOE
PSC 1234 BOX 5678
APO AE 09499
JANE DOE
UNIT 2050 BOX 4190
APO AP 96278
PO2 SAM SMITH
USS EXAMPLE (DDG 00)
FPO AA 34099
MARY JONES
UNIT 8400 BOX 0000
DPO AE 09498
The patterns to recognise in the delivery line are PSC (postal service centre), CMR (community mail room), UNIT and a ship's name, usually followed by BOX and a number. There is never a street name.
The rule that matters most: no country, no foreign city
Military mail travels inside the US postal system until it is handed to the military for the last leg. If a foreign city or country name is written on the piece, it can be routed into that country's international mail stream instead, where it is slower, costs international postage and may not arrive.
For a form this means:
- The country is United States.
- The city is
APO,FPOorDPO, exactly. - The state is
AA,AEorAP. - Nothing else is added.
If your form has a country dropdown that changes the layout of the address fields, a customer stationed in Germany must still choose United States. It is worth saying so in help text, because the natural instinct is to pick the country they are living in.
Where forms go wrong
- The state dropdown has 50 entries. There is nowhere to put
AE. This is the most common failure and the easiest to fix. - The city field is validated against a list of place names.
APOis not in it. - A street number is required.
PSC 1234 BOX 5678starts with letters. - ZIP and state are cross-checked with an incomplete table. A table built from the 50 states has no entry for ZIPs beginning with 09, 340 or 962 to 966.
- Autocomplete is mandatory. Address suggestion services built on street geography often return nothing for a military address. If the customer cannot continue without picking a suggestion, they cannot order. Always allow manual entry.
- The address is "corrected" by a geocoder. There is no map location for an APO box, and a system that insists on coordinates will either fail or attach a wrong location.
Shipping considerations
These are not formatting rules, but they decide whether an order can be fulfilled:
- Carrier. Military mail is delivered through USPS. A shop that ships only with private carriers cannot reach an APO, FPO or DPO address, and should say so clearly instead of calling the address invalid.
- Customs forms. Parcels to military addresses generally need a customs declaration even though postage is domestic.
- Restrictions. Individual military post offices have size, weight and content restrictions, which USPS publishes by ZIP code. If you sell items that are commonly restricted, check before promising delivery.
- Delivery estimates. Transit times are longer and less predictable than domestic mail. Do not show a standard two-day promise.
Validation that works
A check for military addresses that is strict where it should be and nowhere else:
const MILITARY_CITY = /^(APO|FPO|DPO)$/i;
const MILITARY_STATE = /^(AA|AE|AP)$/i;
function isMilitaryAddress({ city, state }) {
return MILITARY_CITY.test(city.trim()) && MILITARY_STATE.test(state.trim());
}
function militaryZipMatchesState(state, zip) {
const prefix = zip.slice(0, 3);
switch (state.toUpperCase()) {
case 'AA': return prefix === '340';
case 'AE': return prefix.startsWith('09');
case 'AP': return prefix >= '962' && prefix <= '966';
default: return false;
}
}
If the city is one of the three codes, require one of the three state codes, and the reverse. That single consistency rule catches most typing mistakes without rejecting anyone legitimate.
Testing it
Add at least one address for each of the three state codes to your test data, and run them through every step: the form, saved-address display, the confirmation email, the label template and any export to a fulfilment partner. The step that fails is often not the form but a later one, such as a label template that prints the country name, or a partner integration that maps AE to the United Arab Emirates because that is what AE means as a country code.
For the surrounding ordinary records, use the address generator; for the other non-street formats, see PO Boxes, private mailboxes and General Delivery.