I am making buttercream icing, but the powdered sugar does not dissolve with the butter and shortening. The icing is grainy. How can I prevent this?
This can have different reasons.
How long did you mix it? The transition between grainy and creamy can come late and suddenly, but it should happen eventually.
Was the butter cold? I have been getting the best results with room-temperature butter.
Did you sieve the powdered sugar? If not, that may be the problem. Or did it perhaps get wet at some point and crystallize again?
If all these are NOT the problem, try adding some milk, or if you plan to use it anyway, vanilla essence, in small drops, while stirring.
I hope one of these will help :).
Just like when making fudge, Mother used to fold this by hand in a metal bowl on her lap. Honestly I think it's the slight impartation of body temperature which induces the sugar granules (microgranules) to break down a bit, you know, just this side of syrup. The smallest taste every once in awhile marks your progress. (It was really nice to be reminded of this.)
Follow all of Layna's answer, and also sift the sugar, and keep everything at room temperature. If you use milk, only a half teaspoon. Remember you can't rush perfection. The trick with all cooking baking and even life is patience. Grainy is a texture, not a flavor.
Start with room temperature butter. Beat it for 2 or 3 minutes. Put the splash cover over the mixer bowl. Start the mixer and then ... THIS IS THE KEY ... add the sieved icing sugar (powdered sugar) TABLESPOON BY TABLESPOON beating well between each addition. I searched the internet trying to find out how to lose the grainy texture & the above 'be very patient' method worked!
This was an issue I had that drove me crazy for such a long time! We're talking throwing-spatulas-across-the-kitchen-frustrated. The magic fix is to use ONLY PURE CANE SUGAR. I know it sounds too easy, but after reading labels on the sugar I was buying (store brand because, hello, it's cheaper and what's the difference, really?) I noticed that the ingredients only say "sugar". Which likely means that it comes from beets, rather than sugar cane. Yes, it's a thing. A very common thing, and after delving more into it it turns out that beet sugar also browns differently from cane sugar. Unless the ingredients label specifies "cane sugar" it's likely not made with sugar cane. I don't know the science behind it, but it has been a game changer for me. This, coupled with making sure the butter is (cool) room temp before creaming it and adding the vanilla very last thing have improved my buttercream more than I ever could have imagined.