Samin Nosrat's Chocolate Midnight Cake recipe

Jump to recipe

A deeply rich, dark and moist chocolate cake topped with chocolate ganache or fresh vanilla cream. One of the best chocolate cakes I've ever eaten.

  • Prep40m
  • Cook30m
  • Total1h 10m


The book mentions that "The batter also makes for fantastic cupcakes" so for the sake of completeness I had to try. I highly recommend. See notes and photo three.

This is the cake that nearly made Samin Nosrat faint from delight so yep, it’s a mighty fine cake. I decorate it with chocolate ganache or fresh cream - both are wonderful but the fresh cream version will need to be stored in the fridge.

I use ganache when I know that the cake will hang around for more than a couple of days or if I want to freeze some of it. Otherwise I use vanilla cream as suggested by the book.

This rich chocolate cake is oil-based so it’s incredibly moist and topping it with freshly whipped vanilla cream just adds to the luxuriousness of it all.


I use non-springform sandwich tins as the batter is quite liquid. The book advises dusting them with flour but I use cocoa powder instead.

My oven is small so I can’t bake two sandwich tins side by side. Instead, I put them on separate shelves and once the cake on top has cooked through, I move the remaining cake to the upper rack. It usually needs another 8-10 minutes to finish cooking.

My cakes sometimes rise unevenly, probably because of the shelf variation, so I trim any large peaks to create a flat surface (and immediately eat the offcuts). The fresh cream or ganache topping will hide the raw edges.

The original vanilla cream recipe lists granulated sugar in the ingredients but I use icing sugar instead.


The recipe makes 18 cupcakes. I use muffin cases rather than cupcake cases and fill them just under ¾ full. Any more and they overflow. Bake at 180°C (160°C fan) for 25 minutes (but check after 20 minutes).

Recipe credit

Lori's Midnight Chocolate Cake in Salt Fat Acid Heat (affiliate link) by Samin Nosrat


Samin Nosrat's Chocolate Midnight Cake

  • Prep40m
  • Cook30m
  • Total1h 10m
Serves: 10-12 (or 18 cupcakes)



  • 55g good quality cocoa powder (plus 1-2 tsp for dusting)
  • 300g sugar
  • 1 tsp fine sea salt
  • 255g plain flour
  • 1 tsp bicarbonate of soda
  • 2 tsp vanilla extract
  • 125ml neutral-tasting oil (plus extra to grease. I use light olive oil or sunflower oil)
  • 350ml freshly brewed strong coffee or boiling water
  • 2 large eggs, beaten

Vanilla cream (option 1)

  • 225ml double cream
  • 1½ tsp icing sugar, sifted (or sugar)
  • 1 tsp vanilla extract (or seeds scraped from ¼ of a vanilla bean)
  • dark chocolate (optional, for grating or shaving)

Thick chocolate ganache (option 2)

  • 150ml double cream
  • 150g dark chocolate (I use 70% cocoa)
  • dark chocolate (optional, for grating or shaving)

Glossy chocolate ganache (best for cupcakes)

  • 125ml double cream
  • 125g dark chocolate
  • dark chocolate (optional, for grating or shaving)


  1. Cake: Preheat your oven to 180°C (160°C fan) and place an oven rack in the upper third of the oven.
  2. Grease two 20cm sandwich tins and line the bottoms with greaseproof paper. Add 1 teaspoon of cocoa powder to one of the tins and move it around until the sides are generously coated. Tap out any excess into the second tin and repeat, adding more cocoa if needed.
  3. Add 55g of cocoa powder, 300g of sugar, 1 teaspoon of fine sea salt, 255g of flour and 1 teaspoon of bicarbonate of soda to a medium sized bowl, whisk, then sift into a large bowl.
  4. Using the medium sized bowl from step 3, add 2 teaspoons of vanilla extract, 125ml oil and 350ml of freshly brewed coffee or boiled water and stir.
  5. Make a well in the middle of the dry ingredients and slowly whisk in the oil mixture until both mixtures have combined. Gradually add 2 lightly beaten eggs and whisk until the batter is smooth (it will be quite thin).
  6. This step is optional but I sieve the batter back into the medium sized bowl to make sure there are no lumps.
  7. Divide the batter between the two cake tins and drop each tin onto a countertop from a height of around 8cm to release any trapped air bubbles.
  8. Bake in the upper third of the oven for around 25-30 minutes until a skewer comes out clean and the edges are pulling away from the tin slightly.
  9. Allow the cakes to cool completely in their tins then carefully remove them and peel off the greaseproof paper. If your cakes have risen unevenly like mine often do, trim the tops with a long knife to even them out.
  10. Vanilla cream (photo two): Add 225ml of double cream, 1½ teaspoons of icing sugar (or regular sugar) and 1 teaspoon of vanilla extract (or the seeds scraped from ¼ of a vanilla pod) into a large bowl and whisk. I use a hand mixer and once soft peaks appear I turn it down low and whisk until the cream is smooth and holds its shape. Whether you whisk the cream by hand or machine, take care not to over-mix or it’ll become grainy. Place one of the cakes onto a plate or serving dish then spread over half of the vanilla cream. Place the second cake on top and spread over the remaining cream. Top with grated or shaved dark chocolate if using. Serve immediately and store any remaining cake in the fridge for up to 3 days, taking it out an hour or so before serving.

    Thick chocolate ganache (photo one): Melt 150ml of double cream and 150g of dark chocolate together in a saucepan then leave to cool completely. Whisk vigorously until the mixture thickens and can hold its shape (it shouldn't drizzle from the whisk), then spoon half of the ganache onto one of the cakes and use a spatula to spread it around. Place the second cake on top and spread over the remaining ganache. Top with grated or shaved dark chocolate if using. Store in an airtight tin or container for up to 3 days. Individual slices of the chocolate ganache cake can also be frozen.

    Glossy chocolate ganache (best for cupcakes): Melt 125ml of double cream and 125g of dark chocolate together in a saucepan then leave to cool for 10 minutes. Whisk until the mixture starts to thicken (but will still drizzle from the whisk) then spoon a little ganache onto each cupcake using the back of the spoon to spread it around. Top with grated or shaved dark chocolate if using. Store the cupcakes in an airtight tin or container for up to 3 days.

Newsletter coming soon

Add yourself to the list and as soon as it's ready we'll let you know.