{"id":4027,"date":"2025-02-27T14:19:22","date_gmt":"2025-02-27T14:19:22","guid":{"rendered":"https:\/\/holobattery.com\/?p=4027"},"modified":"2026-11-15T14:15:04","modified_gmt":"2026-11-15T14:15:04","slug":"wh-to-mah-ah-conversion-calculator","status":"publish","type":"post","link":"https:\/\/holobattery.com\/wh-to-mah-ah-conversion-calculator\/","title":{"rendered":"Wh to mAh Calculator: Convert Wh to mAh or Ah"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Converting watt-hours to milliamp-hours takes one step: divide by the voltage. Ah = Wh \/ V, and mAh = (Wh \/ V) * 1000.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The same 100 Wh battery equals 27 Ah at 3.7V, but only about 2 Ah at 48V. That is why voltage matters as much as the energy rating.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use the calculator below, or follow the worked examples.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Convert Watt-Hours to mAh or Ah<\/h2>\n\n\n\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <style>\n        .calculator-container {\n            max-width: 600px;\n            margin: 20px auto;\n            padding: 24px;\n            background: #ffffff;\n            border-radius: 12px;\n            box-shadow: 0 4px 20px rgba(0,0,0,0.08);\n            font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n        }\n\n        .input-group {\n            margin-bottom: 20px;\n        }\n\n        .input-group label {\n            display: block;\n            margin-bottom: 8px;\n            color: #2d3748;\n            font-weight: 500;\n            font-size: 14px;\n        }\n\n        .input-group input, \n        .input-group select {\n            width: 100%;\n            padding: 12px;\n            border: 2px solid #e2e8f0;\n            border-radius: 8px;\n            font-size: 16px;\n            transition: all 0.2s;\n            box-sizing: border-box;\n        }\n\n        .input-group input:focus, \n        .input-group select:focus {\n            border-color: #3182ce;\n            outline: none;\n            box-shadow: 0 0 0 3px rgba(49,130,206,0.1);\n        }\n\n        .preset-grid {\n            display: grid;\n            grid-template-columns: repeat(3, 1fr);\n            gap: 8px;\n            margin-bottom: 12px;\n        }\n\n        .preset-btn {\n            padding: 10px;\n            background: #edf2f7;\n            border: none;\n            border-radius: 6px;\n            cursor: pointer;\n            font-size: 13px;\n            color: #4a5568;\n            transition: all 0.2s;\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            text-align: center;\n            min-height: 40px;\n        }\n\n        .preset-btn:hover {\n            background: #e2e8f0;\n            color: #2d3748;\n        }\n\n        #result {\n            margin-top: 24px;\n            padding: 20px;\n            background: #ebf8ff;\n            border-radius: 8px;\n            text-align: center;\n            display: none;\n            border: 2px solid #bee3f8;\n        }\n\n        .error-message {\n            color: #e53e3e;\n            font-size: 14px;\n            margin-top: 6px;\n            display: none;\n        }\n\n        .example-table {\n            width: 100%;\n            margin-top: 24px;\n            border-collapse: collapse;\n            font-size: 14px;\n        }\n\n        .example-table th, \n        .example-table td {\n            padding: 10px;\n            border-bottom: 1px solid #e2e8f0;\n            text-align: left;\n        }\n\n        .example-table th {\n            background-color: #f7fafc;\n            color: #4a5568;\n        }\n\n        @media (max-width: 640px) {\n            .calculator-container {\n                margin: 10px;\n                padding: 16px;\n            }\n            \n            .preset-btn {\n                font-size: 12px;\n                padding: 8px 4px;\n            }\n\n            .example-table {\n                font-size: 12px;\n            }\n\n            .input-group input, \n            .input-group select {\n                font-size: 14px;\n            }\n        }\n\n        @media (max-width: 480px) {\n            .preset-grid {\n                grid-template-columns: 1fr;\n                gap: 6px;\n            }\n            \n            .example-table td, \n            .example-table th {\n                padding: 8px;\n            }\n\n            .preset-btn {\n                padding: 8px 6px;\n                min-height: auto;\n            }\n        }\n    <\/style>\n<\/head>\n<body>\n    <div class=\"calculator-container\">\n        <div class=\"input-group\">\n            <label>Energy (Wh)<\/label>\n            <input type=\"number\" id=\"wh\" placeholder=\"Enter watt-hours\" step=\"0.1\">\n        <\/div>\n\n        <div class=\"input-group\">\n            <label>Voltage (V)<\/label>\n            <div class=\"preset-grid\">\n                <button class=\"preset-btn\" onclick=\"setVoltage(3.2)\">LiFePO4 Cell (3.2V)<\/button> <button class=\"preset-btn\" onclick=\"setVoltage(3.7)\">Li-ion Cell (3.7V)<\/button> <button class=\"preset-btn\" onclick=\"setVoltage(12.8)\">12V LiFePO4 (12.8V)<\/button> <button class=\"preset-btn\" onclick=\"setVoltage(12)\">RV (12V)<\/button> <button class=\"preset-btn\" onclick=\"setVoltage(24)\">Truck (24V)<\/button> <button class=\"preset-btn\" onclick=\"setVoltage(36)\">Golf Cart (36V)<\/button> <button class=\"preset-btn\" onclick=\"setVoltage(48)\">Solar (48V)<\/button> <button class=\"preset-btn\" onclick=\"setVoltage(51.2)\">16S ESS (51.2V)<\/button> <button class=\"preset-btn\" onclick=\"setVoltage(72)\">E-Mobility (72V)<\/button> <button class=\"preset-btn\" onclick=\"setVoltage(96)\">96V System<\/button>\n            <\/div>\n            <input type=\"number\" id=\"voltage\" placeholder=\"Enter voltage\" step=\"0.1\">\n        <\/div>\n\n        <div class=\"input-group\">\n            <label>Output Unit<\/label>\n            <select id=\"unit\">\n                <option value=\"Ah\">Ah (Amp-hour)<\/option>\n                <option value=\"mAh\">mAh (Milliamp-hour)<\/option>\n            <\/select>\n        <\/div>\n\n        <div class=\"error-message\" id=\"error\"><\/div>\n        <div id=\"result\"><\/div>\n\n        <table class=\"example-table\">\n            <tr>\n                <th>Application<\/th>\n                <th>Energy (Wh)<\/th>\n                <th>Voltage<\/th>\n                <th>Capacity<\/th>\n            <\/tr>\n            <tr>\n                <td>Solar Storage<\/td>\n                <td>4,800Wh<\/td>\n                <td>48V<\/td>\n                <td>100Ah \/ 100,000mAh<\/td>\n            <\/tr>\n            <tr>\n                <td>Marine System<\/td>\n                <td>3,600Wh<\/td>\n                <td>36V<\/td>\n                <td>100Ah \/ 100,000mAh<\/td>\n            <\/tr>\n            <tr>\n                <td>Truck Battery<\/td>\n                <td>2,400Wh<\/td>\n                <td>24V<\/td>\n                <td>100Ah \/ 100,000mAh<\/td>\n            <\/tr>\n        <\/table>\n    <\/div>\n\n    <script>\n        function calculate() {\n            const wh = parseFloat(document.getElementById(\"wh\").value);\n            const voltage = parseFloat(document.getElementById(\"voltage\").value);\n            const unit = document.getElementById(\"unit\").value;\n            const resultDiv = document.getElementById(\"result\");\n            const errorDiv = document.getElementById(\"error\");\n\n            resultDiv.style.display = \"none\";\n            errorDiv.style.display = \"none\";\n\n            if (isNaN(wh) || isNaN(voltage)) {\n                errorDiv.textContent = \"Please enter valid numbers in both fields\";\n                errorDiv.style.display = \"block\";\n                return;\n            }\n\n            if (wh <= 0 || voltage <= 0) {\n                errorDiv.textContent = \"Values must be greater than zero\";\n                errorDiv.style.display = \"block\";\n                return;\n            }\n\n            let ah = wh \/ voltage;\n            let result = unit === \"mAh\" \n                ? `${(ah * 1000).toLocaleString(\"en-US\", {maximumFractionDigits: 0})} mAh`\n                : `${ah.toLocaleString(\"en-US\", {maximumFractionDigits: 2})} Ah`;\n\n            resultDiv.innerHTML = `\n                <div style=\"font-size: 1em; color: #666; margin-bottom: 6px;\">\n                    Battery Capacity\n                <\/div>\n                <div style=\"font-size: 3em; font-weight: 500;\">\n                    ${result}\n                <\/div>\n                <div style=\"font-size: 0.85em; color: #888; margin-top: 10px;\">\n                    ${wh.toLocaleString(\"en-US\", {maximumFractionDigits: 2})} Wh \u00f7 ${voltage} V = ${ah.toLocaleString(\"en-US\", {maximumFractionDigits: 3})} Ah = ${(ah * 1000).toLocaleString(\"en-US\", {maximumFractionDigits: 0})} mAh\n                <\/div>\n            `;\n            resultDiv.style.display = \"block\";\n        }\n\n        function setVoltage(v) {\n            document.getElementById(\"voltage\").value = v;\n            calculate();\n        }\n\n        [\"wh\", \"voltage\", \"unit\"].forEach(id => {\n            document.getElementById(id).addEventListener(\"input\", calculate);\n        });\n    \n        \/\/ URL parameters: ?wh=100&v=3.7&unit=mAh\n        (function () {\n            const p = new URLSearchParams(window.location.search);\n            const wh = parseFloat(p.get(\"wh\"));\n            const v = parseFloat(p.get(\"v\"));\n            const u = p.get(\"unit\");\n            if (!isNaN(wh)) document.getElementById(\"wh\").value = wh;\n            if (!isNaN(v)) document.getElementById(\"voltage\").value = v;\n            if (u === \"Ah\" || u === \"mAh\") document.getElementById(\"unit\").value = u;\n            if (!isNaN(wh) && !isNaN(v)) calculate();\n        })();\n<\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/holobattery.com\/mah-ah-to-wh-conversion-calculator\/\">mAh\/Ah to Wh calculator \u2192<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Wh to Ah and mAh conversion: formulas and engineering reference<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Ampere-hours measure continuous current delivery over time; watt-hours measure total energy. The core conversions are:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ampere-hours (Ah) = Watt-hours (Wh) \/ Nominal Voltage (V)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Milliampere-hours (mAh) = (Watt-hours (Wh) \/ Nominal Voltage (V)) * 1000<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In pack design the conversion sets the cell count. A 48V LiFePO4 system is built as 15S (48.0V) or 16S (51.2V) from 3.2V cells, and the Ah result divided by the capacity of one cell gives the number of cells in parallel: 200Ah from 100Ah prismatic cells is 2P. A <a href=\"https:\/\/holobattery.com\/custom-batteries\/\">custom lithium battery pack<\/a> starts from exactly these two inputs, the Wh target and the system voltage.<\/p>\n\n\n\n\n\n\n<!-- wp:heading level -->\n<h3 class=\"wp-block-heading\">Common industrial device power and battery capacity reference<\/h3>\n<!-- \/wp:post-content -->\n\n<!-- wp:paragraph -->\n<p>Sizing industrial hardware requires matching continuous wattage, system voltage, and required operating autonomy. Below is an engineering reference matrix across typical industrial equipment:<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:table -->\n<figure class=\"wp-block-table\"><table><thead><tr><th>Device \/ Application<\/th><th>Typical Power<\/th><th>System Voltage<\/th><th>Energy Rating (Wh)<\/th><th>Calculated Capacity (Ah)<\/th><\/tr><\/thead><tbody><tr><td>Handheld Barcode Scanner<\/td><td>5 Watts<\/td><td>3.7V Li-ion<\/td><td>14.8 Wh<\/td><td>4.0 Ah (4000 mAh)<\/td><\/tr><tr><td>Industrial IoT Sensor Node<\/td><td>0.5 Watts<\/td><td>3.2V LiFePO4<\/td><td>6.4 Wh<\/td><td>2.0 Ah (2000 mAh)<\/td><\/tr><tr><td>Field Thermal Camera<\/td><td>12 Watts<\/td><td>7.4V (2S)<\/td><td>35.5 Wh<\/td><td>4.8 Ah (4800 mAh)<\/td><\/tr><tr><td>Electric Utility Scooter<\/td><td>350 Watts<\/td><td>36V (10S)<\/td><td>360 Wh<\/td><td>10.0 Ah<\/td><\/tr><tr><td>Portable Power Station<\/td><td>500 Watts<\/td><td>51.2V (16S)<\/td><td>1024 Wh<\/td><td>20.0 Ah<\/td><\/tr><tr><td>Industrial Electric Forklift<\/td><td>4500 Watts<\/td><td>48V System<\/td><td>9600 Wh<\/td><td>200.0 Ah<\/td><\/tr><\/tbody><\/table><\/figure>\n<!-- \/wp:table -->\n\n<!-- wp:heading -->\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n<!-- \/wp:heading -->\n\n<!-- wp:heading level -->\n<h3 class=\"wp-block-heading\">Why does system voltage directly determine battery capacity calculations?<\/h3>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>Voltage dictates current flow requirements for any power load. Higher system voltage delivers identical watt-hours with significantly lower continuous amperage, reducing cabling resistive losses and permitting smaller ampere-hour capacity ratings.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading level -->\n<h3 class=\"wp-block-heading\">How do you convert milliamp-hours and amp-hours back into watt-hours?<\/h3>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>Multiply ampere-hours by nominal voltage: Wh = Ah * V. For milliamp-hours, calculate Wh = (mAh * V) \/ 1000. You can also utilize our <a href=\"https:\/\/holobattery.com\/mah-ah-to-wh-conversion-calculator\/\">interactive tool<\/a>.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading level -->\n<h3 class=\"wp-block-heading\">What is the fundamental difference between mAh and Ah ratings?<\/h3>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>Both units measure electrical charge capacity over time. One ampere-hour equals exactly 1000 milliampere-hours. The unit mAh suits compact electronics such as sensors and smartphones, whereas Ah designates large systems including traction packs and stationary solar banks.<\/p>\n<!-- \/wp:paragraph -->","protected":false},"excerpt":{"rendered":"<p>Converting watt-hours to milliamp-hours takes one step: divide by the voltage. Ah = Wh \/ V, and mAh = (Wh \/ V) * 1000. The same 100 Wh battery equals 27 Ah at 3.7V, but only about 2 Ah at 48V. That is why voltage matters as much as the energy rating. Use the calculator [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8348,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[185],"tags":[],"class_list":["post-4027","post","type-post","status-publish","format-standard","has-post-thumbnail","category-battery-tools"],"_links":{"self":[{"href":"https:\/\/holobattery.com\/wp-json\/wp\/v2\/posts\/4027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/holobattery.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/holobattery.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/holobattery.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/holobattery.com\/wp-json\/wp\/v2\/comments?post=4027"}],"version-history":[{"count":5,"href":"https:\/\/holobattery.com\/wp-json\/wp\/v2\/posts\/4027\/revisions"}],"predecessor-version":[{"id":9339,"href":"https:\/\/holobattery.com\/wp-json\/wp\/v2\/posts\/4027\/revisions\/9339"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/holobattery.com\/wp-json\/wp\/v2\/media\/8348"}],"wp:attachment":[{"href":"https:\/\/holobattery.com\/wp-json\/wp\/v2\/media?parent=4027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/holobattery.com\/wp-json\/wp\/v2\/categories?post=4027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/holobattery.com\/wp-json\/wp\/v2\/tags?post=4027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}