Lewis Structure for HCN: Steps, Shape and Polarity
The Lewis structure for HCN puts carbon in the middle, with a single bond to hydrogen on one side and a triple bond to nitrogen on the other: H–C≡N. Nitrogen keeps one lone pair. Hydrogen cyanide has 10 valence electrons, and this arrangement gives carbon and nitrogen a full octet each and hydrogen its 2.

What does the HCN Lewis structure show?
The HCN Lewis structure is a map of where all 10 valence electrons sit in a hydrogen cyanide molecule. Each line is one shared pair of electrons (2 electrons), and each pair of dots is a lone pair that belongs to one atom only. For HCN you should see 4 lines (1 + 3) and 1 pair of dots:
H — C ≡ N:
That is 8 bonding electrons plus 2 lone-pair electrons, which adds up to the 10 you started with.
How to draw the hydrogen cyanide Lewis structure
The hydrogen cyanide Lewis structure comes out of the same five steps you use for any small molecule. The interesting part is step 4, where single bonds are not enough.
Step 1: Count the valence electrons
| Atom | Group | Valence electrons |
|---|---|---|
| Hydrogen (H) | 1 | 1 |
| Carbon (C) | 14 | 4 |
| Nitrogen (N) | 15 | 5 |
| Total | 10 |
If you are unsure where these numbers come from, see how to find valence electrons from an element's group.
Step 2: Choose the central atom
Carbon goes in the middle. Hydrogen can only ever make one bond, so it always sits on the outside. Between carbon and nitrogen, the less electronegative atom normally goes in the centre, and carbon (2.55) is less electronegative than nitrogen (3.04). Carbon also forms the most bonds (four), which suits a central position.
Step 3: Join the atoms with single bonds
Draw H–C–N. Two single bonds use 2 × 2 = 4 electrons, leaving 10 − 4 = 6.
Step 4: Place the rest, then fix carbon's octet
Put the 6 leftover electrons on nitrogen as three lone pairs. Nitrogen now has 8 electrons around it, but carbon has only 4 (its two bonds). Carbon is short by 4 electrons, which is two pairs.
To fix this without adding electrons, move two of nitrogen's lone pairs into the C–N bond. One moved pair turns the single bond into a double bond; the second turns it into a triple bond. Nitrogen is left with one lone pair.
Step 5: Check every atom
- Hydrogen: 1 bond = 2 electrons, which is full for hydrogen (the duet rule).
- Carbon: 1 bond to H + 3 bonds to N = 4 bonds = 8 electrons, a full octet.
- Nitrogen: 3 bonds + 1 lone pair = 6 + 2 = 8 electrons, also an octet.
Every atom is satisfied and all 10 electrons are used, so H–C≡N: is complete.
What are the formal charges in HCN?
Formal charge = valence electrons − lone-pair electrons − (bonding electrons ÷ 2). It helps you choose between possible structures: the best one has charges as close to zero as possible.
| Atom | Valence | Lone-pair electrons | Bonding electrons ÷ 2 | Formal charge |
|---|---|---|---|---|
| H | 1 | 0 | 1 | 0 |
| C | 4 | 0 | 4 | 0 |
| N | 5 | 2 | 3 | 0 |
All three are zero. Now try the other order, H–N≡C:, with hydrogen on nitrogen. Nitrogen gets a formal charge of +1 and carbon −1. That molecule does exist, as hydrogen isocyanide (HNC), but it is less stable than HCN. It is found mainly in cold gas clouds in space, not in a bottle on Earth.
HCN molecular geometry
HCN molecular geometry is linear, with a bond angle of 180°. Using VSEPR theory, look at the central carbon: it has two groups of electrons around it (the H–C bond and the C≡N triple bond) and no lone pairs. A triple bond counts as one group because all three pairs point the same way, towards nitrogen. Two groups get as far apart as possible by pointing in opposite directions, so the molecule is a straight line. In VSEPR notation it is AX2, the same type as CO2.
| Property | HCN (hydrogen cyanide) |
|---|---|
| Electron groups on C | 2 |
| Lone pairs on C | 0 |
| VSEPR type | AX2 |
| Shape | Linear |
| Bond angle | 180° |
| Hybridisation of C | sp |
| C–H bond length | about 107 pm |
| C≡N bond length | about 115 pm |
| Sigma bonds | 2 |
| Pi bonds | 2 |
Compare the shapes of other two-group and four-group molecules in our VSEPR chart.
Why is carbon sp hybridised in HCN?
Carbon needs two orbitals pointing in opposite directions to make its two sigma bonds, one to H and one to N. It mixes its 2s orbital with one 2p orbital to make two sp hybrid orbitals, 180° apart. The two 2p orbitals left over overlap sideways with nitrogen's p orbitals to make the two pi bonds of the triple bond. So HCN has two sigma bonds and two pi bonds (more on sigma and pi bonds): the C–H bond and one C–N bond are sigma, the other two C–N bonds are pi.
Is HCN polar?
Is HCN polar? Yes, HCN is a polar molecule, with a dipole moment of about 2.98 D. Nitrogen (3.04) is the most electronegative of the three atoms, so electron density is pulled towards the nitrogen end. Carbon (2.55) is slightly more electronegative than hydrogen (2.20), so the C–H bond leans the same way. Both bond dipoles point along the same line towards N, and nothing on the other side cancels them.
This is the big difference from CO2. Carbon dioxide is also linear, but it has an identical oxygen on each side, so its two bond dipoles cancel and it is nonpolar (see the CO2 Lewis structure). In HCN the two ends are different atoms, so there is no cancelling.
Being polar explains some of its properties. Hydrogen cyanide boils at about 26 °C, far higher than nonpolar molecules of similar size, and it mixes completely with water. In water it is a very weak acid (pKa about 9.2), losing H⁺ to form the cyanide ion, CN⁻, one of the common polyatomic ions. HCN is extremely poisonous, and is only handled in specialist industrial labs.
Common mistakes
- Stopping at single bonds. H–C–N with three lone pairs on N leaves carbon with only 4 electrons.
- Putting lone pairs on carbon. In the correct structure carbon has none; all 8 of its electrons are in bonds.
- Making hydrogen central or writing H–N≡C. Hydrogen makes one bond, and HNC is a different, less stable molecule.
- Calling HCN nonpolar because it is linear. A linear shape only cancels dipoles when both ends are the same.
- Counting the triple bond as three electron groups in VSEPR. It is one group, which is why the shape is linear.
Frequently asked questions
How many lone pairs are in HCN?
HCN has one lone pair, and it sits on the nitrogen atom. Of the 10 valence electrons, 8 are used in bonds (2 in the C–H single bond and 6 in the C≡N triple bond), which leaves 2 electrons, one pair. Carbon has no lone pairs and hydrogen never has any. That single lone pair gives nitrogen its octet: 6 bonding electrons plus 2 non-bonding electrons.
Why does HCN have a triple bond?
HCN has a triple bond because that is the only way to give both carbon and nitrogen eight electrons using just the 10 valence electrons available. With single bonds only, carbon ends up with 4 electrons. Sharing two more pairs between carbon and nitrogen fixes carbon's octet without taking electrons from nitrogen's count, since shared pairs count for both atoms. The result is one sigma and two pi bonds between C and N.
What is the bond angle in HCN?
The bond angle in HCN is 180°. The central carbon has two electron groups, the bond to hydrogen and the triple bond to nitrogen, and no lone pairs. Two groups repel each other most weakly when they point in exactly opposite directions, so the H, C and N atoms lie on a straight line. This is the linear AX2 shape in VSEPR theory, also seen in CO2 and BeCl2.
What is the hybridisation of HCN?
The carbon atom in HCN is sp hybridised. It combines its 2s orbital with one 2p orbital to make two sp orbitals that point 180° apart, one bonding to hydrogen and one to nitrogen. Its two remaining p orbitals form the two pi bonds with nitrogen. Nitrogen is also described as sp, with one sp orbital in the sigma bond and the other holding the lone pair.
Try it yourself
Open the Molecule Builder and drag in one hydrogen, one carbon and one nitrogen atom. Bond hydrogen to carbon, then drag nitrogen onto carbon three times, so the bond goes single, double, then triple: the tool recognises hydrogen cyanide. Rotate it to check the three atoms line up at 180°. Then build N2 and compare it with the N2 Lewis structure, another molecule held together by a triple bond.
See it for yourself, in 3D and free.
Try it in the Molecule Builder