If you're figuring out how to clean a gas tank the right way, start by identifying the contamination, not by dumping in a bottle of cleaner. Stale fuel may call for draining and inspection; loose rust, sludge, or water usually means the tank needs to come out for a proper look. A badly rusted or leaking tank is generally a replacement job. Gasoline vapor can ignite well away from the liquid, so the actual draining and cleaning are often best left to a fuel-system shop.
Figure out what went wrong before pulling parts
A car that sat for years can have fuel that smells sour and leaves varnish behind. Water may show up as a separate layer in a clear sample taken by a professional. Fine orange particles in a fuel filter suggest corrosion, while dark debris can come from deteriorating hoses or other components. None of those clues alone tells you the whole story.
Check the tank's age and material if you can. An older steel tank can rust internally when moisture collects; a plastic tank won't rust, but it can still hold sediment, degraded fuel, or debris from elsewhere in the system. Don't assume a rusty filter proves the tank is the only source. Inspect accessible steel fuel lines and the filler neck, too.
If the vehicle runs poorly, don't keep cranking it in hopes of clearing the mess. You can pull more contamination into the pump and lines. An external fuel filter may need replacement, but fitting a fresh one without addressing a dirty tank just gives the new filter the same job all over again.
How to clean a gas tank the right way starts with safety
Gasoline vapors are heavier than air and can travel to an ignition source. A garage with the door open is not automatically safe: water heaters, furnaces, pilot lights, switches, battery tools, and other equipment can provide ignition sources. Don't drain fuel over a service pit or into an open pan, and don't use a household vacuum to deal with it.

The safest move is to have a qualified shop drain and remove the tank using equipment intended for fuel. That goes double if the tank is full, the car is unstable, or you don't know how its fuel system is configured. A loaded tank is awkward and heavy, and spilling gasoline under a raised car is no way to end a Saturday.
Before any service, the vehicle-specific procedure matters. Fuel-injected systems may retain pressure after the engine is shut off, and the correct pressure-relief and battery-disconnection sequence varies. Hybrids and other vehicles with high-voltage components call for additional precautions. Use the factory service information or hand the job to someone equipped for it.
Never weld, cut, grind, or heat a used tank yourself, even if it looks empty. Residual vapor can explode. A shop that repairs tanks needs the proper procedures and equipment to make that decision safely.
Decide whether to clean, repair, or replace
Once the tank is professionally drained and removed, inspection tells you where the money should go. Light surface contamination and a structurally sound tank may be candidates for cleaning. Heavy scaling, perforation, damaged seams, or extensive external corrosion make replacement worth serious consideration. A tank with pinholes isn't fixed because the outside looks decent after a wire brushing.
Ask the shop to inspect the inside through available openings, including around baffles and seams. Baffles can hide pockets of debris, so a quick rinse doesn't prove the tank is clean. Internal coatings also complicate the job: a failing liner may need removal before any new treatment, and some tanks aren't good candidates for relining at all.
For a common vehicle, compare the cost of a suitable replacement tank with professional cleaning and repair. For hard-to-find vintage iron, a specialist may be able to preserve an original tank, but get a clear assessment before paying for a coating. Sealer over loose rust or leftover contamination can peel and create another blockage. There is no magic pour-in product that turns thin, perforated steel into solid metal.

What a proper cleaning should cover
Tell the shop what was in the tank and how long the vehicle sat, if you know. Gasoline mixed with water, old varnish, and loose rust don't all respond to the same process. A fuel-tank specialist can choose a compatible cleaning method, dispose of contaminated liquid properly, and inspect the result without sending more debris into the system.
Don't improvise with random acids, caustic cleaners, or a pressure washer in the driveway. Chemicals can damage tank materials or coatings, and the resulting wastewater may contain fuel and dissolved contaminants. Drying is just as important as washing: trapped water can start corrosion in a steel tank and cause trouble when the system goes back into service.
For a plastic tank, the concern is generally removing contamination without damaging the tank or its fittings. For steel, the shop also needs to judge the remaining metal and any corrosion hidden around seams. Ask what the cleaning includes, whether the inside can be inspected afterward, and whether a liner is actually necessary. A clean tank without a questionable liner is better than a rusty tank covered in one.
Finish the fuel system, not just the tank
A clean tank connected to dirty lines can put you right back where you started. Inspect the lines and hoses for corrosion, cracks, soft spots, and blockages. Have contaminated lines cleaned or replaced as appropriate. Replace an accessible fuel filter; some vehicles have filters or strainers integrated with the pump assembly, so follow the service procedure rather than assuming there's a separate canister under the car.
The pump pickup or strainer deserves attention too. If the pump has been running through sludge or rust, a shop can assess its condition, but cleaning the tank alone doesn't guarantee the pump or injectors survived. Carbureted cars may need the carburetor inspected or cleaned if old fuel reached the float bowl and passages.
Use new seals where the service procedure calls for them, and make sure the correct fuel-rated hoses and clamps go back in their proper locations. Reinstalling the tank involves supporting it securely, reconnecting the filler and vent plumbing, and routing lines away from exhaust and moving parts. A pinched vent or loose connection can create a fresh problem even when the tank itself is spotless.
Refill with fresh fuel, then have the system checked for leaks while it is primed and running, following the vehicle's procedure. If you smell gasoline or see dampness, shut the engine off and address it before driving. Dispose of old fuel through a local hazardous-waste collection program or an approved facility; don't pour it down a drain, onto the ground, or into the trash.
