More accurate gas tank readings

I often just use the odometer as a fuel gauge on the bike or truck (truck gauge didn't work for years) I know my average MPG, zero out the trip odometer when I fill up,
MPG X gallons in tank = max range, 1/2 of max range = 1/2 tank of fuel,
I find it is more accurate than a working fuel gauge