Galvanic Corrosion Rate Calculation

Galvanic Corrosion Rate Calculator body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: #333; max-width: 800px; margin: 0 auto; padding: 20px; } .calculator-wrapper { background-color: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 30px; margin: 30px 0; box-shadow: 0 4px 6px rgba(0,0,0,0.05); } .calc-title { text-align: center; color: #2c3e50; margin-bottom: 25px; font-size: 24px; font-weight: 700; } .input-group { margin-bottom: 20px; } .input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #495057; } .input-group input, .input-group select { width: 100%; padding: 12px; border: 1px solid #ced4da; border-radius: 4px; font-size: 16px; box-sizing: border-box; } .input-group .help-text { font-size: 12px; color: #6c757d; margin-top: 5px; } .calc-btn { display: block; width: 100%; padding: 14px; background-color: #007bff; color: white; border: none; border-radius: 4px; font-size: 18px; font-weight: 600; cursor: pointer; transition: background-color 0.2s; } .calc-btn:hover { background-color: #0056b3; } .results-area { margin-top: 30px; background-color: #ffffff; border: 1px solid #dee2e6; border-radius: 4px; padding: 20px; display: none; } .result-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; } .result-row:last-child { border-bottom: none; } .result-label { font-weight: 600; color: #555; } .result-value { font-weight: 700; color: #2c3e50; font-size: 18px; } .highlight-result { color: #d63384; font-size: 22px; } h2 { color: #2c3e50; margin-top: 40px; border-bottom: 2px solid #eee; padding-bottom: 10px; } p { margin-bottom: 15px; } .meta-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; } .meta-table th, .meta-table td { border: 1px solid #ddd; padding: 8px; text-align: left; } .meta-table th { background-color: #f2f2f2; } .error-msg { color: #dc3545; font-weight: bold; display: none; margin-bottom: 15px; }

Galvanic Corrosion Rate Calculator

Galvanic corrosion occurs when two different metals are electrically connected and immersed in an electrolyte (such as seawater or soil). This calculator estimates the corrosion rate of the less noble (anodic) metal based on Faraday's Law, utilizing corrosion current, material density, and equivalent weight.

Corrosion Rate Estimator
Please enter valid positive numbers for all fields.
Total measured current in microamps (µA).
Exposed surface area of the corroding metal in cm².
Density of the corroding metal in g/cm³.
Atomic weight divided by valence (g/eq). See reference below.
Current Density:
Corrosion Rate (Metric):
Corrosion Rate (Imperial):
Mass Loss Rate:
function calculateCorrosion() { // Get input values var currentUa = document.getElementById("corrCurrent").value; var area = document.getElementById("area").value; var density = document.getElementById("density").value; var eqWeight = document.getElementById("eqWeight").value; var errorMsg = document.getElementById("errorMsg"); var resultsDiv = document.getElementById("results"); // Validate inputs if (currentUa === "" || area === "" || density === "" || eqWeight === "" || isNaN(currentUa) || isNaN(area) || isNaN(density) || isNaN(eqWeight) || parseFloat(area) <= 0 || parseFloat(density) <= 0) { errorMsg.style.display = "block"; resultsDiv.style.display = "none"; return; } errorMsg.style.display = "none"; resultsDiv.style.display = "block"; // Parse Floats var I = parseFloat(currentUa); // Microamps var A = parseFloat(area); // cm^2 var D = parseFloat(density); // g/cm^3 var EW = parseFloat(eqWeight); // g/eq // Calculations // 1. Current Density (µA/cm²) var i_corr = I / A; // 2. Corrosion Rate in mm/year // ASTM G102 Constant K1 for mm/yr = 0.003272 // Formula: CR = (K1 * i_corr * EW) / D var rate_mmy = (0.003272 * i_corr * EW) / D; // 3. Corrosion Rate in mils per year (mpy) // 1 mm = 39.3701 mils var rate_mpy = rate_mmy * 39.3701; // 4. Mass Loss (grams per year) // Mass Loss (g) = (I_amps * t_seconds * EW) / Faraday(96485) // I_amps = I * 1e-6 // t_seconds (1 year) approx 31,536,000 // Simplified: Mass Loss approx (rate_cm_yr * A * D) // Let's use the Faraday calculation directly for accuracy var secondsInYear = 31536000; var faraday = 96485; var massLoss = ((I / 1000000) * secondsInYear * EW) / faraday; // Display Results document.getElementById("resCurrentDensity").innerHTML = i_corr.toFixed(2) + " µA/cm²"; document.getElementById("resMmy").innerHTML = rate_mmy.toFixed(4) + " mm/yr"; document.getElementById("resMpy").innerHTML = rate_mpy.toFixed(2) + " mpy"; document.getElementById("resMassLoss").innerHTML = massLoss.toFixed(4) + " g/yr"; }

Understanding the Variables

This calculator relies on Faraday's Law of Electrolysis, adapted for corrosion engineering (specifically ASTM G102). Accurate prediction requires precise inputs:

  • Galvanic Current (Icorr): This is the flow of electrons measured between the anode and cathode. It is typically measured in microamps (µA) using a zero-resistance ammeter.
  • Anode Surface Area: The specific area of the anodic metal that is exposed to the electrolyte. If the area is smaller while the current remains constant, the penetration rate increases significantly.
  • Equivalent Weight (EW): A dimensionless constant specific to the metal element or alloy. It represents the mass of metal lost for one mole of electrons transferred.

Common Equivalent Weights & Densities

Use the following table to find approximate values for common engineering metals if you do not have specific alloy data:

Material Density (g/cm³) Equivalent Weight (EW)
Carbon Steel (Fe) 7.86 27.92
Aluminum 6061 2.70 9.25
Copper 8.96 31.77
Zinc 7.13 32.69
Stainless Steel 304 7.90 25.12

Calculation Formula

The corrosion rate (CR) is calculated using the following equation defined in ASTM G102:

CR (mm/yr) = (0.003272 × icorr × EW) / ρ

Where:

  • 0.003272: Conversion constant for Metric units (mm/yr).
  • icorr: Current Density (µA/cm²), calculated as Total Current / Area.
  • EW: Equivalent Weight.
  • ρ: Density (g/cm³).

Why is this important?

In galvanic couples, such as a stainless steel screw in an aluminum sheet, the aluminum acts as the anode. Calculating the corrosion rate allows engineers to predict the service life of the component and size the sacrificial anodes accordingly in cathodic protection systems.

Leave a Comment