Question: how long do you have to be pregnant for a pregnancy test to work?
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.