Let your unsalted butter sit at room temperature for a few minutes to soften. This helps it melt evenly without scorching. Place your butter in a heavy-bottomed pan or Instant Pot on normal mode or medium heat. Stir gently as the butter melts, being careful not to increase the temperature of the butter too quickly.
As the butter melts, you’ll see it separate into three layers: Foam on top (mostly whey proteins), clear golden liquid in the middle (this is your clarified butter), and white solids or browned milk solids at the bottom of the pot
Use a spoon to gently skim off the foam as needed. Continue simmering over very low heat, watching for tiny bubbles and a nutty aroma. After about 2–3 minutes, the dairy solids will sink and begin to brown slightly at the bottom of the pan.
Once the solids have browned and the liquid is clear and aromatic, remove from heat. Let it cool just slightly, then carefully strain through a coffee filter, fine-mesh strainer, or paper towel into a glass container. (If your cheesecloth or strainer isn’t quite doing the trick, you can use a ladle instead. Once the ghee has cooled a bit, gently tilt the pan so the milk solids settle to one side. Then, just ladle the clear golden ghee off the top, being careful not to scoop up any of the solids at the bottom. Pour it into a clean, dry jar. This method is especially handy for thicker batches or if you’d rather not risk disturbing the settled bits by pouring.)
Allow the ghee to cool completely before sealing your jar of ghee. Store in a clean glass jar at room temperature or in the fridge, depending on how quickly you'll use it.