Running out of fuel in flight is almost always avoidable with honest planning. This calculator turns your usable fuel, cruise burn rate, and speed into endurance, range, and the time and distance you can plan to once the legal reserve is set aside.
How it works
Endurance and range come straight from the burn rate, then the reserve is removed:
endurance = usable fuel / burn rate
range = endurance × speed
reserve fuel = burn rate × (reserve minutes / 60)
usable to plan = usable fuel − reserve fuel
endurance to reserve = usable to plan / burn rate
range to reserve = endurance to reserve × speed
The endurance and range you should actually plan to are the figures after the reserve, not the tanks-dry numbers.
Example and notes
With 40 gallons usable, an 8.5 gallon-per-hour burn, and 110 knots true airspeed, total endurance is about 4 hours 42 minutes, but the 45 minute IFR reserve removes roughly 6.4 gallons, leaving about 3 hours 56 minutes and 432 nautical miles to plan to. Always add taxi and climb allowances, and use groundspeed rather than true airspeed on a leg with a strong headwind so the range figure reflects what you will really achieve.