ReactionBalancedQ[rxn]
returns True if the given chemical reaction is balanced, and False otherwise.
ReactionBalancedQ
ReactionBalancedQ[rxn]
returns True if the given chemical reaction is balanced, and False otherwise.
Details
- rxn should be a ChemicalReaction object.
- A reaction is balanced if the element counts and net charge for the reactants and products are equal.
Examples
open all close allBasic Examples (2)
ReactionBalancedQ[ChemicalReaction["FeCl2 + Na3PO4 -> Fe3(PO4)2 + NaCl"]]ReactionBalancedQ[ChemicalReaction["3FeCl2 + 2Na3PO4 -> Fe3(PO4)2 + 6NaCl"]]A reaction is balanced only if charges and mass are balanced:
ReactionBalancedQ[ChemicalReaction["Cu+(aq) + Fe(s) → Fe+3(aq) + Cu(s)"]]Balancing the reaction will account for the charges
ReactionBalance[ChemicalReaction["Cu+(aq) + Fe(s) → Fe+3(aq) + Cu(s)"]]Neat Examples (1)
A reaction that can be balanced by different sets of coefficients:
ReactionBalancedQ /@ {ChemicalReaction[Association[ChemicalFormula[{"C" -> 1, "O" -> 1}] -> 1,
ChemicalFormula[{"C" -> 1, "O" -> 2}] -> 1, ChemicalFormula[{"H" -> 2}] -> 7] ->
Association[ChemicalFormula[{"C" -> 1, "H" -> 4}] -> 2, ChemicalFormula[{"H" -> 2, "O" -> 1}] ->
3]], ChemicalReaction[Association[ChemicalFormula[{"C" -> 1, "O" -> 1}] -> 2,
ChemicalFormula[{"C" -> 1, "O" -> 2}] -> 1, ChemicalFormula[{"H" -> 2}] -> 10] ->
Association[ChemicalFormula[{"C" -> 1, "H" -> 4}] -> 3, ChemicalFormula[{"H" -> 2, "O" -> 1}] ->
4]], ChemicalReaction[Association[ChemicalFormula[{"C" -> 1, "O" -> 1}] -> 1,
ChemicalFormula[{"C" -> 1, "O" -> 2}] -> 2, ChemicalFormula[{"H" -> 2}] -> 11] ->
Association[ChemicalFormula[{"C" -> 1, "H" -> 4}] -> 3, ChemicalFormula[{"H" -> 2, "O" -> 1}] ->
5]]}ReactionBalance finds the one with the lowest sum of coefficients:
ReactionBalance[ChemicalReaction[Association[ChemicalFormula[{"C" -> 1, "O" -> 1}] -> 1,
ChemicalFormula[{"C" -> 1, "O" -> 2}] -> 1, ChemicalFormula[{"H" -> 2}] -> 1] ->
Association[ChemicalFormula[{"C" -> 1, "H" -> 4}] -> 1, ChemicalFormula[{"H" -> 2, "O" -> 1}] ->
1]]]Related Guides
History
Text
Wolfram Research (2021), ReactionBalancedQ, Wolfram Language function, https://reference.wolfram.com/language/ref/ReactionBalancedQ.html.
CMS
Wolfram Language. 2021. "ReactionBalancedQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ReactionBalancedQ.html.
APA
Wolfram Language. (2021). ReactionBalancedQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ReactionBalancedQ.html
BibTeX
@misc{reference.wolfram_2026_reactionbalancedq, author="Wolfram Research", title="{ReactionBalancedQ}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/ReactionBalancedQ.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_reactionbalancedq, organization={Wolfram Research}, title={ReactionBalancedQ}, year={2021}, url={https://reference.wolfram.com/language/ref/ReactionBalancedQ.html}, note=[Accessed: 13-June-2026]}