Onion Gratin
This tasty Onion Gratin flavored with rosemary and thyme was inspired by the creamed onions my mother always made for Thanksgiving. You might think of onions as a higher-carb vegetable, but I bet this is a lot lower in carbs than you think! See tips in the recipe if you want to make this ahead for a holiday meal.
PIN this delicious Onion Gratin to try it later.

This Onion Gratin is a delicious Thanksgiving side dish and it’s great for any kind of special meal! This recipe is something I worked on when I wanted something similar to creamed onions my family always had. I knew I’d have to get creative for a healthier onion dish since the old family version had flour, butter, cream, breadcrumbs, and cheese. And I ended up with a recipe that’s kind of a riff on my popular Broccoli Gratin. (That recipe is perfect for Thanksgiving if onions aren’t a winner for you!)
And recently I made some very slight changes to this recipe to make it more user-friendly and improve the results. And this time I used lower-carb yellow onions. When I recalculated nutritional information with those changes, the built-in calculator on my site and the online one where I double check showed this was much lower in carbs than the original nutrition data! So I’m updating that information with the new results. If nutrition numbers are hugely important for you, you might want to use whatever nutrition calculator you trust and re-check.
I tested this updated version of Onion Gratin on a group of friends and everyone loved it! And I think some people who aren’t normally onion fans might be won over by the cheesy topping. If you like the idea of a cheesy onion dish for a special meal, I hope you try the recipe!
Email This Recipe To Me!
What ingredients do you need?
(This is only a list of ingredients; please scroll down for complete printable recipe. Or if you use the JUMP TO RECIPE link at the top of the page, it will take you directly to the complete recipe with ingredient amounts.)
- medium yellow onions
- Olive Oil (affiliate link)
- minced fresh rosemary, or use a smaller amount of ground rosemary (affiliate link)
- minced fresh thyme leaves, or use a smaller amount of Ground Thyme (affiliate link)
- mayo
- fresh-squeezed lemon juice, I used my fresh-frozen lemon juice
- Dijon mustard (affiliate link)
- Pizza cheese blend
- Parmesan Cheese
- salt and fresh ground black pepper to taste
What is a gratin?
A Gratin is traditionally a dish where food is topped with a browned crust that contains cheese, breadcrumbs, or butter. I’ve become a huge fan of cheesy gratin dishes like this one, and I don’t think breadcrumbs are needed to make it taste good!
What kind of onions did we use?
I first tried this recipe with sweet Vidalia onions, but they’re much higher in carbs. For the lower-carb updated recipe I used medium yellow onions.
What steps add flavor to this Onion Gratin?
Please don’t skip the step of roasting the the onions with rosemary and thyme before you assemble the gratin. Then when you put them in the gratin dish, the partly-cooked onions are spread with a topping made with mayo, lemon juice, Dijon, a blend of cheeses, and Parmesan. Put that back into the oven to cook until the topping is starting to brown and you’ll have a winner.
Can you make the Onion Gratin without fresh herbs?
If you have fresh rosemary and thyme, please use them for this recipe. But you can definitely make this with 1/3 tsp. (or less) ground rosemary and 1 tsp. (or less) ground thyme if you don’t have fresh herbs. If you have whole dried rosemary and thyme, grind it in a Mortar and Pestle (affiliate link) or pound with a meat mallet.
Want to see more options for holiday gratins?
If you enter the word “Gratin” into the search bar on this website, you’ll find recipes for tasty gratins with Cauliflower, Delicata Squash, Cabbage, Turnips, Broccoli, Spaghetti Squash, Sweet Potatoes, Brussels Sprouts, and Artichoke Hearts! There are also a few main dish gratin recipes with meat and vegetables.
How low in carbs is the Onion Gratin?
If you have a moderate serving size, this tasty onion gratin has only 7 net carbs per serving with 9 grams of protein!
How to Make Onion Gratin:
(This is only a summary of the steps for the recipe; please scroll down for complete printable recipe. Or if you use the JUMP TO RECIPE link at the top of the page, it will take you directly to the complete recipe.)
- Spray a baking sheet with nonstick spray, and preheat oven to 450F/232C.
- Peel onions and cut the onions in thick half-inch slices.
- Lay the onion slices on the baking sheet.
- Brush onions with olive oil, and sprinkle with fresh chopped rosemary and thyme. (See NOTES in the recipe if you have dried herbs.
- Roast onions for 15 minutes. Then remove onions and turn the oven down to 375F/190C.
- While the onions roast, mix together mayo, lemon juice, Dijon mustard, grated pizza cheese, and Parmesan cheese.
- Transfer onions to the baking dish. Then spread the mayo-cheese mixture over the top of onions.
- Bake the gratin about 30 minutes, or until the topping is nicely browned.
- Season the finished dish with salt and fresh-ground black pepper to taste.
- Then serve hot and wait for the compliments! (See notes in the recipe below if you’d like to make this ahead for a holiday meal!)
Make it for a Carb-Conscious Meal:
I think this Onion Gratin is perfect for a holiday side dish! But if you want to make it for a regular week-night meal, I’d serve with a low-carb main dish that doesn’t need the oven, like one of these:
- Air Fryer Lamb Chops
- Balsamic Pork Roast (Instant Pot or Slow Cooker)
- Chicken with Lemon, Green Olives, and Capers
- Air Fryer Salmon (with Mustard-Herb Sauce)
- Air Fryer Pork Chops
Want Low-Carb Thanksgiving Ideas?
Check out some of these recipe collections if you want ideas for keeping it low in carbs for Thanksgiving:
- Keto Vegetable Recipes for Thanksgiving
- Keto Brussels Sprouts Recipes
- Thanksgiving Side Dish Recipes (Low-Carb and Gluten-Free)
- Keto Broccoli Recipes for Thanksgiving
Onion Gratin
I love this cheesy Onion Gratin that's flavored with rosemary and thyme, and this is a perfect side dish for a special meal! And see tips in the recipe if you want to make this ahead and reheat when you serve it!
Ingredients
- 6 medium yellow onions
- 1 T olive oil, for brushing onions
- 1 tsp. finely minced fresh rosemary (see notes)
- 1 T minced fresh thyme leaves (see notes)
Gratin Topping Ingredients:
- 3/4 cup mayo
- 4 tsp. fresh-squeezed lemon juice (or more)
- 3/4 tsp. Dijon mustard
- 1 1/2 cups Pizza cheese blend (see notes)
- 1/4 C grated Parmesan cheese
- salt and fresh ground black pepper to taste
Instructions
- Spray a baking sheet with non-stick spray. Preheat oven to 450F/232C.
- Peel onions and cut in 1/2 inch slices. I cut four slices per onion, for a total of 24 slices.
- Arrange onion slices in a single layer on baking sheet.
- Brush onions with oil, then sprinkle with fresh minced herbs or dried ground herbs.
- Roast onions 15 minutes. Then take them out of oven, and turn the oven down to 375F/190C.
- While onions roast, combine mayo, lemon juice, Dijon mustard, pizza cheese, and Parmesan cheese in a small bowl. Mix together with a fork. (The mixture will be lumpy.)
- I used an oval 9″ x 13″ casserole dish for this recipe. I sprayed it with nonstick spray.
- Use a turner to layer partly-cooked onions in the casserole dish.
- Spread topping over onions (I used a rubber scraper to spread it around. Don’t worry if the mixture doesn’t cover every bit of the onions.)
- Place casserole dish in oven and bake about 30 minutes, or until top is golden brown and onions are slightly bubbling.
- Season the finished dish with salt and fresh-ground black pepper to taste.
- Serve The Onion Gratin hot and enjoy!
- When we tested this slightly improved version of the recipe, I refrigerated it overnight and reheated the next day (covered with foil) at 350F for about 30 minutes. I served it to my friends, who absolutely loved it.
Notes
You can use white, yellow, or Vidalia onions for this recipe. Sweeter onions will be a bit higher in carbs.
Use 1/3 tsp. (or more to taste) ground rosemary if you don’t have fresh rosemary.
Use 1 tsp. (or more to taste) ground thyme if you don’t have fresh thyme.
I used a cheese blend that had Mozzarella, Provolone, Parmesan, and Romano. Any similar blend of cheeses will be fine.
This recipe was inspired by Onion Gratin at Closet Cooking and many creamed onion casseroles from my childhood.
Nutrition Information
Yield
8Serving Size
1Amount Per Serving Calories 322Total Fat 29gSaturated Fat 11gUnsaturated Fat 18gCholesterol 42mgSodium 280mgCarbohydrates 9gFiber 2gSugar 4gProtein 9g
Nutrition information is automatically calculated by the Recipe Plug-In I am using. I am not a nutritionist and cannot guarantee 100% accuracy, since many variables affect those calculations.
Low-Carb Diet / Low-Glycemic Diet / South Beach Diet Suggestions:
Onions are high in carbs than some vegetables, but I bet this is lower in carbs than you might think and it should work for low-carb diets. The gratin topping here is better for the original South Beach Diet than the creamed onions of my childhood. But South Beach would recommend reduced fat mayo and cheese and this should probably be a “once in a while treat” for South Beach Dieters.
Find More Recipes Like This One:
Use Side Dishes to find more recipes like this one. Use the Diet Type Index to find recipes suitable for a specific eating plan. You might also like to follow Kalyn’s Kitchen on Pinterest, on Facebook, on Instagram, on TikTok, or on YouTube to see all the good recipes I’m sharing there.
Historical Notes for this Recipe:
This recipe for Onion Gratin was posted in 2009, and I’ve made it for many Thanksgiving dinners since then! It was last updated with more information and a slightly-improved recipe in 2026.



59 Comments on “Onion Gratin”
Pingback: Cauliflower Gratin - melissassouthernstylekitchen.com
I am not a mayonnaise fan but in this dish, all the flavors blend really well together and it is delicious! I’m making it again for dinner tonight. I left out the herbs and used plain mozzarella instead of the pizza blend and my husband and I loved it. Thanks for a great recipe!
So happy to hear you enjoyed it!
Late to find this since comments are starting 2009! Sounds like a great way to onions – they are so good for you.
I am not a mayo/miracle whip fan. Would crème fraîche work as a substitute? I saw it used in a broccoli gratin recipe.
Hi Michelle,
I’m not actually sure how that would work as a replacement for mayo. I worry it might separate or get watery. Sorry, but if you try it I’d love to hear how it works!
Hi Michelle – I was thinking the same thing but then read her comment about separation. I’m thinking I’ll try it first by doing 1/2 mayo and 1/2 sour cream. If that works then that might be my favorite but then I might try again with all sour cream. I can’t imagine that it would separate as I’ve used sour cream in lots of recipes, sometimes by itself, sometimes combined with cream of mushroom soup and it has always been stellar so I’m going to give it a try. I say to all my family and friends that when they come here to eat they should be prepared to eat in the “test kitchen”. They love it!
I’d love to hear about your experiments if you try some!
Looks and sounds yumm!!! I love onions so any recipe with onion is a big win for me! Gonna try IT
I never used to think of onions as the main ingredient in a dish until you first posted this recipe. Thanks for bringing it back!
Lydia I grew up in an onion loving family, so this was a natural for me!
This dish was one of the surprise hits at the Thanksgiving table today, delicious! Used vidalias and fresh herbs. I grew up with creamed pearl onions at holidays and this is a nice modern twist on that idea. Thanks!
You could try sour cream, but I don't think it will be quite the same.
It looks so yummy but I don't eat mayo…any other recommendations? Thanks.
Wonderul dish! I made this last night to have with some grilled pork chops. In fact, I regularly make a recipe, I believe came from Southern Living originally, I salt & pepper my boneless pork chop, top with a nice slice or onion on top, add a heaping TBSP of mayo and cover with grated parmesan & bake at 375 for about 30-40 minutes. This will be a regular side dish at our house now!! Thanks!
Eileen, I love onions (and mayo, but that's a different story.) This kind of gratin with just a little mayo is really flavorful.
Wow, I really was not expecting to see a mayo-based cream! Super interesting. I am all about onions, and this sounds like a great way to eat as many as possible! 🙂
Cee Jay, so glad you liked it!
All I can say is "HIT"! And, I have more left over for lunch tomorrow!
Kim, that was a VERY good question. I had to look back in my notes, and should have said turn the oven down to 375F when you bake the finished dish. Duh! Will edit right now, thank you!
I made it tonight and it was a big hit! I did have a question- do you bake the onions at the same temp you roasted them? I turned mine down to accommodate something else that was going in the oven but I am wondering what the "correct" way is. I think we might just keep this for Thanksgiving but I will have to make it several times between now and then to get it just right! Thanks!
Daisy, sounds like a good combination with the swordfish. Glad you liked it.
This was an amazing recipe. I just finished eating dinner with my family, and paired this with swordfish with pesto. We liked the onions better! Well done!
Shoe, so glad you liked it. It was definitely a hit here too.
I made this yesterday and it was awesome, Kalyn. I have also featured it on my blog! (http://auntshoe.blogspot.com/)
Many thanks for sharing this delicious recipe!!!
Onions and in particularly viladia onions make great gratins. I like the mayo in the cheesy topping!
Katie, I think red onions would be great! I actually thought about layering red and sweet onions when I made it.
I wish we could get sweet onions… that looks wonderful. I wonder how red onions would be….. Hmmmmm….
This looks so easy to do, and anything seasoned with Rosemary is a real winner for me. Such a fragrant, earthy aroma.
Kaylyn,this looks soooo delish! Cheers!
WE LOVE ONIONS,THANKS FOR THE
RECIPE.
This is by far one of my favorite side dishes. I love Kevin for his recipe but I'm also really interested in your version. Mayo and lemon juice sound like a great idea! Now I have to go google creamed onions 🙂
Oh wow this looks lovely! I am always looking for more to use onions that just simply sauteed or sliced in a salad. Yum.
I usually don't miss cheese, but this recipe sounds so delicious. I am craving a cheesy, gooey gratin now. Sigh.
Fun hearing from so many onion lovers! I'm not a mind-reader, just someone who likes veggies that are fixed in a way that's a bit unusual (and if it's an easy recipe, I love that too.)
Cora, I used it on cauliflower too, slightly different combination of cheeses and very delish.
looks delicious! I love the idea of full onions in the dish
I'm always looking for more ways to enjoy Vidalia onions and this looks perfect. Broccoli and now onions . . . hmmmm . . . you may be onto something here with this mixture . . .
I never hold the onions:) I love them! This dish looks very good, love the fresh herbs!
About a week ago someone commented that you were a mind reader and I now must join that chorus. Yesterday I went shopping and swore I didn't have any onions in the house. I bought a five pound bag and guess what I found when I got home — yep, another five pound bag in the cupboard. Thanks, Kalyn, for this recipe. Now my two bags of onions will not rot in the bag. Looks delicious.
I love all your vegetable dishes! You inspire me and support me on my low-carb journey. You remind me of the infinite variety that is available to eat without missing bread. I feel abundant, satisfied and NOT on a diet. THANK YOU!!!
oh yum!! this looks so good! i love carmelized onions… one of my faves!
I have grown to really like onion, particularly caramelized onion but these sound awesome too! How could anything with pecorino cheese be bad!
I have never been a big gratin fan but this looks really good. We love all kinds of onions and eat them almost every day in one form or another. I always buy onions in 10 pound bags. We go through them that quickly. This would make a great addition to a roasted turkey breast on the holidays.
Hi everyone,
First the power was off at my house for six hours, then I was gone to the orthodontist, hair appointment, and to cook dinner for my dad, so I've missed a lot of this conversation!
So glad people are liking this recipe. The big bag of onions were actually purchased as part of a fundraiser. They're gone now, but I'm seeing sweet onions in my store now. Any type of onion would work, but Walla Walla onions would also be great in this. Love the sound of the onions grilled in foil! I think I must try that. I'd love to hear how this worked with yogurt instead of mayo too if anyone tries it!
Tanna, incredible tasting and easy sounds like my favorite type of recipe. That's definitely what I'm aiming for lots of the time, so glad it's working!
Love onions and this sounds like a great side dish, cold weather or not.
It's been cold and rainy for days here in the Northeast, so I can actually bear the thought of turning the oven on. I'm fairly certain I'd eat almost anything that was cooked under that topping — it sounds delicious.
I love this! Vidalia onions are soo good and good for you!
GOrgeous looking dish!
How come it is that you always seem to have just incredible pretty easy amazing food here …
This should be grand!
I just ate lunch, but you're still making me drool! I love onions, and this looks like something I'll have to try. I love having lighter versions of very rich dishes, and I may try to make it even lighter with yogurt instead of mayo. Thanks for a great recipe!
That looks yummy! I live in the Pacific Northwest where Walla Walla sweets abound (moreso than Vidalias), but I love to take a whole sweet onion (either kind), cut it in "blossom" style like Outback, and wrap it in tin foil with a tsp of butter on top, and some salt & pepper. Then grill it on the BBQ or bake it til tender. Omg, heavenly!
Vidalia onions are magical, aren't they? They manage to turn the simplest dish into something extraordinary. Great recipe!
Dara, I was thrown off by seeing your name b/c my name is also Dara. I don't meet other Daras very often.
Oooooo Im not a huge onion fan but this dish looks fantastic!!! 🙂
I have never had anything like this but it sounds delicious. Anything "gratin" tends to be doesn't it? I assume your bag of onions was from a Costco trip? This is a great idea for how to use up those extra onions, I can only ever think of onion soup!
I love onions for their own sake, but you don't see too many recipes around where they are highlighted.
Looks lush and delish, Kalyn.
It is hot, sweltering and sunny where I am, and I'm still craving that gorgeous onion gratin!
Dara, hadn't heard that about Japanese women eating onions, interesting!
Joanne, cold and rainy here too, for weeks. Yesterday we finally got some sun.
I have a certain fondness for Vidalia onions and this seems like it would be absolutely amazing. Rosemary is an herb that always reminds me of warm, hearty winter meals for some reason and since the weather here in NYC is so cold and rainy right now, I could really use some.
Great recipe Kalyn. Apparently Japanese women stay slim because they eat a lot of onion-based dishes too.