It takes the Sun approximately
365.2422 days to complete one circuit of the ecliptic. This is why we have leap years, as the extra 0.2422 days accumulates over time.
This period is also known as a sidereal year, which is the time it takes for the Sun to return to the same position relative to the stars.