San Diego to Sacramento drive

505 mi and about 7 h 30 min behind the wheel without traffic or stops, mostly on I-5. At 6 hours of driving a day that is 2 days, with nights in Lost Hills, CA.

How many days it takes

Driving a dayDaysLongest dayNights in
Up to 5 hours24 h 01 minLost Hills, CA
Up to 6 hours24 h 01 minLost Hills, CA
Up to 8 hours17 h 30 minNo night needed

Gas cost

An estimate for 505 mi at the US average of $3.995 a gallon for regular (November 9, 2026) and 18 cents a kWh for home charging (August 2026). Fast chargers on the road usually cost more.

VehicleUsesOne wayRound trip
Sedan, 32 mpg16 gallons$63.00$126
SUV, 25 mpg20 gallons$80.64$161
Pickup truck, 20 mpg25 gallons$101$202
Electric, 3.5 mi/kWh144 kWh$26.18$52.37
Use your own mpg and gas price

Day by day, at your pace

Change the hours or add kids or a pet and the days are worked out again on the real route.

San Diego, CA
Sacramento, CA
Hours of driving a day, at most
Keeps a fifth of each day for stops

San Diego, CA to Sacramento, CA: 2 days

Miles
505 mi
Driving
7 h 30 min
Nights
1

At up to 6 hours of driving a day. Drive times are for a car without traffic or stops.

  1. Day 1: San Diego to Lost Hills, CANight in Lost Hills4 h 01 min · 264 mi
  2. Day 2: Lost Hills to Sacramento, CAArrive3 h 29 min · 241 mi
123
Save this trip and add stops in Instay

Opens in the planner with these nights. Free for one trip, no card.

Quick answers

How many days does it take to drive from San Diego to Sacramento?
2 days at 6 hours of driving a day (2 days at 5 hours, 1 day at 8). The drive is 505 mi and about 7 h 30 min without stops or traffic.
Where should I stop overnight between San Diego and Sacramento?
At 6 hours a day, the nights fall in Lost Hills, CA.
How much is gas from San Diego to Sacramento?
About $80.64 one way for a car that gets 25 mpg, at the US average of $3.995 a gallon for regular (November 9, 2026).

Figures from road routing for a car, without live traffic. Plan the whole trip, with your own stops, in Instay, a free US road-trip planner.

The route

  • Main roads: I-5 (503 mi).
  • 100% of the drive is on I-5, so most of it is interstate or highway driving.
  • The road crosses Tejon Pass at 4,160 ft, about 188 mi from San Diego. Mountain passes can need chains or close in winter storms, so check road conditions before you leave.
  • The longest stretch without a town of 1,000 people near the road is about 104 mi (1 h 29 min), between Avenal and Newman. Fill the tank in Avenal.

Drives nearby

All 1,000 drivesSplit any other driveGas cost calculator

Towns and mountain passes: GeoNames (CC BY 4.0). Roads: OpenStreetMap contributors.