A pregnancy test detects the presence of the pregnancy hormone human chorionic gonadotropin, or hCG, in a person’s body. But the body doesn’t produce that hormone until several days after conception.