Show solutionHide solution
Twinkling is caused by the bending of light as it passes through the Earth's atmosphere. The atmosphere is not uniform: it has layers of slightly different temperature and density, and these layers are constantly moving. As a result, the refractive index of the air along a light ray keeps changing, so the apparent position and brightness of a distant point-like source keep fluctuating. This is called atmospheric refraction.
Stars are so far away that they behave like point sources of light. When starlight reaches the Earth's atmosphere, it is refracted many times by the shifting layers of air. The amount of light entering our eye therefore varies from moment to moment, and the star appears to twinkle.
Planets, on the other hand, are much closer to us than the stars. Although they are still very far away, a planet can be regarded as a collection of a very large number of point sources spread over its disc. The light coming from all these points reaches the Earth's atmosphere and is refracted in the same fluctuating way, but the variations from the different points average out. Sometimes light from one part of the planet's disc is bent towards the eye while light from another part is bent away, so the total amount of light entering the eye remains nearly constant.
Because the average brightness of a planet does not change appreciably with time, planets do not appear to twinkle. In short: stars twinkle because they act as point sources whose apparent brightness fluctuates due to atmospheric refraction, whereas planets act as extended sources whose many point-like contributions average out the fluctuations.