

The angle that the diameter of the object covers in the sky is called the angular diameter.
The formula to calculate the angular diameter of a planet or star is-
α = D/a[180/π]
Where, α is the angular diameter in degrees.
D = Diameter of the observed object
a = distance of the observed object from the observer.
So, to calculate the angular diameter of a planet, first you need to know the diameter of that planet and the distance of that planet from the observer.
