{"id":6206,"date":"2025-12-17T13:38:52","date_gmt":"2025-12-17T05:38:52","guid":{"rendered":"https:\/\/anisteel.com\/?p=6206"},"modified":"2025-12-17T13:42:07","modified_gmt":"2025-12-17T05:42:07","slug":"steel-tube-weight-calculator-2","status":"publish","type":"post","link":"https:\/\/anisteel.com\/it\/steel-tube-weight-calculator-2\/","title":{"rendered":"Steel Tube Weight Calculator"},"content":{"rendered":"<div id=\"steel-tube-calculator\">\n\n<style>\n\/* ===============================\n   \u4f5c\u7528\u57df\u9694\u79bb\uff08\u5173\u952e\uff09\n=============================== *\/\n\n#steel-tube-calculator .calculator-form,\n#steel-tube-calculator .result-section{\n  max-width:860px;\n  margin:0 auto 28px;\n  background:#ffffff;\n  border-radius:16px;\n  box-shadow:0 12px 30px rgba(0,0,0,.08);\n  padding:28px;\n}\n\n\/* ===== \u8868\u5355\u7ed3\u6784 ===== *\/\n#steel-tube-calculator .calculator-form{\n  display:flex;\n  flex-direction:column;\n  gap:18px;\n}\n\n#steel-tube-calculator .form-group label{\n  font-weight:600;\n  display:block;\n  margin-bottom:6px;\n  font-size:14px;\n}\n\n#steel-tube-calculator input,\n#steel-tube-calculator select{\n  width:100%;\n  padding:11px 12px;\n  border-radius:10px;\n  border:1px solid #d1d5db;\n  font-size:14px;\n  background:#fff;\n}\n\n#steel-tube-calculator input:focus,\n#steel-tube-calculator select:focus{\n  outline:none;\n  border-color:#2563eb;\n  box-shadow:0 0 0 2px rgba(37,99,235,.15);\n}\n\n#steel-tube-calculator .input-group{\n  display:flex;\n  gap:10px;\n}\n\n#steel-tube-calculator .input-group select{\n  width:120px;\n}\n\n\/* ===== \u52fe\u9009\u533a\u57df ===== *\/\n#steel-tube-calculator .form-options{\n  display:flex;\n  align-items:center;\n  gap:24px;\n  margin-top:10px;\n}\n\n#steel-tube-calculator .form-toggle{\n  display:flex;\n  align-items:center;\n  gap:8px;\n  white-space:nowrap;\n}\n\n\/* ===== \u6309\u94ae ===== *\/\n#steel-tube-calculator .calculate-button{\n  width:100%;\n  margin-top:10px;\n  padding:14px;\n  border:none;\n  border-radius:12px;\n  background:#2563eb;\n  color:#fff;\n  font-size:16px;\n  font-weight:600;\n  cursor:pointer;\n}\n\n#steel-tube-calculator .calculate-button:hover{\n  background:#1d4ed8;\n}\n\n\/* ===== \u63cf\u8ff0 ===== *\/\n#steel-tube-calculator .calculator-description{\n  color:#9ca3af;\n  font-size:15px;\n  max-width:640px;\n  margin:8px auto 24px;\n  text-align:center;\n}\n\n\/* ===== \u7ed3\u679c ===== *\/\n#steel-tube-calculator .result-header{\n  display:flex;\n  align-items:center;\n  font-size:22px;\n  font-weight:700;\n  margin-bottom:16px;\n}\n\n#steel-tube-calculator .copy-button{\n  margin-left:auto;\n  background:none;\n  border:none;\n  cursor:pointer;\n}\n\n#steel-tube-calculator .result-item{\n  display:flex;\n  justify-content:space-between;\n  padding:10px 0;\n  border-bottom:1px solid #e5e7eb;\n  font-size:15px;\n}\n\n#steel-tube-calculator .result-details{\n  display:grid;\n  grid-template-columns:1fr 1fr;\n  gap:12px;\n  margin-top:16px;\n}\n\n#steel-tube-calculator .detail-item{\n  background:#f9fafb;\n  padding:12px;\n  border-radius:10px;\n  display:flex;\n  justify-content:space-between;\n  font-size:14px;\n}\n\n@media(max-width:640px){\n  #steel-tube-calculator .result-details{\n    grid-template-columns:1fr;\n  }\n}\n<\/style>\n<\/head>\n\n<body>\n\n<div class=\"calculator-form\">\n    <div class=\"form-group\">\n        <h1 style=\"text-align:center;\">Steel Tube Weight Calculator<\/h1>\n<p class=\"calculator-description\">\n  Calculate the weight and properties of steel tubes (round, square, and rectangular) for your projects.\n<\/p>\n<div class=\"calculator-form\">\n    <div class=\"form-group\">\n      <label for=\"tube-type\">Tube Type:<\/label>\n      <select id=\"tube-type\">\n        <option value=\"circular\">Circular Tube (Round Pipe)<\/option>\n        <option value=\"square\">Square Tube<\/option>\n        <option value=\"rectangular\">Rectangular Tube<\/option>\n      <\/select>\n    <\/div>\n    \n    <div id=\"standard-sizes-container\">\n      <div class=\"form-group\">\n        <label for=\"standard-size\">Standard Size:<\/label>\n        <select id=\"standard-size\"><option value=\"{&quot;name&quot;:&quot;21.3 x 2.0&quot;,&quot;outerDiameter&quot;:21.3,&quot;wallThickness&quot;:2,&quot;weight&quot;:0.95}\">21.3 x 2.0<\/option><option value=\"{&quot;name&quot;:&quot;26.9 x 2.0&quot;,&quot;outerDiameter&quot;:26.9,&quot;wallThickness&quot;:2,&quot;weight&quot;:1.23}\">26.9 x 2.0<\/option><option value=\"{&quot;name&quot;:&quot;33.7 x 2.0&quot;,&quot;outerDiameter&quot;:33.7,&quot;wallThickness&quot;:2,&quot;weight&quot;:1.56}\">33.7 x 2.0<\/option><option value=\"{&quot;name&quot;:&quot;33.7 x 2.5&quot;,&quot;outerDiameter&quot;:33.7,&quot;wallThickness&quot;:2.5,&quot;weight&quot;:1.94}\">33.7 x 2.5<\/option><option value=\"{&quot;name&quot;:&quot;42.4 x 2.0&quot;,&quot;outerDiameter&quot;:42.4,&quot;wallThickness&quot;:2,&quot;weight&quot;:2}\">42.4 x 2.0<\/option><option value=\"{&quot;name&quot;:&quot;42.4 x 2.5&quot;,&quot;outerDiameter&quot;:42.4,&quot;wallThickness&quot;:2.5,&quot;weight&quot;:2.49}\">42.4 x 2.5<\/option><option value=\"{&quot;name&quot;:&quot;48.3 x 2.0&quot;,&quot;outerDiameter&quot;:48.3,&quot;wallThickness&quot;:2,&quot;weight&quot;:2.29}\">48.3 x 2.0<\/option><option value=\"{&quot;name&quot;:&quot;48.3 x 2.5&quot;,&quot;outerDiameter&quot;:48.3,&quot;wallThickness&quot;:2.5,&quot;weight&quot;:2.85}\">48.3 x 2.5<\/option><option value=\"{&quot;name&quot;:&quot;48.3 x 3.0&quot;,&quot;outerDiameter&quot;:48.3,&quot;wallThickness&quot;:3,&quot;weight&quot;:3.39}\">48.3 x 3.0<\/option><option value=\"{&quot;name&quot;:&quot;60.3 x 2.5&quot;,&quot;outerDiameter&quot;:60.3,&quot;wallThickness&quot;:2.5,&quot;weight&quot;:3.61}\">60.3 x 2.5<\/option><option value=\"{&quot;name&quot;:&quot;60.3 x 3.0&quot;,&quot;outerDiameter&quot;:60.3,&quot;wallThickness&quot;:3,&quot;weight&quot;:4.3}\">60.3 x 3.0<\/option><option value=\"{&quot;name&quot;:&quot;76.1 x 2.5&quot;,&quot;outerDiameter&quot;:76.1,&quot;wallThickness&quot;:2.5,&quot;weight&quot;:4.6}\">76.1 x 2.5<\/option><option value=\"{&quot;name&quot;:&quot;76.1 x 3.0&quot;,&quot;outerDiameter&quot;:76.1,&quot;wallThickness&quot;:3,&quot;weight&quot;:5.49}\">76.1 x 3.0<\/option><option value=\"{&quot;name&quot;:&quot;88.9 x 3.0&quot;,&quot;outerDiameter&quot;:88.9,&quot;wallThickness&quot;:3,&quot;weight&quot;:6.45}\">88.9 x 3.0<\/option><option value=\"{&quot;name&quot;:&quot;88.9 x 3.5&quot;,&quot;outerDiameter&quot;:88.9,&quot;wallThickness&quot;:3.5,&quot;weight&quot;:7.49}\">88.9 x 3.5<\/option><option value=\"{&quot;name&quot;:&quot;101.6 x 3.0&quot;,&quot;outerDiameter&quot;:101.6,&quot;wallThickness&quot;:3,&quot;weight&quot;:7.41}\">101.6 x 3.0<\/option><option value=\"{&quot;name&quot;:&quot;101.6 x 4.0&quot;,&quot;outerDiameter&quot;:101.6,&quot;wallThickness&quot;:4,&quot;weight&quot;:9.8}\">101.6 x 4.0<\/option><option value=\"{&quot;name&quot;:&quot;114.3 x 3.0&quot;,&quot;outerDiameter&quot;:114.3,&quot;wallThickness&quot;:3,&quot;weight&quot;:8.36}\">114.3 x 3.0<\/option><option value=\"{&quot;name&quot;:&quot;114.3 x 3.5&quot;,&quot;outerDiameter&quot;:114.3,&quot;wallThickness&quot;:3.5,&quot;weight&quot;:9.72}\">114.3 x 3.5<\/option><option value=\"{&quot;name&quot;:&quot;114.3 x 4.0&quot;,&quot;outerDiameter&quot;:114.3,&quot;wallThickness&quot;:4,&quot;weight&quot;:11.1}\">114.3 x 4.0<\/option><option value=\"{&quot;name&quot;:&quot;139.7 x 4.0&quot;,&quot;outerDiameter&quot;:139.7,&quot;wallThickness&quot;:4,&quot;weight&quot;:13.6}\">139.7 x 4.0<\/option><option value=\"{&quot;name&quot;:&quot;139.7 x 5.0&quot;,&quot;outerDiameter&quot;:139.7,&quot;wallThickness&quot;:5,&quot;weight&quot;:16.8}\">139.7 x 5.0<\/option><option value=\"{&quot;name&quot;:&quot;168.3 x 4.0&quot;,&quot;outerDiameter&quot;:168.3,&quot;wallThickness&quot;:4,&quot;weight&quot;:16.4}\">168.3 x 4.0<\/option><option value=\"{&quot;name&quot;:&quot;168.3 x 5.0&quot;,&quot;outerDiameter&quot;:168.3,&quot;wallThickness&quot;:5,&quot;weight&quot;:20.4}\">168.3 x 5.0<\/option><option value=\"{&quot;name&quot;:&quot;219.1 x 5.0&quot;,&quot;outerDiameter&quot;:219.1,&quot;wallThickness&quot;:5,&quot;weight&quot;:26.7}\">219.1 x 5.0<\/option><option value=\"{&quot;name&quot;:&quot;219.1 x 6.3&quot;,&quot;outerDiameter&quot;:219.1,&quot;wallThickness&quot;:6.3,&quot;weight&quot;:33.4}\">219.1 x 6.3<\/option><option value=\"{&quot;name&quot;:&quot;273.0 x 5.0&quot;,&quot;outerDiameter&quot;:273,&quot;wallThickness&quot;:5,&quot;weight&quot;:33.3}\">273.0 x 5.0<\/option><option value=\"{&quot;name&quot;:&quot;273.0 x 6.3&quot;,&quot;outerDiameter&quot;:273,&quot;wallThickness&quot;:6.3,&quot;weight&quot;:41.9}\">273.0 x 6.3<\/option><option value=\"{&quot;name&quot;:&quot;323.9 x 5.6&quot;,&quot;outerDiameter&quot;:323.9,&quot;wallThickness&quot;:5.6,&quot;weight&quot;:44.4}\">323.9 x 5.6<\/option><option value=\"{&quot;name&quot;:&quot;323.9 x 7.1&quot;,&quot;outerDiameter&quot;:323.9,&quot;wallThickness&quot;:7.1,&quot;weight&quot;:56}\">323.9 x 7.1<\/option><\/select>\n      <\/div>\n    <\/div>\n    \n    <div id=\"custom-dimensions-container\" style=\"display: none;\">\n      <div class=\"form-heading\">Custom Dimensions<\/div>\n      \n      <div class=\"form-group dimensions-group\" id=\"outer-diameter-container\" style=\"display: block;\">\n        <label for=\"outer-diameter\">Outer Diameter:<\/label>\n        <div class=\"input-group\">\n          <input type=\"number\" id=\"outer-diameter\" placeholder=\"Diametro esterno\" step=\"any\" min=\"0\">\n          <select id=\"diameter-unit\">\n            <option value=\"mm\">mm<\/option>\n            <option value=\"in\">inches<\/option>\n          <\/select>\n        <\/div>\n      <\/div>\n      \n      <div class=\"form-group dimensions-group\" id=\"width-container\" style=\"display: none;\">\n        <label for=\"tube-width\">Width:<\/label>\n        <div class=\"input-group\">\n          <input type=\"number\" id=\"tube-width\" placeholder=\"Larghezza\" step=\"any\" min=\"0\">\n          <select id=\"width-unit\">\n            <option value=\"mm\">mm<\/option>\n            <option value=\"in\">inches<\/option>\n          <\/select>\n        <\/div>\n      <\/div>\n      \n      <div class=\"form-group dimensions-group\" id=\"height-container\" style=\"display: none;\">\n        <label for=\"tube-height\">Height:<\/label>\n        <div class=\"input-group\">\n          <input type=\"number\" id=\"tube-height\" placeholder=\"Height\" step=\"any\" min=\"0\">\n          <select id=\"height-unit\">\n            <option value=\"mm\">mm<\/option>\n            <option value=\"in\">inches<\/option>\n          <\/select>\n        <\/div>\n      <\/div>\n      \n      <div class=\"form-group dimensions-group\">\n        <label for=\"wall-thickness\">Wall Thickness:<\/label>\n        <div class=\"input-group\">\n          <input type=\"number\" id=\"wall-thickness\" placeholder=\"spessore del muro\" step=\"any\" min=\"0\">\n          <select id=\"thickness-unit\">\n            <option value=\"mm\">mm<\/option>\n            <option value=\"in\">inches<\/option>\n          <\/select>\n        <\/div>\n      <\/div>\n    <\/div>\n    \n    <div class=\"form-group\">\n      <label for=\"tube-length\">Length:<\/label>\n      <div class=\"input-group\">\n        <input type=\"number\" id=\"tube-length\" placeholder=\"Enter length\" step=\"any\" min=\"0\">\n        <select id=\"length-unit\">\n          <option value=\"m\">meters<\/option>\n          <option value=\"ft\">feet<\/option>\n        <\/select>\n      <\/div>\n    <\/div>\n    \n    <div class=\"form-group\">\n      <label for=\"steel-type\">Steel Type:<\/label>\n      <select id=\"steel-type\">\n        <option value=\"7.85\">Carbon Steel (7.85 g\/cm\u00b3)<\/option>\n        <option value=\"8.00\">Stainless Steel 304 (8.00 g\/cm\u00b3)<\/option>\n        <option value=\"7.75\">Stainless Steel 316 (7.75 g\/cm\u00b3)<\/option>\n        <option value=\"7.80\">Low Alloy Steel (7.80 g\/cm\u00b3)<\/option>\n        <option value=\"8.03\">Duplex Stainless (8.03 g\/cm\u00b3)<\/option>\n        <option value=\"8.90\">Nickel Alloy (8.90 g\/cm\u00b3)<\/option>\n        <option value=\"2.70\">Aluminum (2.70 g\/cm\u00b3)<\/option>\n      <\/select>\n    <\/div>\n    \n    <div class=\"form-group\">\n      <label for=\"tube-quantity\">Quantity:<\/label>\n      <input type=\"number\" id=\"tube-quantity\" value=\"1\" min=\"1\" step=\"1\">\n    <\/div>\n    \n    <div class=\"form-options\">\n      <div class=\"form-toggle\">\n        <input type=\"checkbox\" id=\"custom-dimensions-toggle\">\n        <label for=\"custom-dimensions-toggle\">Use custom dimensions<\/label>\n      <\/div>\n      \n      <div class=\"form-toggle\">\n        <input type=\"checkbox\" id=\"weight-units-toggle\">\n        <label for=\"weight-units-toggle\">Show weight in imperial units<\/label>\n      <\/div>\n    <\/div>\n    \n    <button id=\"calculate-tube\" class=\"calculate-button\">Calculate<\/button>\n  <\/div>\n <div class=\"result-section\">\n    <div class=\"result-header\">\n      <h3>Weight Calculation Results<\/h3>\n      <button id=\"copy-results\" class=\"copy-button\" title=\"Copy results to clipboard\">\n        <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n          <rect x=\"9\" y=\"9\" width=\"13\" height=\"13\" rx=\"2\" ry=\"2\"><\/rect>\n          <path d=\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"><\/path>\n        <\/svg>\n      <\/button>\n    <\/div>\n    \n    <div class=\"result-item\">\n      <span class=\"result-label\">Weight per Tube:<\/span>\n      <span id=\"tube-weight\" class=\"result-value\">0 kg<\/span>\n    <\/div>\n    \n    <div class=\"result-item\">\n      <span class=\"result-label\">Total Weight:<\/span>\n      <span id=\"total-weight\" class=\"result-value\">0 kg<\/span>\n    <\/div>\n    \n    <div class=\"result-details\">\n      <div class=\"detail-item\">\n        <span class=\"detail-label\">Cross-sectional Area:<\/span>\n        <span id=\"cross-area\" class=\"detail-value\">0 mm\u00b2<\/span>\n      <\/div>\n      \n      <div class=\"detail-item\">\n        <span class=\"detail-label\">Metal Volume:<\/span>\n        <span id=\"metal-volume\" class=\"detail-value\">0 cm\u00b3<\/span>\n      <\/div>\n      \n      <div class=\"detail-item\">\n        <span class=\"detail-label\">Surface Area:<\/span>\n        <span id=\"surface-area\" class=\"detail-value\">0 m\u00b2<\/span>\n      <\/div>\n      \n      <div class=\"detail-item\">\n        <span class=\"detail-label\">Weight per Unit Length:<\/span>\n        <span id=\"weight-per-length\" class=\"detail-value\">0 kg\/m<\/span>\n      <\/div>\n      <div class=\"detail-item\">\n        <span class=\"detail-label\">Total Length:<\/span>\n        <span id=\"total-length\" class=\"detail-value\">0 m<\/span>\n      <\/div>\n    <\/div>\n  <\/div>\n\n<script>\ndocument.addEventListener('DOMContentLoaded', () => {\n\n  const $ = id => document.getElementById(id)\n\n  const MM_TO_M = 0.001\n  const IN_TO_MM = 25.4\n  const FT_TO_M = 0.3048\n  const KG_TO_LB = 2.20462\n  const M_TO_FT = 3.28084\n\n  \/* ===============================\n     \u663e\u793a\u683c\u5f0f\u5316\n  =============================== *\/\n  const formatWeight = (kg, imperial) => {\n    return imperial\n      ? (kg * KG_TO_LB).toFixed(2) + ' lb'\n      : kg.toFixed(2) + ' kg'\n  }\n\n const formatWeightPerLength = (kgPerM, imperial) => {\n  return imperial\n    ? (kgPerM * KG_TO_LB).toFixed(3) + ' lb\/m'\n    : kgPerM.toFixed(3) + ' kg\/m'\n}\n\n  const formatLength = (m, imperial) => {\n    return imperial\n      ? (m * M_TO_FT).toFixed(2) + ' ft'\n      : m.toFixed(2) + ' m'\n  }\n\n  const show = (id, flag) => {\n    $(id).style.display = flag ? 'block' : 'none'\n  }\n\n  \/* ===============================\n     Tube Type \u8054\u52a8\u5c3a\u5bf8\u8f93\u5165\n  =============================== *\/\n  $('tube-type').addEventListener('change', e => {\n    const type = e.target.value\n\n    show('outer-diameter-container', type === 'circular')\n    show('width-container', type !== 'circular')\n    show('height-container', type === 'rectangular')\n  })\n\n  \/* ===============================\n     Custom dimensions toggle\n  =============================== *\/\n  $('custom-dimensions-toggle').addEventListener('change', e => {\n    show('custom-dimensions-container', e.target.checked)\n    show('standard-sizes-container', !e.target.checked)\n  })\n\n  \/* ===============================\n   Imperial units toggle\uff1a\u5b9e\u65f6\u5237\u65b0\u7ed3\u679c\n=============================== *\/\n$('weight-units-toggle').addEventListener('change', () => {\n  $('calculate-tube').click()\n})\n\n\n  \/* ===============================\n     \u4e3b\u8ba1\u7b97\u903b\u8f91\n  =============================== *\/\n  $('calculate-tube').addEventListener('click', () => {\n\n    const type = $('tube-type').value\n    const useCustom = $('custom-dimensions-toggle').checked\n    const useImperial = $('weight-units-toggle').checked\n\n    let length = parseFloat($('tube-length').value) || 0\n    if ($('length-unit').value === 'ft') length *= FT_TO_M\n\n    const qty = parseInt($('tube-quantity').value) || 1\n    const density = parseFloat($('steel-type').value) \/\/ g\/cm\u00b3\n\n    let area_mm2 = 0\n    let surfaceArea = 0\n\n    \/* ===== Standard size\uff08\u4ec5\u5706\u7ba1\uff09 ===== *\/\n    if (!useCustom && type === 'circular') {\n\n      const std = JSON.parse($('standard-size').value)\n      const D = std.outerDiameter\n      const t = std.wallThickness\n      const d = D - 2 * t\n\n      area_mm2 = Math.PI * (D * D - d * d) \/ 4\n      const Dm = D * MM_TO_M\nconst dm = d * MM_TO_M\nsurfaceArea = Math.PI * (Dm + dm) * length\n\n\n    } else {\n\n      \/* ===== Custom dimensions ===== *\/\n      let t = parseFloat($('wall-thickness').value) || 0\n      if ($('thickness-unit').value === 'in') t *= IN_TO_MM\n\n      if (type === 'circular') {\n        let D = parseFloat($('outer-diameter').value) || 0\n        if ($('diameter-unit').value === 'in') D *= IN_TO_MM\n\n        const d = D - 2 * t\n        if (D > 0 && d > 0) {\n          area_mm2 = Math.PI * (D * D - d * d) \/ 4\n          const Dm = D * MM_TO_M\nconst dm = d * MM_TO_M\n\nsurfaceArea = Math.PI * (Dm + dm) * length\n\n        }\n\n      } else {\n        let w = parseFloat($('tube-width').value) || 0\n        let h = type === 'square'\n          ? w\n          : parseFloat($('tube-height').value) || 0\n\n        if ($('width-unit').value === 'in') w *= IN_TO_MM\n        if ($('height-unit').value === 'in') h *= IN_TO_MM\n\n        if (w > 0 && h > 0 && t > 0) {\n          area_mm2 = (w * h - (w - 2 * t) * (h - 2 * t))\n          const wm = w * MM_TO_M\nconst hm = h * MM_TO_M\nconst wi = (w - 2 * t) * MM_TO_M\nconst hi = (h - 2 * t) * MM_TO_M\n\nif (wi > 0 && hi > 0) {\n  surfaceArea = 2 * (wm + hm + wi + hi) * length\n}\n\n        }\n      }\n    }\n\n    \/* ===== \u4f53\u79ef & \u91cd\u91cf ===== *\/\n    const area_m2 = area_mm2 \/ 1e6\n    const volume_m3 = area_m2 * length\n    const volume_cm3 = volume_m3 * 1e6\n\n    const tubeWeight = volume_cm3 * density \/ 1000\n    const totalWeight = tubeWeight * qty\n    const weightPerM = length > 0 ? tubeWeight \/ length : 0\n\n    \/* ===== \u8f93\u51fa ===== *\/\n    $('tube-weight').textContent =\n      formatWeight(tubeWeight, useImperial)\n\n    $('total-weight').textContent =\n      formatWeight(totalWeight, useImperial)\n\n    $('weight-per-length').textContent =\n      formatWeightPerLength(weightPerM, useImperial)\n\n    $('total-length').textContent =\n  (length * qty).toFixed(2) + ' m'\n \n\n    $('cross-area').textContent =\n      area_mm2 > 0 ? area_mm2.toFixed(1) + ' mm\u00b2' : '0'\n\n    $('metal-volume').textContent =\n      volume_cm3 > 0 ? volume_cm3.toFixed(1) + ' cm\u00b3' : '0'\n\n    $('surface-area').textContent =\n      surfaceArea > 0 ? surfaceArea.toFixed(2) + ' m\u00b2' : '0'\n\n  })\n\n})\n<\/script>\n\n\n\n\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"<p>Steel Tube Weight Calculator Calculate the weight and properties of steel tubes (round, square, and rectangular) for your projects. Tube Type: Circular Tube (Round Pipe)Square TubeRectangular Tube Standard Size: 21.3 x 2.026.9 x 2.033.7 x 2.033.7 x 2.542.4 x 2.042.4 x 2.548.3 x 2.048.3 x 2.548.3 x 3.060.3 x 2.560.3 x 3.076.1 x 2.576.1 x [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6206","post","type-post","status-publish","format-standard","hentry","category-steel-products"],"_links":{"self":[{"href":"https:\/\/anisteel.com\/it\/wp-json\/wp\/v2\/posts\/6206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anisteel.com\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anisteel.com\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anisteel.com\/it\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/anisteel.com\/it\/wp-json\/wp\/v2\/comments?post=6206"}],"version-history":[{"count":2,"href":"https:\/\/anisteel.com\/it\/wp-json\/wp\/v2\/posts\/6206\/revisions"}],"predecessor-version":[{"id":6209,"href":"https:\/\/anisteel.com\/it\/wp-json\/wp\/v2\/posts\/6206\/revisions\/6209"}],"wp:attachment":[{"href":"https:\/\/anisteel.com\/it\/wp-json\/wp\/v2\/media?parent=6206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anisteel.com\/it\/wp-json\/wp\/v2\/categories?post=6206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anisteel.com\/it\/wp-json\/wp\/v2\/tags?post=6206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}