Flexible, no lock in plans. Pause or cancel at any time.

It’s only natural that your Chefgood meals are small batch handcrafted using quality ingredients by renowned chefs

Our chefs hand select produce based on what's in season, what's available locally and what's going to pack a nutritional punch while still tasting delicious

At Chefgood we don’t do boring, mass-produced and bland food. That's why we have a fresh new menu every week

Why Choose Chefgood Weight Loss Meals?

Fresh, natural ingredients

All Chefgood’s healthy meal plans are made by our professional chefs using local produce and natural, wholesome foods free from preservatives, unhealthy carbs and no added sugars. Meals are filled with healthy veggies, proteins and wholegrains such as brown rice and quinoa.

Sustained weight loss

Chefgood is a lifestyle, a way of eating great tasting healthy meals – 5, 7, 10, 14 or 20 meals a week. It is not a fad diet and it doesn’t require fasting or starving yourself. So you can lose the weight and keep it off long term while becoming fitter and healthier.

Convenient home delivery

Chefgood provides sustainable fit food in the most convenient fashion – delivered fresh to your home every week. Meals are delivered in thermally controlled packaging, so your food will stay nice and fresh!

Delicious, healthy food

Your weight loss journey doesn’t have to be bland and boring. Our chef-made meals are inspiring and full of flavour! Weight loss is made easy when your meals taste this good.

Here's How It Works:

1. Choose your meal plan
Choose to enjoy Chefgood’s weight loss meal plans which cater to a range of dietary requirements. Select 5, 7, 10, 14 or 20 meals a week – the choice is yours.

2. Checkout
Submit your online order by 11:30pm on Wednesday night so that our meal delivery service can bring your weeks’ worth of freshly prepared healthy meals to your home or workplace from the following Saturday.

3. Enjoy your healthy meals home delivered!
It’s that easy! Your weight loss meals will be delivered to your door on a regular delivery day set by your postcode. Say goodbye to meal prepping, shopping and cooking, and hello to fresh, healthy meals delivered.

Choose the right meal plan for you

Lifestyle goals
Whether you are trying to lose weight or simply maintaining a healthy weight, Chefgood has meal plans for all lifestyles. The Slim & Trim range contains 350 calorie-controlled meals, designed specifically for weight loss. Or you can choose the Everyday Wellness range for everyday convenience and slightly larger portion sizes.

Meat vs. no meat
Mainstream Chefgood meals come with lean meats such as chicken breast or lamb. Alternatively, non meat eaters can choose from vegan or vegetarian meal plans, chock full of veggies and high protein meat alternatives such as black beans, quinoa, chickpeas, hummus, lentils and more!

Dietary requirements
Catering to different dietary requirements for every meal can be difficult. That’s why we do the hard work for you! For those with a dairy sensitivity, Chefgood offer meals with no added dairy. Gluten intolerance is another common dietary requirement, which is why we offer meals with no added gluten (not suitable for coeliacs), so you can avoid whole grains and whole wheats.


Frequently Asked Questions

To design a healthy meal plan for weight loss there are many things you need to know. Considering portion size and calorie intake is just the beginning. Unless you’re a nutritionist or a dietitian, you could make weight loss easy and ditch the meal planning, shopping and food prep, leaving it to the experts at Chefgood.

These weight loss meals are created by chefs with the input of nutritionists, ensuring the optimum nutrition is provided via essential vitamins, minerals, healthy carbohydrates and proteins. Portion control is measured, calories are counted, you just have to order, receive, and enjoy.

Our Slim & Trim 350 calorie meals still contain all the nutrition you need to keep you going throughout the day. Not only that, but the weight loss meals are inspiring and tasty! Say goodbye to bland diets and boring salads. With our chef-made meals you won’t even feel like you’re on a diet plan! Kickstart your sustained weight loss and healthy eating habits today with Chefgood.

Time poor Australians don’t have the time or energy for devising their own weight loss meal plans for every weeknight. They achieve their weight loss goals by subscribing to Chefgood and ordering their favourite fresh meals from the Slim & Trim 350 calorie dietlicious meal plans. So put all that extra time back into your day when you no longer need to meal plan, shop and meal prep.

Chefgood Slim & Trim meals are low carb and low calorie, but still chock full of yummy veggies like sweet potato, bell pepper and zucchini. You can expect a range of healthy dinners such as stir-fry, tacos and fried rice.

PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPmlmKCFnZm9ybSl7ZG9jdW1lbnQuYWRkRXZlbnRMaXN0ZW5lcigiZ2Zvcm1fbWFpbl9zY3JpcHRzX2xvYWRlZCIsZnVuY3Rpb24oKXtnZm9ybS5zY3JpcHRzTG9hZGVkPSEwfSksd2luZG93LmFkZEV2ZW50TGlzdGVuZXIoIkRPTUNvbnRlbnRMb2FkZWQiLGZ1bmN0aW9uKCl7Z2Zvcm0uZG9tTG9hZGVkPSEwfSk7dmFyIGdmb3JtPXtkb21Mb2FkZWQ6IT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