Chocolate Texas Bars are basically the best parts of a thin chocolate sheet cake with that classic warm cocoa frosting poured right over the top. They’re rich, fudgy, and cut neatly into squares, which makes them easier to serve than a layer cake.
What I like about this version is the texture: the cake stays soft and tender with a deep cocoa flavor, and the frosting sets into that smooth, slightly chewy finish. It’s the kind of chocolate dessert I’d rather have than brownies when I want something a little lighter but still very chocolatey.
I make these when I need a one-pan dessert that travels well and doesn’t need any decorating. They’re especially good on a party dessert table, and I won’t say no to one with coffee in the afternoon.

Why You’ll Love This Recipe
So Chocolatey: You get cocoa in the cake and cocoa in the frosting, which is exactly what I want in a Texas bar.
One Pan: No layers, no filling, no fancy tools. Just a sheet pan and a spatula.
That Warm Frosting: Pouring the frosting over the hot cake makes it spread fast and set up with that classic glossy top.
Easy to Slice: Once the frosting sets, these cut into clean little squares that are simple to serve and stack.
Pecan Optional: Add chopped pecans for a little crunch, or leave them out and keep it totally nut-free.
Ingredients You’ll Need
Cake
- All-purpose flour: I use regular all-purpose flour here. It gives the bars enough structure so they slice well but still stay tender.
- Granulated sugar: This is the classic sweetness level for Texas sheet cake style bars. It also helps keep the cake soft.
- Baking soda: Don’t skip it. It’s what helps the thin cake rise just enough and bake up evenly.
- Kosher salt: A little salt keeps the chocolate from tasting flat. If you’re using fine salt, use a bit less.
- Unsalted butter: Butter gives the cake that rich flavor and a fudgier feel than oil. I like unsalted so I can control the salt.
- Water: This helps dissolve the cocoa and makes the batter easy to spread in the pan.
- Unsweetened cocoa powder: Use the kind you normally bake with. Natural cocoa is what I reach for most often for this.
- Eggs: Eggs help the cake set while staying soft. Let them come to room temp if you remember.
- Sour cream: This is what makes the cake tender and a little richer. Full-fat is best, but light sour cream will still work.
- Vanilla extract: Just enough to round out the cocoa and make it taste more like a finished dessert.
Frosting
- Unsalted butter: This is the base of that classic Texas sheet cake frosting. It sets up nicely once it cools.
- Whole milk: Whole milk keeps the frosting smooth and pourable. In a pinch, 2% works too.
- Unsweetened cocoa powder: Same deal as the cake—use unsweetened cocoa, not hot cocoa mix.
- Powdered sugar: Sift it if yours is very lumpy, but I usually just whisk well and it smooths out.
- Vanilla extract: A small amount makes the frosting taste less one-note.
- Chopped pecans (optional): I like pecans for a little crunch, but these are still great without them. Toasting them first makes a difference.

Recipe Instructions
- Preheat the oven: Heat the oven to 350°F and grease a 13×18 inch sheet pan or jelly roll pan.
- Mix the dry ingredients: Whisk the flour, sugar, baking soda, and salt together in a large bowl.
- Boil the cocoa mixture: Bring the butter, water, and cocoa powder to a boil in a saucepan, then remove from the heat.
- Mix the batter: Pour the hot cocoa mixture into the dry ingredients and stir until smooth.
- Add the remaining ingredients: Whisk in the eggs, sour cream, and vanilla until fully combined.
- Bake: Spread the batter evenly in the pan and bake until set and a toothpick comes out with moist crumbs, about 16 to 20 minutes.
- Heat the frosting: During the last few minutes of baking, heat the butter, milk, and cocoa in a saucepan until steaming and smooth, then remove from the heat.
- Finish the frosting: Whisk in the powdered sugar and vanilla until glossy and pourable, then stir in the pecans if using.
- Frost the cake: Pour the frosting over the hot cake and spread quickly to the edges.
- Cool and slice: Cool 30 to 60 minutes until the frosting is set, then cut into bars.

Some of my tips!
This is the part that really makes a difference. If you only read one section, make it this one because this is where I share the little trick that helps the recipe turn out so well.
Recipe Tips & Tricks
Use the right pan. A 13×18 inch sheet pan (half sheet) gives you the classic thin Texas bar. If your pan is smaller, the cake will be thicker and may need a few extra minutes.
Stir the hot cocoa in while it’s hot. That heat helps the cocoa bloom a bit and makes the batter mix together smoothly without a lot of beating.
Don’t overbake the cake. You’re looking for a set top and a toothpick that comes out with moist crumbs. If it’s totally clean, it can end up a little drier than you want.
Work fast when you frost. The frosting spreads easiest when both the cake and frosting are warm, and it starts setting up pretty quickly.
Chill before slicing if you want clean cuts. After the frosting is set at room temp, a quick 15 minutes in the fridge helps a lot. Wipe your knife between slices.
Make some touches!
There are plenty of easy ways to serve this depending on the occasion. Keep it simple, or add a few small touches to make it feel a little more special.
Serving Suggestions
- Milk: A cold glass of milk is simple and classic with these. It’s especially nice if you go heavy on the frosting.
- Coffee: I like these with plain coffee or a latte. The bitterness from coffee goes well with the cocoa frosting.
- Ice cream: Serve a bar with vanilla ice cream on the side if you want a more plated dessert. It’s also good with butter pecan if you’re using pecans.
- Fruit: Fresh strawberries or raspberries are nice next to a square of cake. It breaks up the richness without making it fussy.
Save it for later
This section covers how to store leftovers and what parts of the recipe you can prepare ahead of time.
Storage and Make Ahead
Store the bars covered at room temperature for 2 to 3 days. If your kitchen is warm, I usually move them to the fridge so the frosting stays firm.
Store leftovers covered in the fridge for up to 4 days. I like them chilled, but you can also let a bar sit out for 10 to 15 minutes so the frosting softens a little.
You can make this recipe ahead for parties by baking and frosting the day before. Once the frosting is set, cover the pan tightly so the top doesn’t dry out.
If you want them to last longer, freeze individual portions in an airtight container. Thaw in the fridge overnight or on the counter for an hour or so.

A few quick answers
This section covers a few extra details that may help before you head to the recipe card.
Recipe FAQs
Can I use buttermilk instead of sour cream?
Yes. Buttermilk works in place of sour cream and gives the cake a slightly tangier flavor. The batter will be a little thinner, but it bakes up just fine in a sheet pan.
Do I have to add pecans?
No, they’re totally optional. I like the crunch, but you can leave them out for a smooth frosting and a nut-free dessert.
How do I know the cake is done?
The top should look set and the cake shouldn’t jiggle in the middle. A toothpick should come out with moist crumbs, not wet batter.
Why did my frosting get thick before I could spread it?
This frosting sets as it cools. If it thickens too fast, you can warm it gently on the stove for a minute while whisking, just until it loosens up again.
Can I cut clean squares without the frosting cracking?
Let the frosting set first, then chill the pan for about 15 minutes. Use a sharp knife and wipe it between cuts.
You might also like
Before you go, take a look at a few other recipes below the recipe card. They use similar ingredients in a different way and are worth saving too.

Chocolate Texas Bars
INGREDIENTS
Cake
- 2 cups all purpose flour
- 2 cups granulated sugar
- 1 tsp baking soda
- 1 tsp kosher salt
- 1 cup unsalted butter
- 1 cup water
- 4 tbsp unsweetened cocoa powder
- 2 large eggs
- 1 2 cup sour cream
- 2 tsp vanilla extract.
Frosting
- 1 2 cup unsalted butter
- 6 tbsp whole milk
- 4 tbsp unsweetened cocoa powder
- 3 1 2 cups powdered sugar
- 1 tsp vanilla extract
- 3 4 cup chopped pecans optional.
INSTRUCTIONS
Prepare and Bake
- heat oven to 350 F and grease a 13x18 inch sheet pan or jelly roll pan
- whisk flour sugar baking soda and salt in a large bowl
- bring butter water and cocoa to a boil in a saucepan then remove from heat
- pour hot cocoa mixture into dry ingredients and stir until smooth
- whisk in eggs sour cream and vanilla until fully combined
- spread batter evenly in pan and bake until set and a toothpick comes out with moist crumbs about 16 to 20 minutes.
Frost and Set
- during the last few minutes of baking heat butter milk and cocoa in a saucepan until steaming and smooth then remove from heat
- whisk in powdered sugar and vanilla until glossy and pourable then stir in pecans if using
- pour frosting over hot cake and spread quickly to the edges
- cool 30 to 60 minutes until frosting is set then cut into bars.
