Every ecommerce team runs into this moment sooner or later.
You start feeling boxed in - maybe you’ve hit Shopify’s limits and can’t tweak the checkout the way you want, or your B2B pricing gets too weird for any rule engine out there. Or maybe, after piling on plugins and workarounds, you realize you’re basically duct-taping your way through and spending more than if you just built something yourself. So the big question comes up:
Do we build our own ecommerce platform, or just buy one and try to bend it to our needs?
Here’s the thing.
We’ve noticed most people ask the wrong question. It’s not a simple ”build from scratch or settle for off-the-shelf” choice. There’s actually a whole spectrum - at least five different strategies between those extremes. And the best fit usually depends on stuff most decision guides never even bring up.
This guide lays out the framework we actually use with clients. No theory - just the real decision matrix, cost breakdowns, and risk checks we work through before anyone writes a single line of code.
Why Most Build vs Buy Frameworks Fail
People love to say, ”Just buy if your needs are standard, build if they’re unique.” Sure, that sounds good - like ”eat healthy and exercise” - but it’s not really helpful when you’re knee-deep in actual decisions.
Here’s where things usually go sideways:
Most companies have no clue how unique their needs really are. Many of the times we’ve seen someone swear they needed a custom platform just because their checkout needed a subscription upsell. Honestly? That’s one Shopify app, not a six-figure project. But flip the script, and you’ll find teams who jumped into Shopify Plus, only to realize, months later, that their B2B pricing was such a mess of workarounds, plugins, and duct-taped scripts, they could’ve just built something headless for less money and a lot less frustration.
This isn’t just a tech decision - it’s an organizational one. When you build custom, you’re signing up to own a living, breathing product. Who’s going to keep it healthy?
If you don’t have in-house engineers (and aren’t planning to hire any), building your own platform is like buying a race car without knowing how to check the oil. Launch day isn’t the finish line. It’s just when the real work starts.
Then there’s the classic mistake: nobody actually adds up the true cost. The “build” camp always forgets how much ongoing maintenance costs add up. The “buy” crowd ignores how fast those plugins, workarounds, and platform fees pile up once you start growing. Everyone picks the numbers that make their side look good.
So let’s get real and tackle these problems head-on.
The Five Real Options (Not Just Two)
The build-versus-buy debate isn’t just a simple yes-or-no decision. Companies actually have five real options, and they fall along a spectrum from “just buy” to “build it yourself.” Here’s how those choices break down, starting with the most “buy” and moving toward the most custom “build.”
1. Platform-Native (Full Buy)
Here, you pick a SaaS ecommerce platform - think Shopify, BigCommerce, Squarespace, or Wix - and use it exactly as it comes out of the box. Choose a theme, tweak a few settings, add some official apps, and you’re selling. That’s it.
Cost: You’re looking at $3,000 to $30,000 up front, plus anywhere from $29 to $2,300 a month in platform fees. Timeline: You can launch in as little as 2 to 6 weeks. Team: One person who understands how to set up a SaaS product can handle this.
Who’s this for?
- New brands still figuring out if people even want their product
- Businesses making less than $1 million in online sales a year
- Companies selling simple products with standard variations
- Founders who need to get to market fast - like, this month
Here’s the catch: If you’re growing, you’ll run into walls in about a year or so. You can’t really customize the checkout. You won’t have full control over your site’s speed. And unless you pour serious money into custom themes, your store’s going to look like everyone else’s. But honestly, until you know your stuff will sell, none of that is a big deal.
2. Platform-Extended (Buy + Customize)
This is where you start with a platform like Shopify Plus or BigCommerce Enterprise, then layer on custom themes, private apps, custom scripts, and third-party integrations. It’s still built on someone else’s foundation, but you’re adding your own flair.
Cost: Set aside $25,000 to $100,000 for the initial build, plus $2,000 to $5,000 a month in platform fees, and $10,000 to $40,000 a year for apps and keeping everything running. Timeline: Expect 1 to 3 months to launch. Team: You’ll need an agency or freelance devs who know their way around your chosen platform.
Who’s this for?
- Brands pulling in $1 million to $10 million a year online
- Companies that want custom design but don’t need to reinvent the ecommerce wheel
- Teams without in-house developers, so they rely on agencies
- Businesses that care more about launching soon than having total control down the road
The real trade-off here: You’re renting, not owning. Shopify Plus starts at $2,300 a month, and once your sales go up, they take a cut of your revenue too. You’re also at the mercy of their rules. For example, Shopify forced all Plus merchants to rebuild their checkouts recently, whether they liked it or not. If you customize heavily, you’re tied to their API updates - if they remove something you rely on, you have to rebuild on their timeline.
We’ve crunched the numbers with clients. If you’re doing $10 million a year on Shopify Plus, just the platform fees (subscription, transaction fees, and apps) can hit $80,000 to $120,000 a year. At that point, going headless and building your own setup can actually make more financial sense within a few years.
3. Headless / Composable Commerce (The Hybrid)
What’s really going on here? You’re splitting your storefront in two: the frontend - what customers actually see - and the backend, which handles all the commerce heavy lifting. So, you grab something solid for the backend (Shopify’s Storefront API, Medusa.js, Saleor, or commercetools) and then build your own frontend from scratch in Next.js, Remix, or whatever you like best. You get to cherry-pick the best tools for every job: Algolia for lightning-fast search, Sanity for content, Stripe for payments. It’s like assembling your own dream team and making them work together.
Here’s what you’re looking at for costs: $60,000 to $180,000 up front to build, $500 to $3,000 a month for infrastructure, and $15,000 to $40,000 a year for ongoing maintenance. Expect it to take about 3 to 6 months. At minimum, you’ll need a frontend dev who’s solid with React/Next.js, plus someone on the backend who gets commerce APIs. Realistically, you want a small, nimble team - think 3 to 5 people.
Who’s this actually for?
- Brands pulling in $5M to $50M+ a year
- Companies selling everywhere: web, mobile apps, physical stores, social channels
- Anyone juggling B2B and B2C with different needs from the same product catalog
- Businesses where every millisecond counts for conversion (every 100ms faster means about 1% more conversions - seriously, Deloitte proved it)
- Teams who already have, or are ready to hire, at least one solid full-stack dev for the long haul
The real deal: We recommend this approach a lot for mid-market brands. It’s flexible, powerful, and can give you a real edge. But it’s not a set-it-and-forget-it kind of setup. You need ongoing engineering muscle. A headless frontend isn’t something your marketing team can just tweak on a whim the way they might with a Shopify theme. If your CMS person leaves and nobody knows Next.js, you’re stuck. Plus, you’re tying together a bunch of different services, so there are more things that can break. When Algolia goes down, your search disappears. If Sanity has a hiccup, your content pages might go blank. You need good monitoring and some fallback plans.
We built a headless storefront for a home goods brand. Their old Shopify theme took 4.2 seconds to load on mobile. After switching to a headless Next.js frontend on Vercel, they got that down to 1.1 seconds. Their mobile conversion rate jumped 23% in the first quarter. The project cost $95,000, and they earned that back in just four months, thanks to the conversion boost.
4. Open-Source Commerce Platform (Build on a Foundation)
Here, you’re taking the open-source route. You pick a platform - Medusa.js, Saleor, Vendure, or maybe the old-school Magento/Adobe Commerce - host it yourself, and make it your own. You own the code. You run the infrastructure. You get to tweak the core platform to do exactly what your business needs.
Budget-wise, you’re in the $80,000 to $200,000 range to build, $2,000 to $5,000 a month for infrastructure, and $30,000 to $60,000 a year for ongoing development and maintenance. Timeline? Plan for 4 to 8 months. You’ll need a real engineering team in-house, or a close partnership with a dev agency. At least 2–3 developers are needed to keep things running.
Who should go this way?
- Businesses with complex commerce needs that no SaaS platform can handle out of the box
- Companies with in-house engineers who want full control and code ownership
- Organizations with strict data or compliance requirements (think healthcare, government, or EU data rules)
- Anyone who wants to skip the never-ending platform fees as they grow
The honest truth: You’re taking on the heavy lifting - hosting, security, scaling, upgrades. If there’s a security hole in your platform, your team has to fix it. No SaaS provider will swoop in with an automatic update. Community support can be hit or miss. Medusa.js has an active crowd, but some older platforms are getting lonelier. And while “free” open-source software sounds tempting, the engineering time adds up fast.
We’ve seen this work really well for companies with a strong engineering culture. They end up with a platform that fits them perfectly. On the flip side, we’ve watched companies jump into open-source hoping to save money, only to get buried by maintenance costs they didn’t plan for. It always comes down to this: do you have - or are you willing to build - a capable engineering team? If so, this path can be worth it. If not, you’re setting yourself up for a headache.
5. Fully Custom (Ground-Up Build)
What does this mean? You’re starting with a blank slate. Everything - product catalog, cart, checkout, order management, payments, inventory tracking - you build it all yourself. No frameworks. No shortcuts. Every line of code, every feature, it’s yours.
The cost? You’re looking at $150,000 to $500,000 or more just to launch. On top of that, budget $3,000 to $8,000 a month for infrastructure, and $50,000 to $120,000 a year to keep it running. Timeline? Expect 6 to 18 months before you see anything live. You’ll need a real team too: frontend, backend, DevOps, QA - at least 4 to 6 solid engineers to even get started.
Who’s this for?
- Teams inventing something totally different - auction platforms, wild configure-to-order setups, complicated marketplaces with custom logic, things like that.
- Companies where the ecommerce platform is the product. You’re not just running a store; you’re building the next Faire or StockX.
- Organizations with deep pockets and a strong engineering crew who want ecommerce to be a core strength.
Here’s the reality check: For most people, this isn’t the right move. And, honestly, we build custom software for a living, so you’d think we’d push it. But commerce infrastructure is a solved problem. The basics - cart handling, payments, inventory, taxes - those are covered by Stripe, Medusa, Shopify, and plenty of others, often for next to nothing. Building your own means burning through $50,000 to $100,000 just to copy what you can get out of the box.
We only recommend this when your business model is so unique that the platform itself gives you the edge. If you’re just selling shoes, even expensive ones, you don’t need a custom engine. But if you’re building a marketplace where buyers send RFQs, sellers negotiate, and your secret sauce is the matching algorithm that considers fulfillment and geography - yeah, that’s when you go custom.
Not sure which ecommerce approach fits your stage?
We've helped brands at every revenue level - from $500K startups to $50M+ enterprises - pick the right architecture without overbuilding or overspending.
Book a free scoping call and we'll map your requirements to the right option on this spectrum.
The Decision Matrix: How to Choose
After rolling up our sleeves with companies at all kinds of revenue stages, this is the framework that actually works. Just score your business on each factor, and the right path pretty much reveals itself.
Factor 1: Commerce Model Complexity
Start here: can you sum up your selling model using basic ecommerce terms like products, variants, cart, checkout, and order?
| Your Situation | Points Toward |
|---|---|
| Standard physical products with size/color variants | Buy (Platform-Native or Extended) |
| Subscriptions plus one-time purchases together | Buy + Customize (most platforms handle this now) |
| B2B with tiered or contract pricing and B2C from the same catalog | Headless or Open-Source |
| Multi-vendor with commission splits and seller-managed inventory | Open-Source or Custom |
| Dynamic pricing, auctions, RFQ workflows, configure-to-order | Custom |
Factor 2: Revenue Scale and Growth Trajectory
The math changes a lot as you scale. Here’s what the numbers look like:
PLATFORM COST AS % OF REVENUE (SHOPIFY PLUS EXAMPLE)
| Revenue | Platform + Apps/yr | % of Revenue | Custom TCO/yr | % of Revenue |
|---|---|---|---|---|
| $1M | $35,000–$50,000 | 3.5–5.0% | $60,000–$80,000 | 6.0–8.0% |
| $5M | $60,000–$90,000 | 1.2–1.8% | $60,000–$80,000 | 1.2–1.6% |
| $10M | $80,000–$130,000 | 0.8–1.3% | $65,000–$90,000 | 0.6–0.9% |
| $25M | $120,000–$200,000 | 0.5–0.8% | $70,000–$100,000 | 0.3–0.4% |
| $50M+ | $200,000–$350,000+ | 0.4–0.7% | $80,000–$120,000 | 0.2–0.2% |
The tipping point usually hits around $8M to $12M in annual revenue. That’s where building and owning your tech stack starts to cost less than using a platform.
If you’re under $5M, platforms almost always win on cost. But once you’re over $25M, it’s hard to argue against owning your own system.
Of course, money isn’t everything. A company pulling in $3M with a super-complex B2B setup will need custom way sooner than a business doing $15M in simple D2C sales.
Factor 3: Engineering Capability
Most “build vs. buy” guides gloss over this, but honestly, it’s often the dealbreaker.
| Your Situation | Recommendation |
|---|---|
| No in-house developers, no plans to hire | Buy (Platform-Native or Extended) |
| 1–2 developers, generalists | Headless with agency support for the first build |
| 3–5 developers who know web | Headless or Open-Source - your team can handle it |
| Full engineering team (6+) with DevOps | Any option - pick what fits your business |
| Engineering is your edge | Open-Source or Custom |
Here’s why this is so critical: a custom or headless ecommerce system handles real money. It needs constant care - security updates, dependency upgrades, performance checks, and quick fixes when things go sideways. If your checkout crashes on a Tuesday afternoon, someone has to jump on it right then, not next week. If you don’t have that person, you need a partner on call.
We’ve picked up projects from companies that built custom platforms with an agency, then tried to keep them running with a single junior dev. Within 18 months, the code piled up so much technical debt that a full rebuild was cheaper than trying to fix it. Building wasn’t the issue - the real problem was not having a plan (or the team) for maintenance.
Factor 4: Speed to Market
| Priority | Best Approach |
|---|---|
| Need to launch in less than 4 weeks | Platform-Native |
| Need to launch in 1–3 months | Platform-Extended |
| Can invest 3–6 months for long-term advantage | Headless |
| Can invest 6–12 months (have existing revenue) | Open-Source or Custom |
Speed is underrated. If you aren’t making money yet, every extra month you spend building is just time lost - no sales, no feedback, nothing. We remember working with a food subscription brand that poured eight months into a custom platform before they launched. Meanwhile, a competitor jumped on Shopify and went live in six weeks. They grabbed all the attention, locked in the best partnerships, and completely outflanked our client. And here’s the kicker: our client’s custom platform was better, technically speaking. But that didn’t matter at all.
The way we see it, you should always launch on the fastest option that gets you in front of customers. Worry about upgrading later, when you’ve got real revenue and data to back up the investment. Shopify now, headless when you hit $5 million - it works. Starting from scratch, hoping to grow into $5 million? That’s a real gamble.
Factor 5: Multi-Channel Requirements
| Channels | Recommendation |
|---|---|
| Web only | Any option works |
| Web + native mobile app | Headless (shared backend, separate frontends) |
| Web + mobile + in-store POS + social | Headless or Composable (API-first is essential) |
| Web + mobile + IoT/voice/kiosk | Custom or Composable with custom orchestration |
Once you’re selling in more than two channels, headless architecture stops being a “nice-to-have” and becomes essential. Imagine trying to juggle different product catalogs, prices, and inventory across a Shopify site, a standalone app, and an in-store POS. It’s a mess - trust me, the integration headaches never end. With a unified API feeding every channel, you cut out a huge chunk of bugs, data mix-ups, and wasted time. Everything stays in sync, and you can actually focus on growing the business, not just keeping it running.
The Decision Framework in Practice
Let’s look at how this decision matrix actually plays out with three real-world examples.
Scenario A: D2C Skincare Brand, $2M Revenue, Growing 40% Year Over Year
Commerce complexity here is pretty standard - physical products, subscriptions, bundles. That says “Buy.” Revenue’s at $2 million, and they’re on track to hit $5 million in two years, so they should buy now and keep headless in the back of their minds. No in-house developers? Another point for “Buy.” They want to launch a new product line next quarter, so speed matters again, “Buy.” Right now it’s just web, but they’re thinking about adding a mobile app in a year. That leans headless eventually, but not yet.
Bottom line: Go with Shopify Plus, use a custom theme, and add Recharge for subscriptions. Set aside $30k–$50k for the build. In 18–24 months, once they’re over that $5 million mark and a mobile app becomes a real focus, plan to go headless with Shopify’s Storefront API and a Next.js frontend. Total spend over three years: about $130k. That’s a lot less than the ~$180k they’d burn going headless from day one and they’d lose 18 months of revenue waiting on a big build.
Scenario B: Industrial Parts Manufacturer, $15M B2B Revenue, Moving Online
This one’s a different animal. Commerce is complex - tiered pricing by account, volume discounts, quoting, ERP integration. That screams “Headless or Custom.” They’re already over the revenue threshold at $15 million, so they should own their stack. They’ve got two developers and are ready to hire two more, so they can handle a headless build, probably with some agency help. A six-month launch window is fine since offline sales are still going strong. Web plus a sales rep portal means they’ll need two frontends on one API - another point for headless.
What makes sense here? Go headless. Use Medusa.js as the commerce engine (great for B2B pricing), Next.js for the buyer-facing site, build a separate portal for the reps, and hook up NetSuite for ERP. Budget: $140k–$180k. Bring on those two extra developers during the build so they’re ready to take over once the site’s live.
Scenario C: Startup Building a Niche Marketplace for Handmade Furniture
Now, this is where founders trip up. Marketplace means multi-vendor, commission-based, custom shipping, and a quality check workflow. That says “Custom.” But - big but - they’re pre-revenue, and that clashes with custom development. They’ve got a technical co-founder and one developer, so they can barely manage custom work. They need traction in six months to keep funding, which also fights against building custom. Web only, so that’s neutral.
Here’s the deal: Most founders think, “We’re a marketplace, we have to build custom.” Not true. Sharetribe exists. Medusa.js has marketplace plugins. Trying to build a massive custom marketplace before you have any revenue is how most ecommerce startups burn all their seed money.
The smart move? Launch with Sharetribe or a Medusa MVP for $20k–$40k. Focus only on the custom features that actually set you apart - here, that’s the quality verification workflow. See if artisans want to sell and buyers want to buy. Once you have traction (and, hopefully, revenue), then build the custom platform that fits your proven model. This gets you to market in 2–3 months, not 8–12, and you save 80% of the upfront cost.
Need help scoring your business on this framework?
We walk clients through this exact decision matrix - factoring in commerce complexity, revenue, team size, and channel strategy - so you don't have to guess.
Get a personalized recommendation with realistic cost and timeline estimates.
The Hidden Costs Nobody Talks About
There’s more to the build-or-buy debate than just sticker price. Some costs sneak up on you later and can really mess with your long-term ROI.
Platform Lock-In Cost
Let’s say you build on Shopify. At some point, you want out. Now you’re moving everything: products, customers, orders, subscriptions, URLs (which matter a ton for SEO), integrations, custom code - the works. We’ve priced out Shopify-to-headless migrations, and they usually land between $40,000 and $80,000, taking anywhere from 2 to 4 months. That’s not a reason to avoid platforms altogether, but it’s a real number you need to add to the “buy” side. Think of it as motivation to plan your exit from day one.
Here’s a simple trick: export your product data every month, control your own URL slugs, and always keep your customer data synced to a CRM you actually own. Doing this costs almost nothing and, when the time comes to move, can slice your migration bill by 30–40%.
Custom Code Maintenance Debt
Building your own thing? Every custom feature you roll out needs ongoing care. Dependencies need security patches. APIs change. Node.js gets outdated. We’ve seen maintenance on a custom ecommerce setup run $15,000–$25,000 a year just to keep the lights on. That’s before you add any shiny new features.
Skip budgeting for this, and your platform quietly decays. We’ve found custom builds lagging two years behind on basic security updates because the original agency disappeared and no one else stepped up. That’s not just technical debt; it’s a PCI compliance nightmare if you’re handling payments.
Opportunity Cost of Engineering Focus
Every hour your engineers spend patching up the commerce stack is an hour they’re not building what actually sets you apart. If you’re a fashion brand, your edge comes from your brand, your curation, the customer experience - not your cart system. Letting engineers sink time into a custom cart is just burning resources on something everybody else already has.
But if you’re running a B2B marketplace, and your matching algorithm is the secret sauce, then that’s exactly where your engineers should focus. Keep the commerce layer boring and reliable, so your team can double down on what makes you special.
A Practical Migration Path: Buy Now, Build Later
A smart way to handle tech for most companies isn’t just picking “build” or “buy” and sticking with it. It’s about moving through stages as you grow:
Phase 1 (up to $3M revenue): Start simple and platform-native.
- Use Shopify, BigCommerce, or WooCommerce.
- Focus on figuring out if your product actually sells and understanding your customers.
- You’re looking at an investment between $5,000 and $30,000.
Phase 2 ($3M–$8M revenue): Stretch out what the platform can do.
- Add a custom theme, maybe some private apps, plus better integrations.
- Now you’re working on getting more people to buy and building your brand’s feel.
- Budget jumps to $25,000–$75,000.
Phase 3 ($8M–$25M revenue): Go headless.
- Build your own frontend, keep the backend on a platform or go open-source.
- Here, you care about speed, selling everywhere, and standing out with unique experiences.
- Investment ranges from $80,000 up to $180,000.
Phase 4 ($25M+ revenue): Own everything.
- Use open-source or a fully custom backend, control every line of code.
- The focus shifts to setting yourself apart from the competition and trimming costs as you scale.
- Plan to invest $150,000 to $300,000 or more.
This step-by-step path lines up your tech spend with where your business is at. You don’t burn cash on infrastructure you don’t need, but you’re also not held back when you’re ready to ramp up.
The companies that really nail this treat each phase like a planned upgrade, not a mad scramble. They start thinking about headless architecture six to twelve months before they need it. They slowly build up their in-house engineering skills. And they keep track of how everything connects and how their data flows, so when it’s time to move up, it’s smooth - not a mess.
Ready to figure out your best path forward?
We've helped D2C brands, B2B wholesalers, and marketplace founders pick the right ecommerce architecture - without overbuilding or underspending.
Book a free scoping call and we'll map your requirements to the right approach, with a realistic budget and timeline.
Key Takeaways
-
Don’t think of the build-vs-buy decision as just “yes” or “no.” It’s more of a spectrum. You’ve got five main approaches to pick from: Platform-Native, Platform-Extended, Headless/Composable, Open-Source, and Fully Custom. Which one fits best? That comes down to how complex your business is, your revenue, the strength of your engineering team, how quickly you need to move, and your channel strategy.
-
Revenue tells the story. If you’re under $5M, just buy. Once you hit that $5M to $15M range, headless starts to make sense. Go above $25M and you’ll usually want to own your stack - total cost of ownership just works out better. Still, if your business model is really complex, you might need custom even if your revenue isn’t huge.
-
Companies almost always underestimate how much engineering muscle they need. A custom platform without a team to look after it quickly turns from an asset to a headache. Plan for the crew who’ll run things after launch, not just the folks building it.
-
The smartest move for the long haul? Have a clear migration path. Move fast in the beginning, get your business off the ground, then upgrade your tech once you’ve proven you’re ready for more. The companies that get stuck are the ones building for some future dream instead of where they’re actually at.
-
Add up every cost - platform fees, support, migration, lock-in, and what you could be missing out on by choosing one path over another. The cheapest option upfront isn’t always the cheapest over three years. Always run the full total cost of ownership before you dive in.
In the end, build vs buy is a business call, not just a tech one. The best choice is the one that helps your business grow without your platform slowing you down or your infrastructure draining your cash. Go with what gets you making money fastest, and only start building custom once you’ve proven your business model works.



