Should I use the formula or the name of the chemical in a sentence?

In a scientific paper, when quoting a chemical, is it more appropriate to write its formula or its name?

For example:

Ion exchange removed nitrate ions from solution.

Or:

Ion exchange removed NO3- from solution.


It depends on the situation (context). If the English term is clear, unambiguous, and helpful, use it. If that term leaves doubt about the exact chemical you mean, and this makes an important difference, give the formula to be precise. There are times you may want to give both, even if the identity is well known, just to track a process: "Electrolysis can split water (H2O) into its constituents hydrogen and oxygen."