Question: how long before your next period can you take a pregnancy test?
Answer: You should wait to take a pregnancy test until the week after your missed period for the most accurate result. If you don't want to wait until you've missed your period, you should wait at least one to two weeks after you had sex.