There are
3,165 mi
from San Francisco, CA to Portsmouth, NH
That's the driving distance. It would take 2 days 8 hours to go from San Francisco, California to Portsmouth, New Hampshire.
The flight distance (direct flight from San Francisco, CA to Portsmouth, NH) is 2,698.49 mi.
3,165 mi = 4.83 kms