Short answer: grease or line the pan, bake at moderate heat, check early
To bake brownies in a cast iron skillet, grease the pan or line it with parchment, spread the batter evenly, and bake at a moderate temperature. Check early, because the edges can brown faster than the center. Bake until a toothpick comes out with moist crumbs, not wet batter, for a fudgy texture.
Why cast iron bakes brownies differently
Cast iron heats evenly and holds heat well, so the edges of a brownie can set and brown before the center is ready. A brownie baked in a skillet often has crisper edges and a softer middle than one baked in a glass dish. Many people like that contrast, but it means you need to watch the bake more closely.
Preparing the pan
Grease the skillet well with butter or oil. For brownies that are sticky or hard to release, line the pan with parchment paper and let the paper extend over the edges. The overhang gives you a handle to lift the whole brownie out after it cools.
Keeping the batter from sticking is mostly about the grease and the lining. For more on that, read how to keep food from sticking to cast iron.
Mixing and filling the pan
Follow your brownie recipe, whether it uses melted butter and cocoa or a more traditional mixture of butter, chocolate and sugar. Spread the batter evenly in the pan. Smooth the top so it bakes at the same rate across the surface.
A 10-inch skillet is a common choice for a standard recipe. A smaller pan makes a thicker brownie that needs a longer bake.
Baking the brownies
Preheat the oven to a moderate temperature, often around 325 to 350 degrees Fahrenheit. For a 10-inch skillet, bake for roughly 25 to 35 minutes. The top should look set and slightly shiny, and the edges should pull away from the pan a little. Check at the earliest time in the recipe.
Insert a toothpick into the center. For fudgy brownies, it should come out with moist crumbs. If it comes out with wet batter, bake for a few minutes more. If you prefer cakier brownies, bake a bit longer, until the toothpick comes out clean.
If the edges are browning too fast, lower the oven temperature a little for the rest of the bake, or cover the pan loosely with foil. For more on the range of temperatures that work, see what temperature to bake in cast iron.
Cooling before cutting
Let the brownies cool in the pan for at least 20 to 30 minutes before you cut them. Warm brownies are soft and can fall apart. If you lined the pan with parchment, lift the brownie out using the overhang and cut it on a board. Cutting while it is still warm can make the edges crumble.
Cleaning the pan
Let the skillet cool, then remove any leftover crumbs with a plastic scraper or soft brush. If the bottom is still sticky, soak the pan in warm water for a few minutes. Wash it with hot water, dry it right away and wipe on a light layer of oil. For the full cleaning steps, read how to clean a cast iron pan.