In astronomy, a barycenter is the center of mass of two or more celestial bodies that orbit each other, or the point at which the objects are balanced. When an object is traditionally thought of as orbiting another, such as the Moon orbiting the Earth or the Earth orbiting the Sun, the center of orbit is virtually never at the direct center of the more massive body. Rather, both objects are orbiting the same point, the barycenter, that may lie more or less off center within the more massive body.
The larger the difference in mass between two objects in the same orbit system, the larger the discrepancy in size between their respective orbits. Two objects of equal mass orbiting the same point may have travel in the same orbit and lie at opposite points on it, or they may travel in divergent elliptical orbits around the barycenter. In a system like that of the Earth and the Sun, on the other hand, the more massive body hardly moves at all compared to the less massive one.
The barycenter of two bodies orbiting each other can be found by calculating the distance between the more massive body and the barycenter. This distance is given by the distance between the centers of the two bodies, multiplied by the mass of the smaller body divided by the combined mass of both bodies. If r1 is used to represent the distance between the center of the larger mass and the barycenter, a is used to represent the distance from the center of one mass to the center of the other, and m1 and m2 are the masses of the larger and smaller bodies, respectively, the following equation can be used: r1 = a * (m2 / (m1 + m2)). If r1 is less than one, the barycenter is located inside the more massive body.