gas gauge is not working properly on 1999 Chevrolet Malibu

gas gauge works sometimes and sometimes not

2 answers
most likely the fuel tank sending unit is going bad,chev'z are very common for this
sending unit