Whisk the dry stuff first.
In a medium saucepan, whisk together sugar, cocoa powder, cornstarch, and salt. This prevents clumps later, which we do not want. Smooth now = smooth pudding later.
Slowly add the milk.
Pour in the milk gradually while whisking. Take your time here—this step sets the tone for your pudding’s texture. You want it smooth, not suspiciously lumpy.
Heat and stir.
Place the pan over medium heat and stir constantly. Yes, constantly. After about 5–7 minutes, it’ll thicken and start bubbling gently. Congrats, you’re basically a pudding wizard now.
Finish with butter and vanilla.
Remove from heat and stir in butter and vanilla until fully melted and glossy. This is the moment where it goes from “nice” to wow.
Serve or chill.
Eat it warm for cozy vibes, or chill it for a firmer, classic pudding texture. Either way? You win.