Black Magic Snack Cake with Cocoa Frosting

Prep: 15 minCook: 38 min24 servingsmediumAmerican
Black Magic Snack Cake with Cocoa Frosting

A classic sheet cake with deep chocolate flavor from cocoa and strong coffee. The thin batter creates a tender crumb while the creamy cocoa frosting adds richness. Serve at potlucks, bake sales, or casual gatherings. This version uses coffee to amplify chocolate notes without adding coffee flavor.

Ingredients

24 servings
  • 2 cup sugar, granulated
  • 1 ¾ cup all-purpose flour, or cake flour
  • ¾ cup unsweetened cocoa powder, sifted
  • 2 teaspoon baking soda, leveled
  • 1 teaspoon baking powder, leveled
  • 1 teaspoon salt, fine
  • 2 eggs, room temperature
    2 flax eggs (2 tablespoons ground flaxseed + 6 tablespoons water, sit 15 minutes)1:1vegan

    medium

    Full guide →
  • 1 cup buttermilk, room temperature
    1 cup milk + 1 tablespoon vinegar or lemon juice, let sit 5 minutes1:1dairy

    none

    Full guide →
  • 1 cup strong black coffee, brewed, cooled slightly
  • ½ cup vegetable oil, neutral
    canola oil or melted coconut oil1:1neutral oil

    none

    Full guide →
  • 1 teaspoon vanilla extract, pure
  • cup unsweetened cocoa powder, for frosting
  • ½ pound butter, unsalted, softened
    1 cup milk + 1 tablespoon vinegar or lemon juice, let sit 5 minutes1:1dairy

    none

    Full guide →
  • 3 cup powdered sugar, sifted
  • cup milk, whole or 2%
    1 cup milk + 1 tablespoon vinegar or lemon juice, let sit 5 minutes1:1dairy

    none

    Full guide →

Instructions

  1. 1

    Heat oven to 350°F and grease and flour a 13 x 9 x 2-inch baking pan.

  2. 2

    Whisk together sugar, flour, cocoa, baking soda, baking powder, and salt in a large bowl.

  3. 3

    Add eggs, buttermilk, coffee, oil, and vanilla; beat on medium speed for 2 minutes until thin batter forms.

  4. 4

    Pour batter evenly into prepared pan.

  5. 5

    Bake for 35 to 40 minutes until a wooden pick inserted in the center comes out clean.

  6. 6

    Cool on a wire rack.

  7. 7

    For frosting, melt butter and stir in cocoa powder.

  8. 8

    Alternately add powdered sugar and milk, beating until spreading consistency is reached.

  9. 9

    Add additional milk as needed and stir in vanilla.

  10. 10

    Frost the cooled cake.

Tips

Tip 1

Use strong brewed coffee at room temperature to enhance chocolate without making the cake taste like coffee; instant espresso powder also works.

Tip 2

Beat the batter for the full 2 minutes to develop structure; the thin consistency is intentional and yields a moist crumb.

Tip 3

Sift cocoa and powdered sugar separately to eliminate lumps in both batter and frosting for smooth texture.

Good to Know

Storage

Cover and refrigerate up to 4 days. Store at room temperature in airtight container up to 2 days.

Make Ahead

Bake cake 1 day ahead; frost just before serving or up to 4 hours ahead. Frosting sets slightly when chilled.

Serve With

Serve at room temperature with coffee, milk, or ice cream. Cut into 12-16 squares.

See pairing guide →

Common Mistakes

Watch

Do not skip beating the batter for 2 minutes to avoid a dense, flat cake.

Watch

Do not frost the cake while warm to avoid frosting melting and sliding off.

Watch

Do not over-beat the frosting after reaching spreading consistency to avoid breaking the emulsion.

Substitutions

Dairy-Free Swaps

buttermilk
1 cup milk + 1 tablespoon vinegar or lemon juice, let sit 5 minutes1:1dairy

none

Full guide →
butter
vegan butter1:1dairy-freedairy-free

medium

Full guide →
milk in frosting
oat milk or almond milk1:1dairy-free

none

Vegan Options

eggs
2 flax eggs (2 tablespoons ground flaxseed + 6 tablespoons water, sit 15 minutes)1:1vegan

medium

Full guide →

General Alternatives

vegetable oil
canola oil or melted coconut oil1:1neutral oil

none

Full guide →
Find more substitutions →

FAQ

Can I make this ahead for a party?

Yes. Bake the cake up to 1 day ahead and store covered at room temperature. Make frosting and frost 4-6 hours before serving, or frost just before serving and refrigerate.

What if my frosting is too thick to spread?

Add milk 1 tablespoon at a time while beating until you reach spreading consistency. If too thin, add sifted powdered sugar gradually.

Can I freeze this cake?

Yes. Wrap unfrosted cake tightly in plastic wrap and foil; freeze up to 3 months. Thaw at room temperature before frosting. Frosted cake freezes up to 1 month.