Replace gas tank and sending unit or not?

So I run out of gas when the fuel gauge reads 1/4 full. Is this probably the float? or What?