There are
2,781 mi
from Hayward, CA to Frederick, MD
That's the driving distance. It would take 2 days to go from Hayward, California to Frederick, Maryland.
The flight distance (direct flight from Hayward, CA to Frederick, MD) is 2,392.27 mi.
2,781 mi = 3.22 kms