How far is Harrisburg, PA from York, PA?

The driving distance from Harrisburg, PA to York, PA is about 25.2 miles (40.5 km), with a travel time of about 00h 36m by car.

  • The straight-line flight distance is about 23.1 miles (37.1 km).
  • For a round trip, plan for roughly 01h 12m of driving time before adding stops, traffic, or weather delays.
  • A comfortable departure window is usually 7:00 AM to 7:00 PM EDT.
Trip Tools

Reverse, save, or send this route

This is an easy same-day return drive. Copy the route link, send it to another device, or print a clean version before you head out.

Reverse Route
Quick Snapshot
Road
25.16 mi
00h 36m
Flight
23.03 mi
37.07 km direct

This is an easy same-day return drive.

Learn Distance

Choose another destination from Harrisburg.

Flight Distance

Direct air line
23.03 mi
Kilometers
37.07 km
Flight Time
00h 02m

Driving Distance

Road route
25.16 mi
Kilometers
40.49 km
Drive Time
00h 36m

Gas Cost Calculator

Leave and Arrive Planner

Pick a departure time to see your estimated arrival and same-day return window.

Drive time stays fixed at 00h 36m.

Arrival Snapshot
Arrive in York
Thu, Apr 23, 12:00 AM EDT
Return by in Harrisburg
Thu, Apr 23, 12:37 AM EDT
Useful when you're deciding between a quick errand, a day trip, or a longer stop.
Leave Harrisburg
2026-04-22T23:24
Arrive York
Thu, Apr 23, 12:00 AM EDT
Route Timing
00h 36m
One way by road
Best Departure Window
7:00 AM to 7:00 PM EDT
Leave when it suits your day
Arrive between
7:36 AM to 7:36 PM EDT

This is a short drive, so your comfort window is wide. Traffic and current weather matter more than the clock.

Leave by
7:18 PM EDT
Keeps a same-day return open with about 01h 30m at the destination.
Back in Harrisburg
10:00 PM EDT
Flexible departure

You are leaving earlier than the recommended window, which gives you extra margin for breaks and traffic.

Halfway Point

A useful midpoint for breaks, coffee, or meeting in the middle.

Mid-route stop
Valley Green
PA

Census designated place

From Harrisburg
12.6 mi
00h 18m
To York
12.6 mi
00h 18m

Route Weather Snapshot

Check the forecast at both ends before you head out.

Origin
69°F
Wednesday

Chance Rain Showers

Starts
Wed, Apr 22 6:00 AM EDT
Wind
2 to 6 mph SW
Destination
70°F
Wednesday

Chance Rain Showers

Starts
Wed, Apr 22 6:00 AM EDT
Wind
2 to 6 mph W

Driving Route Map

The map below follows the saved road route between Harrisburg and York.

Turn-by-Turn Driving Directions

Step-by-step road directions between Harrisburg and York.

  1. 1

    Start on North 7th Street

    27 m · 3 sec · North 7th Street

  2. 2

    Enter the roundabout and take exit 3 toward North 7th Street

    64 m · 7 sec · North 7th Street

  3. 3

    Exit the roundabout onto North 7th Street

    2223 ft · 1 min · North 7th Street

  4. 4

    Continue on Fisher Plaza

    820 ft · 20 sec · Fisher Plaza

  5. 5

    Keep slight right to continue on Walnut Street

    2993 ft · 2 min · Walnut Street

  6. 6

    At the end of the road, turn left onto North Front Street

    2445 ft · 1 min · North Front Street

  7. 7

    Continue on I 83: York

    1285 ft · 31 sec

  8. 8

    Keep slight left to continue on I 83 South: York

    1811 ft · 44 sec

  9. 9

    Merge slight left

    1 mi · 1 min

  10. 10

    Keep slight right to continue on I 83 South: York, Baltimore

    19.7 mi · 24 min

  11. 11

    Take the exit slight right toward I 83 Business, PA 181

    953 ft · 23 sec

  12. 12

    Keep slight left to continue on I 83 Business, PA 181

    53 m · 6 sec

  13. 13

    Turn right onto North George Street

    2 mi · 5 min · North George Street

  14. 14

    Arrive at your destination

    0 m · 1 sec · North George Street

Car Route Details

A richer read on the saved driving route between Harrisburg and York.

OSRM road route
Drive Character

Turn-heavy local drive

The route has frequent decision points for its length, so lane choice and turn timing will matter more than cruising speed.

Directions
14 steps
4 turns on the saved route
Ramps & Exits
4
1 merges, 3 ramps or exits
Navigation Density
55.6 / 100 mi
Decision points by distance
Main Roads
I 83 South
21 mi · 84%
North George Street
2.02 mi · 8%
Walnut Street
0.57 mi · 2%
North 7th Street
0.48 mi · 2%
North Front Street
0.46 mi · 2%
I 83
0.24 mi · 1%
Longest Stretch

I 83 South

Keep slight right to continue on I 83 South: York, Baltimore

19.7 mi · 00h 24m

Route Summary

A quick read on whether this route feels easy, ambitious, or worth planning around.

Trip Read

A short regional drive

This route is short enough to handle as a quick errand, commute, or easy same-day return without much planning overhead.

Drive Time
00h 36m
Quick drive
Same-Day Return
01h 12m
Round-trip wheel time
Road vs Air
+2.1 mi
23.1 mi direct line
Halfway Stop
Valley Green
00h 18m from Harrisburg
Leave By
7:18 PM EDT
Flexible departure
Weather Watch

Chance Rain Showers leaving Harrisburg and Chance Rain Showers near York.

Trip Questions

Direct answers travelers usually want before committing to the drive.

How long does it take to drive from Harrisburg to York?

The road trip is about 25.2 miles (40.5 km) and usually takes 00h 36m in normal driving conditions.

Is this a same-day trip or an overnight route?

This route is short enough to handle as a quick errand, commute, or easy same-day return without much planning overhead.

What is the halfway point on this route?

Valley Green is a useful midpoint, sitting about 12.6 miles from Harrisburg and 12.6 miles from York.

How much longer is the road route than the straight-line distance?

The direct path is about 23.1 miles (37.1 km), while the road route adds roughly 2.1 extra miles because roads do not follow the straight air line.

When is the best time to leave for this route?

A good departure window is usually 7:00 AM to 7:00 PM EDT. If you want a more comfortable same-day return, try to leave by 7:18 PM EDT.

How much will gas cost for this route?

Using about 28.3 MPG, regular gas is estimated at $3.64 one way or $7.27 round trip. Estimated CO2 is about 7.9 kg one way.

What should you check before leaving?

Before you leave, expect Chance Rain Showers around Harrisburg and Chance Rain Showers near York.

Stop Ideas Near Valley Green

Useful break, food, and waypoint ideas within about 15 miles of the route midpoint.

Mid-route Guidance
Local place coverage is thin around Valley Green, so nearby transit and meeting points are shown instead.
Reviewed stop coverage is still thin around this midpoint, so practical transit waypoints are shown on the right.

Transit and Meeting Points

Useful pickup, handoff, or rendezvous points close to Valley Green.

RAIL

Middletown

7 mi away
Union Street and Mill Street
RAIL

Harrisburg Transportation Center

14 mi away
4th and Chestnut Streets
RAIL

Elizabethtown station

15 mi away
South Wilson Avenue at West High Street
RAIL

Mount Joy

25 mi away
East Henry St. and North Market St.

Flight Path Map

This map shows the direct air route between Harrisburg and York. Straight-line distance: 23.03 mi (37.07 km).

Harrisburg

#1 Harrisburg

The capital of Pennsylvania.

Population49,322
Coordinates40.2737000, -76.8844200
Altitude101
CountryUnited States
York

#2 York

County seat of York County, Pennsylvania, United States

Population28,768
Coordinates39.9626000, -76.7277400
Altitude118
CountryUnited States
Start: Harrisburg (-76.88442, 40.2737)
End: York (-76.72774, 39.9626)

Estimated Travel Time

Distance: 40 km by road

SpeedTime
30 mph (48.3 km/h)00h 50m
40 mph (64.37 km/h)00h 37m
50 mph (80.47 km/h)00h 30m
60 mph (96.56 km/h)00h 25m
70 mph (112.65 km/h)00h 21m
80 mph (129 km/h)00h 18m

Fuel, Round Trip and CO2

Estimated fuel cost and emissions for this route.

One-way fuel
0.89 gal
3.36 L · about $3.64
Round trip
$7.27
1.78 gal · 6.72 L
Estimated CO2
7.9 kg one way
Round trip: 15.8 kg / 35 lb CO2, using regular gasoline.
Fuel$/galOne wayRound trip
Regular gas $4.09 $3.64 $7.27
Mid-grade $4.60 $4.09 $8.19
Premium $4.95 $4.41 $8.82
Diesel $5.98 $5.32 $10.64

Assumes 8.3 L/100 km (about 28.3 MPG). CO2 is an estimate and varies by vehicle, fuel blend, traffic, and terrain.

Prices in Pennsylvania · Apr 23, 2026

There is no time difference between Harrisburg and York. The current time is 23:24:16.

Distance to Other Cities

Planning a road trip? See the full trip guide on Trip.ovh — stops, fuel costs, weather, and departure timing.

How did we calculate? Place names are translated into coordinates. The Haversine formula calculates straight-line distance; driving distance uses road network data.