Rice is simple once you know the ratio and resist lifting the lid.
Rinse first
Rinse white rice in a sieve under cold water until the water runs mostly clear. This removes surface starch that makes rice gummy.
Ratios
Long-grain white rice: 1 cup rice to 1 1/2 cups water, simmer covered 15–18 minutes.
Jasmine rice: 1 cup rice to 1 1/4 cups water, about 15 minutes.
Brown rice: 1 cup rice to 2 cups water, about 40–45 minutes.
Method
Combine rinsed rice, water and a pinch of salt in a pot with a tight lid. Bring to a boil, reduce to the lowest heat, cover and cook for the time above. Turn off the heat and leave it covered for 10 minutes, then fluff with a fork.
Troubleshooting
Crunchy rice usually means too little water or the lid was lifted; add a few tablespoons of water, cover and steam 5 more minutes. Mushy rice means too much water or no rinse. A burnt bottom means the heat was too high.
Leftovers
Cool leftover rice quickly and refrigerate within two hours. It is ideal for fried rice the next day.