How long after sex should you wait to take a pregnancy test could you be pregnant 3 weeks after having sex?

Missed period better. A home pregnancy test should be positive any time after you miss a period. If you are having irregular periods, I wouldn't trust a home pregnancy test until 4 weeks after having intercourse. Best wishes!