I've only run out once, back in 2000... in my nasty old mid 80's Pontiac 6000. That fuel light was every bit as inconsistent as the rest of the car.
I think my 2005 Ram 1500 gives me about 3 gallons on the empty light. I typically keep it topped off at half a tank or higher though.
My fuel injected Shadow motorcycle has a 3.7 gallon tank and it turns on a fuel light when it hits about 25% fuel remaining... a little under 1 gallon left. Typically that happens between 150 and 155 miles. Farthest I've pushed that light is to about 188 miles, which was in Tacoma, WA, the day I crossed the Cascades over White Pass. I had lots of opportunities to fuel up between Prosser and Tacoma, but I was in a part of the country I was very familiar with and had a half gallon of spare fuel in cannisters in my saddlebags. When I filled up that time, I put 3.4 gallons in. I could have rolled over 200 miles on that tank, but it's highly dependent on how much Interstate 75mph+ cruising I do, versus 55-60mph mountain highway cruising.
My XR600 has a 5 gallon desert tank, but no low fuel indicator other than "not running because it can't get any gas out of the tank." Fortunately, the tank has twin petcock valves on either side. Once the fuel level gets down to the part of the tank where each side is segregated (takes 3+ gallons of riding to get there), it's essentially two tanks, each with about 3/4 of a gallon. When one runs out, I can open the second petcock for the other side of the tank and get the remaining 3/4 of a gallon on the other side.