When you can do a pregnancy test. You can carry out most pregnancy tests from the first day of a missed period. If you don't know when your next period is due, do the test at least 21 days after you last had unprotected sex. Some very sensitive pregnancy tests can be used even before you miss a period.