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 and the Geometry of Orbits
  1. 1The ellipse and Kepler's first two laws
  2. 2Newton's form of Kepler's third law
  3. 3Kepler's equation: where is the planet now?
  1. Space Science and Astronomy
  2. /Kepler's Laws and the Geometry of Orbits
  3. /Kepler's equation: where is the planet now?

Course 3.1·Lesson 3 of 3

Kepler's equation: where is the planet now?

The mean anomaly MMM grows evenly with time; the true anomaly θ\thetaθ does not. Kepler's equation M=E−esin⁡EM = E - e\sin EM=E−esinE

Lesson 3 of 3Show all lessonsHide
Kepler's Laws and the Geometry of Orbits
  1. 1The ellipse and Kepler's first two laws
  2. 2Newton's form of Kepler's third law
  3. 3Kepler's equation: where is the planet now?

Try the code and the simulations beside the lesson.

Where will it be on a given day?

A comet passed perihelion on 1 March. Where will it be on 1 June? The second law says it slows down as it moves out. So its angle from perihelion does not grow evenly with time. We need a rule that turns a time into a place. Kepler found it.

Three angles

An ellipse inside its auxiliary circle, a circle of radius a around the centre C of the ellipse. The Sun S is at the right-hand focus. A planet P is on the ellipse in the upper half. A vertical dashed line runs from P up to the point Q on the circle directly above it. The angle at the centre C between the perihelion direction and the line CQ is labelled E, the eccentric anomaly. The angle at the Sun S between the perihelion direction and the line SP is labelled theta, the true anomaly. Theta is larger than E for this point.
  • The mean anomaly MMM grows evenly: M=2π(t−τ)/TM = 2\pi(t - \tau)/TM=2π(t−τ)/T, where τ\tauτ is the time of perihelion. It is the angle of an imaginary planet moving round a circle with the same period.
  • The eccentric anomaly EEE is a helper. Draw the circle of radius aaa round the centre of the ellipse. Go up from the planet, at right angles to the major axis, to the circle. EEE is the angle at the centre to that point.
  • The true anomaly θ\thetaθ is the real angle at the Sun from perihelion.

With the Sun at the origin and perihelion on the xxx axis, the planet is at

x=a(cos⁡E−e),y=bsin⁡E\displaystyle x = a(\cos E - e), \quad y = b\sin Ex=a(cosE−e),y=bsinE

So its distance is

r=a(1−ecos⁡E)\displaystyle r = a(1 - e\cos E)r=a(1−ecosE)

and the true anomaly follows from

tan⁡θ2=1+e1−e tan⁡E2\displaystyle \tan\dfrac{\theta}{2} = \sqrt{\dfrac{1 + e}{1 - e}}\,\tan\dfrac{E}{2}tan2θ​=1−e1+e​​tan2E​

Kepler's equation

The second law says that the area swept since perihelion grows evenly. On the circle, the area from the Sun to the point at angle EEE is 12a2(E−esin⁡E)\tfrac{1}{2}a^2(E - e\sin E)21​a2(E−esinE). The ellipse is the circle squeezed by the factor b/ab/ab/a, so its area is 12ab(E−esin⁡E)\tfrac{1}{2}ab(E - e\sin E)21​ab(E−esinE). The whole ellipse, πab\pi abπab, is swept in one period. So

t−τT=E−esin⁡E2π\displaystyle \dfrac{t - \tau}{T} = \dfrac{E - e\sin E}{2\pi}Tt−τ​=2πE−esinE​

which is Kepler's equation:

M=E−esin⁡E\displaystyle M = E - e\sin EM=E−esinE

The angles are in radians here.

Solving it

From EEE we get MMM at once. But usually we know the time, so MMM, and want EEE. No formula gives EEE from MMM exactly. We solve by steps.

  • Fixed-point iteration. Start with E0=ME_0 = ME0​=M and repeat Ek+1=M+esin⁡EkE_{k+1} = M + e\sin E_kEk+1​=M+esinEk​. Each step cuts the error by about the factor ecos⁡Ee\cos EecosE. So it is quick for small eee and slow for eee near 111.
  • Newton's method. Repeat Ek+1=Ek−Ek−esin⁡Ek−M1−ecos⁡EkE_{k+1} = E_k - \dfrac{E_k - e\sin E_k - M}{1 - e\cos E_k}Ek+1​=Ek​−1−ecosEk​Ek​−esinEk​−M​. It doubles the number of correct digits at every step.

Worked example: a quarter of the period

An asteroid has a=2.80 AUa = 2.80\ \text{AU}a=2.80 AU and e=0.150e = 0.150e=0.150. Where is it a quarter of a period after perihelion?

  1. The mean anomaly. M=90∘=1.5708M = 90^\circ = 1.5708M=90∘=1.5708 rad.
  2. Iterate. E1=1.5708+0.150sin⁡(1.5708)=1.7208E_1 = 1.5708 + 0.150\sin(1.5708) = 1.7208E1​=1.5708+0.150sin(1.5708)=1.7208. Then E2=1.7191E_2 = 1.7191E2​=1.7191 and E3=1.7191E_3 = 1.7191E3​=1.7191. So E=1.7191E = 1.7191E=1.7191 rad, which is 98.50∘98.50^\circ98.50∘.
  3. The distance. r=2.80 AU×(1−0.150cos⁡98.50∘)=2.862 AUr = 2.80\ \text{AU} \times (1 - 0.150\cos 98.50^\circ) = 2.862\ \text{AU}r=2.80 AU×(1−0.150cos98.50∘)=2.862 AU.
  4. The true anomaly. tan⁡(θ/2)=1.1632×tan⁡49.25∘=1.3500\tan(\theta/2) = 1.1632 \times \tan 49.25^\circ = 1.3500tan(θ/2)=1.1632×tan49.25∘=1.3500, so θ=106.94∘\theta = 106.94^\circθ=106.94∘.
  5. Check. After a quarter of the period the planet has gone more than a quarter of the way round. That fits: it moved fast near perihelion. Its distance is a little more than aaa, as it should be just past the end of the minor axis.

Unequal halves

The line through the Sun at right angles to the major axis cuts the orbit into a near half and a far half. At its ends θ=±90∘\theta = \pm 90^\circθ=±90∘, so cos⁡E=e\cos E = ecosE=e. The near half takes the fraction

f=E−esin⁡Eπ,cos⁡E=e\displaystyle f = \dfrac{E - e\sin E}{\pi}, \quad \cos E = ef=πE−esinE​,cosE=e

of the period. For the Earth, with e=0.0167e = 0.0167e=0.0167, f=0.4894f = 0.4894f=0.4894. The near half lasts 178.7178.7178.7 days and the far half 186.5186.5186.5 days. This is one reason why the northern summer half of the year is about a week longer than the winter half. The Earth is nearest the Sun in early January.

Set t/T=0.25t/T = 0.25t/T=0.25 and raise eee from 000 to 0.90.90.9. How does the true anomaly change? Why is the planet then already close to aphelion?

Practise with new numbers

Try it in Python

The program solves Kepler's equation in two ways and counts the steps each one needs.

Predict first. Which method needs more steps when e=0.9e = 0.9e=0.9? Then run it. Check with Show the answer.

1. Change M = 1.0 to M = 3.0. Do the counts change?

2. Add 0.99 to the list of eccentricities. What happens to the fixed-point method?

Common mistakes

  • Using degrees in Kepler's equation. In M=E−esin⁡EM = E - e\sin EM=E−esinE the angles MMM and EEE must be in radians.
  • Taking EEE as the angle at the Sun. EEE is measured at the centre of the ellipse, on the auxiliary circle.
  • Thinking a quarter of the period is a quarter of the orbit. Near perihelion the planet covers more angle in the same time.
  • Losing the quadrant. For θ\thetaθ between 180∘180^\circ180∘ and 360∘360^\circ360∘, use the two-argument inverse tangent or check the sign of sin⁡E\sin EsinE.

Remember these

  • M=2π(t−τ)/TM = 2\pi(t - \tau)/TM=2π(t−τ)/T grows evenly with time.
  • Kepler's equation: M=E−esin⁡EM = E - e\sin EM=E−esinE, angles in radians.
  • r=a(1−ecos⁡E)r = a(1 - e\cos E)r=a(1−ecosE) and tan⁡(θ/2)=(1+e)/(1−e)tan⁡(E/2)\tan(\theta/2) = \sqrt{(1 + e)/(1 - e)}\tan(E/2)tan(θ/2)=(1+e)/(1−e)​tan(E/2).
  • Solve by Ek+1=M+esin⁡EkE_{k+1} = M + e\sin E_kEk+1​=M+esinEk​ or by Newton's method.

Check yourself

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

  1. What are EEE and θ\thetaθ when M=0M = 0M=0 and when M=180∘M = 180^\circM=180∘?
  1. For a circular orbit, how are MMM, EEE and θ\thetaθ related?
  1. A comet has e=0.9e = 0.9e=0.9. What fraction of its period does it spend in the half of the orbit nearer the Sun?
  1. Why does the fixed-point method slow down when eee is close to 111?

References

  • A. E. Roy, Orbital Motion (4th edition, Institute of Physics Publishing), Chapter 4, The two-body problem.
  • J. Meeus, Astronomical Algorithms (2nd edition, Willmann-Bell), Chapter 30, Equation of Kepler.

Enroll free in Kepler's Laws and the Geometry of Orbits

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)

A comet like Halley's moves on an orbit with a = 17.8 AU and e = 0.967…Advanced · High School (11–12) · by StemPy Lab
The line through the Sun at right angles to the major axis of the Earth's orbit cuts the orbit into…Hard · High School (11–12) · by StemPy Lab
An asteroid of the main belt has an orbit with a = 2.20 AU and e = 0.30…Advanced · High School (11–12) · by StemPy Lab
That was the last lessonBack to the course: take the test
← Kepler's Laws and the Geometry of Orbits
← Newton's form of Kepler's third lawNext →

Discussion (0)

Log in to join the discussion.

Loading…

joins them through the eccentric anomaly
EEE
. We solve it by iteration and then find where the planet is and how far it is from the Sun.
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)

A Kepler's equation solverPython Lab · by StemPy Lab

Question Sets (1)

Kepler's Laws: Test Yourself10 questions · by StemPy Lab

Notes (1)

Kepler's Laws and the Geometry of Orbits: Quick RevisionNote · by StemPy Lab