There are
386 mi
from Ontario, CA to San Ramon, CA
That's the driving distance. It would take 7 hours 12 mins to go from Ontario, California to San Ramon, California.
The flight distance (direct flight from Ontario, CA to San Ramon, CA) is 352.84 mi.
386 mi = 621.77 kms