Orbital radius of the Earth around the Sun, r = 1.5 × 1011 m
Time taken by the Earth to complete one revolution around the Sun,
T = 1 year = 365.25 days
= 365.25 × 24 × 60 × 60 s
Universal gravitational constant, G = 6.67 × 10–11 Nm2 kg–2
Thus, mass of the Sun can be calculated using the relation,

Hence, the mass of the Sun is 2 × 1030 kg.