The size of the solar system is defined by the volume of space over which the Sun’s
influence exceeds those of other nearby stars in the Milky Way galaxy. This influence derives from two fundamental forces of nature: gravity and magnetism.

Let’s tackle gravity first. Every object in the solar system experiences a gravitational pull from the Sun; the farther away one is from the Sun, the weaker the pull. Provided, however, that the Sun’s gravity is still stronger at your position in space than the gravity from any other stars, then your motion through space will be subject to an acceleration which pulls you towards the Sun.

At this point, it is useful to introduce a more convenient unit of measurement for distance: the astronomical unit (AU). A distance of 1 AU is the distance between the Sun and Earth, which is approximately 150 million km. All of the known planets, asteroids, and almost all of the known comets are gravitationally bound to the Sun
and orbit around it. More distant objects experiencing a weaker gravitational pull, take longer to complete an orbit.

The Earth, at 1 AU of course, takes one year. Jupiter, orbiting the Sun at 5 AU, takes just under 12 years. Distant Pluto (about 40 AU) takes 248 years –- so long in fact, that it hasn’t even completed one orbit of the Sun since it was discovered in
1930. Pluto, however, is far from being at the edge of the Solar System; there are many more distant worlds.

The Solar System
The Solar System.
NASA

The most distant gravitationally bound objects to the Sun are aperiodic comets. Aperiodic, or long-period comets, can take many thousands of years to complete one solar orbit. All of them have completed no more than a single passage through the inner solar system during recorded history.

These comets are believed to come from the Oort Cloud; a roughly spherical cloud made up of billions of small icy worlds. These drift through the frigid outermost reaches of the Solar System at distances of up to 200,000 AU (approximately 3 Light Years).

An Oort Cloud object may take millions of years to orbit the Sun once at such vast distances. Objects which stray farther from the Sun than this are likely to experience stronger gravitational pulls from other stars, and begin to accelerate towards those instead.

Oort Cloud objects are so far away that none has been seen in situ by even our most powerful telescopes. The only time we get to see them is when one happens to fall towards the inner solar system, as a comet.

We’ve heard about gravity, but what about that other force: magnetism? In addition to a powerful gravitational field, the Sun possesses a very strong magnetic field, which carves out a volume of space called the heliosphere, within which lie all the planets and the extended atmosphere of the Sun, called the solar
wind
.
The solar wind is a continuous supersonic outflow of plasma from the Sun into
interplanetary space.

Solar wind

The solar wind is highly dynamic and when interacting with the atmosphere of a planet like the Earth it can generate colourful displays of aurora such as those we saw recently. The solar wind flows outwards from the Sun, past all the known planets, before finally slowing down and becoming subsonic (slower than the speed of sound) when it reaches the heliopause.

The distance to the heliopause is much closer to the Sun than the Oort Cloud. Nevertheless, it is still enormous. Having launched in 1977 the Nasa spacecraft Voyager 1 crossed the heliopause, at a distance of 121 AU, in 2012, becoming the first human built object to reach interstellar space.

Had Voyager 1 been launched by our evolutionary ancestors a few million years ago,
however, the journey to the heliopause might not have taken quite so long. The space between the stars is not empty, but is filled with tenuous clouds of gas and dust called the interstellar medium. Sometimes, the orbit of a star around the centre of the Milky Way galaxy may carry it through unusually dense regions of material.

Hubble Space Telescope image of a star travelling through the Orion nebula creating a 'wake' of gas around it’s heliosphere.
Hubble Space Telescope image of a star travelling through the Orion nebula creating a ‘wake’ of gas around it’s heliosphere.
NASA

In a recent study, scientists have demonstrated a high likelihood that about 2-3 million years ago, the solar system passed through a relatively dense cloud of cold interstellar gas which could have compressed the heliosphere down to a size of just 0.2 AU which is entirely within the orbit of Mercury – the nearest planet to the Sun and,
arguably, the Earth. This would have directly exposed all of the planets to the environment of interstellar space.

Among the potential impacts on Earth were a substantial increase in cosmic rays reaching our planet, no aurora (because the solar wind could not reach the Earth), and a more changeable climate which may even have influenced the evolution of our species.