{"id":1570,"date":"2024-12-05T07:42:45","date_gmt":"2024-12-05T07:42:45","guid":{"rendered":"https:\/\/donhit.com\/en\/?p=1570"},"modified":"2025-02-07T09:36:04","modified_gmt":"2025-02-07T09:36:04","slug":"calorie-deficit","status":"publish","type":"post","link":"https:\/\/donhit.com\/en\/calculator\/calorie-deficit\/","title":{"rendered":"Calorie Deficit Calculator"},"content":{"rendered":"<p><center><div class=\"calculator-container\">\r\n        <h2 class=\"title\">Calorie Deficit Calculator<\/h2>\r\n        \r\n        <div class=\"input-group\">\r\n            <label for=\"gender\">Gender<\/label>\r\n            <select id=\"gender\" required>\r\n                <option value=\"\">Select Gender<\/option>\r\n                <option value=\"male\">Male<\/option>\r\n                <option value=\"female\">Female<\/option>\r\n            <\/select>\r\n        <\/div>\r\n\r\n        <div class=\"input-group\">\r\n            <label for=\"age\">Age (years)<\/label>\r\n            <input type=\"number\" id=\"age\" placeholder=\"Enter your age\" min=\"12\" max=\"120\" required>\r\n        <\/div>\r\n\r\n        <div class=\"input-group\">\r\n            <label for=\"weight\">Weight (kg)<\/label>\r\n            <input type=\"number\" id=\"weight\" placeholder=\"Enter your weight\" min=\"20\" max=\"300\" required>\r\n        <\/div>\r\n\r\n        <div class=\"input-group\">\r\n            <label for=\"height\">Height (cm)<\/label>\r\n            <input type=\"number\" id=\"height\" placeholder=\"Enter your height\" min=\"100\" max=\"250\" required>\r\n        <\/div>\r\n\r\n        <div class=\"input-group\">\r\n            <label for=\"activity\">Activity Level<\/label>\r\n            <select id=\"activity\" required>\r\n                <option value=\"\">Select Activity Level<\/option>\r\n                <option value=\"sedentary\">Sedentary (little\/no exercise)<\/option>\r\n                <option value=\"light\">Light (1-3 days\/week)<\/option>\r\n                <option value=\"moderate\">Moderate (3-5 days\/week)<\/option>\r\n                <option value=\"active\">Active (6-7 days\/week)<\/option>\r\n                <option value=\"veryActive\">Very Active (hard exercise daily)<\/option>\r\n            <\/select>\r\n        <\/div>\r\n\r\n        <div class=\"input-group\">\r\n            <label for=\"goal\">Weight Goal<\/label>\r\n            <select id=\"goal\" required>\r\n                <option value=\"\">Select Goal<\/option>\r\n                <option value=\"weightLoss\">Weight Loss<\/option>\r\n                <option value=\"maintenance\">Weight Maintenance<\/option>\r\n                <option value=\"muscleGain\">Muscle Gain<\/option>\r\n            <\/select>\r\n        <\/div>\r\n\r\n        <button class=\"calculate-btn\" onclick=\"calculateDeficit()\">Calculate Calorie Needs<\/button>\r\n\r\n        <div id=\"result\" style=\"display: none;\">\r\n            <h3>Your Calorie Recommendations<\/h3>\r\n            <div class=\"result-detail\">\r\n                <strong>Basal Metabolic Rate (BMR):<\/strong>\r\n                <span id=\"bmrResult\"><\/span>\r\n            <\/div>\r\n            <div class=\"result-detail\">\r\n                <strong>Daily Calorie Needs:<\/strong>\r\n                <span id=\"tdeeResult\"><\/span>\r\n            <\/div>\r\n            <div class=\"result-detail\">\r\n                <strong>Recommended Calories:<\/strong>\r\n                <span id=\"deficitResult\"><\/span>\r\n            <\/div>\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <script>\r\n        function calculateDeficit() {\r\n            const gender = document.getElementById('gender').value;\r\n            const age = parseFloat(document.getElementById('age').value);\r\n            const weight = parseFloat(document.getElementById('weight').value);\r\n            const height = parseFloat(document.getElementById('height').value);\r\n            const activity = document.getElementById('activity').value;\r\n            const goal = document.getElementById('goal').value;\r\n\r\n            if (!gender || !age || !weight || !height || !activity || !goal) {\r\n                alert('Please fill in all fields');\r\n                return;\r\n            }\r\n\r\n            \/\/ Harris-Benedict Equation for BMR\r\n            let bmr;\r\n            if (gender === 'male') {\r\n                bmr = 88.362 + (13.397 * weight) + (4.799 * height) - (5.677 * age);\r\n            } else {\r\n                bmr = 447.593 + (9.247 * weight) + (3.098 * height) - (4.330 * age);\r\n            }\r\n\r\n            \/\/ Activity Multipliers\r\n            const activityMultipliers = {\r\n                'sedentary': 1.2,\r\n                'light': 1.375,\r\n                'moderate': 1.55,\r\n                'active': 1.725,\r\n                'veryActive': 1.9\r\n            };\r\n\r\n            const tdee = bmr * activityMultipliers[activity];\r\n\r\n            let deficitCalories;\r\n            switch(goal) {\r\n                case 'weightLoss':\r\n                    deficitCalories = tdee - 500; \/\/ 1 pound per week\r\n                    break;\r\n                case 'maintenance':\r\n                    deficitCalories = tdee;\r\n                    break;\r\n                case 'muscleGain':\r\n                    deficitCalories = tdee + 300;\r\n                    break;\r\n            }\r\n\r\n            document.getElementById('bmrResult').textContent = `${bmr.toFixed(0)} calories`;\r\n            document.getElementById('tdeeResult').textContent = `${tdee.toFixed(0)} calories`;\r\n            document.getElementById('deficitResult').textContent = `${deficitCalories.toFixed(0)} calories`;\r\n            \r\n            document.getElementById('result').style.display = 'block';\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-1570","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>Calorie Deficit Calculator - DonHit<\/title>\n<meta name=\"description\" content=\"Using a calorie deficit tool offers several benefits. It enhances tracking precision, making it easier to monitor caloric intake and expenditure\" \/>\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\/calorie-deficit\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Calorie Deficit Calculator - DonHit\" \/>\n<meta property=\"og:description\" content=\"Using a calorie deficit tool offers several benefits. It enhances tracking precision, making it easier to monitor caloric intake and expenditure\" \/>\n<meta property=\"og:url\" content=\"https:\/\/donhit.com\/en\/calculator\/calorie-deficit\/\" \/>\n<meta property=\"og:site_name\" content=\"DonHit - World of Tools\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-05T07:42:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-07T09:36:04+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":"Calorie Deficit Calculator - DonHit","description":"Using a calorie deficit tool offers several benefits. It enhances tracking precision, making it easier to monitor caloric intake and expenditure","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\/calorie-deficit\/","og_locale":"en_US","og_type":"article","og_title":"Calorie Deficit Calculator - DonHit","og_description":"Using a calorie deficit tool offers several benefits. It enhances tracking precision, making it easier to monitor caloric intake and expenditure","og_url":"https:\/\/donhit.com\/en\/calculator\/calorie-deficit\/","og_site_name":"DonHit - World of Tools","article_published_time":"2024-12-05T07:42:45+00:00","article_modified_time":"2025-02-07T09:36:04+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\/calorie-deficit\/#article","isPartOf":{"@id":"https:\/\/donhit.com\/en\/calculator\/calorie-deficit\/"},"author":{"name":"DonHit","@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"headline":"Calorie Deficit Calculator","datePublished":"2024-12-05T07:42:45+00:00","dateModified":"2025-02-07T09:36:04+00:00","mainEntityOfPage":{"@id":"https:\/\/donhit.com\/en\/calculator\/calorie-deficit\/"},"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\/calorie-deficit\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/donhit.com\/en\/calculator\/calorie-deficit\/","url":"https:\/\/donhit.com\/en\/calculator\/calorie-deficit\/","name":"Calorie Deficit Calculator - DonHit","isPartOf":{"@id":"https:\/\/donhit.com\/en\/#website"},"datePublished":"2024-12-05T07:42:45+00:00","dateModified":"2025-02-07T09:36:04+00:00","description":"Using a calorie deficit tool offers several benefits. It enhances tracking precision, making it easier to monitor caloric intake and expenditure","breadcrumb":{"@id":"https:\/\/donhit.com\/en\/calculator\/calorie-deficit\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/donhit.com\/en\/calculator\/calorie-deficit\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/donhit.com\/en\/calculator\/calorie-deficit\/#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":"Calorie Deficit 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\/1570","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=1570"}],"version-history":[{"count":2,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1570\/revisions"}],"predecessor-version":[{"id":2221,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1570\/revisions\/2221"}],"wp:attachment":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/media?parent=1570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/categories?post=1570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/tags?post=1570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}