Google Maps had a distance measuring tool. There's also Map My Ride (mapmyride.com). It's a bit of a pain and it works, though it tends to underestimate the steepness of hills.

Do you have a bike computer?