Kepler's laws of planetary motion are three mathematical relationships describing how planets travel around the Sun: their orbits are ellipses with the Sun at one focus; a line joining a planet to the Sun sweeps out equal areas in equal times; and the square of a planet's orbital period is proportional to the cube of its orbit's semimajor axis. Formulated by Johannes Kepler from astronomical observations, the first two laws appeared in Astronomia nova in 1609 and the third in Harmonices mundi in 1619. They replaced the traditional requirement that celestial motions be assembled from uniform circular motions with a quantitatively successful description of nonuniform motion along noncircular paths.
The laws were an important bridge between observational astronomy and the gravitational dynamics later developed by Isaac Newton. In Newtonian theory, their precise mathematical form follows from the idealized problem of two bodies interacting through an inverse-square gravitational attraction. They therefore apply not only to planets but also, within appropriate limits, to natural satellites, artificial spacecraft, and pairs of stars. Actual astronomical systems depart from exact Keplerian motion because of additional gravitating bodies, nonspherical mass distributions, relativistic effects, and nongravitational forces.
Observational origins and historical development
European planetary astronomy before Kepler commonly represented celestial motion through combinations of circles. The geocentric system associated with Ptolemy used deferents, epicycles, and the equant to reproduce the observed positions and variable apparent speeds of planets. In De revolutionibus orbium coelestium, published in 1543, Nicolaus Copernicus placed Earth among the planets orbiting the Sun, but retained combinations of uniform circular motions. Heliocentrism changed the arrangement of the planetary system without immediately supplying the elliptical trajectories or the mathematical law of changing orbital speed.
The decisive observational material came from Tycho Brahe, whose instruments measured planetary positions with unprecedented precision before the astronomical telescope became available. Kepler joined Brahe in Prague in 1600 and gained access to his observations, particularly those of Mars. Mars was especially informative because its orbital eccentricity is substantially greater than Earth's, making discrepancies between circular models and observations easier to detect. Nevertheless, reconstructing its orbit was difficult: observations were made from a moving Earth, so Earth's own motion had to be determined alongside that of Mars.
Kepler initially explored models that remained close to established circular astronomy. A crucial difficulty was a discrepancy of about eight arcminutes between a proposed model and parts of Brahe's observational record. Rather than treating this difference as negligible, Kepler regarded it as evidence that the underlying orbital construction was wrong. His investigation involved repeated comparisons of distances, angular positions, and elapsed times, not merely fitting a visually plausible curve. The area relationship emerged during this work before the final adoption of an ellipse. Astronomia nova presented the first two laws in 1609 through an extended account of the investigation, rather than in the concise textbook form now familiar.
The third law followed a decade later. In Harmonices mundi of 1619, Kepler identified a common numerical relationship between the orbital periods and sizes of the known planets. His larger intellectual project included geometrical and musical harmonies that do not belong to modern orbital dynamics, but the period–distance relationship survived as a precise physical result. The Rudolphine Tables, published in 1627 using Brahe's observations and Kepler's planetary theory, helped establish the practical value of the new astronomy. Newton's Philosophiæ naturalis principia mathematica of 1687 subsequently explained the laws through general principles of motion and gravitation, transforming them from empirical regularities into consequences of a dynamical theory.
The first law: elliptical orbital geometry
The first law states that a planet follows an ellipse with the Sun at one focus. An ellipse is the set of points for which the sum of the distances to two fixed foci is constant. Its semimajor axis is half its longest diameter, its semiminor axis is half its shortest diameter, and its eccentricity measures its departure from a circle. If the distance from the center to either focus is , then
A bound, nondegenerate elliptical orbit has . A circle is the special case , in which the two foci coincide. The second focus is a geometrical feature; no second attracting object is required there.
For an orbit around the Sun, the closest point is perihelion and the farthest is aphelion. Their distances from the solar focus are
Consequently, . This arithmetic mean of the extreme distances should not be confused with the time average of the planet's distance: a planet spends more time in the more distant parts of its orbit. In polar coordinates centered on the occupied focus, the ellipse can be written
where , the true anomaly, is the angle measured from perihelion in the direction of motion. The numerator is called the semilatus rectum.
Most major planetary orbits are only moderately eccentric. Earth's eccentricity is approximately , giving perihelion and aphelion distances of about and astronomical units, respectively. Mars has an eccentricity near , while Mercury's is about . These values vary slowly under gravitational perturbations. Highly elongated textbook diagrams are useful for displaying the geometry, but they exaggerate the appearance of most planetary orbits. Earth's seasonal temperature cycle is primarily a consequence of axial tilt, not of its comparatively small annual change in solar distance.
The reference frame matters when interpreting the law precisely. In the ideal Newtonian two-body problem, neither body is absolutely fixed: both orbit their common center of mass. Their relative separation traces an ellipse with the origin of relative coordinates at a focus, while each body's barycentric path is also an ellipse of a different size. Treating the Sun as stationary is an excellent first approximation for an individual planet because the Sun is much more massive. In the actual solar system, however, a planet's heliocentric path is not one permanently fixed ellipse. It is more accurately represented by a changing ellipse whose parameters respond to the gravitational influence of other bodies.
The second law: equal areas and variable speed
The second law states that the line joining a planet to the Sun sweeps out equal areas during equal intervals of time. It is therefore a statement about timing along an orbit, not merely its shape. A planet moves more rapidly near perihelion and more slowly near aphelion. Equal angular displacements generally do not take equal times: far from the Sun, a larger radius allows a smaller angle to sweep out the same area. Only for a circular orbit does constant areal speed also imply constant angular speed and constant orbital speed.
Let be the planet's position relative to the Sun and its relative velocity. The instantaneous areal speed is
Defining the specific orbital angular momentum as
the law becomes . “Specific” means per unit mass in the test-particle description; in the exact two-body treatment, is angular momentum per unit reduced mass. Conservation of angular momentum thus provides the modern explanation of the area law.
This relationship follows whenever the acceleration is directed along the radius vector. Such a central acceleration produces no torque about the force center, because . The second law alone therefore does not establish an inverse-square force. Many other central-force laws conserve areal speed while producing trajectories that are not ellipses or do not close. Its dynamical content is distinct from that of the first law: the area law identifies a conserved rotational quantity, whereas the exact elliptical shape imposes additional restrictions on the force. In the ideal two-body problem, the constant direction of also confines the motion to a fixed plane.
At perihelion and aphelion, velocity is perpendicular to the radius vector. The area law then gives
For Earth, this ratio is about : its heliocentric speed is approximately kilometers per second near perihelion and kilometers per second near aphelion. For a much more eccentric orbit, the speed contrast can be severalfold. The area of the complete ellipse is , so an orbital period satisfies
More generally, a segment taking one tenth of a full period sweeps out one tenth of the ellipse's area, whether that segment lies near perihelion, aphelion, or elsewhere. This makes the law useful for connecting geometrical orbital position to elapsed time.
The third law: orbital periods, sizes, and masses
The third law relates different orbits around the same dominant central body:
Here is the orbital period and is the semimajor axis, not the instantaneous distance from the central body. For planets whose masses are negligible compared with the Sun's, the ratio is almost the same. In astronomical units and years, the approximate solar-system form is particularly simple:
The approximation includes the choice of conventional units and the neglect of planetary masses; it is not an exact definition of either the year or the astronomical unit.
Mars illustrates the relationship. Its semimajor axis is approximately astronomical units, so the third law predicts a period of , or about years. Jupiter, with a semimajor axis near astronomical units, has an orbital period of about years. Doubling an orbit's semimajor axis does not double its period: the factor is , approximately . The exponent expresses a combination of a longer path and a lower characteristic orbital speed at greater distance from the attracting mass.
The exact Newtonian two-body form is
where is the gravitational constant, and are the two masses, and is the semimajor axis of their relative orbit. The quantity
is the gravitational parameter of the relative motion. The often-used replacement assumes . Accordingly, the ratio is not exactly identical for all planets. For two stars of comparable mass, omitting either mass would cause a substantial error. If the individual barycentric semimajor axes are and , the relative semimajor axis needed in the formula is .
An important consequence is that, at fixed semimajor axis and total mass, the period does not depend on eccentricity. Two ideal Keplerian orbits can differ greatly in elongation yet have the same period. The third law also turns observed motion into a measurement of gravitational mass:
Determining the physical orbital scale is crucial. Angular separations on the sky require an independently established distance before they can supply in meters. In many applications, observations determine the product more directly and accurately than either the masses in kilograms or separately.
Newtonian derivation and the two-body model
Kepler's laws originated as descriptions of observations, but classical mechanics explains why they arise. Combining Newton's laws of motion with inverse-square gravitation reduces an isolated pair of point masses to an equation for their relative position:
The same exterior gravitational field applies to a spherically symmetric body, provided the other object lies outside it. The reduction separates uniform motion of the center of mass from the internal orbital motion. Thus the essential orbit problem involves one relative vector rather than two independently tracked positions.
Because the acceleration is central, is constant, immediately establishing the second law. To determine the trajectory, introduce and use the polar angle as the independent variable. The radial equation becomes
Choosing the angular origin at closest approach gives
or
This is a conic section with semilatus rectum . For a bound orbit with nonzero angular momentum, the conic is an ellipse, establishing the first law under the assumptions of the model.
Conservation of energy further classifies the possible trajectories. The specific orbital energy is
For an ellipse,
Combining the energy expressions yields the vis-viva equation,
It supplies the speed at any point on an ideal elliptical orbit. Negative energy corresponds to bound elliptical motion; zero energy gives the parabolic escape threshold; positive energy gives a hyperbolic trajectory. The latter two cases extend Keplerian dynamics beyond the closed planetary orbits of Kepler's original first law.
Finally, the ellipse's area and constant areal speed give
Substituting and produces
which is the third law. This derivation shows that the three laws have related but different logical roles. The second follows from central attraction generally; the first requires the special trajectory structure of inverse-square dynamics; and the third fixes how orbital size and time scale depend on the strength of that attraction. Kepler's geometrical and timing relationships together were therefore powerful evidence for the particular gravitational law Newton proposed, rather than merely for an unspecified pull toward the Sun.
Computing position along an orbit
Knowing an ellipse and its period does not by itself state where a planet will be at a particular time. The second law supplies that information, but the area swept out along an ellipse is not proportional to the true anomaly. Orbital calculations therefore introduce two additional angles: the eccentric anomaly , a geometrical parameter associated with an auxiliary circle, and the mean anomaly , which increases uniformly with time. If is a time of perihelion passage, then
where is called the mean motion. Mean anomaly is a time parameter expressed as an angle, not generally the planet's actual angle around the Sun.
The equal-area law leads to Kepler's equation,
In Cartesian coordinates within the orbital plane, with the origin at the occupied focus and the positive -axis toward perihelion, the ellipse is parameterized by
These coordinates give
The true anomaly can then be recovered from
with the correct angular quadrant retained. The difference between mean anomaly and true anomaly quantifies the orbit's departure from uniform angular motion.
For general eccentricity, Kepler's equation has no solution expressible through a finite combination of elementary functions, so practical calculations normally use numerical methods or series expansions. Newton iteration takes the form
For modest eccentricity, choosing often works well. Highly eccentric orbits near perihelion require more careful initial estimates or safeguarded root-finding methods, because can become small. For , however, this derivative remains positive, so the equation has a unique solution for each consistently unwrapped mean anomaly. In the circular limit, , apart from the arbitrary choice of angular origin.
A complete three-dimensional orbit also requires its orientation. The conventional six orbital elements are semimajor axis, eccentricity, inclination, longitude of the ascending node, argument of periapsis, and a parameter specifying orbital phase at a stated epoch. Rotations defined by the orientation angles transform the orbital-plane coordinates into a chosen reference frame. Circular orbits make the periapsis direction undefined, and zero-inclination orbits make the ascending node undefined; alternative element sets avoid these coordinate singularities. These computational procedures turn Kepler's laws into an ephemeris, a prediction of position as a function of time, rather than only a description of orbit shape.
Observational tests and determination of orbits
An observed planetary position is not a direct photograph of its complete orbit. Measurements usually provide directions from an observer whose own position changes, and they refer to light emitted or reflected at an earlier time. Orbit determination must therefore connect a dynamical model to the actual measurement geometry. For ground-based angular observations, atmospheric refraction and instrumental calibration matter; for precise work, light-travel time, observer motion, and relativistic effects must also be included. Kepler's laws supply the central model, while the observational calculation translates that model into predicted directions, ranges, or velocities.
A short arc of angular observations can be consistent with substantially different orbital distances and eccentricities. Additional measurements over time reduce these ambiguities, especially when the observer's changing position provides a substantial geometrical baseline. Radar measurements of suitable solar-system bodies add range and line-of-sight velocity information, while spacecraft radio tracking can constrain trajectories much more tightly than angles alone. Orbit fitting generally adjusts initial conditions and physical parameters to minimize differences between observations and model predictions. The resulting parameter uncertainties depend not simply on the number of measurements but also on their precision, timing, and geometry.
The discovery and recovery of Ceres illustrates the practical importance of reconstructing an orbit from limited data. Giuseppe Piazzi discovered Ceres on 1 January 1801, but observations covered only a limited interval before its proximity to the Sun prevented continued tracking. Carl Friedrich Gauss developed calculations that predicted where it could be recovered, and it was observed again near the end of 1801. This achievement did not require treating the visible arc as a complete ellipse; it required solving the inverse problem of inferring an orbit from a moving observer's measurements. Such work helped establish orbit determination as a major branch of mathematical astronomy.
Discrepancies between a Keplerian prediction and observations have several possible meanings. They may reflect measurement errors, incomplete orbital coverage, an incorrect initial orbit, or omitted physical effects. Measurement uncertainty must therefore be distinguished from a genuine failure of the model. Systematic residuals can reveal additional bodies or other accelerations, but a claimed detection requires comparison with alternative explanations. Modern planetary ephemerides use numerical integration of interacting bodies rather than independently fitted, immutable ellipses. Keplerian elements remain useful as compact descriptions of the resulting trajectories, while the more complete integrations provide the accuracy needed for navigation, radar ranging, and stringent tests of gravitation.
Applications to satellites, stellar systems, and exoplanets
For artificial satellites, the central body is usually Earth rather than the Sun, but the same ideal two-body equations apply. A circular orbit with radius about kilometers—roughly a -kilometer altitude above Earth's mean surface—has a period near minutes in the spherical-Earth approximation. A geosynchronous orbit has a period equal to Earth's sidereal rotation period, about hours minutes, giving a semimajor axis near kilometers. A geostationary satellite additionally needs a nearly circular, equatorial, prograde orbit. The period condition alone does not make a satellite remain over one terrestrial longitude.
Spaceflight planning uses Keplerian arcs as building blocks. An ideal Hohmann transfer between coplanar circular orbits follows half an ellipse whose periapsis and apoapsis touch the initial and final orbital radii. If those radii are and , the transfer ellipse has
The vis-viva equation determines speeds along the transfer and hence the ideal impulsive velocity changes needed at its ends. Real missions add constraints such as launch windows, finite engine burns, atmospheric drag, and perturbations, but the Keplerian construction supplies a transparent initial design and a useful baseline for numerical optimization.
For a binary star, the third law determines the sum of the stellar masses when the relative semimajor axis and period are known. Angular orbital dimensions must be converted to physical lengths using the system's distance. Measurements of each star's motion about the barycenter can separate the total into individual masses. Spectroscopic binaries instead reveal orbital motion through periodic wavelength shifts caused by the Doppler effect. If the inclination is not independently known, spectroscopy generally constrains combinations of masses and inclination rather than unique masses. Eclipses or resolved astrometric motion can remove some of these degeneracies.
Keplerian models also underpin the detection and characterization of an exoplanet. Radial-velocity observations can yield the period, eccentricity, phase, and a stellar velocity amplitude related to the companion's mass. For a low-mass planet, the result commonly constrains , not the true planetary mass alone. A transiting planet provides additional information about inclination and the orbital scale relative to the star. When the planet's mass is negligible, combining the third law with gives
Inferring from a transit requires an appropriate model, particularly if the orbit is eccentric. Departures from a repeating Keplerian transit schedule can reveal gravitational interactions with other planets.
Perturbations, relativistic corrections, and limits
Exact Keplerian motion requires an isolated two-body system governed by an inverse-square force. No planetary system satisfies this idealization perfectly. Each planet attracts the others, so orbital size, eccentricity, orientation, and phase change over time. Perturbation theory describes these departures as corrections to a Keplerian solution. An osculating ellipse is the instantaneous Keplerian orbit matching a body's current position and velocity for a specified gravitational parameter. Its elements evolve as perturbing accelerations act. Consequently, a published orbital element set belongs to a particular epoch and reference convention, rather than describing a single unchanging path for all time.
Interactions can produce both short-period oscillations and long-term changes. Orbital resonances occur when combinations of orbital frequencies nearly satisfy an integer relationship, allowing repeated gravitational influences to accumulate coherently. They are important in the architecture of planetary and satellite systems. The general three-body problem lacks a universal closed-form solution comparable to the two-body ellipse, and some configurations display sensitive dependence on initial conditions. This does not prevent useful predictions: numerical integration can achieve high accuracy over specified intervals. It does mean that the validity of a fixed Keplerian approximation depends on the masses, separations, required accuracy, and duration of the prediction.
Nonspherical bodies introduce further departures. Earth's equatorial bulge changes satellite orbital planes and rotates their periapsides; the dominant correction is commonly described by the coefficient in the gravitational field expansion. Atmospheric drag removes orbital energy from low-altitude satellites, while solar radiation pressure can be important for objects with large area relative to mass. Cometary outgassing produces additional accelerations that are not gravitational. A central correction to gravity can preserve the equal-area law while causing periapsis precession, whereas noncentral perturbations generally change angular momentum as well. Different deviations therefore affect the three laws in different ways.
General relativity modifies the Newtonian picture even for an otherwise isolated orbit. In the weak-field, slow-motion limit, the leading relativistic advance of periapsis per orbit is
where is the speed of light. For Mercury, this accounts for approximately arcseconds of perihelion advance per century beyond the major Newtonian contributions. Albert Einstein obtained the successful explanation in 1915. A relativistic bound trajectory is therefore not a permanently closed Keplerian ellipse, and precision timing and distance measurements require relativistic definitions and corrections. Near compact objects such as a black hole, strong-field effects can make the Keplerian approximation inadequate, while orbital energy loss through gravitational-wave emission can progressively shrink the orbits of compact binary systems.