The elliptical orbits of planets around the Sun and their relatively similar orbital planes can be explained by the laws of motion and gravity, as well as by the way our solar system formed. Here's a deeper dive:
Why are planetary orbits elliptical?
This question goes back to the work of Johannes Kepler, a German astronomer who lived before Newton. Kepler studied the movements of planets and formulated three laws of planetary motion. The first of these laws states that planets orbit the Sun in ellipses, with the Sun at one focus of the ellipse, not in the center.
This elliptical shape arises because of the way gravity works between two objects, the Sun and the planet, in space. When a planet moves closer to the Sun, it speeds up; when it moves farther away, it slows down. This variation in speed, combined with the conservation of angular momentum (a physical quantity that characterizes the motion of a rotating object), results in an elliptical orbit. Newtonian gravity can explain this very well. A perfect circle is just a special case of an ellipse where the foci are at the same point, so an orbit can be nearly circular if the planet's speed and distance from the Sun are just right.
Do planets orbit at a similar angle? Why?
Most planets in our solar system orbit roughly in the same plane, known as the ecliptic plane. This common plane is not a direct consequence of gravity but rather a result of the solar system's formation.
Our solar system formed about 4.6 billion years ago from a giant cloud of gas and dust. As this cloud collapsed under its own gravity, it started to spin and flatten into a rotating disk—the protoplanetary disk. Most of the material was pulled toward the center, forming the Sun, while the remaining material in the disk began to clump together, forming the planets, moons, asteroids, and other bodies.
Because all this material was part of the same spinning disk, it naturally ended up orbiting in approximately the same plane. This process is similar to how pizza dough flattens into a disk when a chef tosses and spins it in the air.
Exceptions and variations:
The orbits are elliptical, but they can be very close to circular. The degree of ellipticity varies among the planets, with some having more elongated orbits than others.
Also, while the planets' orbits are roughly coplanar, they're not perfectly aligned; each planet's orbit is tilted slightly relative to the others. The largest orbital inclination among the eight planets is Mercury's, tilted about 7 degrees from the ecliptic plane.
Moreover, objects like comets and certain dwarf planets, such as Pluto, have significantly more inclined and eccentric (elliptical) orbits. This can be due to various reasons, like past gravitational interactions with other bodies in the solar system, which can change their orbits over time.
In summary, the elliptical orbits are a natural outcome of gravitational forces and the angular momentum of planets, and the similar angle of orbits is due to the manner in which the solar system formed from a rotating disk of gas and dust.