Corrosion Rate & Remaining Life Calculator — API 570 Piping Inspection

Corrosion Rate & Remaining Life Calculator — API 570 | WeldFabWorld

Corrosion Rate & Remaining Life Calculator — API 570 Piping Inspection

This corrosion rate and remaining life calculator performs the three essential calculations required by every inspection engineer working to API 570 (Piping Inspection Code) and API 510 (Pressure Vessel Inspection Code): the corrosion rate from consecutive ultrasonic thickness (UT) readings, the remaining life to the retirement thickness, and the next inspection date per the API 570 half-life rule with maximum interval limits for Class 1, 2, and 3 piping circuits. The calculator also provides a visual timeline bar showing consumed life, remaining life, and where the next inspection date falls within that window.

Every fixed inspection point (FIP) on a process plant requires these calculations at each inspection cycle to update the corrosion rate, reassess the remaining life, and schedule the next inspection within code limits. Getting them wrong — particularly by using an optimistic corrosion rate that understates metal loss — leads to an inspection interval that is too long, allowing the wall thickness to fall below the retirement thickness between inspections. API 570 is explicit: the governing corrosion rate is the greater of the short-term and long-term rates, with no discretionary averaging unless supported by a documented fitness-for-service assessment.

Code Scope: This calculator implements API 570 (Piping Inspection Code, In-service Inspection, Rating, Repair, and Alteration of Piping Systems) for corrosion rate and inspection interval calculations, cross-referenced to ASME B31.3 for retirement thickness. API 510 applies the same methodology to pressure vessels. The retirement thickness calculation tab uses the ASME B31.3 Process Piping formula; for pressure vessels use the ASME VIII UG-27 shell thickness formula in WeldFabWorld’s pressure vessel shell thickness calculator.

Corrosion Rate & Remaining Life Calculator

API 570 — Short/Long-Term Corrosion Rate • Remaining Life • Next Inspection Date

Thickness units:
Original wall thickness at time of construction / commissioning
Thickness measured at last inspection (same location)
Year the previous UT reading was taken
Thickness measured at this inspection (same location)
Year of current UT reading
Year component was commissioned (for LTCR). Leave blank to use previous reading as baseline.
Leave blank to use nominal thickness as starting point for LTCR
Results
Step-by-Step Workings

Short-Term and Long-Term Corrosion Rates

API 570 Section 7.1.2 defines two corrosion rates that must be calculated from the inspection history and compared to determine which governs:

Short-Term Corrosion Rate (STCR)

The STCR is calculated from the two most recent thickness readings at the same measurement point. It reflects the current corrosion environment and is sensitive to recent changes in process conditions, corrosion inhibitor performance, or fluid composition changes.

Short-Term Corrosion Rate (API 570 Sect 7.1.2): STCR = (t_prev − t_curr) / Δt_years
Where: t_prev = wall thickness at previous inspection (mm)
t_curr = wall thickness at current inspection (mm)
Δt_years = elapsed time between inspections (years)

Long-Term Corrosion Rate (LTCR): LTCR = (t_initial − t_curr) / t_total_service_years
Where: t_initial = nominal wall thickness at commissioning (or measured at first inspection)
t_total = years from first reading / commissioning to current inspection

Governing Rate per API 570: CR_governing = max(STCR, LTCR) Use the GREATER of short-term and long-term rates for all remaining life calculations Unit conversion: 1 mpy (mil per year) = 0.0254 mm/yr
When STCR > LTCR: A higher short-term rate than long-term rate indicates that corrosion has accelerated recently — possibly due to process changes, inhibitor failure, increased water content, or the onset of a new corrosion mechanism. This situation demands engineering review to understand the cause before simply accepting the rate for inspection planning. Continuing at the accelerated rate without investigation risks an unexpected failure.

Retirement Thickness — t_ret Calculation

The retirement thickness (also called minimum required thickness or t_min) is the wall thickness at which a piping component can no longer safely contain the design pressure. Below this thickness, the component must be repaired, replaced, or the system downrated. It is derived from the pressure design formula of the applicable design code.

ASME B31.3 Retirement Thickness (Clause 304.1.2 — straight pipe): t_ret = (P × D) / (2 × (S × E × W + P × Y))
Where: P = design gauge pressure (MPa)
D = pipe outside diameter (mm)
S = basic allowable stress from App A (MPa) — material and temperature dependent
E = quality factor (1.0 seamless; 0.85 ERW+RT; 0.72 ERW spot)
W = weld joint strength reduction factor (1.0 for ambient temperature)
Y = wall thickness coefficient (0.4 for carbon steel below 480°C)

ASME VIII UG-27 Retirement Thickness (cylindrical pressure vessel shell): t_ret = (P × R) / (S × E − 0.6 × P) Where R = inside radius (mm); compute from pipe wall thickness calculator on WeldFabWorld
t_ret vs Structural Minimum: The pressure-design t_ret is not always the governing retirement criterion. Many owner-operator specifications also define a structural minimum thickness — typically 50% of the nominal wall thickness or a fixed value (e.g., 3 mm) — whichever is larger. The governing retirement thickness is the maximum of the pressure-design t_ret and the structural minimum. Always check both criteria against the applicable piping specification or vessel data sheet before using t_ret in remaining life calculations.

Remaining Life Formula

Remaining Life (API 570 Sect 7.1.2): RL = (t_curr − t_ret) / CR_governing
Result in years. CR_governing must be in consistent units with thickness (mm/yr or mpy)

Special cases: If CR = 0.0: RL = ∞ (no measurable corrosion — inspect to maximum class interval) If t_curr ≤ t_ret: RL ≤ 0 → IMMEDIATE ACTION required

Corrosion Allowance Consumed and Remaining: CA_total = t_nom − t_ret (total design corrosion allowance) CA_consumed = t_nom − t_curr (metal lost to date) CA_remaining = t_curr − t_ret = RL × CR (remaining before retirement) CA_consumed_pct = CA_consumed / CA_total × 100
Pipe Wall Thickness vs Time — API 570 Remaining Life Concept Time t t_nom t_curr t_ret RETIREMENT THICKNESS — must not go below this line Commissioned LTCR STCR Remaining Life (RL) Next insp (RL/2) RL/2 Comm. Insp 1 Insp 2 Current Long-term rate Short-term rate (governing) Retirement threshold Next inspection
Figure 1 — Pipe wall thickness vs time. The long-term corrosion rate (LTCR, grey dashed) is the overall slope from commissioning to the current reading. The short-term corrosion rate (STCR, blue solid) is the slope between the last two inspection points — steeper here, indicating recent acceleration. The governing rate is the higher of the two. The remaining life (RL) is the horizontal distance from the current reading to retirement thickness at the governing rate. The next inspection is due at the half-life point (RL/2).

API 570 Half-Life Rule for Inspection Intervals

The half-life rule is the core inspection interval principle in API 570. It ensures that at every inspection, the component still has at least half its remaining life ahead, providing a safety margin against unexpected rate increases between inspections.

API 570 Section 7.1 — Next Inspection Interval: Interval_half_life = RL / 2

Governing Interval (lesser of half-life and class maximum): Interval = min(RL/2, Max_interval_for_class)
Class 1: max 5 years | Class 2: max 10 years | Class 3: max 15 years

Next Inspection Due Date: Year_next = Year_current_insp + Interval

Verification (remaining life at next inspection assuming constant CR): t_at_next_insp = t_curr − CR × Interval RL_at_next_insp = (t_at_next_insp − t_ret) / CR = RL − Interval = RL/2 At the next inspection, RL_remaining ≥ RL/2 (the half-life margin is preserved)

API 570 Piping Circuit Classification

ClassFluid / Service ExamplesMax UT IntervalConsequence Level
Class 1 Flammable at >auto-ignition; toxic (TLV <10 ppm); H₂S/HF service; HTHA-susceptible hydrogen; steam >750°F (400°C) or >1025 psig (7.1 MPa) 5 years max High — potential fatality or major environmental impact
Class 2 Most process plant piping: hydrocarbons at moderate conditions, most refinery and petrochemical streams, non-lethal toxic service 10 years max Moderate — potential injury or significant property damage
Class 3 Non-flammable, non-toxic fluids; cooling water; low-pressure steam; Category D fluid service (B31.3) 15 years max Low — minor injury risk, limited property impact
API 510 Pressure Vessels: For pressure vessels inspected under API 510, the maximum internal inspection interval is 10 years for most vessels; external inspection interval is 5 years. The same remaining life and half-life calculation methodology applies. For storage tanks inspected under API 653, the internal inspection interval is determined by the tank condition and corrosion rate, with a maximum of 20 years for tanks with cathodic protection and under the RBI provisions of API 653 Annex G.

Alert Status — Traffic Light System

Beyond the formal API 570 remaining life calculation, inspection engineers use a traffic light alert system to communicate the urgency of the situation to plant management and operators:

StatusConditionRequired Action
GREEN t_curr > t_ret + 2 × CR × class_max_interval (adequate corrosion allowance for full class interval) Schedule inspection per half-life rule. No immediate action.
AMBER — Alert t_curr between t_ret + (0 to 2 years of CR) — within 2 years of retirement thickness Increase inspection frequency. Engineering review of corrosion cause. Consider downrate or repair.
RED — Action Required t_curr ≤ t_ret — at or below retirement thickness Immediate removal from service, downrating, or repair. Engineering disposition required before returning to service.

MAWP Reduction Due to Corrosion

As a pipe or vessel wall corrodes, its pressure-containing capacity decreases. The current MAWP can be re-rated using the corroded wall thickness in the design code formula:

MAWP at Corroded Thickness (ASME B31.3 — straight pipe): MAWP_curr = (2 × S × E × W × (t_curr − t_mill_tol)) / (D − 2 × Y × (t_curr − t_mill_tol)) Where t_mill_tol = mill undertolerance (12.5% for most ASME B36.10 pipe = 0.125 × t_nom)

Simplified ratio (approximate — for trend assessment): MAWP_curr / MAWP_original ≈ t_curr / t_nom This approximation is within 5% for most practical cases where t << D

Worked Example — Step by Step

Data: 6-inch (NPS 6) carbon steel process line, API 570 Class 2. Pipe OD = 168.3 mm. Nominal wall t_nom = 10.97 mm (Schedule 40). Initial reading at commissioning (2012) = 10.97 mm. Previous inspection (2018) = 10.20 mm. Current inspection (2024) = 9.55 mm. Design pressure P = 3.5 MPa. Allowable stress S = 138 MPa. Seamless pipe (E×W = 1.0). Y = 0.4. Current inspection year: 2024.
Step 1 — Short-Term Corrosion Rate: STCR = (t_prev − t_curr) / Δt = (10.20 − 9.55) / (2024 − 2018) STCR = 0.65 / 6 = 0.108 mm/yr
Step 2 — Long-Term Corrosion Rate: LTCR = (t_nom − t_curr) / (year_curr − year_service) LTCR = (10.97 − 9.55) / (2024 − 2012) = 1.42 / 12 = 0.118 mm/yr
Step 3 — Governing Rate: CR = max(STCR, LTCR) = max(0.108, 0.118) = 0.118 mm/yr (LTCR governs)
Step 4 — Retirement Thickness (ASME B31.3): t_ret = (P × D) / (2 × (S × E × W + P × Y)) t_ret = (3.5 × 168.3) / (2 × (138 × 1.0 × 1.0 + 3.5 × 0.4)) t_ret = 589.05 / (2 × 139.4) = 589.05 / 278.8 = 2.11 mm
Step 5 — Remaining Life: RL = (t_curr − t_ret) / CR = (9.55 − 2.11) / 0.118 RL = 7.44 / 0.118 = 63.1 years
Step 6 — Next Inspection Interval (Class 2, max 10 yr): Interval = min(RL/2, 10) = min(63.1/2, 10) = min(31.5, 10) = 10 years Half-life (31.5 yr) > class max (10 yr) → class maximum governs
Step 7 — Next Inspection Due Year: Year_next = 2024 + 10 = 2034
Step 8 — Corrosion Allowance Assessment: CA_total = t_nom − t_ret = 10.97 − 2.11 = 8.86 mm CA_consumed = 10.97 − 9.55 = 1.42 mm (16% of total CA consumed) CA_remaining = 9.55 − 2.11 = 7.44 mm (84% of total CA remaining) Status: GREEN — ample remaining life, class maximum governs interval
Corrosion Allowance Status — Worked Example (NPS 6, Class 2) 1.42mm consumed 7.44 mm remaining 84% of CA unused t_ret 2.11mm t_curr = 9.55mm 10.97mm (t_nom) 0 (t_ret=2.11mm) CA consumed (16%) CA remaining (84%) — Status: GREEN t_ret zone
Figure 2 — Corrosion allowance status bar for the worked example NPS 6 Class 2 process line. The nominal wall of 10.97 mm is divided into consumed CA (1.42 mm, 16%), remaining CA (7.44 mm, 84%), and the retirement zone (t_ret = 2.11 mm). The current thickness of 9.55 mm is well above the retirement threshold, giving a remaining life of 63 years — capped to a 10-year inspection interval by the Class 2 maximum.

Practical Notes for Inspection Engineers

UT Reading Location and Repeatability

Corrosion rate calculations are only valid when successive thickness readings are taken at exactly the same physical location on the pipe or vessel. All fixed inspection points must be permanently marked with a centre punch, paint marker, or stencil, and their coordinates recorded in the inspection database (e.g., the distance from a weld seam or fitting, with a clock-position reference for pipe circumference). A reading taken 20 mm from the marked location may measure a completely different corrosion depth and produce a meaningless calculated rate. The repeatability of the measurement position is more important than the absolute accuracy of the UT instrument for corrosion rate trending.

Corrosion Under Insulation (CUI)

CUI is one of the leading causes of unexpected low thickness readings in process plants, particularly for carbon steel pipe operating between 50°C and 175°C where water accumulates under wet insulation. Because CUI can be localised and patchy, UT readings at the standard fixed inspection points may not detect significant thinning nearby. Supplementary inspection techniques — pulsed eddy current (PEC) screening, profile RT, or partial insulation removal at inspection windows — are used to survey larger areas for CUI. A sudden step-change in UT reading at a fixed inspection point often indicates CUI onset rather than a change in process corrosion rate, and should be investigated before attributing the rate increase to process chemistry.

UT Measurement Best Practice: For reliable corrosion rate trending, take a minimum of 5 individual UT readings at each fixed inspection point and record the minimum reading — not the average. The minimum reading represents the deepest corrosion and is the most conservative basis for remaining life calculation. Mark the exact measurement location permanently on the pipe with a centre punch or etched cross-hair. For pipe under insulation, window the insulation at each FIP rather than probing through the insulation, as water ingress at the probe opening can create a localised CUI initiation point.

Common Corrosion Rates by Service Environment

The table below provides typical corrosion rate ranges for common process plant environments as a sanity check when evaluating UT data. If a measured rate falls far outside the typical range for the service, the reading quality and inspection point location should be verified before using it for remaining life calculations.

Service EnvironmentMaterialTypical CR (mm/yr)Key Driver
Crude oil — atmosphericCarbon steel0.05–0.15Naphthenic acid, water cut
Crude oil — high TAN (>0.5)Carbon steel0.3–1.5Naphthenic acid corrosion
Produced water / brineCarbon steel0.2–2.0CO₂, H₂S, chlorides, O₂
Amine (MEA/DEA) serviceCarbon steel0.1–0.5Acid gas loading, velocity
Dilute sulfuric acidCarbon steel1.0–5.0+Concentration, temperature
Cooling water (treated)Carbon steel0.025–0.1Biofouling, O₂, inhibitor
Steam / condensateCarbon steel0.02–0.08CO₂ pick-up, pH
Chloride-bearing processAustenitic SS 316L<0.02 (pitting risk)Cl⁻ concentration, temperature
Seawater (uncoated)Carbon steel0.1–0.3O₂, biofouling, velocity
Fitness-for-Service (FFS) Assessment: When a localised area of thinning is found that is more severe than the general uniform corrosion assumed by the API 570 remaining life formula, a fitness-for-service (FFS) assessment per API 579-1 / ASME FFS-1 (Level 1, 2, or 3) may be required. API 579-1 Part 4 (General Metal Loss) and Part 5 (Local Metal Loss) provide assessment methods that account for the shape, extent, and location of the thinning relative to the pipe geometry and loading. A component that fails the simple API 570 remaining life check due to isolated pitting may pass an API 579-1 Level 2 assessment and be returned to service with a revised inspection plan.

Risk-Based Inspection (RBI)

API 570 also permits inspection intervals derived from a risk-based inspection (RBI) assessment per API 580/581. In an RBI approach, the inspection interval is set based on the probability of failure (derived from the corrosion rate and damage mechanism analysis) multiplied by the consequence of failure (derived from fluid toxicity, flammability, inventory, and plant layout). RBI can justify shorter or longer inspection intervals than the half-life rule depending on the risk profile, and is widely used on large oil and gas plants to optimise inspection resources. The corrosion rate calculator on this page provides the UT-data input to the probability side of the RBI risk matrix.

Connection to Pressure Design

The retirement thickness calculated here feeds directly into the pipe wall thickness calculator (ASME B31.3) and the pressure vessel shell thickness calculator (ASME VIII UG-27). Those calculators determine the minimum required thickness for pressure design; the value produced there is the t_ret used in the remaining life formula. For sour service piping where the wall must also satisfy NACE MR0175 hardness limits, the retirement criterion may also include a hardness-based assessment of the residual material at the corroded thickness.

Frequently Asked Questions

How is corrosion rate calculated from UT thickness readings?
Two corrosion rates are calculated. The short-term rate (STCR) uses the two most recent readings: STCR = (t_previous − t_current) / elapsed years. The long-term rate (LTCR) uses the original nominal thickness and current reading: LTCR = (t_nominal − t_current) / total service years. The governing rate for remaining life calculations is the greater of the two per API 570 Section 7.1.2. Using the lesser rate is non-conservative and not permitted without a documented engineering justification.
What is retirement thickness and how is it determined?
Retirement thickness (t_ret) is the minimum wall thickness below which the component cannot safely contain the design pressure. For ASME B31.3 piping: t_ret = (P × D) / (2 × (S × E × W + P × Y)). For ASME VIII vessels: t_ret = (P × R) / (S × E − 0.6 × P). The greater of the pressure-design t_ret and any owner-specified structural minimum (often 50% of nominal wall) is the governing retirement criterion. When t_curr falls at or below t_ret, immediate action is required.
What is the API 570 half-life rule for inspection intervals?
The half-life rule states that the inspection interval shall not exceed half the remaining life: Interval = min(RL/2, class maximum). Class 1 maximum is 5 years; Class 2 is 10 years; Class 3 is 15 years. The rule ensures that even if corrosion continues at the measured rate, the wall will still be above retirement thickness at the next inspection, with RL/2 as a safety margin. If RL/2 is less than the class maximum, RL/2 governs and the next inspection will be sooner than the class maximum.
What are the API 570 piping inspection class maximum intervals?
API 570 Class 1 (high consequence — flammable at auto-ignition, toxic, H₂S, HTHA, HF acid, high-pressure steam): maximum 5 years. Class 2 (moderate consequence — most general process piping): maximum 10 years. Class 3 (low consequence — non-flammable, non-toxic, low-pressure): maximum 15 years. For pressure vessels under API 510: 10 years internal, 5 years external maximum. The governing interval is always the lesser of the half-life result and the class maximum.
What is the difference between short-term and long-term corrosion rates?
STCR reflects current corrosion conditions using the two most recent readings — it is sensitive to recent process changes, inhibitor effectiveness, and seasonal variations. LTCR reflects the overall average metal loss over the component’s service life. When STCR exceeds LTCR, corrosion has recently accelerated and the cause must be investigated. When LTCR exceeds STCR, corrosion has recently slowed — this may be genuine or may reflect a measurement location change. API 570 requires using the higher rate; it does not permit averaging the two.
When is immediate action required on a corroded pipe or vessel?
Immediate action (remove from service or downrate) is required when t_curr ≤ t_ret. An alert condition requiring engineering review and accelerated inspection is triggered when remaining life drops below 2 years (i.e., t_curr < t_ret + 2 × CR). The component must be removed from service, repaired, replaced, or downrated before it is returned. No operational workaround (reducing inspection interval alone, for example) substitutes for returning the wall thickness above retirement thickness or formally downrating the component’s pressure rating.
How does corrosion rate affect the MAWP of a pressure vessel or pipe?
MAWP decreases as wall thickness decreases. Approximately: MAWP_current / MAWP_original ≈ t_current / t_nominal for thin-wall pipe where t << D. For a more accurate re-rating, substitute t_current (or the projected future thickness) into the ASME B31.3 or ASME VIII pressure design formula and solve for the allowable pressure. If the projected MAWP at the next scheduled inspection falls below the design pressure, the inspection interval must be shortened or the line downrated before that date.
What is corrosion allowance and how is it related to retirement thickness?
Corrosion allowance (CA) = t_nominal − t_ret. It is the thickness specified by the designer above the pressure-design minimum to accommodate metal loss over the design life. For example, if ASME B31.3 requires 3 mm minimum and 10 mm nominal pipe is specified, the CA is 7 mm. CA consumed = t_nominal − t_current; CA remaining = t_current − t_ret. When CA remaining reaches zero, the component is at retirement thickness. The remaining life RL = CA_remaining / CR.
What UT inspection methods are used to measure pipe and vessel wall thickness?
Pulse-echo A-scan UT is the standard method, using a contact transducer pressed onto the pipe OD surface. For insulated pipe, pulsed eddy current (PEC) screening allows thickness measurement through insulation without removal. Profile radiography measures wall thickness from a 2D X-ray image. For corrosion under insulation (CUI) screening, guided wave UT and CT scanning are also used. All readings for corrosion rate trending must be taken at permanently marked, consistent reference points. A single reading taken at the wrong location can produce a misleading calculated rate.

Recommended Reference Books

📚
API 570 — Piping Inspection Code
The governing standard for in-service inspection of process piping. Contains the full corrosion rate, remaining life, and inspection interval requirements implemented in this calculator.
View on Amazon
📚
API 579-1 / ASME FFS-1 — Fitness-For-Service
The API/ASME joint standard for FFS assessment of corroded, cracked, and degraded pressure equipment. Part 4 and 5 cover the advanced metal loss calculations beyond the uniform corrosion API 570 model.
View on Amazon
📚
Piping Inspection Code — API 570 Study Guide
Exam preparation and practical guide for API 570 inspector certification. Covers corrosion rate formulas, inspection interval rules, and all code requirements tested in the API 570 exam.
View on Amazon
📚
Corrosion Engineering — Fontana & Greene
Classic reference on corrosion mechanisms, corrosion rate measurement, and the metallurgical basis of uniform and localised corrosion affecting pipelines and pressure vessels.
View on Amazon

Disclosure: WeldFabWorld participates in the Amazon Associates programme (StoreID: neha0fe8-21). 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.