The time it takes for sunlight to reach the Moon depends on the average distance between the Earth and the Moon, as well as the speed of light. On average, the Moon is about 384,400 kilometers (238,900 miles) away from Earth.
The speed of light in a vacuum is approximately 299,792 kilometers per second (186,282 miles per second). To calculate the time it takes for sunlight to reach the Moon, we divide the distance between the Earth and the Moon by the speed of light.
Time = Distance / Speed
Using the average distance of 384,400 kilometers, we can calculate the time it takes:
Time = 384,400 km / 299,792 km/s ≈ 1.28 seconds
Therefore, it takes roughly 1.28 seconds for sunlight to travel from the Sun to the Moon.