In geometry, the major axis of an ellipse is the longest diameter: a line (line segment) that runs through the center and both foci, with ends at the widest points of the shape. The semi-major axis is one half of the major axis, and thus runs from the centre, through a focus, and to the edge of the ellipse; essentially, it is the radius of an orbit at the orbit's two most distant points. For the special case of a circle, the semi-major axis is the radius. One can think of the semi-major axis as an ellipse's long radius.
The semi-major axis of a hyperbola is, depending on the convention, plus or minus one half of the distance between the two branches. Thus it is the distance from the center to either vertex (turning point) of the hyperbola.
A parabola can be obtained as the limit of a sequence of ellipses where one focus is kept fixed as the other is allowed to move arbitrarily far away in one direction, keeping ℓ fixed. Thus and tend to infinity, a faster than b.
The semi-major axis is the mean value of the smallest and largest distances from one focus to the points on the ellipse. Now consider the equation in polar coordinates, with one focus at the origin and the other on the positive x-axis,
The mean value of and , (for ) is
In an ellipse, the semimajor axis is the geometric mean of the distance from the center to either focus and the distance from the center to either directrix.
The semi-major axis of a hyperbola is, depending on the convention, plus or minus one half of the distance between the two branches; if this is a in the x-direction the equation is:
In terms of the semi-latus rectum and the eccentricity we have
The transverse axis of a hyperbola coincides with the semi-major axis.
Orbital period 
- a is the length of the orbit's semi-major axis
- is the standard gravitational parameter of the central body
Note that for all ellipses with a given semi-major axis, the orbital period is the same, regardless of eccentricity.
The specific angular momentum H of a small body orbiting a central body in a circular or elliptical orbit is:
- a and are as defined above
- e is the eccentricity of the orbit
In astronomy, the semi-major axis is one of the most important orbital elements of an orbit, along with its orbital period. For Solar System objects, the semi-major axis is related to the period of the orbit by Kepler's third law (originally empirically derived),
where G is the gravitational constant, M is the mass of the central body, and m is the mass of the orbiting body. Typically, the central body's mass is so much greater than the orbiting body's, that m may be ignored. Making that assumption and using typical astronomy units results in the simpler form Kepler discovered.
The orbiting body's path around the barycentre and its path relative to its primary are both ellipses. The semi-major axis used in astronomy is always the primary-to-secondary distance; thus, the orbital parameters of the planets are given in heliocentric terms. The difference between the primocentric and "absolute" orbits may best be illustrated by looking at the Earth–Moon system. The mass ratio in this case is 81.30059. The Earth–Moon characteristic distance, the semi-major axis of the geocentric lunar orbit, is 384,400 km. The barycentric lunar orbit, on the other hand, has a semi-major axis of 379,700 km, the Earth's counter-orbit taking up the difference, 4,700 km. The Moon's average barycentric orbital speed is 1.010 km/s, whilst the Earth's is 0.012 km/s. The total of these speeds gives a geocentric lunar average orbital speed of 1.022 km/s; the same value may be obtained by considering just the geocentric semi-major axis value.
Average distance 
It is often said that the semi-major axis is the "average" distance between the primary focus of the ellipse and the orbiting body. This is not quite accurate, as it depends on what the average is taken over.
- averaging the distance over the eccentric anomaly (q.v.) indeed results in the semi-major axis.
- averaging over the true anomaly (the true orbital angle, measured at the focus) results, oddly enough, in the semi-minor axis .
- averaging over the mean anomaly (the fraction of the orbital period that has elapsed since pericentre, expressed as an angle), finally, gives the time-average
The time-averaged value of the reciprocal of the radius, r −1, is a −1.
Energy; calculation of semi-major axis from state vectors 
for an elliptical orbit and, depending on the convention, the same or
for a hyperbolic trajectory
(standard gravitational parameter), where:
- v is orbital velocity from velocity vector of an orbiting object,
- is cartesian position vector of an orbiting object in coordinates of a reference frame with respect to which the elements of the orbit are to be calculated (e.g. geocentric equatorial for an orbit around Earth, or heliocentric ecliptic for an orbit around the Sun),
- G is the gravitational constant,
- M and m are the masses of the bodies.
- , is the Energy of the orbiting body.
Note that for a given amount of total mass, the specific energy and the semi-major axis are always the same, regardless of eccentricity or the ratio of the masses. Conversely, for a given total mass and semi-major axis, the total specific energy is always the same. This statement will always be true under any given conditions.
- Semi-major and semi-minor axes of an ellipse With interactive animation