{"id":1668,"date":"2024-12-20T10:03:24","date_gmt":"2024-12-20T10:03:24","guid":{"rendered":"https:\/\/donhit.com\/en\/?p=1668"},"modified":"2025-02-06T04:15:48","modified_gmt":"2025-02-06T04:15:48","slug":"pregnancy-weight-gain-calculator","status":"publish","type":"post","link":"https:\/\/donhit.com\/en\/calculator\/pregnancy-weight-gain-calculator\/","title":{"rendered":"Pregnancy Weight Gain Calculator"},"content":{"rendered":"<p><center><div class=\"container123\">\r\n        <h2>Pregnancy Weight Gain Calculator<\/h2>\r\n        <form id=\"calculator-form\">\r\n            <div class=\"form-group\">\r\n                <label for=\"pre-pregnancy-weight\">Pre-pregnancy Weight\r\n                    <span class=\"unit\">(kg)<\/span>\r\n                    <span class=\"tooltip\">\r\n                        <span class=\"info-icon\">?<\/span>\r\n                        <span class=\"tooltip-text\">Enter your weight before pregnancy<\/span>\r\n                    <\/span>\r\n                <\/label>\r\n                <input type=\"number\" id=\"pre-pregnancy-weight\" step=\"0.1\" required>\r\n                <div class=\"error\" id=\"weight-error\">Please enter a valid weight (30-200 kg)<\/div>\r\n            <\/div>\r\n\r\n            <div class=\"form-group\">\r\n                <label for=\"height\">Height\r\n                    <span class=\"unit\">(cm)<\/span>\r\n                    <span class=\"tooltip\">\r\n                        <span class=\"info-icon\">?<\/span>\r\n                        <span class=\"tooltip-text\">Enter your current height<\/span>\r\n                    <\/span>\r\n                <\/label>\r\n                <input type=\"number\" id=\"height\" step=\"0.1\" required>\r\n                <div class=\"error\" id=\"height-error\">Please enter a valid height (140-200 cm)<\/div>\r\n            <\/div>\r\n\r\n            <div class=\"form-group\">\r\n                <label for=\"weeks\">Current Week of Pregnancy\r\n                    <span class=\"tooltip\">\r\n                        <span class=\"info-icon\">?<\/span>\r\n                        <span class=\"tooltip-text\">Select your current week of pregnancy<\/span>\r\n                    <\/span>\r\n                <\/label>\r\n                <select id=\"weeks\" required>\r\n                    <option value=\"\">Select week<\/option>\r\n                <\/select>\r\n            <\/div>\r\n\r\n            <div class=\"form-group\">\r\n                <label for=\"pregnancy-type\">Pregnancy Type\r\n                    <span class=\"tooltip\">\r\n                        <span class=\"info-icon\">?<\/span>\r\n                        <span class=\"tooltip-text\">Select single or multiple pregnancy<\/span>\r\n                    <\/span>\r\n                <\/label>\r\n                <select id=\"pregnancy-type\" required>\r\n                    <option value=\"single\">Single Pregnancy<\/option>\r\n                    <option value=\"twin\">Multiple Pregnancy<\/option>\r\n                <\/select>\r\n            <\/div>\r\n\r\n            <button type=\"submit\">Calculate<\/button>\r\n        <\/form>\r\n\r\n        <div class=\"result\" id=\"result\">\r\n            <h2>Results<\/h2>\r\n            <p id=\"bmi-result\"><\/p>\r\n            <p id=\"weight-category\"><\/p>\r\n            <p id=\"recommended-gain\"><\/p>\r\n            <p id=\"current-gain\"><\/p>\r\n            <p id=\"status\"><\/p>\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <script>\r\n        \/\/ Initialize weeks select\r\n        const weeksSelect = document.getElementById('weeks');\r\n        for (let i = 1; i <= 42; i++) {\r\n            const option = document.createElement('option');\r\n            option.value = i;\r\n            option.textContent = `Week ${i}`;\r\n            weeksSelect.appendChild(option);\r\n        }\r\n\r\n        \/\/ Calculate BMI\r\n        function calculateBMI(weight, height) {\r\n            return weight \/ Math.pow(height \/ 100, 2);\r\n        }\r\n\r\n        \/\/ Get BMI category\r\n        function getBMICategory(bmi) {\r\n            if (bmi < 18.5) return \"underweight\";\r\n            if (bmi < 25) return \"normal weight\";\r\n            if (bmi < 30) return \"overweight\";\r\n            return \"obese\";\r\n        }\r\n\r\n        \/\/ Get recommended weight gain range\r\n        function getRecommendedGain(bmiCategory, isMultiple) {\r\n            if (isMultiple) {\r\n                switch (bmiCategory) {\r\n                    case \"underweight\": return [17, 25];\r\n                    case \"normal weight\": return [17, 25];\r\n                    case \"overweight\": return [14, 23];\r\n                    case \"obese\": return [11, 19];\r\n                }\r\n            } else {\r\n                switch (bmiCategory) {\r\n                    case \"underweight\": return [12.5, 18];\r\n                    case \"normal weight\": return [11.5, 16];\r\n                    case \"overweight\": return [7, 11.5];\r\n                    case \"obese\": return [5, 9];\r\n                }\r\n            }\r\n        }\r\n\r\n        \/\/ Calculate weekly weight gain\r\n        function getWeeklyGain(week) {\r\n            if (week <= 12) return 0.5;\r\n            return 0.5 + ((week - 12) * 0.5);\r\n        }\r\n\r\n        document.getElementById('calculator-form').addEventListener('submit', function(e) {\r\n            e.preventDefault();\r\n\r\n            \/\/ Get input values\r\n            const weight = parseFloat(document.getElementById('pre-pregnancy-weight').value);\r\n            const height = parseFloat(document.getElementById('height').value);\r\n            const weeks = parseInt(document.getElementById('weeks').value);\r\n            const isMultiple = document.getElementById('pregnancy-type').value === 'twin';\r\n\r\n            \/\/ Validate inputs\r\n            const weightError = document.getElementById('weight-error');\r\n            const heightError = document.getElementById('height-error');\r\n            \r\n            weightError.style.display = (weight < 30 || weight > 200) ? 'block' : 'none';\r\n            heightError.style.display = (height < 140 || height > 200) ? 'block' : 'none';\r\n\r\n            if (weightError.style.display === 'block' || heightError.style.display === 'block') {\r\n                return;\r\n            }\r\n\r\n            \/\/ Calculate results\r\n            const bmi = calculateBMI(weight, height);\r\n            const bmiCategory = getBMICategory(bmi);\r\n            const recommendedGain = getRecommendedGain(bmiCategory, isMultiple);\r\n            const expectedGain = getWeeklyGain(weeks);\r\n\r\n            \/\/ Display results\r\n            const result = document.getElementById('result');\r\n            result.classList.add('show');\r\n\r\n            document.getElementById('bmi-result').textContent = \r\n                `Your BMI: ${bmi.toFixed(1)}`;\r\n            \r\n            document.getElementById('weight-category').textContent = \r\n                `Weight Category: ${bmiCategory}`;\r\n            \r\n            document.getElementById('recommended-gain').textContent = \r\n                `Recommended pregnancy weight gain: ${recommendedGain[0]}-${recommendedGain[1]} kg`;\r\n            \r\n            document.getElementById('current-gain').textContent = \r\n                `Expected weight gain by week ${weeks}: ${expectedGain.toFixed(1)} kg`;\r\n            \r\n            const status = document.getElementById('status');\r\n            if (expectedGain < recommendedGain[0]) {\r\n                status.textContent = \"Note: Your weight gain is below recommendations\";\r\n                status.style.color = \"#e74c3c\";\r\n            } else if (expectedGain > recommendedGain[1]) {\r\n                status.textContent = \"Note: Your weight gain is above recommendations\";\r\n                status.style.color = \"#e74c3c\";\r\n            } else {\r\n                status.textContent = \"Great! Your weight gain is within recommended range\";\r\n                status.style.color = \"#27ae60\";\r\n            }\r\n        });\r\n    <\/script>\r\n<\/center><\/p>\n","protected":false},"excerpt":{"rendered":"","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-1668","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>Pregnancy Weight Gain Calculator - DonHit<\/title>\n<meta name=\"description\" content=\"Following pregnancy weight gain charts and consulting with healthcare professionals ensures both the mother\u2019s and baby\u2019s well-being are prioritized effectively.\" \/>\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\/pregnancy-weight-gain-calculator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pregnancy Weight Gain Calculator - DonHit\" \/>\n<meta property=\"og:description\" content=\"Following pregnancy weight gain charts and consulting with healthcare professionals ensures both the mother\u2019s and baby\u2019s well-being are prioritized effectively.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/donhit.com\/en\/calculator\/pregnancy-weight-gain-calculator\/\" \/>\n<meta property=\"og:site_name\" content=\"DonHit - World of Tools\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-20T10:03:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-06T04:15:48+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=\"1 minute\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pregnancy Weight Gain Calculator - DonHit","description":"Following pregnancy weight gain charts and consulting with healthcare professionals ensures both the mother\u2019s and baby\u2019s well-being are prioritized effectively.","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\/pregnancy-weight-gain-calculator\/","og_locale":"en_US","og_type":"article","og_title":"Pregnancy Weight Gain Calculator - DonHit","og_description":"Following pregnancy weight gain charts and consulting with healthcare professionals ensures both the mother\u2019s and baby\u2019s well-being are prioritized effectively.","og_url":"https:\/\/donhit.com\/en\/calculator\/pregnancy-weight-gain-calculator\/","og_site_name":"DonHit - World of Tools","article_published_time":"2024-12-20T10:03:24+00:00","article_modified_time":"2025-02-06T04:15:48+00:00","author":"DonHit","twitter_card":"summary_large_image","twitter_misc":{"Written by":"DonHit","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/donhit.com\/en\/calculator\/pregnancy-weight-gain-calculator\/#article","isPartOf":{"@id":"https:\/\/donhit.com\/en\/calculator\/pregnancy-weight-gain-calculator\/"},"author":{"name":"DonHit","@id":"https:\/\/donhit.com\/en\/#\/schema\/person\/0c6ff7dcd8ba4810c56a532f09c33148"},"headline":"Pregnancy Weight Gain Calculator","datePublished":"2024-12-20T10:03:24+00:00","dateModified":"2025-02-06T04:15:48+00:00","mainEntityOfPage":{"@id":"https:\/\/donhit.com\/en\/calculator\/pregnancy-weight-gain-calculator\/"},"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\/pregnancy-weight-gain-calculator\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/donhit.com\/en\/calculator\/pregnancy-weight-gain-calculator\/","url":"https:\/\/donhit.com\/en\/calculator\/pregnancy-weight-gain-calculator\/","name":"Pregnancy Weight Gain Calculator - DonHit","isPartOf":{"@id":"https:\/\/donhit.com\/en\/#website"},"datePublished":"2024-12-20T10:03:24+00:00","dateModified":"2025-02-06T04:15:48+00:00","description":"Following pregnancy weight gain charts and consulting with healthcare professionals ensures both the mother\u2019s and baby\u2019s well-being are prioritized effectively.","breadcrumb":{"@id":"https:\/\/donhit.com\/en\/calculator\/pregnancy-weight-gain-calculator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/donhit.com\/en\/calculator\/pregnancy-weight-gain-calculator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/donhit.com\/en\/calculator\/pregnancy-weight-gain-calculator\/#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":"Pregnancy Weight Gain 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\/1668","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=1668"}],"version-history":[{"count":2,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1668\/revisions"}],"predecessor-version":[{"id":2026,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/posts\/1668\/revisions\/2026"}],"wp:attachment":[{"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/media?parent=1668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/categories?post=1668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/donhit.com\/en\/wp-json\/wp\/v2\/tags?post=1668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}