This Coca-Cola Chocolate Cake is a rich, fudgy copycat version of Cracker Barrel's sheet cake made with real Coca-Cola in both the cake and the frosting.
Prep Time
10 min
Cook Time
25 min
Total Time
35 min
Servings
12
Ingredients
Equipment
- Non-stick spray
- 9"x13" cake pan *see note 1
- Large & Small Saucepan
- Large mixing bowl
- Electric Mixer
- Spatula
- Liquid measuring cup with ounce markings
- Measuring devices: 1 C., ½ C., & 1 tsp.
- Toothpick
Cake
- 1 C. salted butter (2 sticks) *see note 9
- 9 oz. Coca-Cola *see note 2
- ½ C. unsweetened cocoa powder *see notes 4 & 11
- 2 C. all purpose flour *see note 11
- 2 C. granulated sugar
- 1 tsp. baking soda
- 2 eggs Room-temperature *see note 5
- ½ C. buttermilk Room-temperature *see notes 5 & 10
- 1 tsp. vanilla extract
Frosting
- ½ C. salted butter (1 stick) *see note 9
- ½ C. unsweetened cocoa powder *see notes 4 & 11
- 3 oz. Coca-Cola *see note 2
- 3 C. powdered sugar *see note 11
Instructions
Cake
- Preheat the oven to 350°F. *see note 1
Lightly grease a 9"x13" cake pan and set aside. - In a small pot, add the butter, then add 9 oz of Coca-Cola and ½ cup cocoa powder and whisk together.
Bring to a low boil over medium heat, whisking frequently.
Once it begins to bubble, remove from the heat and set aside. - In a large bowl, mix the flour, sugar, and baking soda together to combine with a flat whisk or spatula.
- Slowly pour the cocoa mixture into the dry ingredients and mix until combined.
- Add the eggs, buttermilk, and vanilla extract, and mix again until no dry items remain.
- Pour into the prepared 9"x13" pan and bake at 350°F for 20-25 minutes, or until a toothpick inserted in the center comes out clean.
The top should look set and no longer glossy/wet, and the edges will just start to pull away from the sides of the pan.
Set aside in a ventilated area to cool to room temperature.
Frosting
- In a large sauce pan over medium heat, add ½ cup (1 stick) butter and melt.
Add ½ cup cocoa and the remaining 3 oz of Coca-Cola and bring to a low boil. - Once it boils, remove from the heat and carefully whisk in the powdered sugar 1 cup at a time until smooth.
Let the frosting sit for about 5-10 minutes to thicken slightly. - Pour the frosting over the cake and spread.
Let the frosted cake set for 1 hour.
Refrigeration is optional, room temperature is best.
Notes
- Use a metal 9"x13" pan for the most even bake — glass and disposable foil both work, with some adjustments.
- Metal: matches the bake time as written (350°F, 20-25 minutes) and bakes most evenly.
- Glass: holds heat longer, so lower the oven to 325°F or start checking for doneness a few minutes early.
- Disposable foil: fine for potlucks or tailgates, but the thin metal bakes less evenly and flexes a lot — handle carefully moving it in and out of the oven while full of batter.
- I prefer Mexican Coca-Cola.
- It's made with cane sugar instead of high-fructose corn syrup, giving a cleaner, less corn-syrupy sweetness in both the cake and frosting — the acidity that reacts with the baking soda is the same either way, so it swaps in with no issues.
- Cherry Coke is also an interesting option: the cherry note plays nicely against the chocolate for a bit of fruity depth, and it's still full-sugar, so it behaves the same in the recipe.
- Avoid diet or zero sugar sodas, though — the alternative sweeteners can alter the flavor and consistency of both the cake and frosting.
- Once the frosting has fully set, cover the cake tightly and store it at room temperature for up to 2 days.
- Use natural (non-Dutched) cocoa powder rather than Dutch-processed.
Natural cocoa is acidic and reacts with the baking soda for proper lift and flavor; Dutch-process is alkalized and gives a milder, darker result more suited to a different style of cake. - Let the eggs and buttermilk come to room temperature before mixing them in (about 20-30 minutes on the counter).
Adding them cold can cause the batter to seize slightly when combined with the hot cocoa mixture, leading to a lumpier, less smooth batter. - If the frosting comes out too thick to pour and spread easily, whisk in a splash of milk or Coca-Cola.
If it's too thin, whisk in a little more powdered sugar until it reaches a smooth, pourable consistency. - The cake cuts more cleanly once the frosting has fully set for the full hour; slices cut while still warm will be looser and messier, though still delicious.
- This cake freezes well: wrap individual squares tightly in plastic wrap, then foil, and freeze for up to 2-3 months.
Thaw at room temperature before serving. - The recipe is written for salted butter.
We typically use unsalted, so add a small pinch of salt to both the batter and the frosting to make up the difference. - No buttermilk on hand? Substitute ½ cup milk mixed with ½ tsp vinegar or lemon juice; let it sit for 5 minutes before using.
- Spoon the flour, cocoa powder, and powdered sugar into the measuring cup and level it off with a knife rather than scooping directly from the container.
Scooping packs the flour down and can lead to a denser, drier cake, or a stiffer frosting.