A spacecraft at a speed of a jet airliner, about 9, 00 KMPH, would take nearly 20 years to get to the Sun. If a spacecraft is travelling at 40,000 KMPH, (the speed needed to escape the pull of Earth's gravity) it would take 5 months to reach the Sun.