gas tank

my gas tank says on it 21 gal. but when i fill it when it says empty it only takes 12 gal. can someone with a older comp tell me how much there's holds?