The fuel gauge is very conservative because they know people will run them down on occasion.
I have a 26 gallon, and I rarely get more than 21 in there if I fill up shortly after the light turns on. Factor in the miles left on the computer
https://19216801.onl/ https://routerlogin.uno/, I should have 3 more gallons left, that would bring me to 24 gallons. 2 gallons off the mark.
However, I have confirmed I do have a 26 gallon tank, so the difference is likely in an extra gallon or so of leeway on the gauges and trip computer and also in the fuel tank system that's part of the tank.