Building Molecules: How Atoms Connect to Form Everything

Every substance you encounter — water, air, sugar, plastic, DNA — is a specific arrangement of atoms held together by chemical bonds. Understanding how atoms connect in three dimensions is fundamental to chemistry, biology, medicine, and materials science. This tool lets you build molecules by hand and see their 3D structure, which is how chemists have been thinking about molecular architecture since Linus Pauling and Robert Corey first built physical ball-and-stick models in the 1950s.

Why molecular shape matters more than you think

The three-dimensional shape of a molecule determines almost everything about its behavior. Water (H2O) is bent at 104.5 degrees because of two lone electron pairs on the oxygen atom. That bend makes water polar — one side is slightly negative, the other slightly positive. This polarity is why water dissolves salt, why ice floats, why plants can pull water up through their roots, and why your cells can function. If water were linear instead of bent (like CO2), it would be nonpolar, it would not dissolve ionic compounds, and life as we know it would not exist. Carbon dioxide is linear because the two double bonds between carbon and oxygen point in opposite directions with no lone pairs to distort the shape. Methane (CH4) is tetrahedral — four hydrogen atoms arranged around a central carbon at 109.5-degree angles — because the four bonding pairs of electrons repel each other equally in three dimensions. This geometry is predicted by VSEPR theory (Valence Shell Electron Pair Repulsion), which states that electron pairs around a central atom will arrange themselves to be as far apart as possible. Every molecular shape you build in this tool follows these principles.

The elements that build life

Of the 118 elements on the periodic table, just six account for 99% of the atoms in your body: carbon, hydrogen, nitrogen, oxygen, phosphorus, and sulfur (CHNOPS). Carbon is the backbone element — it forms four bonds, can chain with itself indefinitely, and creates the skeleton of every organic molecule from amino acids to DNA to cholesterol. Hydrogen is the simplest atom, forming one bond, and is the most abundant element in your body by atom count. Oxygen's two bonds and high electronegativity make it essential for water, energy metabolism, and the oxidation reactions that power cellular respiration. Nitrogen's three bonds let it form the amines in amino acids and the base pairs in DNA. Phosphorus links the nucleotides in DNA and carries energy as ATP. Sulfur forms the disulfide bridges that hold proteins in their 3D shapes. When you build molecules with these elements in this tool, you are working with the same atomic toolkit that evolution has been using for 3.8 billion years.

Single, double, and triple bonds

Atoms share electrons to form covalent bonds. A single bond shares one pair of electrons, a double bond shares two pairs, and a triple bond shares three pairs. As bond order increases, the bond gets shorter and stronger. A carbon-carbon single bond is 1.54 angstroms long with a bond energy of about 346 kJ/mol. A carbon-carbon double bond is 1.34 angstroms and 614 kJ/mol. A carbon-carbon triple bond is 1.20 angstroms and 839 kJ/mol. But higher bond order also means less rotational freedom — single bonds rotate freely, double bonds are rigid (which is why cis and trans isomers exist), and triple bonds are linear. This interplay between bond order, length, strength, and geometry is central to understanding molecular behavior. In this tool, you can upgrade bonds from single to double to triple by clicking an existing bond in bond mode, and you will see the visual representation change to show the additional bonds drawn as parallel cylinders.

Ionic vs covalent: the NaCl example

Not all chemical bonds involve sharing electrons. In sodium chloride (NaCl, table salt), sodium donates its single valence electron to chlorine, creating Na+ and Cl- ions held together by electrostatic attraction. This is an ionic bond. Ionic compounds tend to form crystals, dissolve in water, and conduct electricity when dissolved or melted. Covalent compounds (like water, methane, and ethanol) tend to have lower melting points, may or may not dissolve in water, and generally do not conduct electricity. The line between ionic and covalent is not sharp — electronegativity difference determines the spectrum. A difference greater than 1.7 is generally considered ionic. Sodium (electronegativity 0.93) and chlorine (3.16) have a difference of 2.23, firmly ionic. Carbon (2.55) and hydrogen (2.20) differ by only 0.35, making C-H bonds nonpolar covalent. Oxygen (3.44) and hydrogen differ by 1.24, making O-H bonds polar covalent — shared but unequally.

From ball-and-stick models to drug design

The ball-and-stick visualization you see in this tool is the same conceptual model that pharmaceutical chemists use when designing drugs. A drug molecule works by fitting into a specific protein receptor in your body — like a key in a lock. The drug's 3D shape, its charge distribution, and the placement of hydrogen bond donors and acceptors determine whether it fits. Aspirin (acetylsalicylic acid) works because its flat aromatic ring and carboxyl group fit into the active site of cyclooxygenase enzymes, blocking the production of prostaglandins that cause pain and inflammation. Penicillin works because its unusual four-membered beta-lactam ring mimics the structure of a peptide bond, tricking the enzyme that builds bacterial cell walls into accepting it, which jams the enzyme and kills the bacterium. Modern computational chemistry uses sophisticated 3D molecular visualization — descended from the same ball-and-stick models Pauling used — to screen millions of potential drug molecules before a single one is synthesized in a lab.

About 3D Molecule Builder

Free 3D molecule builder. Drag atoms onto a 3D canvas, connect them with single, double, or triple bonds, and watch molecular structures rotate in real-time. CPK coloring, preset molecules, educational chemistry sandbox.

How to use

  1. Pick an element from the atom palette (H, C, N, O, F, P, S, Cl, Br, Na, and others). Make sure Place mode is active, then click in the 3D viewport to drop atoms onto the canvas. Each atom gets its CPK color (white H, gray C, red O, blue N, green Cl).
  2. Switch to Bond mode and click two atoms in sequence to connect them. Click an existing bond to upgrade it from single → double → triple. Bond geometry follows VSEPR: tetrahedral carbon (109.5°), bent water (104.5°), trigonal-planar BF3 (120°).
  3. Use the Quick Load preset buttons to instantly build water, methane, ammonia, ethanol, benzene, CO2, NaCl, or sulfuric acid. Great for confirming what a target structure should look like before you build something more complex.
  4. Drag in empty space to orbit the camera and inspect bond angles from every direction. The molecular formula updates live in Hill notation (carbon first, hydrogen second, others alphabetical). Click Reset to clear the canvas and start over.
  5. Switch to Delete mode to remove a single atom (and its bonds) without nuking the whole build. Helpful when you've over-bonded an atom or want to swap an OH for an NH2 without rebuilding from scratch.

Frequently asked questions

How many bonds can each atom form?
Determined by the atom's valence electrons and its goal of an octet (or duet for hydrogen). Hydrogen forms 1 bond, oxygen forms 2 (plus 2 lone pairs), nitrogen forms 3 (plus 1 lone pair), carbon forms 4 (the basis of all organic chemistry). Halogens (F, Cl, Br, I) each form 1. Sulfur can form 2, 4, or 6 (it can expand its octet using d-orbitals). Phosphorus typically forms 3 or 5. Sodium forms 1 ionic bond by donating its electron rather than sharing it. Hydrogen never forms double bonds; carbon, nitrogen, oxygen, and sulfur can.
What is VSEPR theory and how does it predict shape?
Valence Shell Electron Pair Repulsion theory states that electron pairs (bonding and lone) around a central atom arrange themselves to be as far apart as possible. The result: 2 pairs = linear (180°), 3 pairs = trigonal planar (120°), 4 pairs = tetrahedral (109.5°), 5 pairs = trigonal bipyramidal, 6 pairs = octahedral. Lone pairs take more space than bonding pairs, so water (2 bonds + 2 lone pairs on O) bends to 104.5° from the ideal 109.5°, and ammonia (3 bonds + 1 lone pair on N) compresses to 107°.
What's the difference between single, double, and triple bonds?
Single bonds share one electron pair (one σ bond), double bonds share two pairs (one σ + one π), triple bonds share three pairs (one σ + two π). As bond order rises, length shortens and strength rises: a C-C single bond is 1.54 Å and 346 kJ/mol; C=C is 1.34 Å and 614 kJ/mol; C≡C is 1.20 Å and 839 kJ/mol. Single bonds rotate freely; double bonds are rigid (which creates cis/trans isomers); triple bonds are linear and locked. The molecule builder shows additional bonds as parallel cylinders.
What is CPK coloring?
The standard color scheme for atoms in molecular models, named after Corey, Pauling, and Koltun who established it in the 1950s and 1960s for physical ball-and-stick kits. Convention: hydrogen white, carbon gray (or black), nitrogen blue, oxygen red, fluorine and chlorine green, bromine dark red, iodine purple, sulfur yellow, phosphorus orange, sodium violet, calcium and other metals various. Used universally in chemistry textbooks, research papers, and visualization software (PyMOL, ChemDraw, this tool) so structures are interpretable without labels.
Why is water bent instead of linear?
Oxygen has 2 bonding pairs (the O-H bonds) plus 2 lone pairs. With 4 electron domains, VSEPR predicts a tetrahedral electron geometry. The two lone pairs occupy two of the four positions and push the H-O-H angle below 109.5° to 104.5°. This bend is the reason water is polar — the O-H bond dipoles don't cancel as they would in a linear molecule. Without this geometry, water wouldn't dissolve salt, ice wouldn't float, and life as we know it wouldn't exist.
What makes benzene's structure special?
Six carbons in a flat hexagon with alternating single and double bonds, except the double-bond electrons are delocalized — shared equally across all six C-C bonds rather than fixed in three positions. All six C-C bonds end up the same length (1.40 Å, between single 1.54 and double 1.34). This delocalization is called aromaticity and makes benzene unusually stable. The flat hexagonal aromatic ring appears in countless drugs (aspirin, ibuprofen), dyes, polymers, and explosives (TNT). The molecule builder draws benzene with the alternating double-bond convention, but real benzene is symmetric.
How do I read a molecular formula like C2H6O?
By Hill notation: carbon count first, hydrogen second, then other elements alphabetical. C2H6O means 2 carbons, 6 hydrogens, 1 oxygen — but it's ambiguous about structure. Two molecules share that formula: ethanol (CH3CH2OH, the alcohol you drink) and dimethyl ether (CH3OCH3, an industrial gas). They have very different boiling points, smells, and reactivity. The formula tells you composition; only the structural formula (which the builder shows in 3D) tells you what the molecule actually is.

Part of ToolFluency’s library of free online tools for Science. No account needed, no data leaves your device.