The exposure time will depend on several factors, such as the focal length of your lens and the amount of light pollution present. Generally, longer exposures will capture more stars and details, but it's important to avoid overexposing or introducing star trails due to Earth's rotation.