Daniels VDOT
If you've followed a Jack Daniels training plan, you've used VDOT. He and Jimmy Gilbert published the math in Oxygen Power back in 1979.
Instead of comparing distances directly, VDOT turns your race into a fitness score. Two equations do the work:
VO2 = −4.60 + 0.182258·v + 0.000104·v²
%max = 0.8 + 0.1894393·e^(−0.012778·t)
+ 0.2989558·e^(−0.1932605·t)
VDOT = VO2 ÷ %max
v = meters per minute, t = minutes
The first is how much oxygen your pace costs. The second is how close to your max you can hang on for that long: nearly all of it for a mile, a lot less for a marathon. Divide one by the other and you've got your VDOT.
A 20:00 5K works out to about 49.8. That predicts a 41:28 10K and a 3:11:17 marathon, within a few seconds of Daniels' own tables.
Same catch as the others: it assumes you're trained for both races. Coaches mostly use it to set training paces, and it's great for that.