A human chorionic gonadotropin (hCG) urine test is a pregnancy test. A pregnant woman's placenta produces hCG, also called the pregnancy hormone. If you're pregnant, the test can usually detect this hormone in your urine about 10 days after your first missed period.