WOLFRAM

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

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

Create a chemical reaction:

Out[1]=1

Find out if the reaction is balanced:

Out[2]=2

Create a balanced form of the reaction:

Out[3]=3

Create a balanced chemical reaction:

Out[1]=1

Obtain a display form of the reaction:

Get a string form of the reaction:

Out[3]=3

Scope  (2)Survey of the scope of standard use cases

Create a chemical reaction from a string:

Out[1]=1

Get the counts of reactants:

Out[2]=2

Create a reaction for the solvation of sodium hydroxide:

Out[1]=1

Reverse the reaction:

Out[2]=2

Applications  (1)Sample problems that can be solved with this function

Visualize a combustion reaction using 3D graphics:

Out[1]=1
Wolfram Research (2021), ChemicalReaction, Wolfram Language function, https://reference.wolfram.com/language/ref/ChemicalReaction.html.
Wolfram Research (2021), ChemicalReaction, Wolfram Language function, https://reference.wolfram.com/language/ref/ChemicalReaction.html.

Text

Wolfram Research (2021), ChemicalReaction, Wolfram Language function, https://reference.wolfram.com/language/ref/ChemicalReaction.html.

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.

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

Wolfram Language. (2021). ChemicalReaction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ChemicalReaction.html

BibTeX

@misc{reference.wolfram_2025_chemicalreaction, author="Wolfram Research", title="{ChemicalReaction}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/ChemicalReaction.html}", note=[Accessed: 29-May-2025 ]}

@misc{reference.wolfram_2025_chemicalreaction, author="Wolfram Research", title="{ChemicalReaction}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/ChemicalReaction.html}", note=[Accessed: 29-May-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_chemicalreaction, organization={Wolfram Research}, title={ChemicalReaction}, year={2021}, url={https://reference.wolfram.com/language/ref/ChemicalReaction.html}, note=[Accessed: 29-May-2025 ]}

@online{reference.wolfram_2025_chemicalreaction, organization={Wolfram Research}, title={ChemicalReaction}, year={2021}, url={https://reference.wolfram.com/language/ref/ChemicalReaction.html}, note=[Accessed: 29-May-2025 ]}