Running out of frosting halfway through decorating a cake is a special kind of frustration. The cake is assembled, the layers are stacked, and suddenly the bowl is empty with one side still bare. Making far too much is wasteful too, though it is the safer mistake. This calculator lands in the middle: enter your cake diameter, layers and finish, and it gives the total frosting you need, plus the butter, powdered sugar and milk that make it. Check the number before you shop, so you buy enough butter and sugar in one trip.
The formula starts with a base amount per layer and grows with diameter. A layer of a 15 centimetre cake needs about 180 grams for a standard coat, and each extra centimetre of diameter adds about 14 grams, because a wider cake has more top surface and more side to cover. A 20 centimetre layer therefore needs about 250 grams, and a 25 centimetre layer needs about 320 grams. Multiply by your layers, then adjust for finish: a thin coat uses 80 percent, a standard coat 100 percent, and a thick coat 130 percent.
Here is a worked example. You have a 20 centimetre cake with 2 layers and a standard finish. One layer needs 180 plus 5 times 14, which is 250 grams, and two layers need 500 grams in total. The split is 35 percent butter, which is 175 grams, 60 percent powdered sugar, which is 300 grams, and 5 percent milk or cream, which is 25 grams. If you choose a thick finish instead, the total rises to 650 grams, which is a useful warning before you start rather than after.
The split matters because frosting is a balance, not just a pile of sugar. Butter gives body and flavour, powdered sugar gives sweetness and structure, and a little milk loosens the mixture so it spreads smoothly. Too much sugar makes frosting gritty and cloying, too little makes it soft and prone to sliding. Beat the butter until pale before adding sugar, add the sugar in parts so it does not cloud the kitchen, and add milk a teaspoon at a time until the texture spreads like thick cream.
Cake temperature is the hidden variable in every frosting job. A warm cake melts butter frosting on contact, so it slides, tears crumbs into the finish, and leaves a lumpy coat no matter how much frosting you made. Chill the layers until firm, then apply a thin crumb coat, chill again for 20 minutes, and finish with the main coat. The crumb coat traps loose crumbs so the final coat stays clean, and it uses a small share of your total, which the calculator already covers.
Decorating style changes the amount more than most recipes admit. A smooth finish uses the standard amount, piped rosettes and borders use noticeably more, and a naked or semi-naked cake, where the layers show through, uses far less. If you plan heavy piping, choose the thick finish or add an extra 20 percent by hand to the total, because piping bags waste a little frosting and rosettes are greedy. It is better to have a small bowl left over than to run dry on the last border.
Use this calculator before you shop, not after you start beating butter. Weigh the butter and sugar it gives, make a little extra if you plan piping, and frost a cold cake in two coats. A cake with the right amount of frosting looks generous, tastes balanced, and finishes cleanly, and the difference between enough and not quite enough is a number you can check in under a minute.
