returns a version of the reaction rxn in which the stoichiometric coefficients for elements in the reactants and products are balanced.


  • rxn should be a ChemicalReaction object or a string that can be converted into a reaction.
  • If the reaction cannot be balanced, a Failure object is returned.


open allclose all

Basic Examples  (3)

Balance a chemical reaction:

Balance a reaction entered as a string:

Balance a reaction with charged species:

Scope  (1)

Reactions are not balanceable if some elements are missing:

Applications  (1)

Write a function to return balanced combustion reactions:

Find the balanced reactions to combust several hydrocarbons:

Possible Issues  (1)

If a reaction cannot be balanced uniquely, the balancing with the lowest sum of stoichiometric coefficients is returned:

A different balancing of the same reaction:

Neat Examples  (1)

Balance a complicated redox reaction:

Wolfram Research (2021), ReactionBalance, Wolfram Language function,


Wolfram Research (2021), ReactionBalance, Wolfram Language function,


Wolfram Language. 2021. "ReactionBalance." Wolfram Language & System Documentation Center. Wolfram Research.


Wolfram Language. (2021). ReactionBalance. Wolfram Language & System Documentation Center. Retrieved from


@misc{reference.wolfram_2022_reactionbalance, author="Wolfram Research", title="{ReactionBalance}", year="2021", howpublished="\url{}", note=[Accessed: 07-October-2022 ]}


@online{reference.wolfram_2022_reactionbalance, organization={Wolfram Research}, title={ReactionBalance}, year={2021}, url={}, note=[Accessed: 07-October-2022 ]}