Sacramento to Yosemite is 2 h 42 min (138.2 mi) via CA-99 S, CA-4 E and CA-120 E
Depending on which way that you travel, Yosemite is about 4 hours from Sacramento. This time of the year I suggest that you use the lowest elevation route through Mariposa using CA 140.
It is southeast of Sacramento.
24 hours
141 miles
The fastest route is via Sacramento for a 6 hour drive. There are shorter and more scenic routes available that you may have an interest in trying. See Google Maps or Mapquest for further details.
if you drive out from Sacramento at 5am you will be at Seattle around 3 to 4am the next day
depending on traffic, it is about 90 min - 2 hour drive from Sacramento to Oakland
4 hours
at what speed?
a long time
I would take Ca-99 down to Ca-120 and ultimately towards Yosemite National Park. It'll be a 160 mile drive and take about 3 hours and 30 minutes.
It is 196 miles and an estimated 3 hour and 54 minute drive according to Google Maps.