Keto Berry Pie

Annie Lampella @ Ketofocus

By Annie Lampella, Pharm.D.

Published June 24, 2022 • Updated February 26, 2026

Reader Rating
4.8 Stars (16 Reviews)

This post may contain affiliate links. See my disclosure policy.

A low carb berry pie with a flaky almond flour crust, four types of berries, and an American flag design I've been making for summer cookouts since 2018.

I started making this for the 4th of July back in 2018, and it’s become the recipe my family expects every summer. The whole thing is built on my flaky almond flour pie crust that actually rolls out, holds its shape, and gets genuinely flaky in the oven. If you’ve tried rolling out keto dough before and watched it crack apart, this one handles differently.

a patriotic pie decorated with berries and stars and stripes crust

What makes this stand out is the technique. I use a folded piece of aluminum foil as a divider to keep the blueberries and blackberries separate from the raspberries and strawberries while baking. It sounds almost too simple, but it keeps the colors clean and gives you that flag pattern without the berries bleeding together. Then I punch out stars and cut wavy stripes from the top crust, which is honestly the fun part, especially if you have kids who want to help.

The filling is tangy, jammy, and holds together without getting soupy. I thicken it with ground chia seeds and arrowroot powder, which sets cleaner than cornstarch alone. Summer berries are ideal, but I’ve also made this in February with frozen ones (thaw them, drain the liquid, squeeze in paper towels and the filling holds up fine). I use this same crust for my apple pie and pumpkin pie, so if you’ve made either of those, you already know the process.

an unbaked pie decorated like an American flag

I’ve brought this to neighborhood cookouts where nobody else was eating low carb, and people went back for seconds without asking about ingredients. That’s my test for any recipe. If the non-keto crowd eats it and comes back, it works. One reader told me she kept bracing for disaster with the crust and “it just didn’t come,” which is exactly the reaction I want. My strawberry pie gets a similar response, but this one has the visual impact that makes people pull out their phones before cutting into it.

For other summer options, my coconut cream pie is no-bake and comes together fast, and the lemon tarts are what I bring when I want something smaller and more portable. But for the 4th of July, this is the one I keep coming back to.

How to make this American flag pie

  1. Make the crust. I use a food processor to pulse almond flour, coconut flour, xanthan gum, salt, chilled butter, and cream cheese together. Add egg and vinegar, pulse until a ball forms. Split into two (one slightly larger for the bottom).
  2. Mix the berries. Toss blueberries and blackberries with the sweetener-thickener mix. Do the same with raspberries and strawberries in a separate bowl.
  3. Separate by color. Fold aluminum foil into a divider inside the pie. Pour the blue mixture on the left, red on the right. Carefully remove the foil.
  4. Add stars and stripes. Roll out the second crust, punch out stars with cookie cutters, cut wavy stripes. Lay them on top and crimp edges with a fork.
  5. Bake at 350 for 30 minutes. Cool at room temperature for 2-3 hours before slicing so the filling sets properly.

a slice of blueberry pie with stars on the top pie crust and topped with a dollop of whipped cream and a strawberry

Youtube
640K+ subscribers
Discover More Keto Recipes on Our Channel

Explore 688+ keto recipe videos with step-by-step instructions, tips, and tricks to make keto easy.

Recipe
Print Pin

Keto Berry Pie

4.8 (16) Prep 50m Cook 30m Total 80m 12 servings

Keto Pie Crust Ingredients

American Flag Pie Ingredients

Step by Step Instructions

Step by Step Instructions

1
Make the pie dough

To a food processer, add almond flour, coconut flour, xanthan gum and salt. Pulse to combine. Add chilled cubed butter and cream cheese. Pulse until coarse crumbles form. Add egg and vinegar. Pulse until combined and a dough ball forms. Separate into two balls (make one ball slightly larger for the bottom crust)

pie dough in a food processor
Tip If you don't have a food processor, you can use a blender or a pastry blender. Cutting the butter into the dough with two forks works in a pinch.
2
Roll out pie crust

Place the larger dough ball in between two sheets of parchment paper. Roll out, using a rolling pin, in all directions forming a circle a few inches larger in diameter compared to the pie plate. Dough should be around 1/8-1/4 inch thick. Refrigerate for 30 minutes. Repeat with top crust.

peeling the top layer of parchment paper off to reveal pie crust
3
Thicken it up

Make the thicker for the filling by adding sugar free sweetener, ground chia seeds and arrowroot powder to a small bowl. Mix to combine.

holding a mixture of sugar and thickener ingredients in a bowl
Tip See below for recommendations on alternative thickeners.
4
Make 'blue' berry mixture

In a medium bowl, combine blueberries, blackberries and 2 1/2 tablespoons of the sweetener thickener mixture. Stir in 1 teaspoon lemon juice. Refrigerate while you work on the ‘red’ berry mixture.

stirring blueberries and sweetener with a spoon
5
Make "red" berry mixture

In a large bowl, combine raspberries, strawberries, remaining sweetener thickener mixture, and lemon juice. Stir to combine and refrigerate while inserting the bottom layer pie crust.

holding a bowl of mixed raspberries and diced strawberries
6
Lay down the bottom crust

Remove the top layer of parchment paper to the bottom pie crust. Place a pie plate upside down on top of the pie crust. Slide your hand underneath the pie crust and flip. Remove the parchment paper and press the dough into the pie pan.

pressing pie crust into a pie plate with hands
7
Indivisible

Fold a piece of aluminum foil until it fits the diameter of 1/3 of the pie and is about 2 inches wide. Place at the 1/3 mark. Pour the ‘blue’ berry mixture into the left side (smaller) of the foil. Pour the ‘red’ berry mixture into the right side. Be careful not to pour in any juices as that will make your pie filling too soupy. Remove the foil.

two sides of a pie separated by foil, blueberries are on one side and red berries in the other
8
Stars and stripes

Take the top pie crust out of the refrigerator and remove the top layer of parchment paper. Using a cookie cutter and knife, punch out star shapes and cut out wavy flag stripes. Place on top of pie crust. Crimp around the edges with a fork.

Decorating a pie with star shaped cut outs
9
Bake

Bake the pie at 350 degrees for around 30 minutes. Remove from the oven to cool at room temperature for 2-3 hours before transferring to the refrigerator to cool further if not serving right away.

a baked berry pie on a towel
Tip Brush top crust with an egg wash (1 egg + 1 tablespoon water) if desired for a glossy appearance to the top crust.
Nutrition Per Serving
317 Calories
27.6g Fat
4.6g Protein
6.7g Net Carbs
13.1g Total Carbs
12 Servings
Nutrition disclaimer

The nutrition information provided is an estimate and is for informational purposes only. I am a Doctor of Pharmacy (Pharm.D.); however, this content is not intended to be a substitute for professional medical advice, diagnosis, or treatment. Always consult your physician or other qualified health provider before making any lifestyle changes or beginning a new nutrition program.

Your Macros. Your Recipes. Calculated in 60 Seconds.

Get personalized keto macros and instantly see which recipes fit your targets. No more guessing what to eat.

Get My Macros + Recipes →

Get weekly keto recipes from Annie.

Join the list and get new recipes delivered to your inbox every week.

Keto Berry Pie

Frequently Asked Questions

Can I use frozen berries instead of fresh?

I've made this with frozen berries in the middle of winter and it turned out great. The key is thawing them completely, draining off all the liquid, and then giving them a good squeeze in paper towels. Too much moisture and you lose that jammy filling texture. Fresh berries are ideal in summer, but frozen is a solid backup when fresh are expensive or out of season.

How do I prevent the pie crust from getting soggy?

I've dealt with this and figured out two things that matter. First, I don't pour in the extra berry juices when filling the pie. Just the berries and enough liquid to coat them. Second, I make sure the bottom crust is pressed firmly into the pan with no air pockets underneath. Some people blind-bake the bottom crust for 10 minutes first, and I've tried that too. It helps if you're making the pie a day ahead, but for same-day serving I skip it.

Can I make this pie ahead of time and freeze it?

I freeze the crust all the time, wrapped tightly for up to 2 months. I do the same for my chocolate cream pie crust. For the assembled pie, I've frozen it and the crust held up, but the berries release more liquid when thawed. My recommendation: freeze the crust, keep the filling fresh. If you need to freeze the whole thing, add an extra half teaspoon of chia seeds to the thickener mix to absorb the extra moisture.

Can I use a different berry combination?

I've tried several combos. All-raspberry for the red side gives you the lowest carb count and the most intense flavor. Blackberries instead of blueberries work perfectly for the blue side and are slightly lower in sugar. The only mix I'd avoid is all-strawberry for the red, because strawberries release more juice and can make the filling too wet. My favorite combo is blackberries plus raspberries for the lowest carbs, but blueberries give you the best color contrast for the flag design.

What can I substitute for xanthan gum?

I use xanthan gum because it helps the almond flour dough stretch and roll without cracking. If you can't find it, psyllium husk powder works as a replacement. Start with half the amount and add more if the dough feels crumbly. I've also tested ground flaxseed in the crust and it holds together, but the texture is a bit denser. For the filling thickener, the chia seeds do most of the heavy lifting, so xanthan gum in the filling isn't critical.

Is this pie gluten-free?

Yes. I use almond flour and coconut flour instead of wheat flour, so it's naturally gluten-free. The xanthan gum acts as the binder that gluten would normally provide. I've served this to friends with celiac and they had no issues.

Can I make this dairy-free?

I've tested it with coconut oil instead of butter and it works, but you lose some of that flaky quality because coconut oil doesn't create the same air pockets when it melts. For the cream cheese, I've used dairy-free cream cheese and the dough came together fine. If you go fully dairy-free, add an extra tablespoon of coconut flour to compensate for the slightly different moisture content.

Similar Recipes

Others looking for “Keto Berry Pie” also liked:

A circular pie decorated like a flag with stars and a banner

Which berries work best in a low carb pie

I use four types of berries here: blueberries, blackberries, raspberries, and strawberries. All are naturally low in sugar, which is why they work so well on keto. Berries hit peak freshness in summer, but I’ve made this year-round with what’s available at the store.

If you want to keep the carbs even lower, swap all blueberries for blackberries (they’re lower in sugar) and use all raspberries instead of strawberries. You can also go all-raspberries for the red side. Just make sure you have enough volume to fill each section of the pie.

A colorful red and blue berry pie with berries and measuring spoons nearby

Berry filling thickeners I've tested

I thicken the filling with a combo of ground chia seeds and arrowroot powder, which is what I’ve found works best for holding the berries together without making the texture gummy. But I’ve tested other options too:

  • Xanthan gum works in a pinch. Use about half a teaspoon.
  • Gelatin sets the filling firmly, almost like a gel. Good if you want clean slices.
  • Cornstarch is an option if you’re not strict on carbs. It adds a few grams but thickens reliably.

How I get a flaky pie crust every time

The crust is the make-or-break part of this recipe, and I’ve wrecked enough batches to know what matters. Here’s what I do every time:

  • Keep your butter frozen until you need it. I cube mine and stick it in the freezer while I measure everything else. The cold butter is what creates flaky layers. As it melts in the oven, it leaves pockets of air between the dough, and that’s where the flakiness comes from.
  • Don’t overwork the dough. Pulse it in the food processor just until it comes together. Every extra second of handling warms up the butter and costs you layers.
  • Use real butter, not margarine. They’re not interchangeable in keto baking. Margarine has a different water content and won’t give you the same result. Check the label.
a slice taken out of a blueberry pie

How to store and prep this pie ahead

To store: Wrap the pie tightly in plastic wrap and refrigerate. It stays fresh for 5-7 days in my experience, though it rarely lasts that long.

Prep ahead: I make the crust up to 5 days before and keep it wrapped in the fridge. You can also freeze the shaped dough for 1-2 months. When I’m prepping for a big cookout, I’ll make the crust on Monday and assemble on Thursday so it’s fresh for the weekend.

To reheat: I warm individual slices in a 300-degree oven for 8-10 minutes. The microwave works but softens the crust, so I avoid it. A dollop of whipped cream on a warm slice is how I serve it.

About the Author
Annie Lampella, Pharm.D.

Annie Lampella, Pharm.D.

Annie is a Doctor of Pharmacy, mom, and the recipe creator behind KetoFocus. With a B.S. in Genetics from UC Davis, she has over 14 years of experience developing family-friendly keto recipes based on the science of human metabolism.

More Dessert Recipes

slice of keto carrot cake
45 Mins
Keto Carrot Cake with Almond Flour
4.8 Stars (101 Reviews)

Almond flour, real shredded carrots, and cream cheese frosting with sour cream. 5.6g net carbs per slice. I make this every Easter and Thanksgiving.

See the Recipe
keto chocolate chip cookie stack
145 Mins
Keto Almond Flour Chocolate Chip Cookies
4.8 Stars (46 Reviews)

I accidentally invented these while making butter bars, and they turned out to be the chewiest almond flour chocolate chip cookies I've ever baked....

See the Recipe
holding a spoonful of fluffy jello dessert over a bowl of pink creamy pudding
5 Mins
Jello Whip
4.9 Stars (10 Reviews)

Jello whip is a fluffy, 3-ingredient keto dessert I make when I want something sweet in under 5 minutes. Whipped cream cheese, heavy cream, and sugar...

See the Recipe
five golden brown chocolate chip cookies on the table with dark chips spread around
16 Mins
Best Keto Chocolate Chip Cookies
4.7 Stars (40 Reviews)

Almond flour and coconut flour together create a keto chocolate chip cookie that's close to Toll House. 1.2g net carbs per cookie. Crispy edges, soft...

See the Recipe
pretty fluted edges on a pie crust
65 Mins
Keto Pie Crust
4.8 Stars (31 Reviews)

I've been refining this recipe since I started keto in 2012. Almond flour, coconut flour, cold butter, and one secret ingredient create a flaky,...

See the Recipe
A keto pretzel chocolate chip cookie broken open to show a soft center filled with melted chocolate chips and crunchy pretzel pieces.
20 Mins
Keto Pretzel Chocolate Chip Cookies
4.6 Stars (14 Reviews)

These thick, chewy keto pretzel chocolate chip cookies land at about 2g net carbs each. I skip chill time so the pretzel pieces stay crunchy, and six...

See the Recipe
Reviews 31
4.8 Stars (16 Reviews)
  1. T
    Tom May 3, 2026

    Spent a year and a half on keto just accepting berry pie was gone. Made this Sunday and ate a slice standing at the counter. Kind of embarrassed by how emotional I got. The crust actually flakes.

  2. D
    Dani Apr 24, 2026

    Made this over the weekend and my daughter spent a solid minute just looking at it, asking where I'd bought it from. She's not keto, has very strong opinions about 'health food.' Watching her go quiet while she ate a slice was its own kind of satisfaction. The almond flour crust is genuinely flaky in a way I wasn't fully prepared for (xanthan gum and vinegar really do work together), and the chia-thickened filling set up cleaner than I expected. I didn't tell her it was sugar free until she'd gone back for seconds. Her face in that moment was worth every minute of rolling out that flag design. I've been making traditional berry pies for years and this is more work, but not by much. Being able to eat it without thinking twice makes it worth it.

    1. Annie Lampella
      Annie Lampella Apr 27, 2026

      Seconds first, then the reveal. She'll never doubt it again. The chia setting up that clean still gets me every time I make it.

  3. N
    Nina Apr 21, 2026

    The filling is the star, but I really wish it mentioned letting the chia mixture sit a full 15 minutes first. Mine went in pretty loose and I was nervous. Once it set though, the crust held up way better than expected.

    1. Annie Lampella
      Annie Lampella Apr 22, 2026

      Good catch. Full 15 minutes and it goes from runny to almost jammy. Worth adding that to the recipe. Glad the crust held up.

  4. B
    Beth Apr 20, 2026

    I've made this four times now, mostly for spring get-togethers, and I think I finally have the crust figured out. The first two attempts, I didn't chill the dough long enough and it kept cracking when I tried to roll it out between the parchment sheets. Once I gave it the full 30 minutes in the refrigerator, it rolled out in one piece. The flag design is still the part I find fiddly, my stripes never look quite as precise as the photos, but once the berries bake down and the colors deepen it still looks like I put real effort into it. At 6.7 net carbs a slice I'll keep making it. My one note at four stars: I've started pulling back on the sweetener in the red berry mixture because the strawberries carry enough on their own, and it tastes more balanced that way.

    1. Annie Lampella
      Annie Lampella Apr 21, 2026

      Yeah, the chill time is everything on that dough. I've rushed it. Doesn't work. And strawberries carry enough on their own, you don't need to add much.

  5. H
    Holly Apr 17, 2026

    Brought this to a cookout last weekend, set it on the table, and watched three people stop talking mid-sentence to stare at it. One woman grabbed my arm to ask what bakery it came from. The almond flour crust holding that flag design together without crumbling is some kind of freaking witchcraft.

    1. Annie Lampella
      Annie Lampella Apr 19, 2026

      The bakery comment never gets old. Rice vinegar is doing more than people think in that dough.

  6. J
    Josh E. Apr 15, 2026

    My son kept picking at the flag decoration before dinner, the way kids do when you've told them ten times not to touch it, and I was ready to be annoyed. Then he ate a full slice and said the crust tasted 'like butter cookies but for pie.' Kid doesn't give compliments, so I'm taking it. Four stars only because the dough took me two tries to figure out and I'm still wrestling with the xanthan gum texture, but the berry filling is the easy part.

  7. L
    Luz N. Apr 14, 2026

    My husband kept pulling the lattice strips off to eat the crust by itself, which was so annoying until I tried one and realized he was completely right. That almond flour base has this buttery snap I did not expect from a keto crust. Making a double batch next time so we actually have a full pie left to cut into.

    1. Annie Lampella
      Annie Lampella Apr 17, 2026

      Ha. Your husband figured out something a lot of people miss. Cold cubed butter straight from the fridge is what creates that snap. Double batch is the right call.

  8. K
    Kelly Apr 13, 2026

    Tip for anyone new to almond flour dough: after mixing, put it in the freezer for 10 minutes before rolling and it handles so much better. My first attempt without doing that had cracks everywhere and I almost gave up on the flag design. I also swapped out the blueberries and blackberries for all strawberries and raspberries since that's what I had, and the chia seed filling still set up clean. Genuinely surprised it came together as well as it did.

    1. Annie Lampella
      Annie Lampella Apr 16, 2026

      The freezer step is one I keep meaning to add to the actual recipe. And strawberry-raspberry for the red stripes? Way deeper color than the mixed berry version.

  9. L
    Lindsey Apr 12, 2026

    Used frozen berries because fresh ones in April are a gamble, thawed and squeezed them out really well, and the chia thickener actually worked better (all that extra juice gave it something to grab onto). Crust came together cleaner than some of my fresh-berry attempts.

  10. M
    Mei Mar 31, 2026

    Figured the almond flour crust would crumble before I even got it into the pan, but it rolled out smooth and held the flag lattice without a single crack.

    1. Annie Lampella
      Annie Lampella Apr 3, 2026

      Flag lattice without cracks is a win. Most almond flour doughs fall apart before you even get to the weaving part.

  11. R
    Rebecca Mar 30, 2026

    The filling is SO good. Four different berries with the chia thickener gives it this jammy texture that actually holds when you slice it, and I've been trying to nail fruit pie fillings for years without success. The almond flour crust rolled out cleaner than I expected and didn't go soggy at the bottom, which was my biggest fear going in. My one note is to watch the crust edges carefully. Mine were close to burnt by the time the center was fully set, and I'd tent the edges with foil around the 25-minute mark next time. Still one of the best pies I've made on keto, and I'm planning the flag design for the fourth.

    1. Annie Lampella
      Annie Lampella Apr 2, 2026

      Edges go way before the center on this one. I tent around 22-23 minutes but 25 works if your oven runs a little cool.

  12. M
    Matt Mar 25, 2026

    I've tried probably four different keto pie crust recipes over the past year and every single one turned into a crumbly mess the second I tried to slice it. This one actually cut clean. I think it's the xanthan gum doing something the others weren't (I genuinely didn't understand why it was in there until I saw the difference). Already bookmarked to make again for the 4th with the full flag design.

    1. Annie Lampella
      Annie Lampella Mar 29, 2026

      Yep, xanthan gum is what gives the dough stretch so it holds at the cut. Most recipes skip it and you can see why that ends badly. 4th flag design is my favorite version to make.

  13. M
    Mia Mar 21, 2026

    My grandmother made a berry pie every Fourth of July and I spent three years on keto thinking that tradition was just gone for me now. Something about this crust (the way it shatters when the fork goes through, almost like real pastry) completely undid me. I sat at the counter eating slice after slice. This is the pie I tell people about when they ask why I've stuck with keto as long as I have.

    1. Annie Lampella
      Annie Lampella Mar 23, 2026

      Cold butter and the rice vinegar are what give it that shatter. Been making the flag version for July 4th since 2018 and that feeling is exactly why.

  14. J
    Jeff Feb 26, 2026

    Made this on a random January Saturday missing summer. The blueberry-blackberry combo reminded me of my mom's berry pie every 4th of July. Hadn't thought about that in years.

    1. Annie Lampella
      Annie Lampella Mar 3, 2026

      That July 4th feeling is exactly why I made the flag version. Been making this one for summer cookouts since 2018, and the blueberry-blackberry side was always the part that stuck.

  15. K
    Kevin Feb 22, 2026

    Brought this to a watch party last Sunday and cut into it while people were standing around. Two guys immediately said it looked like it came from a bakery. One of them, who won't touch anything labeled keto, cleared his slice and asked me for the carb count. The almond flour crust is what sold him, I think. Only note: the berry filling ran a bit loose even after four hours in the fridge, so I'd go heavier on the chia seeds next time.

    1. Annie Lampella
      Annie Lampella Feb 22, 2026

      The carb count question is my favorite reaction. And yeah, more chia is the right call if it's sitting more than a few hours - I go heavier when I know it won't be cut until the next day.

Leave a Review