Human chorionic gonadotropin (hCG) is a hormone produced by the placenta of a pregnant woman. Early in pregnancy, the level of hCG increases in the blood and is eliminated in the urine. A pregnancy test detects hCG in the blood or urine and confirms or rules out pregnancy.