Cessna 172 pilot reported that the engine quit because of fuel starvation even though the fuel gauges showed fuel was still available. Pilot landed safely.
Synopsis
Cessna 172 pilot reported that the engine quit because of fuel starvation even though the fuel gauges showed fuel was still available. Pilot landed safely.
Narrative
At XA30 on Day 0; I preflighted Aircraft X (C172) for a three hour flight in the pattern at ZZZ. Fuel was visually checked and lined up with what was seen on the gauges at 75% (15 gallons a side). After about three hrs of pattern work the engine started sputtering on base to final. Carb heat was checked and was on; with full flaps. Fuel also was checked and was at five gallons a side. After switching to the right tank which did not help; the focus was getting the plane on the ground in a safe manner. Three to five seconds from landing; the engine shut-down and I was able to land the aircraft about five feet short of the runway. After landing; there was no visible sign of damage to either the airfield; plane or myself. The fuel was checked again and showed empty; in direct contradiction to what was shown earlier and later in the maintenance hanger (Full). Airport Ops and maintenance we're then able to tow Aircraft X back to the ramp for inspection. Cause: Faulty reading of fuel gauges. Suggestions: Fixed Fuel gauges and not trusting the C172 Fuel gauges.
Source: NASA Aviation Safety Reporting System (public domain). Reports are voluntary submissions and are not verified by NASA.