MyPerfectWords - Essay Writing Service
  • Writers
  • Services
    • Descriptive Essay
    • Argumentative Essay
    • Nursing Essay
    • History Essay
    • Research Paper
    • Term Paper
    • Thesis
    • Dissertation
    • Admission Essay
    • View All Services
  • About Us
  • Pricing
  • Samples
  • Blog
Place an Order
  • Login
  • Signup
MyPerfectWords - Essay Writing Service
MPW Logo
  • Writers IconWriters
  • Services IconServices
    • Descriptive Essay
    • Argumentative Essay
    • Nursing Essay
    • History Essay
    • Research Paper
    • Term Paper
    • Thesis
    • Dissertation
    • Admission Essay
    • View All Services
  • About Us IconAbout Us
  • Pricing IconPricing
  • Blog IconBlog
  • Account IconAccount
    • Login
    • Sign Up
Place an Order
Email Iconinfo@myperfectwords.comPhone Icon(+1) 888 687 4420

Home

>

Blog

>

Chemistry Homework Tips

>

How To Write Chemical Formulas

How To Write Chemical Formulas

NA

Written ByNova A.

Reviewed By Thomas K.

11 min read

Published: Mar 10, 2026

Last Updated: Mar 12, 2026

How To Write Chemical Formulas

Writing chemical formulas is one of those chemistry skills that feels impossible until someone explains it the right way. Once you understand the rules, you can work out formulas for hundreds of compounds without memorizing each one.

This guide walks you through how to write chemical formulas for molecular, covalent, and ionic compounds with clear steps and familiar examples.

Before you write a single formula, you need to answer one question: What type of compound is this? The answer changes everything about how you approach it.

If you want to know useful chemistry homework tips, then visit our blog. 

⚗️

Understand Chemical Formulas Easily

Learn how to read, write, and apply chemical formulas with expert guidance

Get Chemistry Homework Help

Master chemical formulas and improve your chemistry skills today.

What Is a Chemical Formula?

A chemical formula is a shorthand way of showing which elements are in a compound and how many atoms of each one are present. H2O tells you there are two hydrogen atoms and one oxygen atom. NaCl tells you there's one sodium and one chlorine.

The numbers written below and to the right of an element symbol are called subscripts. No subscript means there's just one atom of that element. A subscript of 2 means two atoms, and so on.

Chemical formulas don't tell you how the atoms are arranged, just what's there. For that, you'd need a structural formula, which is a different thing entirely.

The Three Main Formula Types You'll Encounter

Most chemistry homework involves three types:

  • Molecular formulas show the actual number of atoms in one molecule of a substance. CO2 is a molecular formula. It tells you exactly what's in one molecule of carbon dioxide.
  • Covalent compound formulas cover compounds formed when two nonmetals bond together by sharing electrons. CO2, H2O, and NH3 are all covalent.
  • Ionic compound formulas cover compounds formed between a metal and a nonmetal (or a polyatomic ion). NaCl, CaCl2, and Mg5N2 are all ionic. These use a balancing rule called the crisscross method.

Your homework question will usually tell you which type you're working with, or you can figure it out by looking at what elements are involved.

How To Write Covalent Compound Formulas

Covalent compounds form when two nonmetals combine. Oxygen, nitrogen, carbon, hydrogen, and the halogens are all nonmetals.

Writing covalent formulas is fairly straightforward once you know the naming rules, because the name usually tells you exactly what's in the formula.

The prefixes to know:

Prefix

Meaning

mono-

1

di-

2

tri-

3

tetra-

4

penta-

5

Step 1: Read the compound name. Take "dinitrogen tetroxide." The name tells you there are 2 nitrogen atoms and 4 oxygen atoms.

Step 2: Write the element symbols in the order they appear. N comes first, then O.

Step 3: Add the subscripts from the prefixes. N2O4.

That's it. The name does most of the work for you.

Watch out for these exceptions:

  • Mono- is dropped when it's the first element. "Carbon dioxide" has one carbon, not zero.
  • Water (H2O) and ammonia (NH3) are common compounds with fixed formulas you should just memorize.
  • Diatomic elements like hydrogen, oxygen, nitrogen, and the halogens always exist as pairs when they appear alone: H2, O2, N2, F2, Cl2, Br2, I2.

Common covalent compounds:

Name

Formula

Water

H2O

Carbon dioxide

CO2

Ammonia

NH3

Sulfur dioxide

SO2

Dinitrogen tetroxide

N2O4

How To Write Ionic Compound Formulas

Ionic compounds form between a metal (which gives up electrons and becomes a positively charged cation) and a nonmetal or polyatomic ion (which gains electrons and becomes a negatively charged anion).

The key rule: the total positive charge must equal the total negative charge. The compound has to be electrically neutral.

The fastest way to do this is the crisscross method.

The Crisscross Method (Step-by-Step)

Example: Calcium chloride

Step 1: Find the charge of each ion. Calcium (Ca) has a charge of +2. Chlorine as an ion (Cl-) has a charge of -1.

If you're not sure of the charges, check your periodic table. Metals in Group 1 have +1 charges, Group 2 have +2, and so on. Common anion charges are on most reference sheets.

Step 2: Write the symbols next to each other. Ca Cl

Step 3: Crisscross the numbers. Take the number from the calcium charge (2) and make it the subscript for chlorine. Take the number from the chlorine charge (1) and make it the subscript for calcium.

Ca1Cl2

Step 4: Drop any subscript of 1. CaCl2

Step 5: Check that it balances. Ca2+ gives +2. Two Cl- ions give -2. Total charge = 0. 

🔬

Solve Chemistry Problems Using Correct Formulas

Get detailed assistance for applying chemical formulas in reactions and calculations

Order Chemistry Homework

Master chemical formulas and apply them correctly in every reaction.

More worked examples:

Magnesium nitride (Mg and N3-)

  • Mg has a +2 charge. Nitrogen as an ion has a -3 charge.
  • Crisscross: Mg5N2
  • Check: 3 × (+2) = +6, 2 × (-3) = -6. Balanced. 

Sodium chloride (Na and Cl)

  • Na has a +1 charge. Cl- has a -1 charge.
  • Crisscross: Na1Cl1 = NaCl
  • Check: (+1) + (-1) = 0. Balanced. 

What To Do With Polyatomic Ions

Polyatomic ions are groups of atoms that carry a charge together, like nitrate (NO3-) or sulfate (SO4²-). The formula rules are the same, but you need to use parentheses when the subscript is more than 1.

Example: Calcium nitrate

  • Ca2+ and NO3-
  • Crisscross: Ca1(NO3)2 = Ca(NO3)2
  • The parentheses keep the nitrate group intact. Without them, Ca NO32 would mean something completely different.

Common polyatomic ions to know:

Ion

Formula

Charge

Nitrate

NO3

-1

Sulfate

SO4

-2

Phosphate

PO4

-3

Hydroxide

OH

-1

Ammonium

NH4

+1

How To Write Molecular Formulas

A molecular formula shows the exact number of each atom in one molecule. You'll mostly encounter these when you're told the compound or given its structure, rather than needing to derive them from scratch.

The steps are simple:

Step 1: Identify every element in the molecule.

Step 2: Count the atoms of each element.

Step 3: Write the element symbols with their atom counts as subscripts.

The convention for order is carbon first, hydrogen second, then all other elements in alphabetical order. So glucose is C6H12O6, not H12C6O6.

If there's only one atom of an element, you don't write a subscript at all. CO2 not C1O2.

Also, visit our blog to know about how to balance chemical equations.

Quick Reference: Chemical Formula Rules

Situation

Rule

Example

Covalent compound from name

Use prefixes as subscripts

di = 2, tri = 3

Ionic compound

Crisscross the charges

Ca2+ + Cl- = CaCl2

Subscript of 1

Drop it (write nothing)

NaCl not Na1Cl1

Polyatomic ion with subscript >1

Use parentheses

Ca(NO3)2

A diatomic element alone

Always pair it

O2, H2, N2

Common Mistakes Students Make

  • Writing the charge instead of the subscript. The crisscross method uses the charge number as the subscript, not as the symbol. Ca2+Cl- is not a formula. CaCl2 is.
  • Forgetting to reduce. If both subscripts share a common factor, reduce them. Mg2+ and O2- would give Mg2O2 by crisscross, but that reduces to MgO. Ionic formulas use the simplest whole-number ratio.
  • Skipping parentheses for polyatomic ions. Ca(NO3)2 and CaNO32 are not the same thing. Always use parentheses when a polyatomic ion has a subscript greater than 1.
  • Mixing up covalent and ionic rules. The crisscross method only applies to ionic compounds. Don't try to use it on CO2.

Once you know whether you're working with a covalent compound or an ionic one, the rest of the process follows from clear rules every time.

Practice the crisscross method with a few examples, and it'll start to feel automatic. If you're still working through a chemistry assignment and need more hands-on help, you're not stuck.

Learn about the difference between organic and inorganic chemistry in our new blog. 

Master Chemical Formulas for Better Chemistry Grades

Learn the concepts and techniques behind formulas with professional guidance

  • Assistance with empirical and molecular formulas
  • Step-by-step homework help
  • Clarification of complex chemical concepts
  • unlimited revisions

Understanding chemical formulas makes chemistry simpler and more manageable.

Get Started Now

Frequently Asked Questions

What's the difference between a molecular formula and a chemical formula?

Chemical formula is the general term for any shorthand notation showing the elements in a compound. A molecular formula is a specific type that shows the exact number of each atom in one molecule. All molecular formulas are chemical formulas, but not all chemical formulas are molecular formulas.

How do I know if a compound is ionic or covalent?

Check what elements it contains. A metal combined with a nonmetal is almost always ionic. Two nonmetals bonded together is covalent. If you see hydrogen, oxygen, nitrogen, carbon, or halogens bonding to each other, that's covalent territory.

What does the subscript in a chemical formula mean?

The subscript tells you how many atoms of that element are in one unit of the compound. In H₂O, the 2 means there are two hydrogen atoms. The O has no subscript, which means there's one oxygen atom.

Why do some ionic formulas need parentheses?

Parentheses are used when a polyatomic ion (a group of atoms that behaves as a single charged unit) appears more than once in a formula. In Ca(NO₃)₂, the parentheses show that the entire NO₃ group appears twice, not just the oxygen.

Do I need to memorize all the ionic charges?

For common ions, yes. Group 1 metals are always +1, Group 2 metals are always +2. For transition metals and common polyatomic ions, most teachers provide a reference sheet, but knowing nitrate, sulfate, phosphate, and hydroxide will cover most homework problems.

What is the crisscross method?

The crisscross method is a shortcut for writing ionic formulas. You take the charge number of each ion and swap them to become the subscripts. Calcium (+2) and chlorine (-1) become CaCl₂. It works because it automatically balances the positive and negative charges.

How do I write formulas for compounds with Roman numerals in the name?

The Roman numeral tells you the charge of the metal. Iron(III) means Fe has a +3 charge. So iron(III) chloride has Fe³⁺ and Cl⁻, giving you FeCl₃ by the crisscross method.

Does the order of elements in a chemical formula matter?

Yes. The convention is metal first in ionic compounds, carbon first in organic molecular formulas, and for covalent inorganic compounds, the element with fewer atoms of that type goes first. Your teacher may also follow the electronegativity order, so check what convention your class uses.

Nova A.

Nova A.Verified

Nova Allison is a Digital Content Strategist with over eight years of experience. Nova has also worked as a technical and scientific writer. She is majorly involved in developing and reviewing online content plans that engage and resonate with audiences. Nova has a passion for writing that engages and informs her readers.

Specializes in:

MarketingThesisLaw,Masters Essay,Medical school essayCollege Admission EssayPersuasive EssayPolitical Science EssayLawannotated bibliography essayJurisprudenceLiteratureArgumentative EssayBusiness EssayAnalytical EssayEducationN
Read All Articles by Nova A.

Keep Reading

General Writing10 min read

Chemistry Homework Tips: Strategies That Actually Work

Math Homework Tips
General Writing15 min read

Chemistry Homework Topics: 100+ Ideas for Every Level

Chemistry Homework Topics
General Writing8 min read

How To Balance Chemical Equations (Step-by-Step)

How To Balance Chemical Equations
General Writing8 min read

Organic Chemistry vs Inorganic Chemistry: What's the Difference?

Organic Chemistry Vs Inorganic Chemistry

On this Page

    MPW Logo White
    • Phone Icon(+1) 888 687 4420
    • Email Iconinfo@myperfectwords.com
    facebook Iconinstagram Icontwitter Iconpinterest Iconyoutube Icontiktok Iconlinkedin Icongoogle Icon

    Company

    • About
    • Samples
    • FAQs
    • Reviews
    • Pricing
    • Referral Program
    • Jobs
    • Contact Us

    Legal & Policies

    • Terms
    • Privacy Policy
    • Cookies Policy
    • Refund Policy
    • Academic Integrity

    Resources

    • Blog
    • EssayBot
    • AI Detector & Humanizer
    • All Services

    We Accept

    MasterCardVisaExpressDiscover

    Created and promoted by Skyscrapers LLC © 2026 - All rights reserved

    Disclaimer: The materials provided by our experts are meant solely for research and educational purposes, and should not be submitted as completed assignments. MyPerfectWords.com firmly opposes and does not support any form of plagiarism.

    dmca Imagesitelock Imagepci Imagesecure Image