Kepler's Third Law: Orbital Period, Total Mass and the Correct Semimajor Axis

Calculate two-body orbital periods with full units, distinguish relative and barycentric axes, infer total mass and test eccentricity and uncertainty examples.

Panchang methods and notationArticle · 13 min readहिंदी में पढ़ें ↗

Written and published by: Astrogyana

· Revised:

Editorial policy · Corrections policy

Which form of Kepler's third law should you use?

For an isolated Newtonian two-body system in a bound elliptical orbit, P² = 4π²a³ / [G(M₁ + M₂)]. Here P is the orbital period and a is the semimajor axis of the relative orbit: the orbit of one body's position measured from the other. Both masses belong in the denominator.

The familiar P² ≈ a³ shortcut needs carefully chosen units and a total mass close to one solar mass. It is not a universal formula for arbitrary units, every binary star or every satellite. The worked examples below use an explicit gravitational parameter, SI conversions and a defined Julian year so the rounding can be reproduced.

The most consequential mistake usually occurs before pressing the square-root key: selecting an instantaneous separation or one star's orbit about the barycentre in place of the relative semimajor axis.

Semimajor axis is not a snapshot separation

An ellipse has a major axis running across its longest dimension. The semimajor axis is half that length. For the relative orbit, its closest and farthest separations satisfy rₚ = a(1 − e) and rₐ = a(1 + e), giving a = (rₚ + rₐ)/2. Only for a circle does the separation stay equal to a throughout the orbit.

For example, closest and farthest separations of 1 and 3 au give a = 2 au and eccentricity e = 0.5. Substituting the 3 au farthest separation into the period formula would produce a different, longer period. A photograph taken at that instant cannot convert the farthest distance into the semimajor axis by changing its label.

“Average distance” can also mislead: a is the arithmetic mean of those two extremes, not generally the separation averaged over equal time intervals. The body spends more time near its distant part of an elliptical orbit. See perihelion, aphelion and orbital speed for the geometry behind that distinction.

Why the two masses add

Let r be the separation vector from body 1 to body 2. Each body accelerates under the other's gravity. Subtracting their two acceleration equations gives r̈ = −G(M₁ + M₂)r/|r|³. This is the relative equation of motion, with gravitational parameter μ = G(M₁ + M₂).

For a circle, the relative speed is 2πa/P. Setting its centripetal acceleration equal to μ/a² gives 4π²a/P² = μ/a² and hence the period law. For an ellipse, the same result follows from the area πab, constant areal rate h/2, b = a√(1 − e²), and h² = μa(1 − e²). Substituting these into P = 2πab/h cancels the eccentricity factors.

This cancellation is the reason an ellipse and a circle can have the same period at the same a and μ. It does not say that their speeds or separations match at every point. The derivation assumes two-body gravity; significant extra forces require a fuller model.

Declare units before calculating

Units and constants used in this article
QuantityValueMeaning
1 au149597870700 mDefined astronomical unit
1 Julian year31557600 s365.25 days, each of 86400 seconds
μ☉ᴺ1.3271244 × 10²⁰ m³/s²IAU nominal solar mass parameter
m = μ / μ☉ᴺdimensionlessRatio for the whole system
k1.000018886746Coefficient in the period formula using years

The IAU nominal solar parameter is an exact conversion constant. It is not a claim that the physical Sun has an eternally exact mass. Using μ directly also avoids splitting a measured gravitational parameter into a mass and an independently estimated G when that extra step is unnecessary.

With a in au, m = μ/μ☉ᴺ, and P in the Julian years defined above, the formula is P = k√(a³/m), where k = 1.000018886746. The slight departure from one matters when explaining the units, even though it is tiny for a classroom estimate.

At a = 1 au and m = 1, this model gives 365.256898 days. That is not exactly 365.25 days, nor should it be called a precise prediction of the Earth's year: the example uses a nominal solar parameter, specified ideal inputs and an isolated two-body model.

Worked period table for three total mass parameters

Each row keeps the relative semimajor axis fixed and changes the total gravitational parameter. For a = 4 au and m = 2, a³/m = 64/2 = 32. Taking its square root and multiplying by k gives 5.656961 Julian years.

Calculated examples: period in Julian years
a (au)m = 0.5m = 1m = 2
0.250.1767800.1250020.088390
0.50.5000090.3535600.250005
11.4142401.0000190.707120
24.0000762.8284812.000038
37.3486085.1962513.674304
411.3139228.0001515.656961
515.81168711.1805517.905843
1044.72220431.62337422.361102

Keeping m = 1 while doubling a from 1 to 2 au multiplies P by 2√2, approximately 2.828427. Keeping a fixed while doubling m divides P by √2. These ratios are more informative than memorising a long table, because the common unit coefficient cancels.

How orbit size and mass change the period

Three calculated period curves from 0.2 to 5 au: mass-parameter ratio 0.5 is highest and ratio 2 is lowest
Original Astrogyana calculation plot. The total gravitational parameter of both bodies is used; the curves represent 0.5, 1 and 2 nominal solar parameters. These are not observed planetary tracks.

The graph has linear axes. The upward curvature comes from P being proportional to a raised to the power 3/2. The blue curve is highest because the lowest total mass parameter gives the slowest orbit at the same size. At 4 au its period is twice the red curve's period, since their parameters differ by a factor of four.

The curves deliberately use synthetic systems. Reading a point from the chart does not identify a real planet, specify its eccentricity or tell you its current position. The accompanying table gives numbers where the width of a plotted line would otherwise limit precision.

Eccentricity changes the shape, not this fixed-a period

Different eccentricities at a = 2 au and m = 1
erₚ (au)rₐ (au)P (Julian years)
02.0000002.0000002.828481
0.21.6000002.4000002.828481
0.51.0000003.0000002.828481
0.80.4000003.6000002.828481

At e = 0.8 the separation ranges from 0.4 to 3.6 au, yet the period matches the circular 2 au orbit at the same total parameter. The larger farthest separation is balanced by a much smaller closest separation while a stays fixed.

If instead you hold the closest separation fixed and increase eccentricity, then a = rₚ/(1 − e) increases, so the period does change. “Independent of eccentricity” is meaningful only after specifying which other quantities remain fixed. The four rows above make that condition explicit.

At e = 1 or greater, a bound elliptical orbital period is no longer supplied by this formula in the same way. An unbound pass does not have a recurring revolution time; inserting an unsuitable or negative axis into a square root will not create one.

A binary-star example: use a₁ + a₂

Consider a fictional binary whose component gravitational parameters are 1.5 and 0.5 nominal solar units, with relative a = 4 au. Their total is 2. The centre-of-mass condition gives a₁ = aM₂/(M₁ + M₂) = 1 au and a₂ = aM₁/(M₁ + M₂) = 3 au.

Both stars complete their barycentric orbits in the same 5.656961 years. The more massive component travels on the smaller ellipse. The relative axis is the sum of their barycentric axes, not either one separately.

Fictional binary: correct and incorrect semimajor axes
Axis used in calculationa (au)mResulting period (years)
Relative a₁ + a₂425.656961
Mistakenly use a₁ only120.707120
Mistakenly use a₂ only323.674304
Correct a, omit companion mass41.56.532096

Using a₁ = 1 au with the total parameter underestimates this period by a factor of eight. Using the correct 4 au but ignoring the 0.5-unit companion also fails, in the opposite direction. A planet's mass can sometimes be neglected because its contribution is small; that approximation must be checked rather than carried automatically into a stellar binary.

Use ratios when absolute constants cancel

For two systems obeying the same model, P₂/P₁ = √[(a₂/a₁)³(μ₁/μ₂)]. This avoids unnecessary unit conversions when all like quantities already share a unit. It also makes a useful independent check on a calculator result.

Period ratios when units are consistent
a₂/a₁μ₂/μ₁P₂/P₁
212.828427
315.196152
120.707107
140.500000
281.000000
0.510.353553

The row with twice the size and eight times the parameter returns the same period. That provides a quick dimensional sanity check: the cubic increase in size has exactly matched the increase in μ. A result that doubles the period in that case probably used a linear distance scaling instead.

Infer total mass from a measured orbit

Rearranging gives μ = 4π²a³/P², or m = k²a³/P² in this article's units. A hypothetical orbit with a = 4 au and P = 5 Julian years therefore implies m = 2.560097. That is the total parameter; it does not independently separate the two component masses.

To find the mass ratio as well, you need additional information, such as both barycentric axes or appropriate velocity measurements and an orbital model. In our earlier binary a₁/a₂ = 1/3 implies M₂/M₁ = 1/3. Combining that ratio with the total partitions it into 0.5 and 1.5 units.

A resolved binary's angular orbit also needs a distance scale and a fit that accounts for orientation. In the small-angle relation, a correctly fitted angular relative axis in arcseconds multiplied by distance in parsecs gives its physical axis in au. A single projected separation on an image is not that fitted axis. The parallax and parsec guide explains the distance conversion separately.

Why a modest distance error can dominate the mass estimate

Taking logarithmic differentials gives dP/P = (3/2)da/a − (1/2)dμ/μ. For the inverse problem, dμ/μ = 3da/a − 2dP/P. These are first-order relations for small changes, not exact equations for large errors.

Small changes with the other input held fixed
ChangeFirst-order effect on periodEffect on inferred mass parameter
a increases 1%about +1.5% at fixed μabout +3% at fixed P
μ increases 1%about −0.5% at fixed aμ is the input
P increases 1%P is the measured inputabout −2% at fixed a

If independent one-standard-deviation fractional uncertainties are 2 percent in a and 1 percent in P, the first-order uncertainty in μ is √[(3 × 0.02)² + (2 × 0.01)²] = 0.063246, about 6.32 percent. The cubic distance dependence dominates this example.

Real orbit fits can correlate a and P. Then the variance includes the covariance term −12 Cov(a,P)/(aP), and independent quadrature may misrepresent the uncertainty. A short observed arc can also leave a wide range of permissible orbits. Extra displayed decimals do not supply the missing observational information.

A calculation workflow that keeps the physical meaning intact

  1. State whether the orbit is a bound two-body approximation.
  2. Identify the relative semimajor axis and record its unit.
  3. Include both masses or state why one is negligible.
  4. Use μ directly when available, and declare any nominal conversion constant.
  5. Convert the period to a named time unit, not an undefined “year.”
  6. Check the answer with size and mass ratios.
  7. Round to match the precision and uncertainty of the inputs.

Mean motion n = 2π/P is an average angular phase rate. It is not generally the instantaneous rate at which the true position angle changes around an eccentric orbit. Period alone also cannot supply where the body is now: that requires an orbital phase reference and the other orbit elements.

For practical sky planning, local sunrise and sunset provide a different kind of timing information. Telescope resolution and observing conditions determine whether a binary can be separated in an image; the resolution guide covers that question. Neither observing-time tables nor an apparent double-star image replaces a fitted dynamical orbit.

Frequently asked questions

Is Kepler's third law always P squared equals a cubed?

No. The full two-body formula is P² = 4π²a³/[G(M₁ + M₂)]. The short form is an approximation using au, years and a total mass near one solar mass.

Which semimajor axis is used for a binary star?

Use the relative semimajor axis a = a₁ + a₂. The individual barycentric semimajor axes are different quantities; both components nevertheless share the same orbital period.

Does eccentricity affect the period?

At fixed relative semimajor axis and total gravitational parameter, the ideal two-body elliptical period is independent of eccentricity. Holding closest separation fixed instead changes the axis and therefore the period.

Why does the article give slightly more than one year at 1 au?

The calculation uses an exact au, the IAU nominal solar mass parameter and a Julian year of 365.25 days. Their conversion coefficient is approximately 1.000018886746, not exactly one.

Can one photograph of a binary determine its total mass?

A projected separation alone is insufficient. The period and physical relative semimajor axis require an orbital solution and, for an angular orbit, an appropriate distance scale and orientation model.

Does a measured orbit give each component's mass separately?

The period and relative axis give the total gravitational parameter. Additional information about the mass ratio is needed to divide that total between the components.

Sources and references

Stay connected with Astrogyana on Google

Choose Astrogyana as a preferred source in Google Search.

Add as a Preferred Source on Google