As starlight passes through moving pockets of air with different temperatures and densities, its path is continually refracted. The star's apparent position and brightness therefore fluctuate rapidly, an effect called atmospheric scintillation. Stars are so distant that they look like point sources, making the fluctuations noticeable. Planets usually twinkle less because their visible disks average out some of these changes. Above most of the atmosphere, space telescopes avoid this particular source of twinkling.
Why Stars Twinkle
Stars appear to twinkle because changing layers of Earth's atmosphere bend and redirect their light before it reaches an observer.
Explanation
Topics
Sources and further reading
Sources are listed as supplied in the Scienexy dataset. A listed source is not, by itself, a guarantee that every sentence has been independently fact-checked. Estimates and scientific interpretations may depend on methods, context and newer evidence.