{"id":24941,"date":"2026-10-14T08:34:42","date_gmt":"2026-10-14T08:34:42","guid":{"rendered":"https:\/\/www.mechstream.com\/?p=24941"},"modified":"2026-10-14T08:34:46","modified_gmt":"2026-10-14T08:34:46","slug":"rockwell-hardness-hrc-hrb-calculator","status":"publish","type":"post","link":"https:\/\/www.mechstream.com\/es\/rockwell-hardness-hrc-hrb-calculator\/","title":{"rendered":"Rockwell Hardness (HRC \/ HRB) Calculator"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The Rockwell Hardness (HRC \/ HRB) Calculator is a reliable online tool designed to calculate Rockwell hardness values quickly and accurately based on permanent indentation depth measurements. Supporting both Rockwell C (HRC) and Rockwell B (HRB) scales, this calculator helps engineers, material testing professionals, and quality control inspectors evaluate the hardness of metals and alloys. Whether you are testing hardened steel, stainless steel, aluminum, brass, or other engineering materials, the Rockwell Hardness (HRC \/ HRB) Calculator simplifies hardness calculations, supports material selection, and improves efficiency in manufacturing, heat treatment, and quality control applications.<\/p>\n\n\n\n<!-- Rockwell Hardness (HRC \/ HRB) Calculator - WordPress Custom HTML block snippet. All CSS is scoped to #rhc-calculator. Vanilla JS, no external libraries. -->\n<div id=\"rhc-calculator\" class=\"rhc-root\" data-rhc-widget=\"rockwell-hardness\">\n<style>\n#rhc-calculator,#rhc-calculator *,#rhc-calculator *::before,#rhc-calculator *::after{box-sizing:border-box}\n#rhc-calculator{\n  --rhc-bg:#f5f5f7;--rhc-card:#ffffff;--rhc-text:#1d1d1f;--rhc-muted:#5f5f66;--rhc-soft:#76767c;\n  --rhc-line:#d2d2d7;--rhc-line-soft:#e8e8ed;--rhc-accent:#0071e3;--rhc-accent-dark:#0058b0;--rhc-accent-soft:#e8f2fd;\n  --rhc-ok:#0a7c42;--rhc-ok-soft:#e6f4ec;--rhc-warn:#8a5a00;--rhc-warn-soft:#fff6e0;--rhc-err:#c4291c;--rhc-err-soft:#fdecea;\n  width:100%;max-width:720px;margin:24px auto;padding:32px;background:var(--rhc-bg);color:var(--rhc-text);\n  border-radius:22px;font-family:-apple-system,BlinkMacSystemFont,\"SF Pro Text\",\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif;\n  font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;text-align:left\n}\n#rhc-calculator p,#rhc-calculator ul,#rhc-calculator ol,#rhc-calculator h2,#rhc-calculator h3,#rhc-calculator table,#rhc-calculator figure{margin:0;padding:0;border:0;background:none;text-transform:none;letter-spacing:normal;font-family:inherit}\n#rhc-calculator .rhc-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}\n#rhc-calculator .rhc-card{background:var(--rhc-card);border:1px solid var(--rhc-line-soft);border-radius:18px;padding:24px;box-shadow:0 1px 2px rgba(0,0,0,.04);min-width:0}\n#rhc-calculator .rhc-card-title{margin:0 0 4px;color:var(--rhc-text);font-size:1.1rem;font-weight:600;line-height:1.2;display:flex;align-items:center;gap:10px}\n#rhc-calculator .rhc-step{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 24px;border-radius:50%;background:var(--rhc-accent-soft);color:var(--rhc-accent);font-size:.8rem;font-weight:700}\n#rhc-calculator .rhc-card-note{color:var(--rhc-muted);font-size:.9rem;margin-bottom:18px}\n#rhc-calculator .rhc-field{min-width:0;margin-bottom:16px;position:relative}\n#rhc-calculator .rhc-field[hidden],#rhc-calculator [hidden]{display:none!important}\n#rhc-calculator .rhc-label{display:flex;align-items:center;gap:6px;font-size:.9rem;font-weight:600;color:var(--rhc-text);margin:0 0 6px}\n#rhc-calculator .rhc-hint{display:block;color:var(--rhc-soft);font-size:.8rem;margin-top:5px}\n#rhc-calculator .rhc-error{display:block;color:var(--rhc-err);font-size:.82rem;margin-top:4px}\n#rhc-calculator .rhc-error:empty{display:none}\n#rhc-calculator .rhc-row{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:8px}\n#rhc-calculator .rhc-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}\n#rhc-calculator input[type=number],#rhc-calculator select{\n  -webkit-appearance:none;appearance:none;width:100%;min-height:46px;margin:0;padding:10px 14px;font:inherit;font-size:16px;line-height:1.3;\n  color:var(--rhc-text);background-color:#fff;border:1px solid var(--rhc-line);border-radius:12px;box-shadow:none;outline:none;\n  transition:border-color .15s ease,box-shadow .15s ease;max-width:none;height:auto\n}\n#rhc-calculator select{padding-right:34px;background-image:linear-gradient(45deg,transparent 50%,#6e6e73 50%),linear-gradient(135deg,#6e6e73 50%,transparent 50%);background-position:calc(100% - 18px) 20px,calc(100% - 13px) 20px;background-size:5px 5px,5px 5px;background-repeat:no-repeat;cursor:pointer}\n#rhc-calculator input[type=number]:focus,#rhc-calculator select:focus{border-color:var(--rhc-accent);box-shadow:0 0 0 4px rgba(0,113,227,.18)}\n#rhc-calculator .rhc-invalid{border-color:var(--rhc-err)!important;box-shadow:0 0 0 3px rgba(196,41,28,.12)!important}\n#rhc-calculator .rhc-seg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;width:100%;gap:4px;padding:4px;background:#ececf0;border-radius:13px;border:0;margin:0 0 16px;position:relative}\n#rhc-calculator .rhc-seg legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}\n#rhc-calculator .rhc-seg input{position:absolute;opacity:0;width:1px;height:1px;margin:0}\n#rhc-calculator .rhc-seg label{display:flex;align-items:center;justify-content:center;min-height:40px;padding:6px 8px;border-radius:10px;font-size:.9rem;font-weight:600;color:var(--rhc-muted);cursor:pointer;text-align:center;transition:background .15s,color .15s,box-shadow .15s;margin:0}\n#rhc-calculator .rhc-seg input:checked+label{background:#fff;color:var(--rhc-text);box-shadow:0 1px 3px rgba(0,0,0,.12)}\n#rhc-calculator .rhc-seg input:focus-visible+label{outline:3px solid rgba(0,113,227,.35);outline-offset:1px}\n#rhc-calculator .rhc-info{background:#f9f9fb;border:1px solid var(--rhc-line-soft);border-radius:14px;padding:12px 14px;margin:0 0 16px;font-size:.86rem;color:var(--rhc-muted)}\n#rhc-calculator .rhc-info dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;margin:0}\n#rhc-calculator .rhc-info dt{font-weight:600;color:var(--rhc-text);margin:0}\n#rhc-calculator .rhc-info dd{margin:0;overflow-wrap:anywhere}\n#rhc-calculator .rhc-derived{padding:10px 14px;border-radius:12px;background:var(--rhc-accent-soft);font-size:.9rem;color:var(--rhc-muted);margin-top:10px}\n#rhc-calculator .rhc-derived strong{color:var(--rhc-text);font-variant-numeric:tabular-nums}\n#rhc-calculator .rhc-actions{display:flex!important;flex-wrap:wrap;gap:10px;margin-top:6px;justify-content:center!important}\n#rhc-calculator .rhc-btn{-webkit-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;margin:0;padding:10px 20px;border-radius:999px;border:1px solid transparent;font:inherit;font-size:.95rem;font-weight:600;line-height:1.2;cursor:pointer;text-decoration:none;text-transform:none;letter-spacing:normal;box-shadow:none;transition:background .15s,border-color .15s,color .15s}\n#rhc-calculator .rhc-btn-primary{background:var(--rhc-accent);color:#fff;flex:0 0 auto!important;width:33.333%!important;min-width:140px!important;max-width:33.333%!important;display:inline-flex!important;float:none!important}\n@media (max-width:480px){#rhc-calculator .rhc-btn-primary{max-width:none!important}}\n#rhc-calculator .rhc-btn-primary:hover{background:var(--rhc-accent-dark);color:#fff}\n#rhc-calculator .rhc-btn:focus-visible{outline:3px solid rgba(0,113,227,.35);outline-offset:2px}\n#rhc-calculator .rhc-form-msg{color:var(--rhc-err);font-size:.88rem;margin-top:10px}\n#rhc-calculator .rhc-form-msg:empty{display:none}\n#rhc-calculator .rhc-tipwrap{position:static;display:inline-flex}\n#rhc-calculator .rhc-tip{-webkit-appearance:none;appearance:none;width:18px;height:18px;min-height:0;padding:0;margin:0;border-radius:50%;border:1px solid var(--rhc-line);background:#fff;color:var(--rhc-muted);font:600 11px\/1 inherit;font-family:inherit;cursor:help;display:inline-flex;align-items:center;justify-content:center;box-shadow:none}\n#rhc-calculator .rhc-tip:focus-visible{outline:3px solid rgba(0,113,227,.35);outline-offset:1px}\n#rhc-calculator .rhc-tip-text{position:absolute;left:0;right:0;bottom:calc(100% - 2px);width:auto;max-width:none;padding:8px 10px;border-radius:10px;background:#1d1d1f;color:#fff;font-size:.78rem;font-weight:400;line-height:1.4;visibility:hidden;opacity:0;transition:opacity .15s;z-index:20;pointer-events:none;text-align:left}\n#rhc-calculator .rhc-tipwrap:hover .rhc-tip-text,#rhc-calculator .rhc-tip:focus+.rhc-tip-text{visibility:visible;opacity:1}\n#rhc-calculator .rhc-main{background:var(--rhc-accent-soft);border:1px solid #cfe3fa;border-radius:16px;padding:18px 20px}\n#rhc-calculator .rhc-main.rhc-is-warn{background:var(--rhc-warn-soft);border-color:#f1dca6}\n#rhc-calculator .rhc-main-label{font-size:.78rem;font-weight:600;color:var(--rhc-accent-dark);text-transform:uppercase;letter-spacing:.05em;display:flex;flex-wrap:wrap;gap:8px;align-items:center}\n#rhc-calculator .rhc-main-value{font-size:clamp(2.3rem,6vw,3.3rem);font-weight:700;letter-spacing:-.03em;line-height:1.05;margin-top:6px;font-variant-numeric:tabular-nums;color:var(--rhc-text);overflow-wrap:anywhere}\n#rhc-calculator .rhc-main-value span{font-size:.45em;font-weight:600;color:var(--rhc-muted);letter-spacing:0;margin-left:6px}\n#rhc-calculator .rhc-main-sub{font-size:.85rem;color:var(--rhc-muted);margin-top:6px}\n#rhc-calculator .rhc-badge{display:inline-block;padding:2px 9px;border-radius:999px;font-size:.72rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase}\n#rhc-calculator .rhc-badge-ok{background:var(--rhc-ok-soft);color:var(--rhc-ok)}\n#rhc-calculator .rhc-badge-warn{background:#fdebb8;color:var(--rhc-warn)}\n#rhc-calculator .rhc-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}\n#rhc-calculator .rhc-kpi{background:#f9f9fb;border:1px solid var(--rhc-line-soft);border-radius:14px;padding:11px 13px;min-width:0}\n#rhc-calculator .rhc-kpi-label{font-size:.72rem;font-weight:600;color:var(--rhc-muted);text-transform:uppercase;letter-spacing:.04em}\n#rhc-calculator .rhc-kpi-value{font-size:1.02rem;font-weight:700;margin-top:2px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}\n#rhc-calculator .rhc-formula{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em;color:var(--rhc-text);background:none;padding:0;border:0}\n#rhc-calculator .rhc-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}\n@media (max-width:600px){\n  #rhc-calculator{padding:18px 16px;border-radius:16px;margin:12px auto}\n  #rhc-calculator .rhc-card{padding:18px 16px;border-radius:16px}\n  #rhc-calculator .rhc-pair{grid-template-columns:1fr}\n}\n@media (max-width:380px){#rhc-calculator .rhc-kpis{grid-template-columns:1fr}#rhc-calculator .rhc-row{grid-template-columns:minmax(0,1fr) 80px}}\n@media (prefers-reduced-motion:reduce){#rhc-calculator *{transition:none!important}}\n<\/style>\n<form class=\"rhc-form\" novalidate onsubmit=\"return false;\">\n<div class=\"rhc-layout\">\n<section class=\"rhc-card\" aria-labelledby=\"rhc-h-in\">\n<div class=\"rhc-card-title\" id=\"rhc-h-in\"><span class=\"rhc-step\" aria-hidden=\"true\">1<\/span>Test Inputs<\/div>\n<p class=\"rhc-card-note\">Choose the scale, then enter the depth measurement.<\/p>\n<div class=\"rhc-field\">\n<label class=\"rhc-label\" for=\"rhc-scale\">Rockwell hardness scale<\/label>\n<select id=\"rhc-scale\" name=\"scale\">\n<option value=\"C\" selected>Rockwell C Scale (HRC)<\/option>\n<option value=\"B\">Rockwell B Scale (HRB)<\/option>\n<\/select>\n<\/div>\n<div class=\"rhc-info\" aria-live=\"polite\">\n<dl>\n<dt>Indenter<\/dt><dd id=\"rhc-i-ind\">&#8212;<\/dd>\n<dt>Preliminary force F&#8320;<\/dt><dd id=\"rhc-i-pre\">&#8212;<\/dd>\n<dt>Total force F<\/dt><dd id=\"rhc-i-tot\">&#8212;<\/dd>\n<dt>Scale constant N<\/dt><dd id=\"rhc-i-n\">&#8212;<\/dd>\n<dt>Formula<\/dt><dd><span class=\"rhc-formula\" id=\"rhc-i-f\">&#8212;<\/span><\/dd>\n<\/dl>\n<\/div>\n<fieldset class=\"rhc-seg\">\n<legend>Depth input mode<\/legend>\n<input type=\"radio\" id=\"rhc-m-direct\" name=\"rhc-mode\" value=\"direct\" checked><label for=\"rhc-m-direct\">Enter h directly<\/label>\n<input type=\"radio\" id=\"rhc-m-readings\" name=\"rhc-mode\" value=\"readings\"><label for=\"rhc-m-readings\">From depth readings<\/label>\n<\/fieldset>\n<div class=\"rhc-field\" id=\"rhc-direct-wrap\">\n<div class=\"rhc-label\"><label for=\"rhc-h\">Permanent indentation depth (h)<\/label><span class=\"rhc-tipwrap\"><button type=\"button\" class=\"rhc-tip\" aria-label=\"What is h?\" aria-describedby=\"rhc-tip-h\">?<\/button><span class=\"rhc-tip-text\" role=\"tooltip\" id=\"rhc-tip-h\">The permanent increase in depth relative to the reference position under the preliminary force, measured after the additional force is removed. It is not the total depth from the original surface.<\/span><\/span><\/div>\n<div class=\"rhc-row\">\n<input id=\"rhc-h\" name=\"h\" type=\"number\" inputmode=\"decimal\" step=\"any\" min=\"0\" value=\"0.10\" aria-describedby=\"rhc-h-hint rhc-h-err\">\n<select id=\"rhc-h-unit\" name=\"hUnit\" aria-label=\"Depth unit\"><option value=\"mm\" selected>mm<\/option><option value=\"um\">&micro;m<\/option><\/select>\n<\/div>\n<span class=\"rhc-hint\" id=\"rhc-h-hint\">Example: 0.10 mm (= 100 &micro;m). Changing the unit converts the value.<\/span>\n<span class=\"rhc-error\" id=\"rhc-h-err\" role=\"alert\"><\/span>\n<\/div>\n<div id=\"rhc-readings-wrap\" hidden>\n<div class=\"rhc-pair\">\n<div class=\"rhc-field\">\n<div class=\"rhc-label\"><label for=\"rhc-ref\">Reference depth (mm)<\/label><span class=\"rhc-tipwrap\"><button type=\"button\" class=\"rhc-tip\" aria-label=\"What is the reference depth?\" aria-describedby=\"rhc-tip-ref\">?<\/button><span class=\"rhc-tip-text\" role=\"tooltip\" id=\"rhc-tip-ref\">Depth reading under the preliminary force F&#8320;, taken before the additional test force is applied. This is the zero (datum) for h.<\/span><\/span><\/div>\n<input id=\"rhc-ref\" name=\"ref\" type=\"number\" inputmode=\"decimal\" step=\"any\" min=\"0\" placeholder=\"e.g. 0.020\" aria-describedby=\"rhc-ref-err\">\n<span class=\"rhc-error\" id=\"rhc-ref-err\" role=\"alert\"><\/span>\n<\/div>\n<div class=\"rhc-field\">\n<div class=\"rhc-label\"><label for=\"rhc-fin\">Final depth (mm)<\/label><span class=\"rhc-tipwrap\"><button type=\"button\" class=\"rhc-tip\" aria-label=\"What is the final depth?\" aria-describedby=\"rhc-tip-fin\">?<\/button><span class=\"rhc-tip-text\" role=\"tooltip\" id=\"rhc-tip-fin\">Depth reading after the additional force is removed and the preliminary force F&#8320; is still applied.<\/span><\/span><\/div>\n<input id=\"rhc-fin\" name=\"fin\" type=\"number\" inputmode=\"decimal\" step=\"any\" min=\"0\" placeholder=\"e.g. 0.120\" aria-describedby=\"rhc-fin-err\">\n<span class=\"rhc-error\" id=\"rhc-fin-err\" role=\"alert\"><\/span>\n<\/div>\n<\/div>\n<div class=\"rhc-derived\" aria-live=\"polite\">h = final depth &#8722; reference depth = <strong id=\"rhc-derived-h\">&#8212;<\/strong><\/div>\n<span class=\"rhc-hint\">Both readings must be taken under the preliminary force, following the applicable Rockwell test procedure (ISO 6508-1 or ASTM E18).<\/span>\n<div style=\"height:16px\"><\/div>\n<\/div>\n<div class=\"rhc-field\">\n<label class=\"rhc-label\" for=\"rhc-dec\">Displayed precision<\/label>\n<select id=\"rhc-dec\" name=\"decimals\"><option value=\"1\" selected>1 decimal place<\/option><option value=\"2\">2 decimal places<\/option><\/select>\n<\/div>\n<div class=\"rhc-actions\">\n<button type=\"button\" class=\"rhc-btn rhc-btn-primary\" id=\"rhc-calc\">Calculate<\/button>\n<\/div>\n<p class=\"rhc-form-msg\" id=\"rhc-form-msg\" role=\"alert\" aria-live=\"polite\"><\/p>\n<\/section>\n<section class=\"rhc-card\" id=\"rhc-results\" aria-labelledby=\"rhc-h-res\" tabindex=\"-1\" hidden>\n<div class=\"rhc-card-title\" id=\"rhc-h-res\"><span class=\"rhc-step\" aria-hidden=\"true\">2<\/span>Results<\/div>\n<p class=\"rhc-card-note\">Results update as you type.<\/p>\n<div class=\"rhc-main\" id=\"rhc-main\" aria-live=\"polite\">\n<div class=\"rhc-main-label\"><span id=\"rhc-r-label\">Rockwell hardness<\/span><span class=\"rhc-badge\" id=\"rhc-r-badge\" hidden><\/span><\/div>\n<div class=\"rhc-main-value\" id=\"rhc-r-val\">&#8212;<\/div>\n<div class=\"rhc-main-sub\" id=\"rhc-r-sub\">Enter a depth to see the result.<\/div>\n<\/div>\n<div class=\"rhc-kpis\">\n<div class=\"rhc-kpi\"><div class=\"rhc-kpi-label\">Scale<\/div><div class=\"rhc-kpi-value\" id=\"rhc-r-scale\">&#8212;<\/div><\/div>\n<div class=\"rhc-kpi\"><div class=\"rhc-kpi-label\">Scale constant N<\/div><div class=\"rhc-kpi-value\" id=\"rhc-r-n\">&#8212;<\/div><\/div>\n<div class=\"rhc-kpi\"><div class=\"rhc-kpi-label\">Depth h (mm)<\/div><div class=\"rhc-kpi-value\" id=\"rhc-r-hmm\">&#8212;<\/div><\/div>\n<div class=\"rhc-kpi\"><div class=\"rhc-kpi-label\">Depth h (<span style=\"text-transform:none\">&micro;m<\/span>)<\/div><div class=\"rhc-kpi-value\" id=\"rhc-r-hum\">&#8212;<\/div><\/div>\n<div class=\"rhc-kpi\"><div class=\"rhc-kpi-label\">Indenter<\/div><div class=\"rhc-kpi-value\" id=\"rhc-r-ind\" style=\"font-size:.9rem\">&#8212;<\/div><\/div>\n<div class=\"rhc-kpi\"><div class=\"rhc-kpi-label\">Forces F&#8320; \/ F<\/div><div class=\"rhc-kpi-value\" id=\"rhc-r-forces\" style=\"font-size:.9rem\">&#8212;<\/div><\/div>\n<\/div>\n<\/section>\n<\/div>\n<\/form>\n<script>\n(function () {\n  \"use strict\";\n  var root = document.getElementById(\"rhc-calculator\");\n  if (!root) { return; }\n  if (root.getAttribute(\"data-rhc-init\") === \"1\") { return; }\n  root.setAttribute(\"data-rhc-init\", \"1\");\n  \/* ===================== CONSTANTS ===================== *\/\n  var S = 0.002; \/* mm per Rockwell unit (ISO 6508-1 \/ ASTM E18) *\/\n  \/* Typical application ranges as listed in ISO 6508-1. Edit here if your standard edition differs. *\/\n  var SCALES = {\n    C: { code: \"HRC\", name: \"Rockwell C\", N: 100, indenter: \"Diamond cone, 120\u00b0 (spheroconical)\", pre: \"10 kgf (98.07 N)\", total: \"150 kgf (1471 N)\", min: 20, max: 70 },\n    B: { code: \"HRB\", name: \"Rockwell B\", N: 130, indenter: \"Tungsten carbide ball, 1\/16 in (1.5875 mm)\", pre: \"10 kgf (98.07 N)\", total: \"100 kgf (980.7 N)\", min: 10, max: 100 }\n  };\n  \/* ===================== HELPERS ===================== *\/\n  function $(s) { return root.querySelector(s); }\n  function fmt(v, dec) {\n    if (v === null || v === undefined || !isFinite(v)) { return \"\u2014\"; }\n    var r = Number(v.toFixed(dec)); if (r === 0) { r = 0; }\n    return (r < 0 ? \"\u2212\" : \"\") + Math.abs(r).toLocaleString(\"en-US\", { minimumFractionDigits: dec, maximumFractionDigits: dec });\n  }\n  function short(v) { return String(Number(v.toPrecision(10))); }\n  function num(input) {\n    var s = String(input.value).trim();\n    if (s === \"\") { return null; }\n    var v = Number(s);\n    return isFinite(v) ? v : NaN;\n  }\n  function mk(tag, cls, text) { var n = document.createElement(tag); if (cls) { n.className = cls; } if (text !== undefined) { n.textContent = text; } return n; }\n  var el = {\n    scale: $(\"#rhc-scale\"), iInd: $(\"#rhc-i-ind\"), iPre: $(\"#rhc-i-pre\"), iTot: $(\"#rhc-i-tot\"), iN: $(\"#rhc-i-n\"), iF: $(\"#rhc-i-f\"),\n    directWrap: $(\"#rhc-direct-wrap\"), readingsWrap: $(\"#rhc-readings-wrap\"),\n    h: $(\"#rhc-h\"), hUnit: $(\"#rhc-h-unit\"), hErr: $(\"#rhc-h-err\"),\n    ref: $(\"#rhc-ref\"), refErr: $(\"#rhc-ref-err\"), fin: $(\"#rhc-fin\"), finErr: $(\"#rhc-fin-err\"), derived: $(\"#rhc-derived-h\"),\n    dec: $(\"#rhc-dec\"), calc: $(\"#rhc-calc\"), formMsg: $(\"#rhc-form-msg\"),\n    results: $(\"#rhc-results\"), main: $(\"#rhc-main\"), rLabel: $(\"#rhc-r-label\"), rBadge: $(\"#rhc-r-badge\"), rVal: $(\"#rhc-r-val\"), rSub: $(\"#rhc-r-sub\"),\n    rScale: $(\"#rhc-r-scale\"), rN: $(\"#rhc-r-n\"), rHmm: $(\"#rhc-r-hmm\"), rHum: $(\"#rhc-r-hum\"), rInd: $(\"#rhc-r-ind\"), rForces: $(\"#rhc-r-forces\")\n  };\n  var state = { tried: false };\n  function mode() { var r = root.querySelector('input[name=\"rhc-mode\"]:checked'); return r ? r.value : \"direct\"; }\n  function setErr(input, errEl, msg) {\n    errEl.textContent = msg || \"\";\n    if (msg) { input.classList.add(\"rhc-invalid\"); input.setAttribute(\"aria-invalid\", \"true\"); }\n    else { input.classList.remove(\"rhc-invalid\"); input.removeAttribute(\"aria-invalid\"); }\n  }\n  function depthMsg(v, name) {\n    if (v === null) { return \"Enter the \" + name + \".\"; }\n    if (isNaN(v)) { return \"Enter a valid number.\"; }\n    if (v < 0) { return \"The \" + name + \" cannot be negative.\"; }\n    return \"\";\n  }\n  function updateScaleInfo() {\n    var sc = SCALES[el.scale.value];\n    el.iInd.textContent = sc.indenter; el.iPre.textContent = sc.pre; el.iTot.textContent = sc.total;\n    el.iN.textContent = String(sc.N);\n    el.iF.textContent = sc.code + \" = \" + sc.N + \" \u2212 (h \/ 0.002 mm)\";\n  }\n  \/* ===================== READ + VALIDATE ===================== *\/\n  function readDepth(show) {\n    if (mode() === \"direct\") {\n      setErr(el.ref, el.refErr, \"\"); setErr(el.fin, el.finErr, \"\");\n      var v = num(el.h), m = depthMsg(v, \"indentation depth\");\n      setErr(el.h, el.hErr, (show ? true : v !== null) ? m : \"\");\n      if (m) { return null; }\n      return el.hUnit.value === \"um\" ? v \/ 1000 : v;\n    }\n    setErr(el.h, el.hErr, \"\");\n    var a = num(el.ref), b = num(el.fin);\n    var ma = depthMsg(a, \"reference depth\"), mb = depthMsg(b, \"final depth\");\n    if (!ma) { if (!mb) { if (b < a) { mb = \"Final depth must not be smaller than the reference depth.\"; } } }\n    setErr(el.ref, el.refErr, (show ? true : a !== null) ? ma : \"\");\n    setErr(el.fin, el.finErr, (show ? true : b !== null) ? mb : \"\");\n    if (ma || mb) { el.derived.textContent = \"\u2014\"; return null; }\n    el.derived.textContent = short(b - a) + \" mm\";\n    return b - a;\n  }\n  \/* ===================== RENDER ===================== *\/\n  function renderCommon(sc) {\n    el.rLabel.textContent = sc.name + \" hardness\";\n    el.rScale.textContent = sc.name + \" (\" + sc.code + \")\";\n    el.rN.textContent = String(sc.N);\n    el.rInd.textContent = sc.indenter;\n    el.rForces.textContent = sc.pre + \" \/ \" + sc.total;\n  }\n  function renderEmpty(sc) {\n    renderCommon(sc);\n    el.rBadge.hidden = true; el.main.classList.remove(\"rhc-is-warn\");\n    el.rVal.textContent = \"\u2014\";\n    el.rSub.textContent = \"Enter a valid depth to see the result.\";\n    el.rHmm.textContent = \"\u2014\"; el.rHum.textContent = \"\u2014\";\n  }\n  function run(show) {\n    var sc = SCALES[el.scale.value];\n    el.formMsg.textContent = \"\";\n    var hRaw = readDepth(show);\n    if (hRaw === null) {\n      renderEmpty(sc);\n      if (show) {\n        el.formMsg.textContent = \"Please correct the highlighted fields.\";\n        var first = root.querySelector(\".rhc-invalid\"); if (first) { first.focus(); }\n      }\n      return false;\n    }\n    var hMm = Number(hRaw.toPrecision(12));\n    var hr = Number((sc.N - hMm \/ S).toPrecision(12));\n    var dec = Number(el.dec.value), range = sc.min + \"\u2013\" + sc.max + \" \" + sc.code;\n    var status = hMm === 0 ? \"zero\" : hr < sc.min ? \"low\" : hr > sc.max ? \"high\" : \"ok\";\n    var warn = status !== \"ok\", sub;\n    if (status === \"zero\") { sub = \"h = 0 gives the scale endpoint (\" + sc.N + \"). This is a mathematical limit, not a measured hardness \u2014 verify the depth readings.\"; }\n    else if (status === \"low\") { sub = \"Below the typical application range (\" + range + \", ISO 6508-1). Not a valid test result on this scale \u2014 consider a different Rockwell scale.\"; }\n    else if (status === \"high\") { sub = \"Above the typical application range (\" + range + \", ISO 6508-1). Not a valid test result on this scale \u2014 consider a different Rockwell scale.\"; }\n    else { sub = \"Within the typical application range (\" + range + \"). A calculated value is not by itself a standardized test result.\"; }\n    if (el.scale.value === \"B\") { sub += \" With a tungsten carbide ball the B scale is reported as HRBW.\"; }\n    renderCommon(sc);\n    el.rBadge.hidden = false;\n    el.rBadge.className = \"rhc-badge \" + (warn ? \"rhc-badge-warn\" : \"rhc-badge-ok\");\n    el.rBadge.textContent = status === \"ok\" ? \"In typical range\" : status === \"zero\" ? \"Endpoint \u2014 verify\" : \"Out of range\";\n    el.main.classList.toggle(\"rhc-is-warn\", warn);\n    el.rVal.textContent = fmt(hr, dec);\n    el.rVal.appendChild(mk(\"span\", \"\", sc.code));\n    el.rSub.textContent = sub;\n    el.rHmm.textContent = short(hMm) + \" mm\";\n    el.rHum.textContent = short(hMm * 1000) + \" \u00b5m\";\n    return true;\n  }\n  \/* ===================== INPUT BEHAVIOUR ===================== *\/\n  function onUnit() {\n    var prev = el.hUnit.getAttribute(\"data-prev\") || \"mm\", v = num(el.h);\n    if (v !== null) { if (isFinite(v)) {\n      var mm = prev === \"um\" ? v \/ 1000 : v;\n      el.h.value = short(el.hUnit.value === \"um\" ? mm * 1000 : mm);\n    } }\n    el.hUnit.setAttribute(\"data-prev\", el.hUnit.value);\n    run(state.tried);\n  }\n  function onMode() {\n    var readings = mode() === \"readings\";\n    el.directWrap.hidden = readings; el.readingsWrap.hidden = !readings;\n    if (readings) {\n      if (num(el.ref) === null) { if (num(el.fin) === null) {\n        var v = num(el.h);\n        if (v !== null) { if (isFinite(v)) { if (v >= 0) { el.ref.value = \"0\"; el.fin.value = short(el.hUnit.value === \"um\" ? v \/ 1000 : v); } } }\n      } }\n    }\n    run(state.tried);\n  }\n  el.scale.addEventListener(\"change\", function () { updateScaleInfo(); run(state.tried); });\n  el.hUnit.addEventListener(\"change\", onUnit);\n  el.hUnit.setAttribute(\"data-prev\", el.hUnit.value);\n  el.h.addEventListener(\"input\", function () { run(state.tried); });\n  el.ref.addEventListener(\"input\", function () { run(state.tried); });\n  el.fin.addEventListener(\"input\", function () { run(state.tried); });\n  el.dec.addEventListener(\"change\", function () { run(state.tried); });\n  var radios = root.querySelectorAll('input[name=\"rhc-mode\"]');\n  for (var i = 0; i < radios.length; i++) { radios[i].addEventListener(\"change\", onMode); }\n  el.calc.addEventListener(\"click\", function () {\n    state.tried = true;\n    if (run(true)) { el.results.hidden = false; if (el.results.scrollIntoView) { el.results.scrollIntoView({ behavior: \"smooth\", block: \"nearest\" }); } }\n  });\n  root.querySelector(\".rhc-form\").addEventListener(\"keydown\", function (e) {\n    if (e.key === \"Enter\" ? (e.target ? e.target.tagName === \"INPUT\" : false) : false) { e.preventDefault(); el.calc.click(); }\n  });\n  updateScaleInfo();\n  run(false);\n})();\n<\/script>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Rockwell Hardness (HRC \/ HRB) Calculator is a reliable online tool designed to calculate Rockwell hardness values quickly and accurately based on permanent indentation&#8230;<\/p>","protected":false},"author":2,"featured_media":24942,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"pmpro_default_level":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[8647],"tags":[8736,8739,8740,8741],"class_list":["post-24941","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-materials-science-and-properties","tag-hardness-testing","tag-hrb-calculator","tag-hrc-calculator","tag-rockwell-hardness","pmpro-has-access"],"acf":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/www.mechstream.com\/wp-content\/uploads\/2026\/10\/Rockwell-Hardness-HRC-HRB-Calculator.png","_links":{"self":[{"href":"https:\/\/www.mechstream.com\/es\/wp-json\/wp\/v2\/posts\/24941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mechstream.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mechstream.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mechstream.com\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mechstream.com\/es\/wp-json\/wp\/v2\/comments?post=24941"}],"version-history":[{"count":2,"href":"https:\/\/www.mechstream.com\/es\/wp-json\/wp\/v2\/posts\/24941\/revisions"}],"predecessor-version":[{"id":24944,"href":"https:\/\/www.mechstream.com\/es\/wp-json\/wp\/v2\/posts\/24941\/revisions\/24944"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mechstream.com\/es\/wp-json\/wp\/v2\/media\/24942"}],"wp:attachment":[{"href":"https:\/\/www.mechstream.com\/es\/wp-json\/wp\/v2\/media?parent=24941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mechstream.com\/es\/wp-json\/wp\/v2\/categories?post=24941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mechstream.com\/es\/wp-json\/wp\/v2\/tags?post=24941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}