It takes approximately 365.25 days for the Earth to complete one revolution around the sun, which is why we have a year.