Updated August 22, 2026 16 min read Corrosion Science

CO2 and H2S Corrosion in Oil and Gas: Sweet and Sour Service Guide

Sweet and sour service describe two fundamentally different corrosion challenges in oil and gas production, and confusing them leads to the wrong mitigation strategy. CO2 (sweet) corrosion is primarily a metal-loss problem driven by carbonic acid chemistry. H2S (sour) corrosion is primarily a hydrogen-cracking problem, where the corrosion reaction itself pumps damaging atomic hydrogen into the steel. This guide separates the two mechanisms, explains why they demand different engineering responses, and covers the material selection and standards framework used to manage both.

Key Takeaways

  • Sweet (CO2) corrosion is driven by carbonic acid formation; sour (H2S) service is defined by an H2S partial pressure threshold and is governed primarily by hydrogen cracking risk, not general metal loss.
  • Carbonic acid’s buffering effect makes CO2 corrosion more aggressive than a strong acid at the same pH, because dissociating carbonic acid continuously replenishes consumed hydrogen ions.
  • Iron carbonate (FeCO3) scale can be protective or non-protective depending on temperature and flow conditions, and its local breakdown causes mesa-type localized attack.
  • H2S poisons the surface recombination of atomic hydrogen into hydrogen gas, forcing more hydrogen into the steel and driving sulfide stress cracking (SSC) and hydrogen-induced cracking (HIC).
  • NACE MR0175/ISO 15156 defines sour service thresholds and sets hardness and material qualification limits, commonly a 22 HRC maximum for carbon steel, to control SSC.
  • Material selection is a trade-off between inhibited carbon steel (lower capital cost, ongoing chemical treatment) and corrosion-resistant alloys (higher capital cost, minimal ongoing treatment).
CO2 (Sweet) Corrosion Mechanism Carbon steel substrate Produced water film containing dissolved CO2 CO2 + H2O → H2CO3 → H⁺ + HCO3- Anode: Fe → Fe2⁺ + 2e- Cathode: 2H⁺ + 2e- → H2 FeCO3 (siderite) scale — protective if dense/adherent
CO2 dissolves to form carbonic acid, which corrodes steel and can deposit a protective or non-protective iron carbonate scale depending on conditions. © metallurgyzone.com

What “Sweet” and “Sour” Mean in Oilfield Terminology

The terms originate from odour: hydrogen sulfide gives sour crude and gas a distinctive rotten-egg smell, while H2S-free production is “sweet” by comparison. Metallurgically, the distinction matters because the two gases drive different corrosion chemistries and, more importantly, different failure consequences. CO2 alone produces a corrosion problem that is primarily about wall-thickness loss and remaining-life calculation. H2S introduces a cracking problem that can cause sudden, brittle failure at stresses and material conditions that would otherwise be considered safe, which is why sour service triggers a distinct materials-qualification regime under industry standards.

CO2 (Sweet) Corrosion Mechanism

Carbonic Acid Formation and the Cathodic Buffering Effect

Dissolved CO2 reacts with water to form carbonic acid, a weak acid that only partially dissociates:

CO2 + H2O ↔ H2CO3          (carbonic acid formation)
H2CO3 ↔ H⁺ + HCO3-        (partial dissociation)

Overall corrosion reaction:
Fe + H2CO3 → FeCO3 + H2     (iron dissolves, siderite scale forms)

Because carbonic acid is only partially dissociated, consuming hydrogen ions at the cathode does not deplete the acid the way it would in a fully dissociated strong acid; instead, more H2CO3 dissociates to replace the consumed H+, buffering the reaction and sustaining a higher effective corrosion rate than a strong acid of the same measured pH would produce. This buffering behaviour, closely related to the general electrochemical framework in corrosion mechanisms, is central to why CO2 corrosion is treated as its own engineering discipline rather than simply “low pH corrosion.”

Iron Carbonate Scale: Protective or Not

The iron carbonate (FeCO3, siderite) formed by the overall reaction can behave in two very different ways. At higher temperatures, typically above roughly 60-70°C depending on water chemistry and supersaturation, FeCO3 tends to precipitate as a dense, adherent scale that substantially slows further corrosion by limiting ion transport to the steel surface. At lower temperatures or under high flow conditions, the scale is often porous, poorly adherent, or removed faster than it forms, leaving the corrosion rate largely unmitigated.

Localized CO2 Attack: Mesa Corrosion

Where a protective scale forms unevenly, or is locally disrupted by flow-induced wall shear stress, exposed patches of bare steel corrode significantly faster than the surrounding scaled regions, producing a distinctive flat-bottomed, stepped attack pattern known as mesa corrosion. This flow-sensitivity means CO2 corrosion assessment must account for pipeline hydraulics and multiphase flow regime, not composition and temperature alone.

Factors Controlling CO2 Corrosion Rate

FactorEffect on Corrosion
CO2 partial pressureHigher pCO2 lowers pH and increases corrosion rate
TemperatureIncreases reaction kinetics, but can also promote protective FeCO3 scale formation above the scaling temperature, sometimes lowering net rate
Flow velocity / wall shear stressCan remove protective scale and increase mass transfer, raising local corrosion rate and promoting mesa attack
Organic acids (e.g. acetic acid)Add corrosivity beyond CO2 alone and can inhibit protective scale formation
Trace oxygen ingressDisproportionately damaging even at very low concentration in otherwise anaerobic systems

Industry-standard predictive models, most notably the de Waard-Milliams family of correlations, combine these variables to estimate expected CO2 corrosion rates for pipeline and vessel design, though field verification against actual metal-loss inspection data remains standard practice given the number of interacting variables.

H2S (Sour) Corrosion and Hydrogen Damage Mechanisms

H2S corrodes steel through an analogous overall reaction, forming iron sulfide corrosion products (commonly mackinawite or pyrrhotite) instead of iron carbonate. The metallurgically significant difference is not the scale chemistry but what happens to the hydrogen generated at the cathode.

H2S (Sour) Hydrogen Damage Pathway Steel substrate MnS inclusion Water film with dissolved H2S Normal path (no H2S): H(ads) + H(ads) → H2 (gas escapes) H2S-poisoned path: H(ads) → H(abs) diffuses into steel H accumulates → HIC (internal blister/crack) + tensile stress → SSC (brittle crack)
H2S blocks surface recombination of atomic hydrogen into gas, forcing hydrogen into the steel where it drives SSC under stress or HIC at inclusions. © metallurgyzone.com

Why H2S Promotes Hydrogen Absorption

Under normal cathodic hydrogen evolution, two adsorbed hydrogen atoms on the steel surface combine and desorb as harmless hydrogen gas. H2S interferes with this recombination step, acting as a hydrogen recombination poison, which leaves a larger population of atomic hydrogen on the surface with nowhere to go but into the steel lattice. This absorbed hydrogen is the root cause of both major sour-service cracking mechanisms, and the same absorption principle underlies the broader family of failures discussed in hydrogen-induced cracking.

Sulfide Stress Cracking (SSC)

Sulfide stress cracking is brittle, hydrogen-assisted cracking of hard or high-strength steel under sustained tensile stress (applied or residual) in a sour environment. Because susceptibility rises sharply with hardness, SSC control in practice means controlling hardness: NACE MR0175/ISO 15156 sets a maximum of approximately 22 HRC for carbon and low-alloy steels in sour service, which in turn governs allowable base metal condition, welding procedure, and post-weld heat treatment requirements, following the same hardness-microstructure relationships covered in quenching and tempering and measured per standard hardness testing methods.

Hydrogen-Induced Cracking (HIC) and SOHIC

Hydrogen-induced cracking occurs when absorbed hydrogen migrates to internal defects, most commonly elongated manganese sulfide inclusions in lower-strength pipeline-grade steels, and recombines there into molecular hydrogen gas. Because this gas is trapped inside the steel, internal pressure builds until it initiates cracks, entirely independent of any externally applied stress. Where these internally initiated cracks link up and reorient under the influence of a superimposed stress field, the result is termed stress-oriented hydrogen-induced cracking (SOHIC), which is of particular concern in weld heat-affected zones. HIC resistance is controlled primarily through steel cleanliness (low sulfur content, inclusion shape control) rather than hardness alone, distinguishing it clearly from SSC as an engineering problem.

NACE MR0175 / ISO 15156 and Sour Service Classification

NACE MR0175, now published jointly with ISO as ISO 15156, is the standard framework the industry uses to classify sour service and specify qualified materials. It defines the H2S partial pressure threshold above which an environment is classified as sour, and sets out hardness limits, permitted material types, and qualification testing requirements (including standardised SSC and HIC test methods) for equipment in that service. Compliance with this standard is typically a contractual and regulatory requirement for oil and gas equipment specification, not merely good practice.

Combined CO2/H2S Service

Most produced fluids contain both gases simultaneously, and the ratio between them materially changes which failure mode dominates. Where CO2 partial pressure is much larger than H2S partial pressure, iron carbonate chemistry and general/localized CO2-type attack tend to dominate corrosion behaviour. Where H2S partial pressure is significant relative to CO2, iron sulfide scale formation and hydrogen cracking risk become the controlling design considerations, sometimes even while reducing measured general corrosion rate relative to CO2 alone, because iron sulfide is less soluble and can form protective scale more readily than iron carbonate under some conditions. This is why sour-service design cannot simply be treated as “CO2 corrosion plus a hardness limit” — the two mechanisms interact.

A common design error is qualifying wall-thickness and corrosion allowance against CO2 corrosion rate models alone, while treating H2S purely as a materials-hardness checkbox. Both gases affect scale chemistry, and the combined environment should be assessed as a system rather than two independent checks.

Material Selection Strategy

Service ConditionTypical Material ApproachKey Consideration
Low-moderate CO2, no significant H2SCarbon steel with corrosion allowance, often chemically inhibitedLowest capital cost; requires ongoing inhibitor injection and monitoring
High CO2, high temperature/chloride13Cr martensitic stainless or duplex stainlessImproved CO2 resistance; duplex needed where chlorides risk pitting/SCC
Sour service, moderate severityHardness-controlled carbon/low-alloy steel per NACE MR0175/ISO 15156Requires controlled HRC, qualified welding procedures, and PWHT where specified
Sour service, high severity / high chloride22Cr or 25Cr duplex, or nickel alloys (e.g. Alloy 825, 625)Highest capital cost; minimal ongoing chemical treatment requirement

The underlying trade-off, echoed in the broader mild steel vs stainless steel selection guide, is capital cost against ongoing operating cost and risk: inhibited carbon steel defers cost into chemical treatment and monitoring programmes, while corrosion-resistant alloys shift cost upfront in exchange for a largely self-protecting system.

Corrosion Inhibition and Monitoring

Film-forming corrosion inhibitors remain the primary mitigation tool for carbon steel in both sweet and moderately sour service, working by adsorbing onto the steel surface to slow the anodic and cathodic reactions, complementing the general inhibitor mechanisms covered in corrosion inhibitors. Effective inhibition programmes depend on continuous, correctly dosed injection and are supported by corrosion monitoring (coupons, electrical resistance probes, ultrasonic thickness surveys) to verify actual field performance against the corrosion rate assumptions used in design.

Frequently Asked Questions

What is the difference between sweet and sour service in oil and gas?
Sweet service refers to production environments containing CO2 but negligible H2S, where corrosion is dominated by carbonic acid attack on the metal. Sour service refers to environments containing H2S above a defined partial pressure threshold, where the dominant concern shifts from general metal loss to hydrogen-related cracking mechanisms.
Why is CO2 corrosion more aggressive than a strong acid at the same pH?
Carbonic acid is a weak acid that only partially dissociates, but as hydrogen ions are consumed at the steel surface, more carbonic acid dissociates to replace them. This buffering effect means the cathodic reaction proceeds faster than it would in a strong acid solution of identical pH, making CO2 corrosion disproportionately aggressive for its measured pH.
What is mesa corrosion?
Mesa corrosion is a localised, flat-bottomed attack pattern seen in CO2 corrosion where a protective iron carbonate scale forms unevenly and is then partially removed by flow-induced shear stress, exposing bare steel in patches that corrode faster than the surrounding scaled areas, producing a stepped, mesa-like surface profile.
Why does H2S cause hydrogen cracking instead of just general corrosion?
H2S acts as a hydrogen recombination poison at the steel surface, interfering with the normal reaction that combines two adsorbed hydrogen atoms into hydrogen gas. This forces a larger fraction of the atomic hydrogen generated by the corrosion reaction to diffuse into the steel instead of escaping as gas, driving hydrogen embrittlement and cracking mechanisms.
What is sulfide stress cracking?
Sulfide stress cracking (SSC) is brittle, hydrogen-assisted cracking of hard or high-strength steel under sustained tensile stress in a sour (H2S-containing) environment. It is controlled primarily by limiting material hardness, commonly to a maximum of about 22 HRC for carbon and low-alloy steels under NACE MR0175/ISO 15156.
What is hydrogen-induced cracking and how is it different from SSC?
Hydrogen-induced cracking (HIC) occurs when absorbed hydrogen accumulates at internal defects such as manganese sulfide inclusions and recombines into high-pressure hydrogen gas, cracking the steel internally without requiring an externally applied tensile stress. Unlike sulfide stress cracking, HIC is driven by material cleanliness (inclusion content) rather than hardness alone.
What is NACE MR0175 / ISO 15156?
NACE MR0175, now published jointly as ISO 15156, is the industry standard governing material selection for oil and gas equipment in H2S-containing (sour) service. It defines the H2S partial pressure threshold for sour service classification and sets hardness, heat treatment, and material qualification requirements to control sulfide stress cracking and related hydrogen damage.
When is a corrosion-resistant alloy required instead of carbon steel?
Carbon steel with corrosion allowance and chemical inhibition remains the default for many sweet and moderate sour applications. Corrosion-resistant alloys such as 13Cr martensitic stainless, duplex stainless, or nickel alloys are typically justified where combined high CO2/H2S partial pressure, high chloride content, high temperature, or inhibitor-application limitations make reliable carbon steel corrosion control impractical.

Recommended Reference Reading

ASM Handbook, Volume 13C: Corrosion in the Oil and Gas Industry

Dedicated reference on CO2, H2S, and combined-service corrosion mechanisms in upstream and midstream equipment.

View on Amazon

Fontana’s Corrosion Engineering

Foundational text on weak-acid corrosion chemistry and hydrogen damage mechanisms relevant to sour service.

View on Amazon

NACE/ISO 15156 Standards Reference

Reference compilation covering NACE MR0175/ISO 15156 sour service material qualification requirements.

View on Amazon

Corrosion Control in the Oil and Gas Industry

Applied reference on inhibitor selection, monitoring, and material strategy for sweet and sour production systems.

View on Amazon

Disclosure: MetallurgyZone participates in the Amazon Associates programme. If you purchase through these links, we may earn a small commission at no extra cost to you. This helps support free technical content on this site.

Further Reading

garg5917@gmail.com

← Previous
Exfoliation Corrosion in Aluminium Alloys
Next →
Sacrificial Anode Materials: Zinc, Aluminium and Magnesium Compared