{"id":1670,"date":"2024-12-20T14:02:51","date_gmt":"2024-12-20T14:02:51","guid":{"rendered":"https:\/\/donhit.com\/en\/?p=1670"},"modified":"2025-02-07T09:39:01","modified_gmt":"2025-02-07T09:39:01","slug":"horsepower-to-amps","status":"publish","type":"post","link":"https:\/\/donhit.com\/en\/calculator\/horsepower-to-amps\/","title":{"rendered":"Horsepower to Amps Calculator"},"content":{"rendered":"<p><center><div class=\"calculator\">\r\n        <h2 class=\"title\">Horsepower to Amps Calculator<\/h2>\r\n        \r\n        <div class=\"input-group\">\r\n            <label for=\"horsepower\">Power (Horsepower)<\/label>\r\n            <input type=\"number\" id=\"horsepower\" placeholder=\"Enter horsepower\" step=\"0.01\" min=\"0\">\r\n            <div class=\"error\" id=\"hp-error\">Please enter a valid value<\/div>\r\n        <\/div>\r\n\r\n        <div class=\"input-group\">\r\n            <label for=\"voltage\">Voltage (Volts)<\/label>\r\n            <select id=\"voltage\">\r\n                <option value=\"120\">120V<\/option>\r\n                <option value=\"208\">208V<\/option>\r\n                <option value=\"240\">240V<\/option>\r\n                <option value=\"480\">480V<\/option>\r\n            <\/select>\r\n        <\/div>\r\n\r\n        <div class=\"input-group\">\r\n            <label for=\"efficiency\">Efficiency (%)<\/label>\r\n            <input type=\"number\" id=\"efficiency\" value=\"85\" min=\"1\" max=\"100\" step=\"0.1\">\r\n            <div class=\"error\" id=\"eff-error\">Efficiency must be between 1% and 100%<\/div>\r\n        <\/div>\r\n\r\n        <button class=\"btn\" onclick=\"calculate()\">Calculate<\/button>\r\n\r\n        <div class=\"result\" id=\"result\">\r\n            <div class=\"result-value\" id=\"result-value\"><\/div>\r\n            <div class=\"result-text\">Amperes<\/div>\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <script>\r\n        function calculate() {\r\n            \/\/ Get input values\r\n            const horsepower = parseFloat(document.getElementById('horsepower').value);\r\n            const voltage = parseFloat(document.getElementById('voltage').value);\r\n            const efficiency = parseFloat(document.getElementById('efficiency').value);\r\n            \r\n            \/\/ Reset errors\r\n            document.getElementById('hp-error').style.display = 'none';\r\n            document.getElementById('eff-error').style.display = 'none';\r\n            \r\n            \/\/ Validate input\r\n            if (!horsepower || horsepower <= 0) {\r\n                document.getElementById('hp-error').style.display = 'block';\r\n                return;\r\n            }\r\n            \r\n            if (!efficiency || efficiency < 1 || efficiency > 100) {\r\n                document.getElementById('eff-error').style.display = 'block';\r\n                return;\r\n            }\r\n\r\n            \/\/ Conversion formula\r\n            \/\/ Amps = (Horsepower \u00d7 746) \/ (Voltage \u00d7 Efficiency \u00d7 Power Factor)\r\n            const powerFactor = 0.85; \/\/ Assuming power factor of 0.85\r\n            const watts = horsepower * 746;\r\n            const amps = watts \/ (voltage * (efficiency\/100) * powerFactor);\r\n            \r\n            \/\/ Display result\r\n            const resultDiv = document.getElementById('result');\r\n            const resultValue = document.getElementById('result-value');\r\n            \r\n            resultValue.textContent = amps.toFixed(2);\r\n            resultDiv.classList.add('show');\r\n        }\r\n\r\n        \/\/ Validate input on user input\r\n        document.getElementById('horsepower').addEventListener('input', function(e) {\r\n            const value = parseFloat(e.target.value);\r\n            if (!value || value <= 0) {\r\n                document.getElementById('hp-error').style.display = 'block';\r\n            } else {\r\n                document.getElementById('hp-error').style.display = 'none';\r\n            }\r\n        });\r\n\r\n        document.getElementById('efficiency').addEventListener('input', function(e) {\r\n            const value = parseFloat(e.target.value);\r\n            if (!value || value < 1 || value > 100) {\r\n                document.getElementById('eff-error').style.display = 'block';\r\n            } else {\r\n                document.getElementById('eff-error').style.display = 'none';\r\n            }\r\n        });\r\n    <\/script><\/center>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[184],"tags":[],"class_list":["post-1670","post","type-post","status-publish","format-standard","hentry","category-calculator"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Horsepower to Amps Calculator - DonHit<\/title>\n<meta name=\"description\" content=\"Converting horsepower (HP) to amperes (amps) is a critical process in fields such as automotive engineering, electrical design, and construction.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/donhit.com\/en\/calculator\/horsepower-to-amps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Horsepower to Amps Calculator - DonHit\" \/>\n<meta property=\"og:description\" content=\"Converting horsepower (HP) to amperes (amps) is a critical process in fields such as automotive engineering, electrical design, and construction.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/donhit.com\/en\/calculator\/horsepower-to-amps\/\" \/>\n<meta property=\"og:site_name\" content=\"DonHit - World of Tools\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-20T14:02:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-07T09:39:01+00:00\" \/>\n<meta name=\"author\" content=\"DonHit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DonHit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Horsepower to Amps Calculator - DonHit","description":"Converting horsepower (HP) to amperes (amps) is a critical process in fields such as automotive engineering, electrical design, and construction.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/donhit.com\/en\/calculator\/horsepower-to-amps\/","og_locale":"en_US","og_type":"article","og_title":"Horsepower to Amps Calculator - DonHit","og_description":"Converting horsepower (HP) to amperes (amps) is a critical process in fields such as automotive engineering, electrical design, and construction.","og_url":"https:\/\/donhit.com\/en\/calculator\/horsepower-to-amps\/","og_site_name":"DonHit - World of Tools","article_published_time":"2024-12-20T14:02:51+00:00","article_modified_time":"2025-02-07T09:39:01+00:00","author":"DonHit","twitter_card":"summary_large_image","twitter_misc":{"Written by":"DonHit","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/donhit.com\/en\/calculator\/horsepower-to-amps\/#article","isPartOf":{"@id":"https:\/\/donhit.com\/en\/calculator\/horsepower-to-amps\/"},"author":{"name":"DonHit","@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"headline":"Horsepower to Amps Calculator","datePublished":"2024-12-20T14:02:51+00:00","dateModified":"2025-02-07T09:39:01+00:00","mainEntityOfPage":{"@id":"https:\/\/donhit.com\/en\/calculator\/horsepower-to-amps\/"},"wordCount":9,"commentCount":0,"publisher":{"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"articleSection":["Calculator"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/donhit.com\/en\/calculator\/horsepower-to-amps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/donhit.com\/en\/calculator\/horsepower-to-amps\/","url":"https:\/\/donhit.com\/en\/calculator\/horsepower-to-amps\/","name":"Horsepower to Amps Calculator - DonHit","isPartOf":{"@id":"https:\/\/donhit.com\/en\/#website"},"datePublished":"2024-12-20T14:02:51+00:00","dateModified":"2025-02-07T09:39:01+00:00","description":"Converting horsepower (HP) to amperes (amps) is a critical process in fields such as automotive engineering, electrical design, and construction.","breadcrumb":{"@id":"https:\/\/donhit.com\/en\/calculator\/horsepower-to-amps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/donhit.com\/en\/calculator\/horsepower-to-amps\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/donhit.com\/en\/calculator\/horsepower-to-amps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Trang ch\u1ee7","item":"https:\/\/donhit.com\/en\/"},{"@type":"ListItem","position":2,"name":"Calculator","item":"https:\/\/donhit.com\/en\/category\/calculator\/"},{"@type":"ListItem","position":3,"name":"Horsepower to Amps Calculator"}]},{"@type":"WebSite","@id":"https:\/\/donhit.com\/en\/#website","url":"https:\/\/donhit.com\/en\/","name":"DonHit - World of tools","description":"","publisher":{"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/donhit.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148","name":"DonHit","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/donhit.com\/en\/wp-content\/uploads\/2024\/11\/logo-donhit.webp","contentUrl":"https:\/\/donhit.com\/en\/wp-content\/uploads\/2024\/11\/logo-donhit.webp","width":400,"height":267,"caption":"DonHit"},"logo":{"@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/image\/"},"description":"DonHit is a website designed to provide useful tools for everyone. Its primary goal is to support and empower the community. All the tools available on the site are completely free to use.","sameAs":["https:\/\/donhit.com\/en"],"url":"https:\/\/donhit.com\/en\/author\/admin_don\/"}]}},"_links":{"self":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/comments?post=1670"}],"version-history":[{"count":6,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1670\/revisions"}],"predecessor-version":[{"id":2231,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1670\/revisions\/2231"}],"wp:attachment":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/media?parent=1670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/categories?post=1670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/tags?post=1670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}