ZIP Code Distance Calculator

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

Cedar Brook, NJ 08018 is about 28 miles northwest of Absecon, NJ 08205

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

Straight line28 mi44 km
By roadFinding the drive…Mapbox, no traffic
DirectionNorthwestheading 306° at the start
Time differenceSame timeall year
A Absecon, NJ 08205 B Cedar Brook, NJ 08018 Straight line The drive
Ask your AI assistant about both places. Connect Claude or ChatGPT in a few steps. Try a Question

Absecon and Cedar Brook side by side

Cedar Brook has no Census figures of its own (PO Box and single-address ZIP Codes don't: their residents are counted in the ZIP Codes around them), so there is nothing to compare side by side.

MeasureA AbseconB Cedar Brook
CityAbsecon, NJCedar Brook, NJ
CountyAtlantic CountyCamden County
Time zoneEasternEastern
Metro areaPhiladelphia-Wilmington-Atlantic City, PA-NJ-DE-MD CMSAPhiladelphia-Wilmington-Atlantic City, PA-NJ-DE-MD CMSA
ZIP Code typeStandardPO Box
Area codes609, 640856
Land area42 sq mi–
Addresses that get mail13,0333,280

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 Cedar Brook, NJ 08018 from Absecon, NJ 08205, 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)
“What are the ZIP Codes within 10 miles of 08018?”
“What county, metro area and area codes is 08018 in?”
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 7 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=08205&to=08018"
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": "08205",
    "to": "08018"
  },
  "results": [
    {
      "success": true,
      "input": {
        "from": "08205",
        "to": "08018"
      },
      "from": {
        "country": "US",
        "code": "08205",
        "code_type": "ZIP",
        "city": "Absecon",
        "state": "NJ",
        "county": "Atlantic",
        "location": {
          "lat": 39.486,
          "lon": -74.484
        },
        "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": "08018",
        "code_type": "ZIP",
        "city": "Cedar Brook",
        "state": "NJ",
        "county": "Camden",
        "location": {
          "lat": 39.721,
          "lon": -74.902
        },
        "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": 27.58,
        "km": 44.38
      },
      "bearing": 306.3
    }
  ],
  "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