Preheat oven to 375°F (190°C). Place rinsed rice and boiling water or broth in an oven-safe dish with a tight lid (or cover tightly with foil). Use a 1:1.5 ratio for white rice; brown rice needs more liquid and higher time.
Stir in salt and a bit of butter or oil. Cover and bake for 25–30 minutes for white rice; brown rice will take 45–60 minutes. Remove, let sit covered 10 minutes, then fluff.
Baking is reliable for even heat and frees you from stove-tending, ideal when roasting other dishes simultaneously.