The absorption method
Most rice is cooked by absorption: a measured amount of water, a tight lid and very low heat, so the rice soaks up all the water and steams. The ratio matters more than the exact time. Too much water gives soft, wet rice; too little leaves it chalky in the middle. Measure the rice and the water with the same cup, and do not lift the lid while it simmers.
Why rest the rice?
Resting off the heat with the lid on lets the moisture even out, so the grains at the top are as tender as those at the bottom and the rice firms up enough to fluff without breaking. Skipping the rest is the most common reason for rice that is wet underneath and dry on top.
Pressure cookers and rice cookers
In a pressure cooker such as an Instant Pot, use a little less water, about 1 to 1 for white rice and 1.25 to 1 for brown, and let the pressure come down naturally for ten minutes. Rice cookers time themselves, but the water ratios here still work as a starting point if you have lost the cup that came with it.
