Chemical Formula Calculator

Enter a chemical name or formula into the Chemical Formula Calculator and get the molecular weight, element composition, number of elements, and compound type — toggle step-by-step reasoning or an element composition chart to see exactly how the numbers break down.

Enter either a chemical name or chemical formula

Results

Converted Result

--

Compound Type

--

Molecular Weight

--

Number of Elements

--

Element Composition

Results Table

Frequently Asked Questions

How do I convert between chemical names and formulas?

Simply enter either a chemical name (like 'sodium chloride') or a chemical formula (like 'NaCl') in the input field. The calculator will automatically detect what you've entered and convert it to the other format.

What types of chemical compounds are supported?

The calculator supports ionic compounds, covalent compounds with prefixes, binary acids (hydro-...-ic), oxoacids (...ate→...ic / ...ite→...ous), and hydrates with water molecules.

How are ionic compounds with transition metals handled?

For transition metals with variable charges, Roman numerals are automatically added when the charge can be determined from charge balance. For example, FeCl₃ becomes iron(III) chloride.

What is the step-by-step reasoning feature?

When enabled, this feature shows the logical steps used to convert between name and formula, including identification of compound type, ion charges, and naming rules applied.

How accurate is the molecular weight calculation?

Molecular weights are calculated using standard atomic masses from the periodic table and are accurate to 2 decimal places for most common compounds and elements.

Can the calculator handle polyatomic ions?

Yes, the calculator recognizes a comprehensive set of common polyatomic ions like sulfate (SO₄²⁻), nitrate (NO₃⁻), and phosphate (PO₄³⁻) in both directions.

What should I do if my compound isn't recognized?

Make sure to use proper chemical notation with correct capitalization (first letter uppercase, second lowercase). For complex compounds, try breaking them down into simpler components.

More Chemistry Tools