Fuel gauge inaccurate on 2003 Ford Taurus

Ran out of fuel today as idiot light didn't come on until 12miles prior. Added 1.5 gallons of gas, started car and gauge now showed almost 1/4 tank. Possibly related to occasional "shut-down" of vehicle at traffic light? Is this possibly an electrical issue? Please advise.

Get Your Car Fixed at a RepairPal Certified Shop.
We certify shops based on expertise, quality work, and verified customer reviews
1 answer
more likely the fuel sender malfunction.