Editor's note: The last total solar eclipse occurred on Dec. 26, 2019, and was visible from Saudi Arabia, India, Sumatra and Borneo, with a partial eclipse visible in Australia and much of Asia. Read our full coverage here.

A solar eclipse occurs when the moon gets between Earth and the sun, and the moon casts a shadow over Earth. A solar eclipse can only take place at the phase of new moon, when the moon passes directly between the sun and Earth and its shadows fall upon Earth’s surface. But whether the alignment produces a total solar eclipse, a partial solar eclipse or an annular solar eclipse depends on several factors, all explained below.

The fact that an eclipse can occur at all is a fluke of celestial mechanics and time. Since the moon formed about 4.5 billion years ago, it has been gradually moving away from Earth (by about 1.6 inches, or 4 centimeters per year). Right now the moon is at the perfect distance to appear in our sky exactly the same size as the sun, and therefore block it out. But this is not always true.

When is the next solar eclipse?

The next solar eclipse is an annular, or "ring of fire" eclipse that will take place on June 21, 2020. It will be visible from much of Africa, southeast Europe and most of Asia, with a partial eclipse visible in northern Australia.

How Solar Eclipses Work: When the moon covers up the sun, skywatchers delight in the opportunity to see a rare spectacle. See how solar eclipses occur in this Space.com infographic (Image credit: Karl Tate, SPACE.com Contributor)

Types of solar eclipses

There are four types of solar eclipses: total, annular, partial and hybrid. Here’s what causes each type:

Total solar eclipses

These are a happy accident of nature. The sun's 864,000-mile diameter is fully 400 times greater than that of our puny moon, which measures just about 2,160 miles. But the moon also happens to be about 400 times closer to Earth than the sun (the ratio varies as both orbits are elliptical), and as a result, when the orbital planes intersect and the distances align favorably, the new moon can appear to completely blot out the disk of the sun. On the average a total eclipse occurs somewhere on Earth about every 18 months.

There are actually two types of shadows: the umbra is that part of the shadow where all sunlight is blocked out. The umbra takes the shape of a dark, slender cone. It is surrounded by the penumbra, a lighter, funnel-shaped shadow from which sunlight is partially obscured.

During a total solar eclipse, the moon casts its umbra upon Earth's surface; that shadow can sweep a third of the way around the planet in just a few hours. Those who are fortunate enough to be positioned in the direct path of the umbra will see the sun's disk diminish into a crescent as the moon's dark shadow rushes toward them across the landscape.

During the brief period of totality, when the sun is completely covered, the beautiful corona — the tenuous outer atmosphere of the sun — is revealed. Totality may last as long as 7 minutes 31 seconds, though most total eclipses are usually much shorter.

On Jan. 4, 2011, the moon passed in front of the sun in a partial solar eclipse - as seen from parts of Earth. Here, the joint Japanese-American Hinode satellite captured the same breathtaking event from space. The unique view created what's called an annular solar eclipse. (Image credit: Hinode/XRT)

Partial solar eclipses

A partial solar eclipse occurs when only the penumbra (the partial shadow) passes over you. In these cases, a part of the sun always remains in view during the eclipse. How much of the sun remains in view depends on the specific circumstances.

Usually the penumbra gives just a glancing blow to our planet over the polar regions; in such cases, places far away from the poles but still within the zone of the penumbra might not see much more than a small scallop of the sun hidden by the moon. In a different scenario, those who are positioned within a couple of thousand miles of the path of a total eclipse will see a partial eclipse.

The closer you are to the path of totality, the greater the solar obscuration. If, for instance, you are positioned just outside of the path of the total eclipse, you will see the sun wane to a narrow crescent, then thicken up again as the shadow passes by.

Annular solar eclipses

An annular eclipse, though a rare and amazing sight, is far different from a total one. The sky will darken ... somewhat; a sort of weird “counterfeit twilight” since so much of the sun still shows. The annular eclipse is a subspecies of a partial eclipse, not total. The maximum duration for an annular eclipse is 12 minutes 30 seconds.

However, an annular solar eclipse is similar to a total eclipse in that the moon appears to pass centrally across the sun. The difference is, the moon is too small to cover the disk of the sun completely. Because the moon circles Earth in an elliptical orbit, its distance from Earth can vary from 221,457 miles to 252,712 miles. But the dark shadow cone of the moon’s umbra can extend out for no longer than 235,700 miles; that’s less than the moon’s average distance from Earth.

So if the moon is at some greater distance, the tip of the umbra does not reach Earth. During such an eclipse, the antumbra, a theoretical continuation of the umbra, reaches the ground, and anyone situated within it can look up past either side of the umbra and see an annulus, or “ring of fire” around the moon. A good analogy is putting a penny atop a nickel, the penny being the moon, the nickel being the sun.

Hybrid solar eclipses

These are also called annular-total (“A-T”) eclipses. This special type of eclipse occurs when the moon’s distance is near its limit for the umbra to reach Earth. In most cases, an A-T eclipse starts as an annular eclipse because the tip of the umbra falls just short of making contact with Earth; then it becomes total, because the roundness of the planet reaches up and intercepts the shadow tip near the middle of the path, then finally it returns to annular toward the end of the path.

Because the moon appears to pass directly in front of the sun, total, annular and hybrid eclipses are also called “central” eclipses to distinguish them from eclipses that are merely partial.

Of all solar eclipses, about 28 percent are total; 35 percent are partial; 32 percent annular; and just 5 percent are hybrids.

Predictions of solar eclipses

Eclipses do not happen at every new moon, of course. This is because the moon’s orbit is tilted just over 5 degrees relative to Earth’s orbit around the sun. For this reason, the moon’s shadow usually passes either above or below Earth, so a solar eclipse doesn’t occur.

But as a rule, at least twice each year (and sometimes as many as five times in a year), a new moon will align itself in just such a way to eclipse the sun. That alignment point is called a node. Depending on how closely the new moon approaches a node will determine whether a particular eclipse is central or partial. And of course, the moon’s distance from the Earth — and to a lesser degree, Earth’s distance from the sun — will ultimately determine whether a central eclipse is total, annular or a hybrid.

And these alignments don’t happen haphazardly, for after a specific interval of time, an eclipse will repeat itself or return. This interval is known as the Saros cycle and was known as far back as the days of the early Chaldean astronomers some 28 centuries ago. The word Saros means “repetition” and is equal to 18 years, 11⅓ days (or a day less or more depending on the number of leap years that have intervened). After this interval, the relative positions of the sun and moon relative to a node are nearly the same as before. That third of a day in the interval causes the path of each eclipse of a series to be displaced in longitude a third of the way around Earth to the west with respect to its predecessor.

For example, on March 29, 2006, a total eclipse swept across parts of western and northern Africa and then across southern Asia. One Saros later, on April 8, 2024, this eclipse will recur, except instead of Africa and Asia, it will track across northern Mexico, the central and eastern United States and the Maritime provinces of Canada.

Solar eclipse safety

You should never look directly at the sun, but there are ways to safely observe an eclipse. See how to safely observe a solar eclipse with this Space.com infographic (Image credit: Karl Tate, SPACE.com Contributor)

As a solar eclipse approaches, the mainstream media often will provide a variety of warnings and advisories against looking at the sun with bare eyes, as blindness could ensue. This has given most people the idea that eclipses are dangerous.

Not so!

It’s the sun that is dangerous — all the time! The sun constantly emits invisible infrared rays that can damage your eyes. Ordinarily, we have no reason to gaze at the sun. An eclipse gives us a reason, but we shouldn’t.

There are safe ways, however . . .

By far, the safest way to view a solar eclipse is to construct a “pinhole camera.” A pinhole or small opening is used to form an image of the sun on a screen placed about 3 feet (or about 1 meter) behind the opening. Binoculars or a small telescope mounted on a tripod can also be used to project a magnified image of the sun onto a white card. The farther away the card, the larger you can focus the image. Look for sunspots. Notice that the sun appears somewhat darker around its limb or edge. This method of solar viewing is safe so long as you remember not to look through the binoculars or telescope when they are pointed toward the sun; put another way, never look directly at the sun when any part of its blindingly bright surface is visible.

A variation on the pinhole theme is the “pinhole mirror.” Cover a pocket-mirror with a piece of paper that has a ¼-inch hole punched in it. Open a sun-facing window and place the covered mirror on the sunlit sill so it reflects a disk of light onto the far wall inside. The disk of light is an image of the sun’s face. The farther away from the wall is the better; the image will be only 1 inch across for every 9 feet (or 3 centimeters for every 3 meters) from the mirror. Modeling clay works well to hold the mirror in place. Experiment with different-sized holes in the paper. Again, a large hole makes the image bright, but fuzzy, and a small one makes it dim but sharp. Darken the room as much as possible. Be sure to try this out beforehand to make sure the mirror’s optical quality is good enough to project a clean, round image. Of course, don’t let anyone look at the sun in the mirror.

If you’re around leafy trees, look at the shadow cast by them during the partial phases. What do you see? Is it worth a photograph? You will see scores of partially eclipsed suns projected through pinhole gaps between the leaves. This is caused by diffraction, a property of light. According to Vince Huegele, an optical physicist at the NASA Marshall Space Flight Center, the light rays do not shoot straight by the rim of the gaps, or a pinhole, but bend around the edge. This wave effect creates a pattern of rings that resembles a bull's eye.

Acceptable filters for unaided visual solar observations include aluminized Mylar. Some astronomy dealers carry Mylar filter material specially designed for solar observing. Also acceptable is shade 14 arc-welder’s glass, available for just a few dollars at welding supply shops. Of course, it is always a good idea to test your filters and/or observing techniques before eclipse day.

Unacceptable filters include sunglasses, old color film negatives, black-and-white film that contains no silver, photographic neutral-density filters and polarizing filters. Although these materials have very low visible-light transmittance levels, they transmit an unacceptably high level of near-infrared radiation that can cause a thermal retinal burn. The fact that the sun appears dim, or that you feel no discomfort when looking at the sun through these types of filters, is no guarantee that your eyes are safe.

There is one time when you can safely look directly at the sun: during a total eclipse, when the sun's disk is entirely covered. During those few precious seconds or minutes, the magnificent corona shines forth in all its glory surrounding the darkened sun; a marvelous fringe of pearly white light. It differs in size, in tints and patterns from eclipse to eclipse. It is always faint and delicate, with a sheen like a pale aurora. It has a variable appearance. Sometimes it has a soft continuous look; at other times, long rays of it shoot out in three or four directions. It may stand out from the disk in filmy petals and streamers. But when the sun begins to again emerge into view, the corona quickly disappears and you’ll need to protect your eyes once again.

This photo of the partial solar eclipse of Sept. 13, 2015, was snapped by astrophotographer K.J. Mulder from his home in South Africa. (Image credit: K.J. Mulder/ Worlds in Ink

Eclipses in ancient history

As best as we can determine, the earliest record of a solar eclipse occurred over four millennia ago. In China, it was believed that the gradual blotting out of the sun was caused by a dragon who was attempting to devour the sun, and it was the duty of the court astronomers to shoot arrows, beat drums and raise whatever cacophony they could to frighten the dragon away.

In the ancient Chinese classic Shujing (or Book of Documents) is the account of Hsi and Ho, two court astronomers who were caught completely unaware by a solar eclipse, having gotten drunk just before the event began. In the aftermath, Zhong Kang, the fourth emperor of the Xia dynasty ordered that Hsi and Ho be punished by having their heads chopped off. The eclipse in question was that of Oct. 22 in the year 2134 B.C.

In the Bible, in the book of Amos 8:9, are the words, “I will cause the sun to go down at noon, and I will darken the Earth in the clear day.” Biblical scholars believe this is a reference to a celebrated eclipse observed at Nineveh in ancient Assyria on June 15, 763 B.C. An Assyrian tablet also attests to the event.

A solar eclipse even stopped a war.

According to the historian Herodotus, there was a five-year war that raged between the Lydians and the Medes. As the war was about to move into its sixth year, a Greek sage, Thales of Miletus foretold to the Ionians that the time was soon approaching when day would turn to night. On May 17, 603 B.C. the sun faded away just as Thales had alluded that it would. So believing that it was a sign from above, the combatants called a truce, which was cemented by a double marriage, for, as Herodotus wrote: “Without some strong bond, there is little of security to be found in men’s covenants.”

And giving new meaning to the term, “Scared to death,” is the timid emperor Louis of Bavaria, the son of Charlemagne, who witnessed an unusually long total eclipse of the sun on May 5, A.D. 840, which lasted for over five minutes. But no sooner had the sun begun to emerge back into view, Louis was so overwhelmed by what he had just seen that he died of fright!

Modern study of eclipses

Astronomers have learned much by studying eclipses and by the 18th century, observations of solar eclipses were recognized as providing veritable treasure troves of astronomical information, though sometimes getting that information wasn’t easy.

Samuel Williams, a professor at Harvard, led an expedition to Penobscot Bay, Maine, to observe the total solar eclipse of Oct. 27, 1780. As it turned out, this eclipse took place during the Revolutionary War, and Penobscot Bay lay behind enemy lines. Fortunately, the British granted the expedition safe passage, citing the interest of science above political differences.

And yet in the end, it was all for naught.

Williams apparently made a crucial error in his computations and inadvertently positioned his men at Islesboro — just outside the path of totality — likely finding this out with a heavy heart when the narrowing crescent of sunlight slid completely around the dark edge of the moon and then started to thicken!

During a total solar eclipse, a few ruby-red spots may seem to hover around the jet-black disk of the moon. Those are solar prominences, tongues of incandescent hydrogen gas rising above the surface of the sun. During the total eclipse of Aug. 18, 1868, the French astronomer Pierre Janssen trained his spectroscope on the prominences and discovered a new chemical element. Two English astronomers, J. Norman Lockyer and Edward Frankland, later named it “helium,” from the Greek helios (the sun). The gas was not identified on Earth until 1895.

And because sunlight is blocked during a total eclipse, some of the brighter stars and planets can be observed in the darkened sky. Under such conditions astronomers were able to test part of Einstein’s now-celebrated general theory of relativity. That theory predicted that light from stars beyond the sun would bend from a straight path in a certain way as it passed the sun. The positions of stars photographed near the sun’s edge during a total eclipse on May 29, 1919, were compared with photographs of the same region of the sky taken at night; the results strongly supported Einstein’s theory.

Our modern technology now allows astronomers to make most of the observations that once had to await an eclipse. But a total eclipse of the sun will always remain among the most impressive of natural spectacles and is a sight that will always be remembered. Be sure to put it on your bucket list; you will not be disappointed.

Additional resources

Mr. Eclipse.com provides resources for eclipse photography.

Track down a lot of information from the Eclipse Chasers.

NASA's Eclipse Website has calendars, maps and information about past and future solar and lunar eclipses.

Editor's Note: If you snap an amazing solar eclipse photo and would like to share it with Space.com's readers, send your photo(s), comments, and your name and location to spacephotos@space.com.

Follow us on Twitter @Spacedotcom and on Facebook.