chickpea flour custard

Vegan Onion Cake (Zwiebelkuchen) with Caramelized Onions, Savory Chickpea Flour Custard and a Flaky Press-In Crust

vegan onion cake

A tender, golden crust piled with sweet, slow-cooked onions and baked in a savory, silky custard with a hint of caraway and smoke: this Vegan Onion Cake is a cozy, German-style savory bake, inspired by the traditional Zwiebelkuchen, and made entirely from plants.

Despite the name, this is not a sweet cake. It is a savory tart-like bake that is served warm in squares, usually in autumn with a glass of cider or a bowl of soup. The base is a press-in olive oil crust that needs no rolling. On top goes a generous layer of onions cooked slowly until soft and sweet, then covered in a custard that sets in the oven into a creamy, sliceable filling.

The custard is made from chickpea flour, plant milk, and a little cornstarch, whisked with nutritional yeast, Dijon mustard, smoked paprika, and a pinch of turmeric for color. It is soy-free and egg-free, but it sets firm and sliceable, with a flavor that is savory and gently smoky. Caraway seeds scattered over the top give the bake its classic German flavor.

Cut into squares, it works as a main dish with a green salad, as a side to soup, or as party food. It is good warm from the oven and even better the next day, which makes it a great make-ahead dish for gatherings.

This recipe is 100% vegan and dairy-free. It contains gluten from the flour. It is soy-free and nut-free if you choose a soy-free and nut-free plant milk. Please check labels on your ingredients.


Recipe Information

Prep TimeCook TimeTotal TimeServingsCalories
25 mins55 mins1 hr 20 mins8~290 kcal each

Ingredients

For the Press-In Crust

  • 1¾ cups (220g) all-purpose flour
  • ½ tsp salt
  • ½ tsp baking powder
  • ⅓ cup (80ml) olive oil
  • ¼ cup (60ml) cold water, plus more if needed

For the Caramelized Onion Layer

  • 2 tbsp olive oil or vegan butter
  • 4 large yellow onions (about 1.2 kg), thinly sliced
  • ½ tsp salt
  • 2 garlic cloves, minced
  • 1 tsp fresh thyme leaves (or ½ tsp dried)
  • 1 tsp caraway seeds, plus extra for topping

For the Savory Custard

  • ¾ cup (75g) chickpea flour
  • 1 tbsp cornstarch
  • 1½ cups (360ml) unsweetened plant milk
  • 3 tbsp nutritional yeast
  • 1 tbsp Dijon mustard
  • 1 tsp smoked paprika
  • ¼ tsp ground turmeric
  • ¾ tsp salt
  • ¼ tsp black pepper
  • Pinch of nutmeg
  • 1 tbsp lemon juice

To Serve

  • Fresh chives
  • Green salad
  • Mustard or vegan sour cream

Optional Additions

  • Vegan bacon bits or smoked tofu cubes
  • Fresh herbs
  • Sliced mushrooms
  • Vegan cheese shreds

Instructions

  1. Make the crust. Mix the flour, salt, and baking powder in a bowl. Stir in the oil and cold water until a soft dough forms. Add a teaspoon more water if dry.
  2. Press into the pan. Press the dough evenly into a greased 9-inch (23cm) springform pan or 9×13-inch (23x33cm) dish, bringing it about 1 inch up the sides. Prick the base with a fork. Chill for 15 minutes.
  3. Pre-bake. Heat the oven to 400°F (200°C). Bake the crust for 10 minutes, until just set. Reduce the oven to 375°F (190°C).
  4. Caramelize the onions. Heat the oil in a large wide pan over medium-low heat. Add the onions and salt, then cook for 20–25 minutes, stirring often, until soft and golden. Add the garlic, thyme, and caraway for the last 2 minutes. Cool slightly.
  5. Make the custard. Whisk the chickpea flour, cornstarch, and plant milk until smooth. Whisk in the nutritional yeast, mustard, paprika, turmeric, salt, pepper, nutmeg, and lemon juice. Let it rest for 5 minutes, then whisk again.
  6. Combine. Stir the cooled onions into the custard. The mixture will be fairly thick.
  7. Fill. Pour the onion mixture into the pre-baked crust and spread evenly. Sprinkle with extra caraway seeds.
  8. Bake. Bake at 375°F (190°C) for 35–40 minutes, until the top is golden and the center is set when gently shaken.
  9. Rest. Cool for 15 minutes before slicing, so the custard firms up.
  10. Serve. Cut into squares, sprinkle with chives, and serve warm with a salad.

Pro Tips for the Best Onion Cake

  • Cook the onions slowly. Low and slow gives sweetness without bitterness.
  • Cool the onions before mixing them with the custard.
  • Whisk the chickpea flour custard until completely smooth, and let it rest.
  • Pre-bake the crust so the base stays crisp.
  • Do not overbake, or the custard will dry out.
  • Let the cake rest before slicing. It sets as it cools.
  • Season the custard well. Chickpea flour needs salt and acidity.
  • Use a springform pan for easy release.

A Few Notes on Ingredients

Onions are the star, so use sweet or yellow onions. Chickpea flour makes the custard set, with a savory, slightly nutty flavor. Nutritional yeast and mustard add depth. Caraway seeds give the traditional German flavor, but you can omit them.

Check that your chickpea flour is fresh. Old flour can taste bitter.


Flavor Variations

  • Smoky Version: Add smoked tofu or vegan bacon bits.
  • Herb Version: Fold in fresh thyme, chives, or parsley.
  • Cheesy Version: Add vegan cheese shreds to the custard.
  • Mushroom Onion Cake: Add sautéed mushrooms.
  • Individual Tartlets: Bake in a muffin tin for 20–25 minutes.
  • Gluten-Free: Use a gluten-free flour blend for the crust.

Nutritional Highlights (Per Serving)

CaloriesProteinCarbsFiberFat
~290 kcal8g36g4g13g

Storage

  • Refrigerator: Store covered for up to 4 days.
  • Freezer: Freeze slices, wrapped, for up to 2 months.
  • Reheating: Warm at 350°F (175°C) for 10–15 minutes.
  • Make ahead: It tastes even better the next day.

Frequently Asked Questions

Is this a sweet cake?

No. It is a savory bake, like a quiche or tart, inspired by German Zwiebelkuchen.

Can I make it without chickpea flour?

Yes. Blend 1 block (14 oz) of silken tofu with the seasonings instead, but note the texture will differ.

Why is my custard runny?

It may be underbaked. Bake until the center is set, then rest the cake for 15 minutes.

Can I make it ahead?

Yes. Bake it a day ahead and reheat before serving.

What should I serve it with?

A crisp green salad, mustard, or a bowl of soup.

How is this different from your other onion and savory bake recipes?

This is a crust-based savory bake with caramelized onions and a chickpea flour custard. Our Vegan Spinach and Ricotta Quiche has a tofu custard, our Vegan Amish Onion Fritters are fried, and our Vegan Onion Rings are battered and crispy.


Tried this recipe? Leave a comment below and let us know how it turned out! Tag us on Instagram and Facebook — we love seeing your plant-powered creations. Browse all recipes on Easy Vegan Recipes — new recipes posted every single week!