HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Minerals and the Three Kinds of Rock
  1. 1Minerals, the building blocks of rocks
  2. 2Igneous rocks from melted rock
  3. 3Sedimentary and metamorphic rocks
  1. Earth and Environmental Science
  2. /Minerals and the Three Kinds of Rock
  3. /Igneous rocks from melted rock

Course 1.2·Lesson 2 of 3

Igneous rocks from melted rock

Igneous rock forms when melted rock cools and sets. We compare granite, which cools slowly deep underground, with basalt, which cools fast at the surface, and see why the cooling speed decides the size of the crystals.

about 25 min1 simulation1 practice question
Lesson 2 of 3Show all lessonsHide
Minerals and the Three Kinds of Rock
  1. 1Minerals, the building blocks of rocks
  2. 2Igneous rocks from melted rock
  3. 3Sedimentary and metamorphic rocks

Try the code and the simulations beside the lesson.

Rock from fire

Melt a bar of chocolate and pour it into a mould. As it cools it sets hard again. Rock can do the same. Deep inside the Earth some rock melts. When the melted rock cools, it sets into igneous rock. The word comes from the Latin word for fire.

  • Melted rock underground is called magma.
  • When it pours out onto the surface, it is called lava.

Magma and lava are very hot, between about 700 and 1200 °C.

Two ways to cool

A cross-section of the ground. Deep below the surface a large body of magma, labelled magma cools slowly, intrusive: granite. A narrow channel carries magma up to a volcano at the surface, where lava runs down its side; the label says lava cools fast, extrusive: basalt. Two round close-ups above the ground show the crystals: a few big grains for granite and many tiny grains for basalt.

Intrusive igneous rock forms when magma cools underground. The rock around it is warm and keeps the heat in, so it can take hundreds of thousands of years to set. Its crystals have time to grow big, often several millimetres across.

Extrusive igneous rock forms when lava cools at the surface. Air and water take the heat away fast, so it sets in days or years. Its crystals are tiny.

RockFormedCrystals
Granitedeep undergroundlarge, easy to see
Basaltat the surfacetiny

Granite is light in colour. We see it only after the rocks above it have worn away, as in the great cliff of Half Dome in California, USA.

Basalt is dark and dense. It covers most of the ocean floor. In western India the Deccan Traps are layer upon layer of basalt lava, more than 2 km thick in places. They poured out about 66 million years ago. On the coast of Northern Ireland, cooling basalt cracked into the six-sided columns of the Giant's Causeway.

Rock with no crystals at all

  • Obsidian is volcanic glass. The lava cooled so fast that no crystals could form.
  • Pumice is lava full of gas bubbles. It is so light that it floats on water.

Warm rock keeps magma hot

Why does deep magma cool so slowly? The rock around it is already hot. Near the surface the rock warms by about 25 °C for each km of depth. With the ground at 15 °C, the rock 5 km down is

T=15∘C+25∘C×5=140∘C\displaystyle T = 15^\circ\text{C} + 25^\circ\text{C} \times 5 = 140^\circ\text{C}T=15∘C+25∘C×5=140∘C

A magma at 900 °C there is 760 °C hotter than its surroundings. A lava flow at the surface is about 900 °C hotter than the air. A smaller gap means slower cooling, and slower cooling means bigger crystals.

At 0 km the gap is 885 °C, so a lava flow cools fast. At 20 km the rock around is 515 °C, and the gap has fallen to 385 °C.

Practise with new numbers

Try it in Python

The program takes four igneous rocks and the size of their crystals. Crystals of about 1 mm or more, big enough to see, mean slow cooling underground.

Predict first. Which of the four rocks cooled underground? Then run it.

1. Which rock has no crystals at all?

2. Add a rock "gabbro": 4.0 to the dictionary. Is it intrusive or extrusive?

Common mistakes

  • Mixing up magma and lava. Magma is underground. Lava is at the surface.
  • Thinking big crystals mean the rock is hot. Big crystals mean the melt cooled slowly.
  • Saying granite formed on the surface because we find it there. It formed deep down. The rock above it wore away later.
  • Calling pumice a sedimentary rock because it is light. Pumice is igneous lava full of bubbles.

Remember these

  • Igneous rock forms when magma or lava cools and sets.
  • Slow cooling underground gives big crystals: intrusive rock such as granite.
  • Fast cooling at the surface gives tiny crystals: extrusive rock such as basalt. Very fast cooling gives glass, obsidian.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. What is the difference between magma and lava?
  1. A rock has crystals far too small to see. Did it cool fast or slowly, and where?
  1. How hot is the rock 18 km below a surface at 15 °C, if it warms by 25 °C for each km?
  1. Why can pumice float on water?

References

  • S. Earle, Physical Geology, 2nd edition (BCcampus, 2019), chapter 3: Intrusive Igneous Rocks, and chapter 4: Volcanism.

Enroll free in Minerals and the Three Kinds of Rock

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

Two igneous rocks lie side by side in a museum…Easy · Middle Stage (6–8) · by StemPy Lab
The ground is at 15 °C. Magma at 900 °C sits in two places: chamber A is 6 km down and chamber B is…Medium · Middle Stage (6–8) · by StemPy Lab
A volcano in Iceland sends out a lava flow 3 km long, 400 m wide and 5 m thick on average…Hard · Middle Stage (6–8) · by StemPy Lab
Next: lesson 3Sedimentary and metamorphic rocks
← Minerals and the Three Kinds of Rock
← Minerals, the building blocks of rocksSedimentary and metamorphic rocks →

Discussion (0)

Log in to join the discussion.

Loading…

1 Python program
5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.