The original baked feta pasta went viral for a reason: it is absurdly easy and absurdly good. But three years after the TikTok explosion, it is time for an upgrade. This baked feta pasta recipe keeps the genius simplicity of the original — everything roasts on one sheet pan — while adding caramelized onions, sun-dried tomatoes, and a finish of fresh basil and toasted pine nuts that transform it from a clever trick into a genuinely great dinner.
I first encountered the original Finnish recipe (known as uunifetapasta) during a food trend research trip in Helsinki. The Finnish version is intentionally minimal: feta, cherry tomatoes, olive oil, oven. What struck me was how the technique — roasting feta until it softens into a creamy sauce — is a platform, not a finished dish. You can build in any direction from there.
Baked Feta Pasta with Caramelized Onions and Sun-Dried Tomatoes
Prep Time: 10 minutes
Cook Time: 30 minutes
Total Time: 40 minutes
Servings: 4
Difficulty: Easy
Cuisine: Mediterranean Fusion
Ingredients
- 1 block (8 oz / 225g) good-quality feta cheese (sheep’s milk preferred)
- 2 pints (600g) cherry or grape tomatoes
- 1 large yellow onion, cut into thin wedges
- 1/3 cup sun-dried tomatoes in oil, roughly chopped
- 4 cloves garlic, peeled and left whole
- 1/4 cup extra virgin olive oil
- 1/2 teaspoon red pepper flakes
- 1 teaspoon dried oregano
- Salt and pepper to taste
- 12 oz (340g) pasta (rigatoni or penne)
- 1/2 cup reserved pasta water
- Fresh basil leaves, torn
- 2 tablespoons toasted pine nuts
Instructions
- Preheat oven to 400°F (200°C). Place cherry tomatoes, onion wedges, sun-dried tomatoes, and whole garlic cloves on a large sheet pan. Drizzle with olive oil, sprinkle with red pepper flakes, oregano, salt, and pepper. Toss to coat evenly.
- Nestle the feta. Push the vegetables aside to create a well in the center. Place the block of feta in the well. Drizzle the feta with a little more olive oil.
- Roast. Bake 25–30 minutes until the tomatoes burst, the onions caramelize at the edges, and the feta is soft and slightly golden on top.
- Cook the pasta. While the feta roasts, cook pasta in heavily salted water until al dente (1 minute less than package directions). Reserve 1/2 cup of the starchy pasta water before draining.
- Combine. Remove the sheet pan from the oven. Use a fork to mash the feta and roasted garlic into a creamy sauce, then fold in the burst tomatoes and caramelized onions. Add the drained pasta and 1/4 cup of pasta water. Toss vigorously until every piece of pasta is coated in the creamy, roasted feta sauce. Add more pasta water if needed for consistency.
- Finish and serve. Transfer to bowls. Top with torn fresh basil, toasted pine nuts, and a final drizzle of olive oil. Serve immediately while the sauce is still warm and creamy.
Why This Version Is Better Than the Original
The viral original is delicious but one-dimensional: salty feta and acidic tomatoes. This version adds three layers of complexity:
- Caramelized onions introduce sweetness that balances the feta’s sharpness
- Sun-dried tomatoes provide concentrated umami and a chewier texture contrast
- Whole roasted garlic mellows into a sweet, paste-like consistency that enriches the sauce
The Bon Appétit test kitchen found that roasting the feta at 400°F for 25 minutes is the sweet spot: hot enough to soften the cheese completely without browning it too aggressively.
Choosing the Right Feta
Not all feta is equal. For this recipe, seek out sheep’s milk feta (often labeled “Greek feta”), which is creamier and tangier than the cow’s milk version commonly found in supermarkets. Block feta is essential — crumbled feta has a drier texture and will not melt into a smooth sauce. According to Serious Eats, French and Bulgarian feta also work well, while Danish feta tends to be too mild.
Pasta Shape Matters
Rigatoni and penne are ideal because their ridges and hollow centers trap the thick, creamy sauce. Fusilli is a strong alternative. Avoid long, thin pasta (spaghetti, angel hair) — the sauce is too heavy and will pool at the bottom of the bowl rather than coating each strand.
For more easy pasta ideas, browse our dinner category. If you enjoyed this Mediterranean approach, our healthy recipes section has more options.
Nutrition Facts (Per Serving)
| Calories | 520 kcal |
| Protein | 18g |
| Carbohydrates | 62g |
| Fat | 22g |
| Fiber | 5g |
| Sodium | 680mg |
The Evolution of a Viral Recipe
The baked feta pasta phenomenon did not start on TikTok. Its origins trace back to Finland, where food blogger Jenni Hayrinen published a recipe called “uunifetapasta” (oven feta pasta) in 2019. The dish was already a sensation in Finland, where it caused a nationwide feta cheese shortage, before it crossed the Atlantic. In early 2021, the recipe was picked up by TikTok creators, and within weeks it had accumulated over a billion views under the hashtag #fetapasta. Grocery stores across the United States reported feta shortages that lasted for months.
Why did this recipe, among the millions of pasta recipes that exist, become the most viral food trend of the decade? The answer lies in three qualities that social media amplifies perfectly. First, visual drama: the moment when you smash the roasted feta into the burst tomatoes and watch it transform into a creamy sauce is inherently shareable. Second, radical simplicity: five ingredients, one pan, zero technique required. Third, genuine deliciousness: unlike many viral foods that look better than they taste, baked feta pasta delivers. The combination of salty, creamy feta with sweet, acidic roasted tomatoes creates a sauce with more umami complexity than most cream-based pasta sauces that require significantly more effort.
The version in this recipe builds on that foundation by adding caramelized onions for sweetness, sun-dried tomatoes for concentrated umami, and whole roasted garlic that mellows into a paste-like richness. These additions transform the original from a clever shortcut into a dinner that holds its own against any traditional pasta recipe.
Troubleshooting Guide
Even simple recipes can go wrong. Here are the most common problems people encounter with baked feta pasta and exactly how to fix them.
The Feta Did Not Melt Smoothly
This is almost always a feta quality issue. Pre-crumbled feta is the number one culprit. It contains anti-caking agents (typically potato starch or cellulose) that prevent smooth melting. Always use a solid block of feta. Additionally, cow’s milk feta is firmer and less creamy than sheep’s milk feta, so it resists melting into a smooth sauce. The fix: use block feta labeled “Greek feta” or “sheep’s milk feta.” If your feta still has a grainy texture after roasting, mash it more vigorously with a fork and add an extra tablespoon of pasta water. The starch in the pasta water helps emulsify the cheese into a smoother consistency.
The Sauce Is Too Salty
Feta is an inherently salty cheese (typically 300 to 400 mg of sodium per ounce), so the salt level of the final dish depends heavily on the specific feta you use. If your sauce is too salty, there are several fixes. First, increase the amount of pasta in the recipe from 12 ounces to a full pound. The additional starch dilutes the salt concentration. Second, add a tablespoon of heavy cream or a splash of milk when mashing the feta, which softens the salt perception without thinning the sauce. Third, for future batches, soak the block of feta in cold water for 30 minutes before roasting. This draws out a significant amount of surface salt without affecting the texture. You can also simply use less feta: a 6-ounce block instead of 8 ounces works well if you find the standard amount too aggressive.
The Tomatoes Did Not Burst
Cherry tomatoes need sustained high heat to burst their skins and release their juices. If your tomatoes are still intact after 30 minutes, the most likely cause is that your oven temperature is too low. Use an oven thermometer to verify your actual temperature, as many home ovens run 25 to 50 degrees lower than the dial indicates. Another common cause is overcrowding: if the tomatoes are piled on top of each other rather than in a single layer, the ones on top steam rather than roast. Use a large enough sheet pan (a half-sheet pan, 18 by 13 inches, is ideal) and ensure the tomatoes have breathing room. Finally, some cherry tomato varieties have thicker skins than others. Sungold and grape tomatoes burst most readily, while larger cherry tomatoes may need an extra 5 to 10 minutes.
The Pasta Stuck Together
This happens when the pasta is tossed with the sauce without enough liquid. The feta-tomato sauce is thick by nature, and it will seize around the pasta if there is not enough starchy pasta water to loosen it. Always reserve a full half cup of pasta water before draining, and add it gradually (starting with a quarter cup) when tossing. The starch in the water emulsifies with the feta and olive oil to create a cohesive, glossy sauce that coats each piece of pasta rather than clumping. If the pasta has already stuck, add pasta water a tablespoon at a time and toss vigorously over low heat until the sauce loosens.
Wine Pairing
Baked feta pasta has a complex flavor profile: salty and tangy from the feta, sweet and acidic from the roasted tomatoes, and rich from the olive oil. The right wine amplifies these qualities rather than competing with them.
Assyrtiko (Greek White Wine)
The most natural pairing. Assyrtiko from Santorini has a mineral, saline quality that echoes the feta, along with bright citrus acidity that cuts through the richness of the cheese and olive oil. The volcanic terroir of Santorini gives this wine a smoky undertone that complements the roasted tomatoes. Serve well chilled. If you can find it, this is the definitive pairing for any feta-based dish.
Vermentino (Italian or Sardinian White)
Vermentino offers a similar mineral-citrus profile to Assyrtiko but is more widely available in most wine shops. It has a slightly herbal quality (think rosemary and sage) that works particularly well with the sun-dried tomatoes and oregano in this recipe. Look for bottles from Sardinia or the Ligurian coast of Italy. The coastal growing conditions give Vermentino a subtle salinity that mirrors the feta beautifully.
Barbera d’Asti (Italian Red Wine)
If you prefer red wine with pasta, Barbera d’Asti is an excellent choice. It has high acidity that matches the tomato sauce, soft tannins that do not clash with the feta, and bright cherry fruit that complements the sweetness of the roasted tomatoes. Avoid heavy, tannic reds like Cabernet Sauvignon or Barolo, which overwhelm the delicate creaminess of the feta. Barbera is a food-friendly red that enhances rather than dominates.
Feta Varieties Compared
The type of feta you choose has a dramatic impact on the final dish. Here is a detailed comparison to help you select the right one for your preferences.
| Feta Type | Origin | Texture | Tanginess | Best For |
|---|---|---|---|---|
| Greek Sheep’s Milk (PDO) | Greece | Creamy, crumbly, rich | High – sharp and complex | This recipe (the gold standard for baked feta pasta). Melts into the smoothest, most flavorful sauce. |
| Bulgarian Sheep’s Milk | Bulgaria | Slightly drier, more crumbly | Medium-high – clean and bright | A close alternative to Greek feta. Works well in baked applications but may need an extra drizzle of olive oil. |
| French Feta | France | Very creamy, almost spreadable | Mild – less assertive salt | Salads and spreading. Can work in this recipe but produces a milder, less punchy sauce. |
| Danish Feta (Cow’s Milk) | Denmark | Firm, smooth, less crumbly | Low – mild and buttery | Not recommended for this recipe. Too mild and does not melt into a creamy texture as readily as sheep’s milk varieties. |
| American Cow’s Milk Feta | United States | Firm, rubbery when heated | Low to medium – can be bland | Acceptable for salads but underperforms in baked applications. If this is your only option, increase the oven temperature by 25 degrees and add cream. |
Make-Ahead and Leftover Strategy
Baked feta pasta is best served fresh, when the sauce is warm and creamy and the pasta has just absorbed the first wave of flavor. However, it reheats better than most pasta dishes thanks to the high fat content of the feta and olive oil, which prevent the sauce from drying out as quickly as a tomato-only sauce would.
Same-Day Prep
If you want to serve this for a dinner party, prepare the sheet pan with tomatoes, onions, sun-dried tomatoes, garlic, and the feta block up to 4 hours in advance. Cover with plastic wrap and refrigerate. When ready to cook, remove from the fridge, drizzle with olive oil, and add 5 extra minutes to the roasting time to compensate for the cold start. Cook the pasta while the sheet pan is in the oven so everything comes together at the same time.
Storing Leftovers
Store leftover pasta in an airtight container in the refrigerator for up to 3 days. When reheating, add 2 to 3 tablespoons of water or pasta cooking water to the container before microwaving. The water re-emulsifies the sauce and prevents the pasta from becoming gummy. Alternatively, reheat in a skillet over medium-low heat with a splash of olive oil, stirring gently until warmed through. The pasta actually develops deeper flavor overnight as the feta, tomatoes, and olive oil continue to meld. Many people prefer the leftovers to the original dish.
Freezing
The roasted tomato-feta sauce (without pasta) freezes well for up to 2 months. Freeze in portion-sized containers. Thaw overnight in the refrigerator, then reheat on the stove while cooking fresh pasta. Adding fresh pasta to the thawed sauce produces a better result than freezing the assembled dish, as cooked pasta does not survive the freeze-thaw cycle without becoming mushy.
Scaling Up for a Crowd
This recipe scales easily for larger groups, with one important caveat: do not increase the feta proportionally. For 8 servings (double the recipe), use only 1.5 blocks of feta instead of 2. The salt concentration doubles with double feta, making the sauce unpleasantly salty. Use two sheet pans side by side, each with its own feta block and half of the vegetables. Alternatively, use a full-size sheet pan (26 by 18 inches) if your oven accommodates it. Combine the two pans of roasted vegetables and feta when mashing, then toss with the full pound of pasta and generous amounts of pasta water. For groups of 12 or more, consider making the sauce in a large roasting pan and treating it as a buffet item where guests serve themselves pasta and spoon the sauce over the top.
Frequently Asked Questions
Can I use a different cheese instead of feta?
Goat cheese (chèvre) is the best substitute — it softens similarly and has a comparable tanginess. Ricotta also works but produces a milder, less complex sauce. Avoid hard cheeses like Parmesan, which will not melt into a creamy sauce at these temperatures.
Why is my sauce too thick or dry?
The pasta water is the key. The starch in the cooking water emulsifies with the feta to create a creamy consistency. Always reserve at least 1/2 cup and add it gradually when tossing. If the sauce is still too thick, add more water a tablespoon at a time.
Can I add protein to this dish?
Absolutely. Grilled chicken, Italian sausage (browned in a skillet), or chickpeas all pair well. Add cooked protein when tossing the pasta and sauce together. For a seafood version, try sauteed shrimp.
Does this recipe work with gluten-free pasta?
Yes. Use a chickpea or lentil-based pasta for the closest texture to regular pasta. Rice pasta can become mushy — cook it 2 minutes less than package directions and rinse before adding to the sauce.
The Bottom Line
This upgraded baked feta pasta takes a viral sensation and makes it dinner-party worthy. One sheet pan, 40 minutes, and a block of good feta are all that stand between you and one of the most satisfying pasta dishes of the year.
Disclaimer: This article is for informational purposes only. Nutritional values are estimates. Contains dairy and gluten. This content does not constitute medical or dietary advice.

