Dinners

How to Make School Cake: Simple Vanilla Sheet Cake

Updated · By Patriot Kitchen

Total timeincludes chilling, rising or resting
1 hr 15 min
Prep
20 min
hands-on
Cook
35 min
oven or stovetop
Serves
12
as written

Jump to recipe Save

Make a basic vanilla sheet cake in a 9×13-inch pan, bake at 350°F (175°C) for 30–35 minutes, then frost with a simple buttercream. This cake is soft, lightly sweet, and holds up well in lunchboxes or at school parties. Total time is about 1 hour 15 minutes, including cooling.

Before You Start: Checklist

Ensure the following before beginning:

  • Oven rack is in the center position
  • Butter or non-stick spray for greasing the pan
  • 9×13-inch (23×33 cm) metal or glass baking pan
  • Cooling rack
  • Electric mixer or whisk
  • Measuring cups and spoons (US standard)
  • Food thermometer (for checking doneness if unsure)

Safety and Prep

Preheat the oven to 350°F (175°C). Grease the 9×13-inch pan with 1 tablespoon of butter or non-stick spray, then lightly dust with flour, tapping out excess. This prevents sticking without parchment, though lining the pan with parchment is an option for easier removal.

Do not use glass bakeware under the broiler. Metal pans heat faster than glass; adjust time by 5 minutes if using glass. Keep flammable items away from the stove. Wash hands after handling raw eggs or flour.

Ingredients

  • 2 cups (250 g) all-purpose flour
  • 1½ cups (300 g) granulated sugar
  • 1½ teaspoons baking powder
  • ½ teaspoon baking soda
  • ½ teaspoon salt
  • ¾ cup (180 ml) whole milk, room temperature
  • ⅓ cup (80 ml) vegetable oil or melted unsalted butter
  • 2 large eggs, room temperature
  • 2 teaspoons vanilla extract

For the Frosting

  • ½ cup (113 g) unsalted butter, softened
  • 2 cups (250 g) powdered sugar
  • 2–3 tablespoons (30–45 ml) milk
  • 1 teaspoon vanilla extract

Instructions

  1. Preheat oven to 350°F (175°C). Grease and flour a 9×13-inch (23×33 cm) baking pan.
  2. In a large bowl, whisk together 2 cups (250 g) all-purpose flour, 1½ cups (300 g) granulated sugar, 1½ teaspoons baking powder, ½ teaspoon baking soda, and ½ teaspoon salt.
  3. In a separate bowl, mix ¾ cup (180 ml) milk, ⅓ cup (80 ml) vegetable oil, 2 large eggs, and 2 teaspoons vanilla extract until smooth.
  4. Pour the wet ingredients into the dry ingredients. Stir with a whisk or electric mixer on low speed for 1–2 minutes, just until combined. Do not overmix.
  5. Pour the batter into the prepared pan, spreading evenly with a spatula.
  6. Bake for 30–35 minutes, until the top is golden and a toothpick inserted in the center comes out clean. The cake is done when it springs back lightly when touched.
  7. Cool in the pan on a wire rack for 15 minutes. Then run a knife around the edges and invert onto the rack to cool completely, about 45 minutes.
  8. While cooling, make frosting: beat ½ cup (113 g) softened butter until smooth. Add 2 cups (250 g) powdered sugar, 1 teaspoon vanilla, and 2 tablespoons milk. Beat on low, then increase speed until smooth. Add more milk, 1 teaspoon at a time, if too thick.
  9. Once cake is fully cooled, spread frosting evenly over the top.
  10. Slice into 12 rectangles using a sharp knife. Wipe the knife between cuts for clean edges.

Symptom, Cause, and Fix Table

Symptom Possible Cause Solution
Cake sinks in the center Oven opened too early or underbaked Do not open oven in first 25 minutes; bake until toothpick comes out clean
Top is too dark Oven too hot or pan too close to top element Use oven thermometer; ensure rack is in center
Frosting cracks or slides off Cake not cooled completely Cool cake fully before frosting
Dry, tough texture Overmixed batter or overbaked Mix just until combined; check doneness at 30 minutes
Sticks to pan Insufficient greasing or removed too soon Grease and flour pan well; cool 15 minutes before removing

Frosting and Storage

The cake can be made without frosting for a simpler version. For school lunches, unfrosted slices stay fresh and won’t smudge in containers. If frosted, store in an airtight container.

Refrigerate frosted cake within 2 hours of serving. It keeps in the refrigerator for up to 4 days. Unfrosted cake can be stored at room temperature in an airtight container for 2 days or refrigerated for 4 days.

To freeze, wrap unfrosted cake tightly in plastic wrap and foil. Freeze for up to 2 months. Thaw at room temperature for 2 hours before serving. Frost after thawing.

Ingredient Swaps and Effects

Use 1 cup (240 ml) buttermilk instead of regular milk and omit baking soda for a slightly tangy flavor and tender crumb. If using salted butter in the batter, reduce added salt to ¼ teaspoon.

For a dairy-free version, substitute milk with unsweetened almond or oat milk and use vegan butter in both cake and frosting. The texture remains similar, though browning may be slightly lighter.

Gluten-free flour blends (1:1 ratio) can replace all-purpose flour. Results vary by brand; expect a slightly denser texture.

Eggs can be replaced with ¼ cup (60 ml) unsweetened applesauce per egg, but the cake will be less fluffy and may sink slightly in the center.

Checking Doneness

Bake the cake for 30–35 minutes. The center should spring back when lightly pressed, and a toothpick inserted in the middle should come out clean or with a few dry crumbs. If wet batter clings, bake 5 minutes more and retest. Overbaking leads to dryness, so check at 30 minutes.

For extra certainty, use a food thermometer. Insert into the center; the internal temperature should reach about 200–210°F (93–99°C), indicating full set. This is not a safety temperature (the cake has no meat or eggs requiring USDA minimums), but a doneness cue.

Why This Method Works

The creaming method isn’t used here because oil and milk create a moist crumb without needing to aerate butter. The combination of baking powder and baking soda ensures consistent rise in the sheet format. Room-temperature ingredients blend smoothly, preventing lumps and uneven texture.

The 9×13-inch pan size ensures even heat distribution. Smaller pans may require longer baking and risk undercooked centers. Doubling the recipe requires two pans; do not bake in a single larger pan, as it will overbake on the edges before the center sets.

This cake is designed to be portable and sturdy. The simple frosting adheres well and doesn’t melt quickly at room temperature, making it suitable for school events where refrigeration isn’t available for long.

Related

Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.

Spotted an error? Tell us and we will correct it (corrections policy).