Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

ChemistryFunctions

Guides

  • Wolfram Chemistry Functions

Symbols

  • AlkaneName
  • AlkaneQ
  • AtomChirality
  • AtomSelector3D
  • AtomSelector
  • BohrModelPlot
  • BondStereo
  • ChemicalFormulaQ
  • ChemicalReactionQ
  • ConstitutionalIsomersQ
  • DiastereomersQ
  • EmbeddedMoleculeQ
  • EmpiricalFormula
  • EmptyMoleculeQ
  • EnantiomersQ
  • EpimersQ
  • FormatMoleculesAsGraphics
  • HydrocarbonQ
  • ImportComputationalChemistryData
  • IonCounts
  • MoleculeDelete
  • MoleculeGridPlot3D
  • MoleculeGridPlot
  • MoleculeJoin
  • MoleculeManipulate3D
  • MoleculeManipulate
  • MoleculeMirrorPlot3D
  • MoleculePatternQ
  • MoleculePlotOptions
  • MoleculeScaffold
  • MoleculeSubstructureMatches
  • PatternReactionQ
  • PeriodicTablePlot
  • RandomAlkane
  • RandomMolecule
  • RingMoleculeQ
  • RingPattern
  • SmilesPlot
  • StereoisomersQ
WolframChemistry`ChemistryFunctions`
EmpiricalFormula
​
EmpiricalFormula
[
elem
1

mass
1
,…]
returns the empirical formula from the specified elemental composition.
​
​
EmpiricalFormula
[{
ChemicalInstance
[
elem
1
,
mass
1
],…}]
uses the given chemical instances.
​
​
EmpiricalFormula
[..,
Quantity
[m,"Grams"/"Moles"]]
returns the molecular formula matching the given molar mass.
​
Details and Options

Examples  
(4)
Basic Examples  
(3)
A compound contains 40.0% carbon, 6.7% hydrogen, and 53.3% oxygen by mass. Determine its empirical formula:
In[1]:=
EmpiricalFormula
[{"C"Quantity[40,"Percent"],"H"Quantity[6.7,"Percent"],"O"Quantity[53.3,"Percent"]}]
Out[1]=
C
H
2
O
​
An oxide of titanium is found to be 33.4% oxygen and 66.6% titanium, find the empirical formula:
In[1]:=
EmpiricalFormula
[{ChemicalInstance["Ti",
66.6
%
],ChemicalInstance["O",
33.4
%
]}]
Out[1]=
Ti
2
O
3
​
Find the empirical formula for a sample that is 72g carbon, 5.4g hydrogen, and 42.6g oxygen:
In[1]:=
EmpiricalFormula
[{​​ChemicalInstance["C",Quantity[72,"Grams"]],​​ChemicalInstance["H",Quantity[5.4,"Grams"]],​​ChemicalInstance["O",Quantity[42.6,"Grams"]]}]
Out[1]=
C
9
H
8
O
4
The sample is determined to have a molar mass of 360g/mol, find the molecular formula:
In[2]:=
EmpiricalFormula
%,
360
g/mol

Out[2]=
C
18
H
16
O
8
In[3]:=
FindIsomers[%,"Entity"]
Out[3]=

3',4',5-trihydroxy-3,6,7-trimethoxyflavone
,
rosmarinate
,
rosmarinic acid

Options  
(1)

SeeAlso
ChemicalFormula
 
▪
ChemicalInstance
 
▪
Quantity
RelatedGuides
▪
Wolfram Chemistry Functions
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com