
A teaspoon holds about 5 g of water. Divide by water's molar mass, 18.015 g/mol, to get 0.2775 mol, then multiply by Avogadro's number, 6.022 × 10²³: about 1.67 × 10²³ molecules. The same 5 g of sugar holds only 8.80 × 10²¹ molecules, about 19 times fewer.
In this lecture:
On the Chemistry page, under Get it, download the Windows .zip or the Linux .tar.gz. Extract it and run the app; on Windows, if SmartScreen appears, click More info, then Run anyway. Then search 'molar mass' and press Compute (water: 18.015 g/mol), or count the molecules in a 5 g teaspoon of water: 1.67 × 10²³.
In this lecture:
Open a terminal, check python --version (3.10 or newer), run pip install chemistry-ai999x, then pip install jupyterlab matplotlib and jupyter lab (or use Google Colab with %pip install chemistry-ai999x). Import it and ask in plain English: caffeine, C8H10N4O2, has a molar mass of 194.194 g/mol; water is 18.015 g/mol and table salt 58.443 g/mol.
In this lecture:
Add up the atoms. Water, H2O, is 2 × 1.008 + 15.999 = 18.015 g/mol. Table sugar, C12H22O11, is 12 × 12.011 + 22 × 1.008 + 11 × 15.999 = 342.297 g/mol. 342.297 ÷ 18.015 = 19.0, so one sugar molecule weighs as much as 19 water molecules.
In this lecture:
Table sugar, C12H22O11, has a molar mass of 342.297 g/mol. 4 g ÷ 342.297 g/mol = 0.01169 mol, and 0.01169 mol × 6.022 × 10²³ = 7.04 × 10²¹ molecules. A 5 g teaspoon of water holds about 24 times more, 1.67 × 10²³, because water molecules are so light.
In this lecture:
No chlorine atom weighs 35.45. About 75.78% of chlorine atoms weigh 34.97 and 24.22% weigh 36.97 (two extra neutrons). The weighted average, 0.7578 × 34.97 + 0.2422 × 36.97 = 35.4544, is the 35.45 on every periodic table.
In this lecture:
Yes. One oxygen atom weighs 15.999 and two hydrogens only 2.016, so oxygen makes up 15.999 / 18.015 = 88.81% of water's weight even though two of its three atoms are hydrogen. The same idea shows rust (Fe2O3) is 69.94% iron, so 1 kg of rust holds 0.699 kg of iron.
In this lecture:
Pretend you have 100 g: that is 40.0 g C, 6.71 g H and 53.3 g O, or 3.330, 6.657 and 3.331 moles. Divide by the smallest and the ratio is 1 : 2 : 1, the empirical formula CH2O (30.03 g/mol). The molar mass 180.16 g/mol is 6 times that, so the molecule is C6H12O6, glucose.
In this lecture:
Propane, C3H8, burns as C3H8 + 5 O2 → 3 CO2 + 4 H2O. Atoms are never created or destroyed, so you balance carbon first (3 CO2), then hydrogen (4 H2O), then oxygen: 6 + 4 = 10 oxygen atoms on the right means 5 O2 on the left.
In this lecture:
Burning 1 kg of propane (C3H8 + 5 O2 → 3 CO2 + 4 H2O) makes 2.99 kg of CO2 and 1.63 kg of water. 1000 g ÷ 44.1 g/mol = 22.68 mol of propane, times 3 = 68.03 mol of CO2, times 44.01 g/mol = 2994 g: the carbon picks up oxygen from the air. Real reactions give less: 100 g of limestone should make 56.03 g of lime, and 50 g collected is a percent yield of 89.2%.
In this lecture:
Oxygen runs out first. 4 g of H2 is 1.98 mol and 16 g of O2 is 0.50 mol; dividing by the recipe numbers in 2 H2 + O2 → 2 H2O gives 0.99 for hydrogen and 0.50 for oxygen, so oxygen is the limiting reagent. You get 18.0 g of water and 1.98 g of hydrogen is left over.
In this lecture:
Burning 10 g of methane (CH4 + 2 O2 → CO2 + 2 H2O, ΔH = −890 kJ/mol) releases 554,759 J, about 555 kJ: 10 g ÷ 16.04 g/mol = 0.623 mol, times 890 kJ/mol. Warming 1 kg of water from 20 °C to 80 °C takes q = m c ΔT = 1 × 4184 × 60 = 251,040 J, so 10 g of stove gas can heat about 2.2 pots.
In this lecture:
A 5 L party balloon at 25 °C (298.15 K) and 1 atm (101,325 Pa) holds n = PV / RT = 101,325 × 0.005 / (8.314 × 298.15) = 0.204 mol of gas. Times 6.022 × 10²³ particles per mole, that is about 1.23 × 10²³ particles. And 1 mol of any gas at 0 °C and 1 atm fills 22.414 L, helium or CO2 alike.
In this lecture:
Cold gas particles move slower and hit the balloon's wall softer, so the balloon gets smaller. Charles's law, V1/T1 = V2/T2 with temperatures in kelvin, gives V2 = 2.5 L × 255.15 K / 298.15 K = 2.14 L for a 2.5 L balloon taken from 25 °C into a −18 °C freezer, and 2.92 L in a 75 °C hot car.
In this lecture:
Deep water pushes hard on a bubble; near the surface the push is smaller, so the same air takes up more space. Boyle's law, P1 V1 = P2 V2 at the same temperature, gives V2 = 3 atm × 1 mL / 1 atm = 3 mL: a 1 mL bubble breathed out at 3 atm is three times bigger at the surface. Squeeze a 2 L bottle of air from 1 atm to 3 atm and it shrinks to 0.667 L.
In this lecture:
A hospital saline drip has 9 g of sodium chloride (molar mass 58.44 g/mol) in 1 L of solution. That is 9 / 58.44 = 0.154 mol of salt, so its molarity is 0.154 mol/L (0.154 M). To make 500 mL of the same solution you need m = c × V × M = 0.154 × 0.5 × 58.44 = 4.50 g of salt.
In this lecture:
Adding water does not change how many moles of solute there are, so c1 × V1 = c2 × V2. 25 mL of 6 M acid made up to 500 mL gives c2 = 6 × 25 / 500 = 0.3 M, 20 times weaker. The reverse: 500 mL of 0.1 M needs V1 = 0.1 × 500 / 12 = 4.17 mL of 12 M stock.
In this lecture:
Yes. pH = -log10[H3O+], so every step down the pH scale means 10 times more hydronium. pH 2 is 0.01 mol/L of hydronium and pH 5 is 0.00001 mol/L, so pH 2 has 1,000 times more acid. A solution with 0.005 mol/L of hydronium has pH 2.30.
In this lecture:
Dissolved salt splits into Na+ and Cl- ions that get in the way of water molecules lining up into ice, so the water must get colder before it freezes. 58.44 g of salt (1 mol) in 1 kg of water is 1 mol/kg, and with i = 2 and Kf = 1.86 K kg/mol the freezing point drops by ΔT = 2 × 1.86 × 1 = 3.72 K: the water freezes at -3.72 °C instead of 0 °C.
In this lecture:
10 g of baking soda (NaHCO3) and 5 g of acetic acid react 1 to 1: NaHCO3 + CH3COOH → NaCH3COO + H2O + CO2. The acid is only 0.0833 mol against 0.119 mol of soda, so it runs out first: 3.66 g of CO2 forms and 3.01 g of baking soda is left over. At 25 °C and 1 atm, 0.0833 mol of CO2 fills 2.04 L, enough for two 1-litre bottles.
In this lecture:
This course contains the use of artificial intelligence.
How many molecules are in one teaspoon of water? About 1.67 x 10^23. Why is water 88.8% oxygen by weight when it has two hydrogen atoms for every oxygen? Why does burning 1 kg of propane put 2.99 kg of CO2 into the air? In this free beginner chemistry course you will learn to answer questions like these yourself, with a clear picture, a simple formula and a few lines of Python in Jupyter.
Chemistry with Python for Beginners teaches the core of general chemistry the way it finally makes sense. Every lecture starts with an everyday question and a real number. You see the idea drawn and animated step by step, you watch the free AI999X Chemistry engine solve it live in its desktop app, and then you solve it in a Jupyter notebook, including questions typed in plain English.
What you will learn
What you will build
The course ends with a final project in one Jupyter notebook: you plan a baking soda volcano from start to finish. You balance the reaction, find which ingredient runs out first, turn grams of CO2 into moles, and use the ideal gas law to predict the 2.04 liters of foam. Along the way every lecture gives you a short notebook you can keep and reuse.
How the course works
There are 20 short lectures of about 4 minutes each, in five sections: Start Here, Atoms and Moles, Reactions and Energy, Gases, and Solutions, Acids and Final Project. Lectures 2 and 3 show every install step on screen. The free AI999X Chemistry engine comes two ways: a desktop app for Windows and Linux with 119 calculations, live scenes and charts, and a Python package (pip install chemistry-ai999x) for your notebooks. Both run fully offline, and the Python part also runs in Google Colab in your browser. Every number in the course is computed by the engine, so what you see on screen is exactly what you get on your own computer.
Who this course is for
Frequently asked questions
Is the course free? Yes. The course is free, and the free AI999X Chemistry engine (the desktop app and the Python package) is free too.
Do I need chemistry or Python experience? No. Every idea is explained from scratch with pictures, and every line of code is shown and explained. Basic school math (multiplying, dividing, using a calculator) is enough.
Does it work offline? Yes. Both the desktop app and the Python package compute every answer on your own computer, with no internet connection needed after the install.
Which computers does it work on? The desktop app runs on Windows and Linux. The Python notebooks run on Windows and Linux with Jupyter, or in Google Colab in any web browser with nothing to install.
How long is the course? About 1 hour 45 minutes of video in 20 short lectures, plus a downloadable Jupyter notebook for every lecture.
If you have ever wondered what is really inside a glass of water, enroll now and count the molecules in a teaspoon in lecture 1.