ZIP Code Distance Calculator

How far apart two places are, the drive, the time difference, and the two compared side by side.

Ferndale, PA 18921 is about 17 miles east of Allentown, PA 18101

In a straight line between the centers of the two ZIP Codes: 17 miles (27 km).

Straight line17 mi27 km
By roadFinding the drive…Mapbox, no traffic
DirectionEastheading 109° at the start
Time differenceSame timeall year
A Allentown, PA 18101 B Ferndale, PA 18921 Straight line The drive
Ask your AI assistant about both places. Connect Claude or ChatGPT in a few steps. Try a Question

Allentown and Ferndale side by side

Census Bureau figures for each ZIP Code (American Community Survey, 2020–2024). Each comes with a margin of error, so a difference is named only when it is bigger than the two margins together.

MeasureA AllentownB FerndaleDifference
CityAllentown, PAFerndale, PA
CountyLehigh CountyBucks County
Time zoneEasternEastern
Metro areaAllentown-Bethlehem-Easton, PA MSAPhiladelphia-Wilmington-Atlantic City, PA-NJ-DE-MD CMSA
ZIP Code typeStandardPO Box
Area codes484, 610, 835484, 610, 835
Land area0.3 sq mi0.4 sq mi
Addresses that get mail3,63372
People6,120 ±787160 ±104Too uncertain to compare
Median age29.1 ±2.261.3 ±21.7Older in Ferndale
Median household income$44,773 ±$8,210Not available–
Per capita income$28,551 ±$4,183$80,637 ±$35,050Higher in Ferndale
Poverty rate22.8% ±8.815.0% ±26.0Too uncertain to compare
Unemployment rate14.7% ±8.20.0% ±25.3Too uncertain to compare
Bachelor's degree or higher23.2% ±6.00.0% ±19.5Higher in Allentown
Homes lived in by owners8.3% ±4.7100.0% ±30.5Too uncertain to compare
Median home value$171,300 ±$59,814$404,400 ±$167,451Higher in Ferndale
Median rent$1,430 ±$100Not available–
Average commute28.8 min ±4.9Not available–
People per household2.00 ±0.231.86 ±0.59No clear difference
Vacant homes7.5% ±4.00.0% ±30.5Too uncertain to compare
Households with broadband87.7% ±6.6100.0% ±30.5No clear difference

In charts

Dark bars: Allentown. Light bars: Ferndale. The thin lines are the margins of error: where they overlap, the two places may not really differ.

Ages

Largest age group: 20-34 in Allentown (43%), 65-74 in Ferndale (35%). The 20-34 group spans 15 years, so it looks bigger.

Show the numbers
AgesAllentownFerndale
Under 109% ±30% ±26
10-1912% ±47% ±22
20-3443% ±817% ±28
35-4414% ±50% ±18
45-5410% ±324% ±25
55-647% ±26% ±20
65-744% ±235% ±14
75+2% ±111% ±23

Owners and renters

8% of occupied homes are owned in Allentown, 100% in Ferndale.

Show the numbers
Owners and rentersAllentownFerndale
Owned8% ±5100% ±31
Rented92% ±50% ±31

Kinds of homes

Most common: 20+ units in Allentown (46%), Single-family in Ferndale (90%).

Show the numbers
Kinds of homesAllentownFerndale
Single-family4% ±490% ±17
Townhouse12% ±50% ±31
2-4 units21% ±811% ±35
5-19 units17% ±90% ±43
20+ units46% ±80% ±31
Mobile home0% ±10% ±31
Boat, RV, van0% ±10% ±31

Getting to work

Most common in both: Drove alone (55% in Allentown, 52% in Ferndale).

Show the numbers
Getting to workAllentownFerndale
Drove alone55% ±1052% ±52
Carpooled10% ±50% ±25
Public transit9% ±40% ±25
Walked10% ±60% ±25
Other4% ±50% ±25
Worked from home13% ±748% ±52

± is the Census Bureau's 90% margin of error. "Too uncertain" means one figure's margin is more than half of the figure itself. Census figures are for each ZIP Code's matching ZIP Code Tabulation Area; capped medians read "or more".

Ask your AI assistant about these two places

Connect Claude or ChatGPT to our ZIP Code data, then ask questions in plain English. No sign-up with us needed.

Once you're connected, try this:
“How far is Ferndale, PA 18921 from Allentown, PA 18101, in which direction, and what is the time difference?”

This question answers in full without a key.

New to this? We'll walk you through it, one step at a time.

Developer tools: Claude Code, Cursor, VS Code, Codex
Questions about these two places (full answers need a free API key)
“Compare median household income, median home value and median rent in ZIP Codes 18101 and 18921, with margins of error.”
“Which of 18101 and 18921 has more people working from home, and is the difference real given the margins of error?”
“How have home values changed since 2014 in 18101 and in 18921?”
Get a Free API Key 2,500 credits a day, free. Or see what the API returns below.

Powered by the ZIP Codes API

The distance, the direction and both time zones above came from one call to the ZIP Codes API /v2/distance endpoint. Each place's facts and Census figures came from one /v2/zip call each, and the API has the same figures for any year from 2011 to 2024.

This comparison used 11 credits; a free key includes 2,500 a day.

Developers: see the exact request
curl -H "X-Api-Key: YOUR_KEY" "https://api.zip-codes.com/v2/distance?from=18101&to=18921"
View the JSON response

The real /v2/distance response for this pair. Coordinates are rounded to 3 decimals here; the API returns full precision.

{
  "success": true,
  "request": {
    "from": "18101",
    "to": "18921"
  },
  "results": [
    {
      "success": true,
      "input": {
        "from": "18101",
        "to": "18921"
      },
      "from": {
        "country": "US",
        "code": "18101",
        "code_type": "ZIP",
        "city": "Allentown",
        "state": "PA",
        "county": "Lehigh",
        "location": {
          "lat": 40.602,
          "lon": -75.473
        },
        "timezone": {
          "source": "timezone-boundary-builder",
          "product": "Time zone boundaries (with oceans)",
          "attribution": "Time zone boundaries \u00a9 OpenStreetMap contributors, timezone-boundary-builder (ODbL); time zone rules: IANA tz database",
          "iana_name": "America/New_York",
          "name": "Eastern",
          "abbreviation": "EST",
          "abbreviation_dst": "EDT",
          "utc_offset": -5,
          "utc_offset_dst": -4,
          "observes_dst": true
        },
        "input_type": "code"
      },
      "to": {
        "country": "US",
        "code": "18921",
        "code_type": "ZIP",
        "city": "Ferndale",
        "state": "PA",
        "county": "Bucks",
        "location": {
          "lat": 40.521,
          "lon": -75.166
        },
        "timezone": {
          "source": "timezone-boundary-builder",
          "product": "Time zone boundaries (with oceans)",
          "attribution": "Time zone boundaries \u00a9 OpenStreetMap contributors, timezone-boundary-builder (ODbL); time zone rules: IANA tz database",
          "iana_name": "America/New_York",
          "name": "Eastern",
          "abbreviation": "EST",
          "abbreviation_dst": "EDT",
          "utc_offset": -5,
          "utc_offset_dst": -4,
          "observes_dst": true
        },
        "input_type": "code"
      },
      "distance": {
        "miles": 17.06,
        "km": 27.46
      },
      "bearing": 109.1
    }
  ],
  "meta": {
    "credits": {
      "used": 1
    }
  }
}
Add distances like this to your app
  • Straight-line miles and kilometers between any two ZIP Codes, ZIP+4 Codes or Canadian postal codes
  • The compass direction and each place's time zone, with daylight saving time
  • Each place's facts and Census figures, 2011 to 2024
  • Batch up to 100 distances per call (paid plans)
  • Free key: 2,500 credits a day
Get a Free API Key Email This to My Developer