The best time to take a pregnancy test is generally from the first day of a missed or late period for the most accurate results. Some early detection tests can detect pregnancy a few days before the missed period, but testing too early may lead to false negatives because the hormone hCG levels may not be high enough yet. If your cycle is irregular or you are uncertain, it's recommended to wait about three weeks after unprotected sex before testing to improve accuracy. Testing with morning urine is also advised, especially if testing early, as hormone concentration is highest then.