Yeast infections do not directly affect the accuracy of pregnancy tests. Home pregnancy tests detect human chorionic gonadotropin (hCG), a hormone produced by the placenta after implantation, regardless of vaginal infections. A yeast infection occurs in the vagina or urinary tract and doesn't interfere with hCG levels in the blood or urine that tests measure.
However, there are practical considerations: a yeast infection can cause vaginal discharge and irritation that might make it uncomfortable to collect a urine sample, but this is a collection issue, not a test accuracy issue. Similarly, if you're using a urine test and have a urinary tract infection (UTI), the infection itself doesn't affect hCG detection, though any unusual discharge might contaminate the sample.
For the most reliable pregnancy test results, follow the manufacturer's instructions, use the test at the appropriate time (typically after a missed period for best accuracy), and consider retesting if results are unclear. If a yeast infection is causing significant symptoms or you're unsure about test results, consult a healthcare provider. They can perform a blood test for hCG if needed, which is unaffected by any vaginal conditions, or help rule out other causes of symptoms you're experiencing.