ZIP Code Distance Calculator

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

Bethlehem, PA 18015 is about 4.8 miles east of Allentown, PA 18101

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

Straight line5 mi8 km
By roadFinding the drive…Mapbox, no traffic
DirectionEastheading 104° at the start
Time differenceSame timeall year
A Allentown, PA 18101 B Bethlehem, PA 18015 Straight line The drive

A ZIP Code is an area, not a point: for places this close, two addresses can be nearer or farther apart than the centers are.

Ask your AI assistant about both places. Connect Claude or ChatGPT in a few steps. Try a Question

Allentown and Bethlehem 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 BethlehemDifference
CityAllentown, PABethlehem, PA
CountyLehigh CountyNorthampton County
Time zoneEasternEastern
Metro areaAllentown-Bethlehem-Easton, PA MSAAllentown-Bethlehem-Easton, PA MSA
ZIP Code typeStandardStandard
Area codes484, 610, 835484, 610, 835
Land area0.3 sq mi23 sq mi
Addresses that get mail3,63315,204
People6,120 ±78734,852 ±1,341Larger in Bethlehem
Median age29.1 ±2.231.2 ±1.9No clear difference
Median household income$44,773 ±$8,210$60,800 ±$4,858Higher in Bethlehem
Per capita income$28,551 ±$4,183$35,231 ±$2,481Higher in Bethlehem
Poverty rate22.8% ±8.816.6% ±3.1No clear difference
Unemployment rate14.7% ±8.28.3% ±2.2Too uncertain to compare
Bachelor's degree or higher23.2% ±6.033.2% ±2.3Higher in Bethlehem
Homes lived in by owners8.3% ±4.750.5% ±3.6Too uncertain to compare
Median home value$171,300 ±$59,814$281,700 ±$19,350Higher in Bethlehem
Median rent$1,430 ±$100$1,353 ±$85No clear difference
Average commute28.8 min ±4.923.3 min ±1.2Longer in Allentown
People per household2.00 ±0.232.50 ±0.08Larger in Bethlehem
Vacant homes7.5% ±4.06.6% ±1.9Too uncertain to compare
Households with broadband87.7% ±6.688.3% ±3.0No clear difference

In charts

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

Ages

Largest age group in both: 20-34 (43% in Allentown, 27% in Bethlehem). The 20-34 group spans 15 years, so it looks bigger.

Show the numbers
AgesAllentownBethlehem
Under 109% ±38% ±1
10-1912% ±419% ±2
20-3443% ±827% ±3
35-4414% ±512% ±2
45-5410% ±39% ±1
55-647% ±211% ±1
65-744% ±28% ±1
75+2% ±16% ±1

Owners and renters

8% of occupied homes are owned in Allentown, 51% in Bethlehem.

Show the numbers
Owners and rentersAllentownBethlehem
Owned8% ±551% ±4
Rented92% ±550% ±4

Kinds of homes

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

Show the numbers
Kinds of homesAllentownBethlehem
Single-family4% ±442% ±4
Townhouse12% ±524% ±3
2-4 units21% ±810% ±2
5-19 units17% ±915% ±3
20+ units46% ±89% ±2
Mobile home0% ±11% ±1
Boat, RV, van0% ±10% ±0

Getting to work

Most common in both: Drove alone (55% in Allentown, 62% in Bethlehem).

Show the numbers
Getting to workAllentownBethlehem
Drove alone55% ±1062% ±3
Carpooled10% ±58% ±2
Public transit9% ±43% ±2
Walked10% ±66% ±2
Other4% ±55% ±1
Worked from home13% ±716% ±2

± 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 Bethlehem, PA 18015 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 18015, with margins of error.”
“Which of 18101 and 18015 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 18015?”
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=18015"
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": "18015"
  },
  "results": [
    {
      "success": true,
      "input": {
        "from": "18101",
        "to": "18015"
      },
      "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": "18015",
        "code_type": "ZIP",
        "city": "Bethlehem",
        "state": "PA",
        "county": "Northampton",
        "location": {
          "lat": 40.586,
          "lon": -75.384
        },
        "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": 4.8,
        "km": 7.72
      },
      "bearing": 103.6
    }
  ],
  "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