Two fancies comfortably, three at the ceiling
The usual goldfish guide — roughly twenty gallons for the first fancy and ten for each one after — lands a 40-gallon tank at two fancy goldfish with room to spare, or three as a genuine ceiling. A 40-gallon breeder is the shape to choose: its wide, long footprint gives deep-bodied fancies room to turn, forage along the bottom and get out of each other's way, which a tall 40-gallon of the same volume does not. Fancies in the six-to-eight-inch range live well at this scale for many years when the water is kept clean, and the tank reads as properly stocked rather than crowded.
Match the swimmers, not just the count
Varieties differ in ability, and mixing carelessly is the classic 40-gallon mistake. Strong, quick fancies such as fantails and ryukins reach food fast; slow, delicate ones — bubble-eyes, celestials and the weakest-swimming ranchus — can go hungry politely at the other end of the tank. Keep a group of similar-ability fish: two orandas together, or a ryukin alongside a fantail, works far better than a black moor competing against faster mouths. Feed at both ends of the tank, or briefly separate the slowest fish at mealtimes, so that every fish actually eats.
Filtration and water changes at this stocking level
Three large, messy fish in forty gallons is a filtration commitment, not just a filter purchase: run capacity rated well above the tank's size, keep up generous weekly partial water changes without fail, and siphon the substrate, since fancies spend their day sifting it and kicking waste up into the water. Two fish relaxes the schedule slightly but does not remove it. Keep the bottom fairly open — a thin layer of sand or smooth gravel and a few sturdy features — because fancies are clumsy grazers that bruise on sharp decoration and can trap themselves behind cluttered rockwork.
Why single-tailed goldfish still do not belong
Forty gallons feels generous until you picture a common or comet at full size: past twelve inches, built like a torpedo, and producing waste in line with its length. One would technically fit through the glass and still be undersized, under-exercised and hard on the water. Single-tailed goldfish remain pond fish, and no home aquarium in this size class changes that. Forty gallons is where fancy goldfish keeping done properly really begins — it is not a halfway house for pond species.
Deciding on the third fish
The jump from two fancies to three is where maintenance discipline matters more than the tape measure. Debating that third fish deserves a careful look at your schedule and the extra bioload first; put a follow-up question to KinsLe's Kimmy; she answers using the KinsLe Answers library.