Keto Berry Pie
Published June 24, 2022 • Updated February 26, 2026
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.

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.

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
- 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).
- Mix the berries. Toss blueberries and blackberries with the sweetener-thickener mix. Do the same with raspberries and strawberries in a separate bowl.
- 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.
- 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.
- Bake at 350 for 30 minutes. Cool at room temperature for 2-3 hours before slicing so the filling sets properly.

Explore 688+ keto recipe videos with step-by-step instructions, tips, and tricks to make keto easy.
Keto Pie Crust Ingredients
2 cups almond flour
6 tablespoons coconut flour
2 teaspoons xanthan gum
1 teaspoon salt
1 cup unsalted butter, chilled and cubed
2 ounces cream cheese, softened
2 eggs
1 tablespoon rice vinegar or apple cider vinegar
American Flag Pie Ingredients
1/3 cup sugar free sweetener
3 teaspoons ground chia seeds
1 teaspoon arrowroot powder
1 cup blueberries
1 cup blackberries
2 cups raspberries
2 cups diced strawberries
2 teaspoons lemon juice
star cookie cutters
Step by Step Instructions
Step by Step Instructions
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)
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.
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.
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.
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.
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.
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.
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.
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.
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 →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.



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.
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.
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.
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.
Good catch. Full 15 minutes and it goes from runny to almost jammy. Worth adding that to the recipe. Glad the crust held up.
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.
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.
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.
The bakery comment never gets old. Rice vinegar is doing more than people think in that dough.
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.
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.
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.
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.
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.
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.
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.
Flag lattice without cracks is a win. Most almond flour doughs fall apart before you even get to the weaving part.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.