How many days after unprotected sex should I wait to take a test for pregnancy?

Before next period. One-to-two days before your expected period is the time you can start testing, regardless of when you tried. Good luck.