The best time to take a pregnancy test is after you have missed your period. Most pregnancy tests are designed to detect the hormone hCG (human chorionic gonadotropin) in your urine, which is produced during pregnancy. However, some tests claim to be able to detect pregnancy earlier, even before a missed period.