Baked gnocchi with ricotta is the kind of dish that feels like a warm hug from the inside. Soft, pillowy gnocchi get cozy under a blanket of creamy ricotta and melted cheese, bubbling up golden and inviting.
This recipe is all about simple comfort—no fuss, just honest flavors that bring everyone to the table. It’s the sort of meal that’s easy to share and hard to forget, perfect for savoring slow Sundays or any night you need a little extra warmth.

Ingredients
This Baked Gnocchi with Ricotta is a comforting dish that feels like a warm hug from Nonna’s kitchen. Soft, pillowy gnocchi get cozy under a blanket of tangy tomato sauce, creamy ricotta, golden melted mozzarella, and fresh basil. It’s simple, satisfying, and just right for sharing with friends around the table.
- 1 pound gnocchi
- 1 cup ricotta cheese
- 1 cup shredded mozzarella cheese
- 1 cup tomato sauce, preferably homemade or good quality
- 2 tablespoons olive oil
- 2 cloves garlic, finely minced
- 1/4 cup fresh basil, thinly sliced
- 1/4 teaspoon red pepper flakes, optional for a little kick
- Salt, to taste
- Freshly ground black pepper, to taste
- 1/4 cup grated Parmesan cheese

Instructions
Getting this Baked Gnocchi with Ricotta just right is easy and rewarding. You’ll cook the gnocchi until tender, let garlic and basil flavor the sauce, and then layer everything with creamy ricotta and melty mozzarella before baking it to bubbly, golden perfection. It’s like a cozy meal waiting at your table.
- Preheat the oven: Set your oven to 375°F (190°C) so it’s ready for baking the gnocchi dish to a lovely golden finish.
- Cook the gnocchi: Bring a large pot of salted water to a boil and add the gnocchi; cook until they float to the surface, about 2-3 minutes, then drain and set aside.
- Sauté the garlic: Warm olive oil in a skillet over medium heat, add the minced garlic and red pepper flakes if using, and cook for 1-2 minutes until fragrant but not browned.
- Add the tomato sauce and basil: Pour in the tomato sauce and stir in half of the sliced basil; simmer gently for 5 minutes so the flavors come together, then season with salt and freshly ground black pepper to taste.
- Combine gnocchi and sauce: Toss the cooked gnocchi into the skillet with the sauce, coating them well and letting them soak up that garlicky, basil-infused goodness.
- Prepare the baking dish: Lightly grease a baking dish with a little olive oil to keep everything from sticking and help the cheese brown nicely.
- Layer the ricotta: Spread the ricotta cheese evenly in the bottom of the prepared baking dish, creating a creamy base for the gnocchi.
- Add the gnocchi and sauce: Spoon the gnocchi and tomato mixture over the ricotta layer, distributing it evenly.
- Top with mozzarella and Parmesan: Sprinkle the shredded mozzarella and grated Parmesan cheese over the gnocchi to add that irresistible cheesy crust.
- Bake until bubbly: Place the dish in the oven and bake for 20-25 minutes until the cheese is melted and golden brown on top.
- Garnish with fresh basil: Remove the dish from the oven and scatter the remaining fresh basil over the top for a pop of color and fresh aroma before serving.
Let the baked gnocchi cool to room temperature, then cover it tightly with plastic wrap or transfer to an airtight container. It will keep well in the fridge for up to 3 days. When you’re ready to eat, warm it gently in the oven at 350°F (175°C) until heated through, or microwave individual portions covered with a lid or damp paper towel. For longer storage, you can freeze it in a sealed container for up to 1 month—just thaw it overnight in the fridge before reheating.
Tweaks and Additions
This baked gnocchi with ricotta is already a delight, but a few little tweaks and add-ins can lift it even more, bringing in extra layers of flavor or that hint of texture that makes every bite sing. Here are some simple ideas to try out next time you make it, keeping things warm, easy, and full of Italian charm.
- Add sun-dried tomatoes: Toss in some chopped sun-dried tomatoes with the tomato sauce for a sweet, tangy twist that deepens the flavor without stealing the show.
- Use fresh oregano: Swap half the basil for fresh oregano or add a sprinkle during cooking for an earthy note that complements the tomato and garlic beautifully.
- Stir in spinach: Fold in a handful of fresh baby spinach leaves with the gnocchi and sauce to add a pop of color and a mild, fresh flavor that softens up nicely when baked.
- Include toasted pine nuts: Sprinkle some toasted pine nuts over the top just before serving for a lovely crunch and that classic Italian nuttiness.
- Try smoked mozzarella: Swap regular mozzarella for smoked mozzarella for a gentle smoky flavor that adds a bit of depth without overpowering the dish.
- Crush in a pinch of nutmeg: Add a light pinch of freshly grated nutmeg to the ricotta layer to bring out creamy warmth and hint at cozy, familiar flavors.
- Finish with a drizzle of good olive oil: Just before serving, drizzle a little extra virgin olive oil over the baked dish to give it a silky, fruity shine and that extra touch of love.
- Swap red pepper flakes for fresh chili slices: For a fresh pop of heat, replace the red pepper flakes with thin slices of fresh red chili while sautéing the garlic—just a little kick, nothing fiercesome.
