Ion/Atom Counter Calculator

Enter a chemical formula and choose what to count — then specify the element or ion you're targeting to get the exact count per formula unit, along with the formula mass and total atoms per formula unit.

Case sensitive. Supports parentheses, nesting, and hydrates (dot notation)

Enter element symbol (Ca, O) or ion formula (PO4, SO4)

Results

Count per Formula Unit

--

Formula Mass

--

Total Atoms per Formula Unit

--

Element Distribution per Formula Unit

Results Table

Frequently Asked Questions

What is a formula unit?

A formula unit is the smallest whole-number ratio of ions or atoms represented by a chemical formula. It represents the simplest ratio of elements in an ionic compound or the actual molecular composition in covalent compounds.

How do I count polyatomic ions like PO4 or SO4?

Select 'Polyatomic Ion' as your count mode and enter the ion formula exactly as it appears (e.g., PO4, SO4, NO3). The calculator will find all occurrences of that specific ion grouping within the compound.

Can the calculator handle complex formulas with parentheses?

Yes! The calculator supports parentheses, nesting, and hydrates. Examples include Al2(SO4)3, Ca(OH)2, and CuSO4·5H2O. Make sure to use proper capitalization for element symbols.

Why is capitalization important in chemical formulas?

Element symbols are case-sensitive. For example, 'Ca' represents calcium, while 'ca' would be interpreted incorrectly. Always use proper capitalization: first letter uppercase, second letter (if any) lowercase.

What's the difference between counting atoms and ions?

When counting atoms, you're looking for individual elements (like O or Ca). When counting ions, you're looking for specific groupings that act as units (like PO4³⁻ or SO4²⁻). The calculator can count both depending on your selection.

How does the calculator handle hydrates?

Hydrates use dot notation (·) to separate the main compound from water molecules. For example, CuSO4·5H2O contains 1 copper, 1 sulfur, and 9 oxygen atoms (4 from SO4 plus 5 from water molecules).

Can I count multiple elements at once?

The calculator counts one element or ion at a time, but it provides a complete breakdown table showing all elements present in the formula unit. This lets you see the count for every element simultaneously.

More Chemistry Tools