Homemade baked mac and cheese is a classic comfort food that’s always a hit at the dinner table. It combines tender elbow pasta with a rich, creamy cheese sauce and a golden, bubbly top. Made with cheddar and Gruyere, this dish has plenty of cheesy flavor and a smooth texture that makes every bite satisfying.
This recipe is made completely from scratch with simple ingredients you can find at most grocery stores. It’s a wonderful choice for family dinners, holiday meals, potlucks, or any time you want a homemade side dish that everyone can enjoy. Best of all, you can prepare it ahead of time, making it easier to serve when you have guests.

1. Baked Mac and Cheese Recipe (Yield: 8 servings)
Ingredients
- 1 lb. dried elbow pasta
- 1/2 cup unsalted butter
- 1/2 cup all-purpose flour
- 1 1/2 cups whole milk
- 2 1/2 cups half and half
- 4 cups shredded medium cheddar cheese, divided (measured after shredding)
- 2 cups shredded Gruyere cheese, divided (measured after shredding)
- 1/2 tbsp salt
- 1/2 tsp black pepper
- 1/4 tsp paprika (smoked paprika is our favorite!)
Instructions
Step 1: Prepare the oven and baking dish.
Preheat your oven to 350°F. Lightly grease a 9 × 13-inch baking dish with butter or nonstick cooking spray. Set it aside while you prepare the pasta and cheese sauce.
Step 2: Cook the pasta.
Bring a large pot of salted water to a boil and add the elbow pasta. Cook it for about 1–2 minutes less than the package directions recommend so it remains slightly firm. Drain the pasta well and set it aside. Avoid overcooking it because the pasta will continue cooking in the oven.
Step 3: Make the roux.
In a large saucepan or Dutch oven, melt the butter over medium heat. Add the flour and whisk continuously for about 1–2 minutes until the mixture is smooth and lightly bubbly. This butter-and-flour mixture helps thicken the cheese sauce and gives it a creamy consistency.
Step 4: Add the milk and half and half.
Gradually pour in the whole milk and half and half, whisking constantly to prevent lumps from forming. Continue cooking for about 5–7 minutes, stirring frequently, until the mixture thickens enough to coat the back of a spoon. Keep the heat at medium or medium-low and avoid letting the sauce boil.
Step 5: Add the seasonings and cheese.
Stir in the salt, black pepper, and paprika. Reduce the heat to low, then gradually add 3 cups of cheddar and 1 1/2 cups of Gruyere, stirring until the cheese melts into a smooth sauce. Reserve the remaining cheddar and Gruyere for the topping.
Step 6: Combine the pasta and cheese sauce.
Add the drained elbow pasta to the cheese sauce and stir until every piece is evenly coated. Make sure the pasta is mixed thoroughly so you get creamy, cheesy macaroni throughout the dish. Taste the mixture and adjust the seasoning if needed.
Step 7: Assemble the casserole.
Transfer the macaroni and cheese mixture to the prepared baking dish, spreading it into an even layer. Sprinkle the remaining 1 cup of cheddar and 1/2 cup of Gruyere over the top, covering the pasta as evenly as possible.
Step 8: Bake until golden and bubbly.
Place the baking dish in the preheated oven and bake uncovered for about 20–25 minutes, or until the cheese is melted and the edges are bubbling. For a more golden top, you can broil it for 1–2 minutes at the end, watching carefully to prevent burning.
Step 9: Rest and serve.
Remove the baking dish from the oven and let the mac and cheese rest for about 5–10 minutes before serving. This short resting time allows the sauce to settle slightly and makes it easier to scoop. Serve warm while the cheese is still creamy.

2. Tips for Perfect Homemade Baked Mac and Cheese
Shred the cheese yourself. Pre-shredded cheese often contains anti-caking ingredients that can affect how smoothly it melts. Shredding cheddar and Gruyere from blocks gives you a creamier sauce and a better overall texture.
Cook the pasta slightly under al dente. The pasta continues to soften as it bakes in the cheese sauce. Cooking it for a minute or two less than the package instructions helps prevent mushy macaroni.
Use room-temperature dairy when possible. Taking the milk and half and half out of the refrigerator a little ahead of time can help them blend more smoothly into the roux. Add them gradually while whisking to keep the sauce lump-free.
Keep the heat low when melting the cheese. High heat can cause cheese to separate and make the sauce greasy or grainy. Once the milk mixture has thickened, lower the heat before adding the shredded cheese.
Don’t overbake the mac and cheese. The goal is to heat everything through, melt the topping, and get bubbling edges. Leaving it in the oven too long can cause the sauce to thicken excessively and the pasta to dry out.
Let it rest before serving. Give the dish a few minutes to settle after baking. This helps the sauce cling to the pasta and makes serving much easier.
3. Frequently Asked Questions
Can I use a different type of pasta?
Yes. Elbow macaroni is traditional, but other short pasta shapes work well too. Cavatappi, shells, penne, and rotini are good alternatives because their shapes hold plenty of cheese sauce.
What does Gruyere cheese taste like?
Gruyere is a firm Swiss cheese with a mild, nutty, slightly sweet flavor. It melts smoothly and pairs nicely with cheddar, adding a little extra depth to the sauce without overpowering it.
Can I make baked mac and cheese without breadcrumbs?
Absolutely. This recipe uses shredded cheese for its topping rather than breadcrumbs. The melted cheddar and Gruyere create a delicious cheesy layer with golden spots around the edges.
Why is my cheese sauce grainy?
A grainy sauce can happen when cheese is heated too quickly or added to a mixture that is too hot. Using freshly shredded cheese, keeping the heat low, and stirring gently while it melts can help create a smoother result.
Can I double this recipe for a large gathering?
Yes. You can double the ingredients and divide the mixture between two 9 × 13-inch baking dishes. Baking time may vary slightly depending on how full the dishes are, so check that the cheese is melted and the edges are bubbling before serving.
4. Nutrition Information
The following nutrition information is an estimate based on 8 servings. Actual values may vary depending on the brands of pasta, cheese, milk, and other ingredients used.
| Nutrient | Amount per serving |
|---|---|
| Calories | 780 kcal |
| Carbohydrates | 59 g |
| Protein | 34 g |
| Fat | 47 g |
| Saturated Fat | 29 g |
| Cholesterol | 145 mg |
| Sodium | 850 mg |
| Fiber | 2 g |
| Sugar | 5 g |
Homemade baked mac and cheese is a dependable recipe to keep on hand for family meals and special gatherings. The combination of cheddar and Gruyere creates a rich sauce, while baking gives the top a delicious melted finish. It’s a satisfying dish that can easily become part of your regular dinner rotation.
You can also prepare it ahead when you need a little extra time on the day of a gathering. Serve it alongside your favorite main dishes, or enjoy a warm bowl on its own. Once you have this homemade version in your recipe collection, you’ll have a classic cheesy favorite ready whenever the craving strikes.
