During an HIV test, a healthcare provider will either take a small sample of your blood or a swab from the inside of your cheek. Some tests require you to fast or avoid certain medications beforehand. Results can be available in minutes for rapid tests, while laboratory tests may take a few days.