Zimt

Basic Oil-Based Chocolate Cake Recipe

· 6 min read · Cakes

In this article
  1. Ingredients
  2. Instructions
  3. How Do I Check for Doneness?
  4. Substitutions for Ingredients
  5. How Long Does the Cake Keep?
  6. How Do I Frost This Cake?
  7. What If I Adjust the Pan Size?
  8. Why Is My Cake Dense?
  9. Oil-Based vs. Butter-Based Cakes
  10. Can I Make This Cake Gluten-Free?
  11. What If I Don’t Have Cocoa?
  12. How Do I Store the Batter?
  13. Can I Use Applesauce Instead of Oil?
  14. Troubleshooting Dry Cake
  15. How Do I Fix a Cracked Cake?
  16. What Goes Well With This Cake?
  17. Can I Freeze the Cake?
  18. When Is the Best Time to Bake This Cake?

A simple chocolate cake with oil turns out moist and rich enough for weeknight suppers or potlucks. The oil keeps the crumb tender, and the easy batter works with store-bought cocoa or Dutch-process powder. This cake is best served warm with ice cream or whipped cream, or at room temperature with a dusting of powdered sugar.

Serves 10 · Prep 20 min · Cook 30 min · Total 50 min

Ingredients

  • 1¾ cups (220 g) all-purpose flour
  • ¾ cup (75 g) unsweetened cocoa powder (or ½ cup cocoa + ¼ cup flour for Dutch-process swap)
  • 1½ tsp baking powder
  • 1½ tsp baking soda
  • ½ tsp salt
  • 1 cup (240 ml) vegetable oil (neutral: canola, safflower)
  • 1¾ cups (340 g) granulated sugar
  • 2 large eggs, room temperature
  • 1 tbsp (15 ml) white vinegar
  • 2 tsp vanilla extract
  • 1 cup (240 ml) whole milk (or buttermilk for extra tang)

Instructions

  1. Preheat oven to 350°F (175°C). Grease and line two 9-inch (23 cm) round cake pans or one 9x13-inch (23x33 cm) pan with parchment paper.
  2. Whisk together the flour, cocoa powder, baking powder, baking soda, and salt in a medium bowl. Set aside.
  3. In a large bowl, whisk the oil and sugar until combined. Add the eggs one at a time, stirring well after each. Mix in the vinegar and vanilla.
  4. Alternate adding the dry ingredients and milk to the wet mixture, beginning and ending with the dry. Mix just until combined—small lumps are fine.
  5. Divide the batter evenly between the prepared pans. Smooth the tops with a spatula.
  6. Bake for 30–35 minutes, until a toothpick inserted in the center comes out with a few moist crumbs (not wet batter). If checking early, the cake will spring back when pressed gently.
  7. Remove from oven and let cool in the pans for 10 minutes. Run a knife around the edges to loosen, then transfer to a wire rack to cool completely.
  8. Frost or serve once fully cooled.

How Do I Check for Doneness?

If you pull the cake early, the center will look slightly underdone but will firm up as it cools. Use a toothpick to test: it should come out clean or with a few damp crumbs. For a 9-inch pan, 30 minutes is standard; for 9x13-inch, add 5–10 minutes. Overbaking dries the cake—watch for golden edges.

Substitutions for Ingredients

The oil keeps the cake tender, but you can swap: ½ cup melted butter replaces ⅓ cup oil (adjust liquid to 1 cup total), or use applesauce for half the oil (reduces richness but adds moisture). For cocoa, Dutch-process powder needs less sugar (½ cup cocoa + ¼ cup flour = ¾ cup cocoa-equivalent). Buttermilk replaces milk 1:1 for extra tang.

How Long Does the Cake Keep?

Store wrapped at room temperature for 2 days. Refrigerate for up to 5 days, then wrap tightly in plastic and freeze for up to 3 months. Thaw overnight in the fridge before serving. Reheated cake softens best in a 300°F (150°C) oven for 5–10 minutes.

How Do I Frost This Cake?

This cake holds frosting well. For buttercream, whip ½ cup softened butter with 2 cups powdered sugar, 2 tbsp cocoa, and 2–3 tbsp milk until smooth. Spread on the cooled cake and level the top. For cream cheese frosting, mix 8 oz cream cheese, ¼ cup butter, 2 cups powdered sugar, and 1 tsp vanilla until fluffy.

What If I Adjust the Pan Size?

For a 10-inch pan: reduce batter by ⅓ (use 1½ cups milk, 1½ cups oil). For a 9x13-inch pan, bake at 325°F (160°C) for 35–40 minutes. If using a 6-cup loaf pan, bake 30–35 minutes and check early. Adjust time based on springiness: a pan that’s too small overcooks the edges.

Why Is My Cake Dense?

Overmixing the batter adds air pockets that collapse during baking, leading to density. Cream the sugar and oil until pale but not fluffy, and mix dry/wet ingredients just until combined. Also, ensure your cocoa is sifted to avoid lumps. If the cake sinks in the middle, reduce the baking time by 3–5 minutes and check for doneness earlier.

Oil-Based vs. Butter-Based Cakes

Oil cakes stay moist longer because oil doesn’t separate or brown like butter. Butter cakes brown faster and have a richer flavor but can dry out. For this recipe, oil gives a lighter texture, while butter adds depth. If using butter, reduce the milk by 2 tbsp to avoid a runny batter.

Can I Make This Cake Gluten-Free?

Replace the flour with a 1:1 gluten-free baking blend (like Bob’s Red Mill). Add ¼ tsp xanthan gum per cup of blend for structure. The texture will be slightly cakey—gluten-free cakes don’t rise as much. Bake at 325°F (160°C) for 35–40 minutes to prevent dryness.

What If I Don’t Have Cocoa?

Use 1½ cups (150 g) Dutch-process cocoa powder, or mix 1 cup (120 g) unsweetened cocoa with ¼ cup (30 g) all-purpose flour to mimic the fat content. Shorten your recipe’s sweetness slightly, as cocoa’s acidity balances sugar. For a quick swap, blend 2 tbsp melted chocolate into the batter with the milk.

How Do I Store the Batter?

Make-ahead tip: refrigerate the mixed batter (unbaked) for up to 24 hours. Let it sit at room temperature for 10 minutes before baking to prevent sinking. If storing longer than 12 hours, add 1 tbsp extra baking powder and check the self-rising flour’s freshness (it loses potency after 6 months).

Can I Use Applesauce Instead of Oil?

Yes, but it changes the texture. Replace the oil with 1 cup (240 g) unsweetened applesauce (for half the oil) and add 1 tbsp extra flour to balance moisture. The cake will be slightly less rich but more compact. Bake at 350°F (175°C) for 35–40 minutes, as applesauce takes longer to heat through.

Troubleshooting Dry Cake

If your cake dries out quickly, it’s likely overbaked or missing fat. Check oven temperature with an appliance thermometer—some ovens run hot. For a drier cake, try the butter swap (adjust liquids) or add 1–2 tbsp extra oil. Always use a digital scale for accurate measurements; cups can vary by 20–30 grams. Overmixing also introduces air, leading to a tough crumb.

How Do I Fix a Cracked Cake?

Cracks form from uneven baking or rapid cooling. To prevent them, bake at the lower end of the time range (30 minutes) and let the cake cool in the pan for 15 minutes. If cracks appear after cooling, cover with frosting to hide them. For a single-layer cake, spread frosting immediately to smooth the top before cracks deepen.

What Goes Well With This Cake?

Serve with vanilla ice cream, fresh berries, or a drizzle of caramel sauce. For savory balance, add a scoop of salted caramel or a sprinkle of flaky sea salt. Chocolate cake pairs well with coffee, milk, or chilled tea. For a boozy twist, add 2 tbsp Kahlúa or espresso powder to the batter.

Can I Freeze the Cake?

Wrap the cooled cake tightly in plastic wrap and aluminum foil before freezing for up to 3 months. Thaw at room temperature for 1–2 hours or in the fridge overnight. Reheat slices in a 300°F (150°C) oven for 5–10 minutes to revive moisture. Freezing works best for frosted cakes; unfrosted layers can dry slightly.

When Is the Best Time to Bake This Cake?

Bake on a cool day for even baking, or preheat the oven for at least 15 minutes to ensure an accurate temperature. Avoid opening the oven door during the first 20 minutes, as heat loss can cause sinking. For even browning, rotate the pans halfway through baking. This cake’s simplicity makes it ideal for last-minute baking or prepping ahead.