ChemicalReaction[reactantsproducts]
represents a chemical reaction between the given reactants and products.
ChemicalReaction
ChemicalReaction[reactantsproducts]
represents a chemical reaction between the given reactants and products.
Details
- reactants and products may be given as lists, {chem1, chem2,…} or associations of chemicals and amounts <|chemini,…|> where possible forms for chemi include:
-
ChemicalFormula[…] an entity with the given formula Molecule[…] a molecule Entity[…] a "Chemical", "Element" or "Particle" entity EntityInstance[…,"Phase""phase"] a chemical species with a given phase - ChemicalReaction["A + B → C + D"] will attempt to interpret the input string, creating Molecule or ChemicalFormula objects when possible.
- A ChemicalReaction object need not be balanced; elements may appear on only one side or the other of the reaction. Use ReactionBalance to return a balanced reaction.
- ChemicalReaction[…]["prop"] returns the value of "prop" for a given ChemicalReaction.
- Possible values for "prop" include:
-
"Reactants" list of reactants "ReactantCounts" an Association of reactantini "Products" list of products "ProductCounts" an Association of productini "EquationDisplay" a display form of the reaction "EquationString" a string form of the reaction "ReverseReaction" a ChemicalReaction with the reactants and products swapped "ElementaryReactionType" elementary reaction type "Molecularity" number of reactants needed in the balanced reaction
Examples
open all close allBasic Examples (2)
ChemicalReaction[<|Entity["Chemical", "ZincHydroxide"] -> 1, Entity["Chemical", "HydrogenChloride"] -> 1|> -> <|Entity["Chemical", "ZincChloride"] -> 1, Entity["Chemical", "Water"] -> 2|>]Find out if the reaction is balanced:
ReactionBalancedQ[%]Create a balanced form of the reaction:
ReactionBalance[%%]Create a balanced chemical reaction:
ReactionBalance["AlPO4 + Ca(NO3)2 -> Al(NO3)3 + Ca3(PO4)2"]Obtain a display form of the reaction:
%["EquationDisplay"]//TraditionalFormGet a string form of the reaction:
%%["EquationString"]Scope (3)
Create a chemical reaction from a string:
ChemicalReaction["Bi(NO3)3 + NaOH -> Bi(OH)3 + NaNO3"]%["ReactantCounts"]Create a reaction for the solvation of sodium hydroxide:
ChemicalReaction["NaOH(s) -> Na+(aq) + OH-(aq)"]%["ReverseReaction"]Create a reaction for the combustion of hydrogen:
ChemicalReaction["O2 + H2 -> water"]Find the reaction molecularity:
%["Molecularity"]This is because in the balanced reaction there are two hydrogen molecules and one oxygen molecule, for a total of three reactants:
ReactionBalance[%%]Find the elementary reaction type:
%%%["ElementaryReactionType"]Applications (1)
Visualize a combustion reaction using 3D graphics:
GraphicsRow /@ KeyValueMap[GraphicsColumn[ConstantArray[MoleculePlot3D[#1], #2], ImageSize -> 80]&] /@ ChemicalReaction[Association[Entity["Chemical", "2Methylpropane"] -> 2,
Entity["Chemical", "MolecularOxygen"] -> 13] ->
Association[Entity["Chemical", "CarbonDioxide"] -> 8, Entity["Chemical", "Water"] -> 10]]["ReactionRule"]See Also
PatternReaction ChemicalFormula ReactionBalance ReactionBalancedQ ApplyReaction
Entity Types: Chemical
Related Guides
History
Text
Wolfram Research (2021), ChemicalReaction, Wolfram Language function, https://reference.wolfram.com/language/ref/ChemicalReaction.html.
CMS
Wolfram Language. 2021. "ChemicalReaction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ChemicalReaction.html.
APA
Wolfram Language. (2021). ChemicalReaction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ChemicalReaction.html
BibTeX
@misc{reference.wolfram_2026_chemicalreaction, author="Wolfram Research", title="{ChemicalReaction}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/ChemicalReaction.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_chemicalreaction, organization={Wolfram Research}, title={ChemicalReaction}, year={2021}, url={https://reference.wolfram.com/language/ref/ChemicalReaction.html}, note=[Accessed: 13-June-2026]}