The amount of time you need to spend in the sun to get enough vitamin D varies depending on a few factors, including your skin tone and the time of day. However, in general, you should aim to spend at least 15 minutes in the sun without sunscreen to get enough vitamin D.