How many gallons does one goldfish need to survive?

10 gallon tank and every time I buy a goldfish it never survives that long...what am I doing wrong?
10 answers 10