{"id":55920,"date":"2015-10-24T15:53:03","date_gmt":"2015-10-24T13:53:03","guid":{"rendered":"http:\/\/wpcalc.com\/?p=55920"},"modified":"2026-09-28T09:31:10","modified_gmt":"2026-09-28T06:31:10","slug":"moles-and-grams","status":"publish","type":"post","link":"https:\/\/wpcalc.com\/en\/converters\/moles-and-grams\/","title":{"rendered":"Moles and Grams Converter"},"content":{"rendered":"<section class=\"not-prose calculator-box\" aria-labelledby=\"calculator-title\"><div class=\"flex items-baseline sm:items-center justify-between gap-2 sm:gap-3\"><div class=\"flex flex-col sm:flex-row sm:items-center gap-2\"><span class=\"icon icon-calculator text-primary-700! text-base! dark:text-primary-300!\" aria-hidden=\"true\"><\/span><h2 id=\"calculator-title\" class=\"text-lg font-display font-bold\">Grams \u2194 Moles Conversion Tool<\/h2><\/div><div class=\"calcdash-favorite group\">\n  <button type=\"button\" class=\"favorite\" id=\"favorite\" data-favorite-id=\"55920\" data-favorite-title=\"Moles and Grams\" data-favorite-url=\"https:\/\/wpcalc.com\/en\/converters\/moles-and-grams\/\" data-favorite-excerpt=\"Convert a substance\u2019s mass in grams to moles. Enter the Mass of substance and its Molar mass to calculate the Amount of substance.\" aria-label=\"Add to Favorites\" data-favorite-icon=\"icon icon-chemistry\">\n    <span class=\"icon icon-shape-star-empty\" aria-hidden=\"true\"><\/span>\n  <\/button>\n  <div class=\"calcdash-favorite__tip\" aria-hidden=\"true\">\n   <span class=\"favorite-tooltip\" id=\"favorite-tooltip\"><\/span>\n  <\/div>\n  <span class=\"sr-only\" role=\"status\" id=\"favorite-status\"><\/span>\n<\/div><\/div><form action=\"https:\/\/wpcalc.com\/en\/converters\/moles-and-grams\/\" method=\"POST\" class=\"calculator\" id=\"calculator-55920\" data-post=\"55920\"><fieldset class=\"fieldset-input\"><legend class=\"sr-only\">Input Fields<\/legend><div class=\"field has-term\" id=\"input-1\"><label for=\"field-1\">Mass of substance<\/label><div class=\"term\">m<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"number\" name=\"mass_of_substance\" id=\"field-1\" aria-describedby=\"calc-unit-1 calc-info-1\" step=\"0.01\" value=\"18\"\/><div class=\"unit\" id=\"calc-unit-1\">g<\/div><small id=\"calc-info-1\">Enter the mass of the substance in grams<\/small><\/div><div class=\"field has-term\" id=\"input-2\"><label for=\"field-2\">Molar mass<\/label><div class=\"term\">M<\/div>  <div class=\"absolute bottom-0 left-16 top-8 w-2 h-0.5 bg-blue-500\"><\/div><input type=\"number\" name=\"molar_mass\" id=\"field-2\" aria-describedby=\"calc-unit-2 calc-info-2\" step=\"0.001\" value=\"18.015\"\/><div class=\"unit\" id=\"calc-unit-2\">g\/mol<\/div><small id=\"calc-info-2\">Enter the molar mass of the substance (e.g. H\u2082O = 18.015 g\/mol)<\/small><\/div><\/fieldset><div class=\"buttons\"><button type=\"submit\" data-text=\"Re-Calculate\" id=\"calculate-button\" data-post=\"55920\">Calculate<\/button><button type=\"reset\">Reset<\/button><\/div><div class=\"field is-checkbox hidden!\" id=\"field-auto-calc\"><input type=\"checkbox\" id=\"auto-calc\"><label for=\"auto-calc\">Calculate automatically<\/label><small>If enabled, the result will update automatically when you change any value.<\/small><\/div><div class=\"fieldset-result is-hidden\" aria-labelledby=\"result-title\" aria-live=\"polite\" role=\"region\"> <h3 class=\"result-title bg-gradient-to-r from-primary-50 to-gray-50 dark:from-primary-900 dark:to-gray-800\" id=\"result-title\"><span class=\"icon icon-s-pulse\" aria-hidden=\"true\"><\/span> Your Results<\/h3><div class=\"result-box\"><div class=\"field-result\" id=\"output-1\"><span class=\"field-title\"><span>Amount of substance<\/span><\/span><span class=\"field-value\" id=\"result-1\" data-unit=\"mol\"><\/span><button type=\"button\" class=\"copy-result\" data-tooltip=\"Copy Result\" aria-label=\"Copy Result\"><span class=\"copy-icon icon icon-document-copy\" aria-hidden=\"true\"><\/span><\/button><\/div><\/div><div class=\"result-actions\"><button type=\"button\" class=\"copy-link\"><svg viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z\"\/><path d=\"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z\"\/><\/svg><span class=\"copy-link__text\">Copy link to this calculation<\/span><\/button><span class=\"sr-only\" role=\"status\" id=\"copy-link-status\"><\/span><\/div><\/div><a href=\"#respond\" class=\"hidden transition-opacity duration-300 opacity-0 w-50 text-sm justify-center items-center gap-2 px-4 py-2 rounded bg-gray-200 text-gray-700 hover:bg-gray-300\" id=\"leave-comment\"><span class=\"icon icon-comments\" aria-hidden=\"true\"><\/span>Leave a Comment<\/a><\/form><\/section><section id=\"calc-reactions\" class=\"not-prose hidden my-12 bg-gradient-to-r from-primary-50 to-gray-50 border border-indigo-100 rounded-xl px-6 py-4 shadow-sm\" data-post=\"55920\" aria-live=\"polite\" aria-labelledby=\"calc-reactions-title\"><p id=\"calc-reactions-title\" class=\"text-sm text-gray-500 text-center mb-2\">How did this result make you feel?<\/p><div role=\"group\" aria-labelledby=\"calc-reactions-title\" class=\"grid grid-cols-3 sm:flex sm:flex-row sm:justify-around gap-4 sm:items-center sm:flex-wrap\"><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"like\"><span class=\"reaction-count\" data-reaction-count=\"like\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude00 <\/span><span class=\"reaction-description font-medium\">Like <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"helpful\"><span class=\"reaction-count\" data-reaction-count=\"helpful\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\udca1 <\/span><span class=\"reaction-description font-medium\">Helpful <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"confused\"><span class=\"reaction-count\" data-reaction-count=\"confused\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude15 <\/span><span class=\"reaction-description font-medium\">Confused <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"disappointed\"><span class=\"reaction-count\" data-reaction-count=\"disappointed\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\ud83d\ude1e <\/span><span class=\"reaction-description font-medium\">Disappointed <\/span><\/button><button type=\"button\" aria-pressed=\"false\" class=\"reaction-btn flex flex-col items-center gap-1 text-sm text-gray-700 hover:text-primary-600 cursor-pointer transition-transform hover:scale-105\" data-reaction=\"inaccurate\"><span class=\"reaction-count\" data-reaction-count=\"inaccurate\">0<\/span><span class=\"reaction text-3xl\" aria-hidden=\"true\">\u274c <\/span><span class=\"reaction-description font-medium\">Inaccurate <\/span><\/button><\/div><div id=\"reaction-message\" class=\"hidden mt-8 rounded-md border border-primary-100 bg-white\/50 backdrop-blur-sm px-4 py-2 text-sm text-center shadow-sm\"><\/div><\/section><div class=\"calcdash-ad not-prose calcdash-ad--calc_result calcdash-ad--in-article\"><ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-1721569815777345\" data-ad-slot=\"6317458308\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\"><\/ins><script>(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div>\n<style id=\"wpcoderpro-inline-1\">.formula-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section class=\"formula-box\" aria-labelledby=\"formula-title\">\r\n\t<div id=\"formula-title\" class=\"not-prose font-display mb-4\"><span class=\"icon icon-formula\" aria-hidden=\"true\"><\/span><h2>Moles and Grams Formula<\/h2><\/div>\r\n\t<figure class=\"not-prose formula\">\r\n\t\t<figcaption class=\"formula-title\">Formula<\/figcaption>\r\n\t\t<div class=\"text-base text-gray-800\" id=\"formula\">\n\\[ n = \\frac{m}{M} \\]\n<\/div>\r\n\t<\/figure>\r\n\t<\/p>\n<p><strong>Where:<\/strong><\/p>\n<ul>\n<li>\\(n\\) \u2014 amount of substance (mol)<\/li>\n<li>\\(m\\) \u2014 mass of substance (g)<\/li>\n<li>\\(M\\) \u2014 molar mass (g\/mol)<\/li>\n<\/ul>\n<p>Dividing a substance\u2019s mass by its molar mass gives its amount in moles. The units cancel as \\(\\mathrm{g}\\div(\\mathrm{g\/mol})=\\mathrm{mol}\\).<\/p>\n<p>\r\n<\/section>\n<style id=\"wpcoderpro-inline-459\">.calculation-box {\r\n\tborder-bottom: none !important;\r\n}<\/style><section id=\"calculation\" class=\"calculation-box\" aria-labelledby=\"calculation-title\">\r\n\t<div id=\"calculation-title\" class=\"not-prose font-display\"><span class=\"icon icon-unordered-list\" aria-hidden=\"true\"><\/span><h2>Moles and Grams \u2013 Calculation Example<\/h2><\/div>\r\n\r\n<\/p>\n<p><strong>Example:<\/strong> Find the amount of water in an 18 g sample. Use water\u2019s molar mass of 18.015 g\/mol, the calculator\u2019s default values.<\/p>\n<p>\\[ n = \\frac{18\\ \\mathrm{g}}{18.015\\ \\mathrm{g\/mol}} \\approx 0.99917\\ \\mathrm{mol} \\]<\/p>\n<p><strong>Result:<\/strong> 18 g of water is approximately 0.99917 mol.<\/p>\n<p>\n\r\n<\/section>\n<h2>How to use the calculator<\/h2>\n<ol>\n<li>Enter the sample\u2019s mass in the <strong>Mass of substance<\/strong> field, in grams. Use the mass of the specific substance you want to convert, not the combined mass of a mixture unless that mixture is the substance being measured.<\/li>\n<li>Enter that substance\u2019s <strong>Molar mass<\/strong> in grams per mole (g\/mol). For example, use 18.015 g\/mol for water.<\/li>\n<li>Read <strong>Amount of substance<\/strong> in moles (mol). The result is the entered mass divided by the entered molar mass.<\/li>\n<\/ol>\n<p>To try the example above, leave the default values of 18 g and 18.015 g\/mol in place. If your mass is in milligrams or kilograms, convert it to grams before entering it.<\/p>\n<h2>What grams and moles tell you<\/h2>\n<p>Grams measure mass; moles measure amount of substance. One mole corresponds to exactly \\(6.02214076\\times10^{23}\\) specified entities, such as molecules, atoms, or ions. A mass alone does not tell you how many moles you have, because substances differ in the mass of their constituent particles. For example, a gram of a substance with a low molar mass contains more moles than a gram of a substance with a high molar mass.<\/p>\n<p>Molar mass connects these two measurements. A substance with a molar mass of 18.015 g\/mol has a mass of 18.015 g per mole. Dividing any sample mass in grams by 18.015 g\/mol therefore gives the amount of that substance in moles. The calculator performs this grams-to-moles conversion only: it accepts a mass and a molar mass, then returns moles.<\/p>\n<p>Moles are useful when interpreting chemical equations, whose coefficients describe ratios of amounts of substance rather than ratios of masses. They also help with solution calculations. Once you know the moles of dissolved solute, you can use the solution volume to find its <a href=\"https:\/\/wpcalc.com\/en\/converters\/molar-concentration\/\">molar concentration<\/a>. Be sure that the mass you enter belongs to the solute, rather than to the entire solution.<\/p>\n<h2>Assumptions and practical tips<\/h2>\n<p><strong>Choose the correct molar mass.<\/strong> The calculator does not identify a chemical from its name or formula. Find the molar mass for the exact substance or chemical formula you are using. For a compound, add the atomic masses of all atoms in its formula. A hydrate, for example, has a different molar mass from its anhydrous form. Enter a positive molar mass; a value of zero cannot be used as a divisor.<\/p>\n<p><strong>Keep units consistent.<\/strong> Enter mass in grams and molar mass in g\/mol. If a balance reports milligrams, divide that reading by 1,000 to obtain grams. If it reports kilograms, multiply by 1,000. For other unit prefixes, a <a href=\"https:\/\/wpcalc.com\/en\/converters\/metric-prefix\/\">metric prefix converter<\/a> can help you check the scale before entering the mass.<\/p>\n<p><strong>Interpret precision sensibly.<\/strong> The calculated number of moles depends on both inputs. If the sample mass is approximate or the molar mass is rounded, extra digits in the result do not make it more accurate. In the default example, 18 g divided by 18.015 g\/mol is slightly less than one mole; whether to report it as 0.999 mol or about 1 mol depends on how precisely the 18 g mass was measured.<\/p>\n<p><strong>Converting in the other direction?<\/strong> To calculate grams from a known number of moles, rearrange the same relationship to \\(m=nM\\): multiply moles by molar mass in g\/mol. This calculator does not have a moles input, so that reverse calculation must be done separately.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Convert a substance\u2019s mass in grams to moles. Enter the Mass of substance and its Molar mass to calculate the Amount of substance.<\/p>\n","protected":false},"author":70,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3],"tags":[17],"class_list":["post-55920","post","type-post","status-publish","format-standard","hentry","category-converters","tag-chemistry-units"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/55920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/users\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/comments?post=55920"}],"version-history":[{"count":2,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/55920\/revisions"}],"predecessor-version":[{"id":65299,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/posts\/55920\/revisions\/65299"}],"wp:attachment":[{"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/media?parent=55920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/categories?post=55920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpcalc.com\/en\/wp-json\/wp\/v2\/tags?post=55920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}