How long after finishing doxycyline should you stay out of the sun?

4-5 days. The doxyclcline will be completely out of your system 4-5 days after taking the last dose. Avoid the sun and use sun screen for this duration.