Hydrochloric acid (HCl) attacks stainless steel. It is one of the few common chemicals that standard grades such as 304 and 316 cannot handle. HCl contains chloride, and it is a non-oxidizing acid, so it strips the chromium oxide film that makes stainless “stainless” and stops that film from reforming. Very dilute acid at room temperature, rinsed off quickly, usually leaves only light etching or a few pits. A few percent or more, warm acid, or long contact dissolves the steel and gives off hydrogen gas. For hydrochloric acid tanks, piping and valves, engineers use plastics, rubber-lined or glass-lined steel, or nickel-molybdenum alloys, not ordinary stainless. This guide explains why, which grades last longest, what to do if HCl has been spilled on stainless, and which materials to use instead.
Quick answers
- Does HCl react with stainless steel? Yes. Iron, chromium and nickel dissolve as metal chlorides, and hydrogen gas is released. The reaction is slower than on plain carbon steel, but it is not negligible.
- Is 316 compatible with HCl? Only with traces of it, such as very dilute acid at room temperature for a short time, followed by rinsing. 316 is not suitable for 5%, 10%, 32% or 37% hydrochloric acid at any temperature.
- Best stainless grade for HCl: high-molybdenum grades such as 904L and 6% Mo “super-austenitic” grades last longest, but only in dilute, cool acid. For real HCl service, the usual choice is a nickel-molybdenum alloy (Hastelloy B-type), zirconium, tantalum or a plastic.
- Muriatic acid on a stainless sink or appliance: rinse at once with lots of water, neutralize with baking soda, rinse again and dry. Light etching can usually be cleaned and refinished.
- Dry HCl gas: much less corrosive than the acid. But any moisture turns it into hydrochloric acid, which attacks stainless.
Why hydrochloric acid is so hard on stainless steel
Stainless steel resists corrosion because of a very thin, invisible film of chromium oxide on its surface. The film forms on its own in air or oxygen-containing water, and it repairs itself when scratched. That is why the common stainless grades cope with water, most foods and many chemicals. Hydrochloric acid defeats this film in three ways at once:
- It is a strong acid. At low pH the oxide film dissolves, especially where it is thin, such as at scratches, weld tints and inclusions.
- It contains chloride. Chloride ions are the classic trigger for pitting and crevice corrosion in stainless steel. In hydrochloric acid they are present in very high concentration. (Our guide to stainless steel and chlorine covers chloride attack from bleach, pools and chlorinated water.)
- It is non-oxidizing (“reducing”). Nitric acid helps rebuild the passive film, which is why stainless resists it well. HCl does not. Once the film is gone, nothing in the acid helps it come back, so the steel stays “active” and keeps corroding.
The result depends on strength. In very dilute acid you usually see pitting: small, deep holes in an otherwise bright surface. In stronger acid the whole surface goes active and corrodes uniformly and fast, often turning dull grey and fizzing.
The chemical reaction
Stainless steel is mostly iron, with chromium and (in the 300 series) nickel. In hydrochloric acid each of these metals reacts the same basic way, forming a chloride salt and hydrogen gas:
| Metal | Reaction with hydrochloric acid |
|---|---|
| Iron (main component) | Fe + 2 HCl → FeCl2 + H2↑ |
| Chromium (10.5–30%) | Cr + 2 HCl → CrCl2 + H2↑ (oxidized further to Cr(III) in air) |
| Nickel (8–14% in 304/316) | Ni + 2 HCl → NiCl2 + H2↑ |
Two practical consequences follow. First, the hydrogen gas is flammable, so a stainless container or closed vessel with HCl inside can build up an explosive gas mixture. Second, the dissolved metal ions, especially ferric (Fe3+) ions, act as oxidizers in the acid. They make pitting of the remaining stainless steel worse, so contaminated, “used” acid is often more aggressive than fresh acid.
Which stainless grades resist HCl best?
Molybdenum is the alloying element that helps most in reducing acids like HCl, followed by nickel and chromium. Grades with more molybdenum last longer. None of them makes stainless steel a true HCl-resistant material, but the difference matters for incidental or very dilute exposure.
| Grade | Typical Cr / Ni / Mo (%) | Behaviour in hydrochloric acid |
|---|---|---|
| 430, 410, 416 (ferritic and martensitic) | 11.5–18 / under 1 / 0 | ❌ Poor. Attacked quickly even by dilute acid. 416 (free-machining, with sulfur) is among the worst. Hardened martensitic grades also risk hydrogen embrittlement. |
| 304 / 304L | 18–20 / 8–12 / 0 | ❌ Not suitable beyond traces. Pitting in very dilute acid, fast general corrosion at a few percent. |
| Nitronic 60 (UNS S21800) | 16–18 / 8–9 / 0 (with Mn and Si) | ❌ Not suitable. Made for galling resistance. Its general corrosion resistance is usually rated between 304 and 316, so it does no better than standard grades in HCl. |
| 316 / 316L | 16–18 / 10–14 / 2–3 | ⚠️ Slightly better than 304. Only for very dilute acid at room temperature, short contact, rinsed off. Not for HCl tanks or lines. |
| 2205 duplex | 22–23 / 4.5–6.5 / 3–3.5 | ⚠️ Similar to 316 or a little better in dilute acid. No real HCl resistance. |
| 904L | 19–23 / 23–28 / 4–5 | ⚠️ Better. Usable in some dilute, cool HCl solutions where 316 fails. Still limited to low concentrations. |
| 6% Mo super-austenitic (e.g. UNS S31254, N08367) | 19.5–22 / 17.5–25.5 / 6–7 | ⚠️ Best of the stainless steels, still only for dilute acid near room temperature. |
The 316L “L” (low carbon) helps against corrosion next to welds but does nothing extra in HCl itself. The differences are explained in 316 vs 316L and 304 vs 316. For the higher-alloy options, see our 904L guide and 2205 vs 316.
Concentration, pH and temperature: a rough guide
Corrosion tables from steel producers plot “iso-corrosion” curves: the concentration and temperature at which a grade corrodes at a set rate, often 0.1 mm per year. For 304 and 316 those curves sit at very low HCl concentrations. The guide below is a deliberately conservative summary for clean, air-exposed acid without oxidizing contaminants. Treat it as a screening tool, not a design value.
| HCl strength | Approx. pH | 304 | 316 / 316L | 904L / 6% Mo | What to use instead |
|---|---|---|---|---|---|
| Traces (well under 0.1%) | about 2 and above | ⚠️ Usually OK if rinsed; pitting risk in crevices | ✅ Usually OK at room temperature | ✅ | Stainless is often acceptable |
| Around 0.1–1% | about 0.5–1.5 | ❌ | ⚠️ Short contact at room temperature only | ⚠️ Often usable when cool | Plastics, Hastelloy C/B-type |
| A few % (e.g. 5% regeneration acid) | about 0 or below | ❌ | ❌ | ❌ / ⚠️ only near room temperature | PVC, CPVC, PP, PVDF, FRP, rubber-lined steel |
| 10–20% | below 0 | ❌ | ❌ | ❌ | Plastics, rubber-lined steel, nickel-molybdenum alloys |
| 30–37% (commercial and muriatic acid) | below 0 | ❌ | ❌ | ❌ | HDPE or FRP tanks, rubber-lined steel, PVDF, tantalum, zirconium |
| Any of the above, warm or hot (roughly above 40–50 °C) | n/a | ❌ | ❌ | ❌ | Nickel-molybdenum alloys, zirconium, tantalum, graphite, glass-lined steel |
Converting pH to concentration. HCl is a strong acid, so pH tracks concentration closely in dilute solutions. pH 1 is about 0.1 mol/L, which is 0.1 × 36.46 g/mol ≈ 3.6 g/L, or roughly 0.36%. pH 2 is about 0.036%, and pH 3 about 0.0036%. pH 1.5 is roughly 0.12%. So a “pH 3 HCl” stream is very dilute and 316 often copes with it at room temperature. A pH 1–1.5 stream is in the range where 316 needs care and short contact, and 304 is a poor choice. In concentrated acid, pH stops being a useful measure; use percent by weight.
Things that move every line in the table toward “worse”: higher temperature, crevices (gaskets, threads, lap joints, under deposits), stagnant acid, oxidizing contaminants such as ferric or cupric chloride or dissolved chlorine, other halides such as hydrofluoric acid, and tensile stress, which adds a risk of chloride stress corrosion cracking.
Materials that do handle hydrochloric acid
Because no stainless steel is a dependable HCl material, chemical plants, water treatment and pickling lines use other materials for anything that holds or carries the acid:
| Material | Typical use with HCl | Limits to know |
|---|---|---|
| HDPE, PP, PVC, CPVC | Storage tanks, day tanks, piping, valves, pumps | Temperature limited, lowest for PVC and PE. UV and mechanical damage. Tanks need venting for fumes. |
| PVDF, PTFE, PFA | Higher-temperature piping, linings, valve and pump internals, gaskets | Higher cost. PTFE gaskets can creep. |
| FRP (vinyl ester resin) | Large tanks, scrubbers, ducting | Needs the right resin and corrosion barrier, designed to a recognised FRP standard |
| Rubber-lined carbon steel | Tanks, tank trucks, pipe in pickling and ion-exchange plants | Lining must stay intact. Any damage exposes carbon steel, which HCl dissolves very quickly. |
| Glass-lined steel | Reactors, vessels | Brittle lining. Not for HF or hot caustic. |
| Nickel-molybdenum alloys (Hastelloy B-2/B-3 type) | Hot or concentrated HCl in metal equipment | Rapid attack if oxidizers (ferric or cupric ions, air at high temperature) are present |
| Nickel-chromium-molybdenum alloys (C-276 type) | Dilute HCl, mixed acids with oxidizers | Limited in hot, concentrated HCl. See Hastelloy vs stainless steel. |
| Zirconium, tantalum | Heat exchangers, heaters, reactor parts in hot HCl | Very expensive. Zirconium is sensitive to ferric and cupric ions. |
| Impervious graphite | Heat exchangers for HCl | Brittle, pressure limited |
| Titanium | Only dilute HCl near room temperature; palladium-alloyed grades go further | Not a general HCl material, especially hot. Comparison: stainless steel vs titanium. |
Carbon steel, copper and copper-nickel are not alternatives either. Carbon steel dissolves faster than stainless in uninhibited HCl, and copper alloys are attacked once air is present. Industrial “inhibited HCl” cleaning of carbon-steel boilers relies on additives that protect carbon steel. Chemical-cleaning practice generally avoids HCl for austenitic stainless parts and uses chloride-free cleaners such as citric acid or EDTA instead.
Common situations, and what to do
Ion-exchange regeneration, cleaning-in-place and short acid contact
A typical question is whether 316 can take 5% HCl for 30 minutes during cation resin regeneration, followed by a rinse with demineralized water. In practice this is not a good choice: 5% is well above the range where 316 stays passive, so each cycle removes some metal and starts pits, and acid held in crevices, valves and dead legs keeps working after the rinse. Regeneration skids for HCl are normally built in PVC, CPVC, PP, FRP or rubber-lined steel. If stainless parts are unavoidable nearby, keep them out of the acid path and rinse thoroughly.
Pipelines, valves and fittings
Standard stainless steel pipe and fittings should not carry hydrochloric acid. Use lined pipe (PTFE- or PFA-lined steel), thermoplastic pipe or FRP, with valves of the same family. For dry, anhydrous HCl gas, the picture is different: carbon steel, stainless steel and nickel alloys are all used at moderate temperatures as long as the system stays completely dry. The weak point is moisture. Air getting in during maintenance, or wet purge gas, turns residual HCl into acid, and the first corrosion often appears at valves and low points. At high temperatures, dry HCl gas attacks metals by direct chlorination, and nickel alloys are normally specified.
Reactors and lab equipment
A stainless reactor with 10% HCl will corrode. Glass-lined steel, PTFE-lined equipment or a nickel-molybdenum alloy is normal for that duty. In the lab, stainless spatulas, needles and fittings can survive brief contact with dilute HCl, but they pit and leave iron contamination in samples. Rinse straight away.
Muriatic acid near stainless sinks, appliances and fixtures
Muriatic acid is hydrochloric acid sold for masonry, pools and descaling, usually around 30–32% HCl, with some lower-strength versions on sale. Some toilet-bowl and limescale cleaners also contain HCl. Three things commonly damage stainless at home:
- Splashes and spills on sinks, drains and appliance fronts while cleaning tile, brick or concrete.
- Fumes. Open muriatic acid gives off HCl vapour. Stainless (and plain steel) tools, shelving or fixtures stored in the same room or cupboard develop rust spots and brown staining, even without direct contact. Store the acid sealed and away from metal.
- Toilet and descaling cleaners left to sit on stainless parts.
Muriatic acid is also not a good way to clean stainless steel, even to remove rust or scale. Gentler options are in our stainless steel cleaning guide and stainless steel rust remover guide.
Cleaning welds
Hydrochloric acid is not used to clean stainless steel welds. Standard pickling for removing heat tint and scale uses nitric acid with hydrofluoric acid (as pastes, gels or baths), and passivation uses nitric or citric acid. HCl would remove the tint, but it leaves chloride behind and pits the weld zone. See the best acid for cleaning stainless steel after welding.
How to fix stainless steel after an HCl spill
- Rinse immediately with plenty of clean water. Dilution is the most important step.
- Neutralize with a solution of baking soda (sodium bicarbonate) in water. Fizzing shows acid is still present. Keep going until it stops.
- Rinse again with clean water, then dry completely. Chloride left behind keeps pitting the surface, especially once it dries and concentrates.
- Inspect. Light dulling or grey etching is common. Small brown spots or pinholes mean pitting.
- Clean the stain with an oxalic-acid cleanser or a stainless steel cleaner, along the grain. Do not use steel wool; it leaves iron particles that rust.
- Restore the finish if needed: on brushed stainless, use a fine non-woven abrasive pad in the direction of the grain. Deep pits cannot be polished out without removing a lot of metal.
- Let it repassivate. On a clean, dry surface the chromium oxide film reforms on its own in air. On equipment, a citric acid passivation treatment speeds this up and removes embedded iron; see passivation of stainless steel.
Do not try to “bake out” HCl with heat. Heating does not remove chloride; it concentrates it on the surface and raises the risk of pitting and stress corrosion cracking. Washing with water is what removes it. For sinks, the follow-up cleaning steps are in how to clean a stainless steel sink.
Testing stainless steel’s resistance to hydrochloric acid
If you need to qualify a grade for a specific acid stream, a quick drop test on a scrap of metal tells you little. Standard approaches are:
- Immersion testing of coupons in the actual process solution, at the actual temperature, to measure mass loss and convert it to a corrosion rate (mm per year). ASTM G31 is the usual lab guide.
- Pitting and crevice tests such as ASTM G48, which uses ferric chloride solution to rank grades by pitting and crevice resistance.
- Producer corrosion tables and iso-corrosion charts for a first screening, then confirmation with your own solution, since contaminants change the result.
Coupons with crevices (a washer or gasket clamped on) and welded coupons show the weak points that plain sheet samples miss.
Frequently asked questions
Will hydrochloric acid dissolve stainless steel?
Yes, given enough strength and time. Concentrated hydrochloric acid dissolves 304 and 316 steadily, with hydrogen fizzing off the surface, and warm acid dissolves them faster. Very dilute acid at room temperature mainly causes etching and pits rather than visible dissolving.
Is hydrochloric acid worse for stainless steel than sulfuric acid?
Generally yes. Both are reducing acids at most concentrations, but HCl also brings a high level of chloride, which drives pitting. 316 has a useful resistance window in some sulfuric acid concentrations; in HCl it has almost none. See stainless steel and sulfuric acid for that comparison.
Is carbon steel or stainless steel better for HCl?
Neither is suitable for hydrochloric acid itself. Uninhibited HCl dissolves carbon steel even faster than stainless. In practice the answer is a plastic, a lined steel or a nickel-molybdenum alloy. Carbon steel is only used with HCl when it is lined, or with inhibited acid in controlled cleaning jobs.
Is 316 stainless suitable for HCl mixed with hydrofluoric acid?
No. HCl/HF mixtures are more aggressive than either acid alone toward stainless steel. Materials for that duty are typically fluoropolymers, some nickel alloys, or specialised linings.
Can HCl or sodium hydroxide make 316L rust?
HCl can, through pitting and general corrosion, and rust-coloured staining often follows. Sodium hydroxide (caustic soda) at the strengths and temperatures used for cleaning is generally well tolerated by 316L and is standard in food and dairy cleaning-in-place. Hot, concentrated caustic can cause caustic cracking, so the limits depend on temperature and strength.
Why does HCl react with stainless steel when stainless is supposed to resist acids?
Stainless steel resists oxidizing acids such as nitric acid and many mild organic acids because its oxide film survives in them. HCl is non-oxidizing and full of chloride, so the film breaks down and does not reform. Without the film, stainless is just an iron-chromium-nickel alloy, and it reacts with the acid much like other metals.
Which stainless steel is best for hydrochloric acid?
Among stainless steels, 6% molybdenum super-austenitic grades are the most resistant, followed by 904L, then 316L and duplex 2205. 304 and the 400-series grades such as 410 are the least resistant. Even the best stainless steels are limited to dilute, cool HCl. For anything stronger, choose a non-stainless material.
Last updated: November 2026. Concentration and temperature limits here are deliberately conservative, typical guidance for clean acid, not design values. Contaminants, crevices, welds and stress change the result. For tanks, piping, pressure equipment or chemical processing, check the material producer’s corrosion data, test in your actual solution, and follow your site’s chemical safety rules.
Sponsored








