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
Kepler's Laws of Planetary Motion
  1. 1Ellipses and Kepler's first law
  2. 2Kepler's second law: equal areas in equal times
  3. 3Kepler's third law and the size of an orbit
  1. Space Science and Astronomy
  2. /Kepler's Laws of Planetary Motion
  3. /Ellipses and Kepler's first law

Course 6.2·Lesson 1 of 3

Ellipses and Kepler's first law

Kepler used Tycho's positions of Mars and found that no circle fitted. The orbit is an ellipse, with the Sun at one of its two foci. An ellipse has a semi-major axis aaa and an eccentricity eee. The nearest point to the Sun is at a(1−e)a(1 - e)a(1−e)

Lesson 1 of 3Show all lessonsHide
Kepler's Laws of Planetary Motion
  1. 1Ellipses and Kepler's first law
  2. 2Kepler's second law: equal areas in equal times
  3. 3Kepler's third law and the size of an orbit

Try the code and the simulations beside the lesson.

A circle that did not fit

Kepler was Tycho Brahe's assistant. After Tycho died in 1601, Kepler gained the use of his notebooks and worked on the orbit of Mars. He tried every circle that he could think of, with the old tricks of epicycles and the equant. He found a model that matched Tycho's data to within 888 arcminutes. That is about a quarter of the width of the full Moon.

Most people would have been pleased. But Kepler trusted Tycho. He knew that the observations were good to about 111 to 222 arcminutes. So he said: the circle is wrong. The result was Kepler's first law, published in 1609 together with his second law. His third law followed in 1619. We study all three in this course.

The first law

The orbit of every planet is an ellipse, with the Sun at one focus.

An ellipse is a squashed circle. You can draw one yourself. Push two drawing pins into a board. Put a loop of string round them. Pull the loop tight with a pencil and move the pencil round, keeping the string tight. The pencil draws an ellipse. The two pins are the foci (one is a focus).

A drawing of an ellipse, long from left to right. Two points inside it on the long axis are marked as the foci, F1 on the right and F2 on the left, each the same distance from the centre. The Sun is drawn at F1. The long axis through both foci is marked with a, the semi-major axis, measured from the centre to the right end of the ellipse. The short axis is marked with b, the semi-minor axis, measured from the centre to the top of the ellipse. The distance from the centre to a focus is marked c. A planet is drawn on the ellipse with two lines to it, one from each focus, and the label says that the two lines always add up to 2a. The nearest point to the Sun, the perihelion, is marked on the right and the farthest point, the aphelion, on the left.

For every point on the ellipse, the two distances to the foci add up to the same total. This total is the length of the longest line across the ellipse, which is 2a2a2a.

  • The semi-major axis aaa is half of the longest line across the ellipse.
  • The semi-minor axis bbb is half of the shortest line.
  • The distance from the centre to each focus is ccc.

The eccentricity eee tells us how squashed the ellipse is:

e=ca\displaystyle e = \dfrac{c}{a}e=ac​

A circle has e=0e = 0e=0, because both foci are at the centre. The larger eee is, the longer and thinner the ellipse is. The value of eee is always between 000 and 111 for an orbit that closes up. The semi-minor axis is b=a1−e2b = a\sqrt{1 - e^2}b=a1−e2​.

Nearest and farthest

The Sun is at one focus, so it is not in the middle of the orbit. The planet is nearest the Sun at the end of the long axis near the Sun. This point is the perihelion. It is farthest at the other end, the aphelion.

q=a(1−e)\displaystyle q = a(1 - e)q=a(1−e)
Q=a(1+e)\displaystyle Q = a(1 + e)Q=a(1+e)

These two add up to q+Q=2aq + Q = 2aq+Q=2a. So aaa is the average of the nearest and the farthest distances. Also

e=Q−qQ+q\displaystyle e = \dfrac{Q - q}{Q + q}e=Q+qQ−q​

For the Earth, with a=1.000 AUa = 1.000\ \text{AU}a=1.000 AU and e=0.0167e = 0.0167e=0.0167, the nearest distance is 0.983 AU0.983\ \text{AU}0.983 AU and the farthest is 1.017 AU1.017\ \text{AU}1.017 AU. In kilometres these are 147.1147.1147.1 million and 152.1152.1152.1 million.

Set eee to 0.950.950.95. Where is the empty focus now? Why is the planet's path nearly a straight line then?

How round are the planets' orbits?

BodyEccentricityNearest to farthest
Earth0.01670.01670.01670.9830.9830.983 to 1.0171.0171.017 AU
Mars0.0930.0930.0931.381.381.38 to 1.671.671.67 AU
Halley's Comet0.9670.9670.9670.5860.5860.586 to 35.135.135.1 AU

The orbits of the planets are very nearly circles. For the Earth, the semi-minor axis is b=0.99986 ab = 0.99986\,ab=0.99986a. If you drew its orbit with a=10a = 10a=10 cm, the width would be only 0.0140.0140.014 mm less than the length, far too small to see. Even Mercury, the most eccentric planet, has b=0.979 ab = 0.979\,ab=0.979a.

But the Sun is clearly off centre. The Sun is c=aec = aec=ae from the centre. With a=10a = 10a=10 cm and e=0.0167e = 0.0167e=0.0167, the Sun is 1.671.671.67 mm from the centre, which you could see. So the ellipse shows itself in the distances of Mars from the Sun, which Kepler worked out from Tycho's data, even though the shape looks round.

Comets are different. Halley's Comet has e=0.967e = 0.967e=0.967. It comes in close to the Sun, then goes out to beyond the orbit of Neptune.

Practise with new numbers

Try it in Python

The program finds the perihelion, the aphelion, the semi-minor axis and the offset of the Sun for four planets.

Predict first. For which planet is the Sun furthest from the centre of the orbit, in AU? And for which is the ellipse least like a circle? Then run it. Check with Show the answer.

1. Add "Halley": (17.843, 0.967) to the dictionary. What is the value of b / a?

2. Change Earth's e to 0.0 and run it again. What is the offset of the Sun now?

Common mistakes

  • Putting the Sun in the middle of the ellipse. It is at a focus, off centre.
  • Thinking that the Earth's orbit is a long oval. It is very nearly a circle. A picture of an ellipse in a book is much more squashed than the real one.
  • Thinking that the orbit is an ellipse because of the seasons. The seasons come from the tilt of the axis, which you studied in another chapter.
  • Calling aaa the radius. aaa is the semi-major axis, half of the longest line. It equals the radius only for a circle.

Remember these

  • Kepler's first law: each planet moves on an ellipse with the Sun at one focus (1609).
  • For any point on an ellipse, the distances to the two foci add up to 2a2a2a.
  • e=c/ae = c/ae=c/a, b=a1−e2b = a\sqrt{1 - e^2}b=a1−e2​, q=a(1−e)q = a(1 - e)q=a(1−e) and Q=a(1+e)Q = a(1 + e)Q=a(1+e).
  • A circle has e=0e = 0e=0. Planet orbits have small eee. Comets can have eee close to 111.

Check yourself

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

  1. Where is the Sun in the orbit of a planet?
  1. An orbit has q=2.0 AUq = 2.0\ \text{AU}q=2.0 AU and Q=6.0 AUQ = 6.0\ \text{AU}Q=6.0 AU. What is aaa?
  1. Why did Kepler give up circles for Mars?
  1. Which has the larger eccentricity, an orbit with e=0.05e = 0.05e=0.05 or one with e=0.9e = 0.9e=0.9? Which is more like a circle?

References

  • OpenStax Astronomy 2e, Chapter 3 Orbits and Gravity, section 3.1 The Laws of Planetary Motion.
  • OpenStax University Physics Volume 1, Chapter 13 Gravitation, section 13.5 Kepler's Laws of Planetary Motion.

Enroll free in Kepler's Laws of Planetary Motion

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)

Mars has a semi-major axis of 1.524 AU and an eccentricity of 0.093…Easy · High School (9–10) · by StemPy Lab
Halley's Comet is 0.586 AU from the Sun at perihelion and 35.1 AU at aphelion…Medium · High School (9–10) · by StemPy Lab
A student draws the orbit of Mercury as an ellipse with a = 10.0 cm…Hard · High School (9–10) · by StemPy Lab
Next: lesson 2Kepler's second law: equal areas in equal times
← Kepler's Laws of Planetary Motion
← PreviousKepler's second law: equal areas in equal times →

Discussion (0)

Log in to join the discussion.

Loading…

and the farthest at
a(1+e)a(1 + e)a(1+e)
.
about 30 min1 simulation2 practice questions1 Python program5 questions to check yourself

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

Python Labs (1)

An ellipse in codePython Lab · by StemPy Lab