Question: how long before your period can you do 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. If you are pregnant, your body needs time to develop detectable levels of HCG.