A year on Earth is 365 days – unless it is a leap year – but the actual definition of a year is the time it takes a planet to orbit the Sun. Mercury orbits the Sun in 88 Earth days, which is the shortest orbit of any of the planets.