☄️ Comet Tail Formation — Dust & Ion Tail Simulation
Interactive comet tail simulation. Watch a comet's curved dust tail and straight ion tail form and grow as it swings around the Sun on an elliptical orbit.
A comet is little more than a "dirty snowball" — until it nears the Sun. This simulation shows a comet nucleus travelling along an elliptical orbit, growing a curved dust tail and a straight ion tail as solar heating and the solar wind strip material from its surface.
🔬 What It Demonstrates
As a comet nears the Sun, solar radiation sublimates its surface ices directly into gas, releasing trapped dust. Radiation pressure pushes this dust into a broad, curved tail that lags behind the comet's orbital path, while the fast solar wind ionises escaping gas and blows it into a narrow, straight tail that always points directly away from the Sun, regardless of the comet's direction of travel.
🎮 How to Use
Drag the orbital position slider to scrub the comet along its elliptical path and watch both tails grow near perihelion and shrink near aphelion. Adjust solar wind strength and dust production rate to see how each tail responds independently, and change eccentricity to reshape the orbit. Click "Auto-Orbit" to animate the full cycle.
💡 Did You Know?
Because the ion tail always points away from the Sun, a comet's tail actually leads the nucleus, not trails behind it, on the outbound leg of its orbit after perihelion — the comet is moving away from the Sun, but its tail still streams outward ahead of it.
About this simulation
This comet tail simulation places a comet nucleus on an elliptical Keplerian orbit around the Sun, using the orbit equation r = a(1-e²)/(1+e·cos θ) to compute distance from the Sun at any true anomaly θ. Sublimation activity is modelled to rise sharply as the comet nears perihelion, driving two visually and physically distinct tails: a curved dust tail that lags the orbital path due to radiation pressure, and a straight ion tail that always points directly away from the Sun along the solar wind's radial flow.
🔬 What it shows
Solar heating sublimates ice on the nucleus's surface, releasing gas and embedded dust that form a temporary atmosphere called the coma. Dust grains are pushed gently outward and lag behind the comet's motion, curving into a broad yellowish tail, while ionised gas is swept away almost instantly by the much faster solar wind, forming a narrow, straight, bluish tail pointing directly anti-sunward.
🎮 How to use
Drag the Orbital position slider to move the comet along its path from aphelion to perihelion and back. Solar wind strength scales the ion tail's length and intensity, Dust production rate scales the dust tail, and Orbit eccentricity reshapes how elongated the ellipse is. Toggle Auto-Orbit to watch the full cycle animate automatically.
💡 Did you know?
Comet Hale-Bopp, visible to the naked eye for a record 18 months in 1996-97, displayed a third, faint sodium tail in addition to its dust and ion tails — a rare feature only detected in a handful of very bright comets.
Frequently asked questions
Why does a comet have two different tails?
A comet's dust and ion tails are made of different material responding to different forces. Dust grains are heavy and are pushed gently outward by sunlight's radiation pressure, so they lag behind the comet's orbital motion and curve into a broad, often yellowish-white tail. Ionised gas molecules are extremely light and are swept away almost instantly by the much faster-moving solar wind, forming a narrow, straight, typically blue tail that always points directly away from the Sun.
Why does the ion tail always point away from the Sun?
The ion tail is shaped by the solar wind, a continuous stream of charged particles flowing radially outward from the Sun at hundreds of kilometres per second. Because this outflow is always directed away from the Sun regardless of the comet's own position or velocity, the ionised gas in the tail is carried along that same radial direction, keeping the ion tail pointed directly anti-sunward at all times, even when the comet is moving away from the Sun.
What causes a comet's tails to grow near the Sun?
Solar heating increases sharply as a comet approaches perihelion (closest approach to the Sun), following roughly an inverse-square relationship with distance. This intensified heating sublimates surface ice directly into gas, releasing far more dust and gas per unit time, which dramatically lengthens and brightens both tails — sometimes to tens of millions of kilometres — before they shrink again as the comet recedes.
What is a comet's coma?
The coma is the temporary, roughly spherical cloud of gas and dust that surrounds a comet's solid nucleus once solar heating begins driving strong sublimation, usually within a few AU of the Sun. It can grow far larger than the nucleus itself — sometimes larger than a planet — and is the source material for both the dust and ion tails.
Are all comet orbits highly elliptical?
Most observed comets do follow highly eccentric elliptical orbits, since that is what makes their close solar passages dramatic and visible from Earth. Short-period comets from the Kuiper Belt tend to have somewhat less extreme eccentricities than long-period comets from the Oort Cloud, whose eccentricities can approach 1 (nearly parabolic), reflecting their origin far beyond the planets.
Watch a comet's curved dust tail and straight ion tail form and grow as it swings around the Sun.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install