molecalculator

Moles & Molar Mass

Sodium Hydroxide Formula: NaOH and Its Molar Mass

Calculator No. 01-1199 · Updated · Formula and assumptions shown below

Amount of NaOH 1.0001 mol
Formula units
6.023 × 1023 units
Result, rounded to a whole number
Sodium hydroxide mass
40 g
Set in the form below
Molar mass of NaOH
39.997 g/mol
Set in the form below
You enter
Sodium hydroxide mass (g), Molar mass of NaOH (g/mol)
You get
Amount of NaOH (mol), Formula units (units)
Rounding
4 dp · 0 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

The chemical formula for sodium hydroxide is NaOH. This calculator uses a sample mass and the compound’s molar mass to find the amount in moles, then reports the equivalent number of formula units.

Formula

Sodium hydroxide has the formula NaOH: one sodium atom, one oxygen atom, and one hydrogen atom per formula unit. Its molar mass is approximately 39.997 g/mol, calculated from the abridged standard atomic weights Na = 22.990, O = 15.999, and H = 1.008 g/mol. For a sample, the amount of substance is n = m / M, where n is amount in moles (mol), m is mass in grams (g), and M is molar mass in grams per mole (g/mol). The number of formula units is N = n × NA, where N is the count of formula units and Avogadro’s constant NA is exactly 6.02214076 × 1023 mol−1.

The calculator takes mass in grams and molar mass in g/mol. Its first result is the amount of sodium hydroxide in moles; its second is the corresponding formula-unit count. The molar-mass field is editable for calculations using a specified value, but 39.997 g/mol is the default based on the atomic weights shown above.

Worked Example

Using the default inputs, the sample mass is 40 g and the molar mass is 39.997 g/mol.

  1. Calculate amount: n = m / M = 40 g / 39.997 g/mol = 1.000075 mol, which rounds to 1.0001 mol at four decimal places.
  2. Calculate formula units using the unrounded amount: N = 1.000075 mol × 6.02214076 × 1023 mol−1 ≈ 6.0226 × 1023 formula units. To zero decimal places, the calculator displays approximately 602,259,000,000,000,000,000,000.

The formula-unit result is a count, not a mass or volume. Rounding the amount before calculating the count can change the final displayed digits; the calculator carries the underlying value through the calculation.

Assumptions

  • The input mass represents pure sodium hydroxide, and the specified molar mass applies to the material being counted.
  • The calculation converts mass to amount and count; it does not account for water absorbed from air, impurities, or a solution’s concentration.
  • “Formula units” is used because solid sodium hydroxide is an ionic compound, not a collection of discrete NaOH molecules.

What NaOH Means

NaOH is an empirical formula that gives the simplest whole-number ratio of ions in the compound: sodium ions (Na+) and hydroxide ions (OH−) occur in a 1:1 ratio. In a solid crystal, those ions form an extended ionic lattice. The formula therefore describes the composition ratio, rather than a separate molecule that exists as an isolated unit in the solid.

In water, sodium hydroxide dissociates into sodium and hydroxide ions. This explains why it is classified as a strong base: in a dilute aqueous solution, the dissolved compound provides hydroxide ions readily. The formula itself does not state how much is dissolved, the solution’s concentration, or its pH. Those require additional information, such as the amount of NaOH and the final solution volume, and pH also depends on temperature and solution conditions.

How the Formula Is Used

The formula NaOH is useful for identifying the substance and for stoichiometric calculations. For example, a balanced reaction equation uses coefficients alongside chemical formulas to show relative amounts. The formula tells you that each formula unit contains one sodium and one hydroxide ion; the balanced equation determines how many units react in a particular reaction.

Mass-to-mole conversion is a common first step in chemistry calculations. If a problem gives 2.00 g of pure NaOH, dividing by about 39.997 g/mol gives about 0.0500 mol. That amount can then be used in a reaction calculation or, with an appropriate final solution volume, a concentration calculation. Mass alone cannot determine molarity: volume is also required.

For a solution, molarity is amount of solute divided by final solution volume in liters. The volume means the total volume of the prepared solution, not simply the volume of water initially used. This calculator does not calculate molarity because it does not ask for solution volume.

Common Confusions and Limitations

  • Formula versus name: sodium hydroxide is the compound’s name; NaOH is its chemical formula. “Caustic soda” is a common name, not a different formula.
  • Formula units versus molecules: NaOH is ionic, so “formula units” is the more precise term for counted units of solid material.
  • Molar mass versus sample mass: 39.997 g/mol is a property calculated from the formula and atomic weights. It is not the mass of every sample; the sample mass is an input.
  • Pure material versus actual reagent: sodium hydroxide is hygroscopic and can absorb moisture from air. A weighed sample that has taken up water or contains impurities may not contain the assumed amount of NaOH.

The calculator is a stoichiometric tool, not a purity test. Its count is only as reliable as the mass and molar-mass assumptions. For a real solution, concentration can also be affected by measurement uncertainty, temperature-related volume changes, and the material’s actual composition.

Safety and Handling

Sodium hydroxide is strongly corrosive. Contact can cause severe skin and eye burns, and dissolving it in water releases heat. Avoid contact with the solid and its solutions; use appropriate protective equipment and follow the applicable safety data sheet (SDS) and local procedures. If handling is needed for bench work, follow your lab method, the safety data sheet (SDS) and your supervisor. This calculation is for study and lab-planning arithmetic, not a handling or preparation procedure.

Frequently Asked Questions

What is the chemical formula for sodium hydroxide?
Its formula is NaOH: one sodium (Na), one oxygen (O), and one hydrogen (H).

What is the molar mass of NaOH?
Using Na = 22.990, O = 15.999, and H = 1.008 g/mol, the molar mass is 39.997 g/mol, commonly rounded to about 40.00 g/mol.

Is NaOH a molecule?
Solid sodium hydroxide is an ionic compound arranged in a lattice. NaOH gives the ratio of its ions, so formula unit is more accurate than molecule when describing the solid.

Does NaOH mean the same thing as sodium hydroxide?
Yes. NaOH is the chemical formula for sodium hydroxide; the letters identify sodium, oxygen, and hydrogen in a 1:1:1 atom ratio.

Can the formula alone tell me a solution’s pH?
No. You also need solution information, including concentration, and pH depends on conditions such as temperature. The formula identifies the compound, not the properties of a particular solution.

Related

Formula used
in m | Sodium hydroxide mass | g | 40 | 0
in mm | Molar mass of NaOH | g/mol | 39.997 | 0.001
out n | Amount of NaOH | mol | m / mm | 4
out f | Formula units | units | n * 6.02214076e23 | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →