Are you practically living in the gym but still aren’t seeing the muscle you want? Here’s a hard truth: your workout isn’t the problem, your grocery list is. You can’t expect to build muscle if you’re not feeding your body correctly. All that lifting is just tearing you down if you’re not eating the right stuff to repair and grow.

Yes, this is about protein. And before you start complaining about how expensive food is-we get it, a CNET survey found 93% of Americans are stressed about inflation-you don’t have to go broke. As any Reddit thread will tell you, affordable staples like Greek yogurt and whole grains are where it’s at.

If you’re actually serious about seeing gains, it’s time to stop sabotaging your hard work. We’ve rounded up the eight best foods to fuel your body and actually build muscle. (Just do us a favor and check with your doc before you change everything.)

Don’t miss any of our unbiased tech content and lab-based reviews. Add CNET as a preferred Google source.

Why nutrition is essential to building muscle CNET Health Tips badge art

Although protein is essential for muscle building, it’s not the only important food component in the process. According to the National Academy of Sports Medicine, a good muscle-building diet must also include plenty of carbohydrates, vitamins and minerals. A balanced diet that features all these will provide the necessary ingredients to help your muscles repair and rebuild after a workout.

The NASM recommends that most people consume at least 0.7 to 0.8 grams of protein and 1.8 to 3.2 grams of carbohydrates per pound of body weight each day. Total calorie intake also plays a role in muscle building, as it’s difficult to build muscle if you burn more calories than you consume.

Diet alone isn’t enough to stimulate muscle growth. Exercise — primarily resistance training, such as lifting weights — is necessary to start the process. When you tear the fibers in your muscles, that stimulates cellular growth and repair. That’s when your body can use the food you’ve eaten to rebuild and strengthen muscle tissue. Other factors also influence how effective and efficient this process is, from when you eat your food and how much rest you give your muscles between workouts to your hormonal and genetic makeup.

A carton full of brown eggs Tanja Ivanova/Getty Images8 foods to build muscle and optimize your gains

Although there are many factors at play in building muscle, there’s no doubt diet plays a key role. Here are eight muscle-building foods you can eat to optimize your workouts and increase your muscle mass.

1. Eggs

Eggs have long been considered a power food, and for good reason. They’re incredibly rich in nutrients from fat and protein and include a potent mix of vitamins such as B12, B6 and thiamin. Their nutrient-dense profile makes them especially powerful, but most important is that they contain a hefty dose of leucine. This amino acid is known for its muscle-building prowess.

2. Fish

If you already have enough fat in your diet but need to boost your protein intake, look no further than fish. It’s one of the best lean sources of protein you can eat and it’s full of other vitamins and minerals. A bonus? Fish is packed with omega-3 fatty acids. Although they’re known for their many other health benefits, omega-3s may also improve muscle performance and help prevent the loss of muscle mass. Salmon and tuna are particularly great muscle-building food choices.

3. Nuts

When eaten in moderation, nuts are an excellent choice for building muscle. These tasty snacks offer a perfect mix of protein, fats and fiber, making them one of the most balanced ways to supplement your workouts. You have to be careful, as many nuts (including peanuts, which are actually legumes), are high in calories. For the most nutrient-rich options, try almonds or walnuts.

4. Soybeans

If you’re trying to build muscle on a meatless diet, soybeans should be one of your closest friends. These are some of the most nutrient-dense legumes you can eat, and they pack a potent punch of protein to aid in building muscle. Soy contains all nine essential amino acids, making it one of the best plant-based protein sources available.

A pile of edamame beans Lauren Burke/Getty Images5. Greek yogurt

Dairy is a unique source of protein because it provides a combination of fast-digesting whey protein and slow-digesting casein protein. When consumed together, these two types of protein may enhance and prolong the protein-synthesis process that your muscles go through when rebuilding, helping you build your lean mass. Greek yogurt is a particularly great dairy choice because it contains twice the protein compared to regular yogurt and delivers additional probiotic health benefits you can’t find in milk or cheese.

6. Cottage cheese

It doesn’t offer the same probiotic benefits as yogurt, but cottage cheese is a great second choice for dairy-based protein. Cottage cheese packs more protein than Greek yogurt while providing the same slow- and fast-digesting combination. It’s a particularly great source of casein, and it provides a significant calorie boost if you need to make sure you’re getting enough.

7. Olive oil

It may not sound like your typical body-building food, but extra virgin olive oil has become increasingly popular for its muscle benefits in recent years. Widely known as a source of healthy monounsaturated fats, olive oil also helps to reduce inflammation and slow muscle breakdown. Both of these features can aid in any muscle-building regimen.

8. Quinoa

They don’t call quinoa a superfood for nothing. This dynamic grain (it’s a seed but classified as a whole grain) packs a little bit of everything, including a lot of protein, fiber and carbohydrates, plus a hefty dose of vitamins and minerals. It’s a perfect food for building muscle and maximizing the benefits of your workouts.

Cooked quinoa in a wooden bowl Elizaveta Antropova/Getty ImagesEssential foods for building stronger muscles

Adding these muscle-building foods to your diet will definitely help you boost muscle mass and increase your strength. Remember that boosting muscle mass takes time and that diet is only one piece of the puzzle. Combining a balanced diet of high-protein foods with healthy exercise and rest will speed up your journey and improve your overall health along the way.

Lean proteins like chicken, fish and eggs are some of the quickest muscle-building foods. Supplementing them with greek yogurt and cottage cheese can give your muscle-building process a boost.

While rice isn’t a significant source of protein, it can be a good part of your muscle-building process. Rice provides essential carbohydrates for energy during workouts and plays a role in replenishing muscle glycogen stores.