Build vs buy identity: the honest math
For most teams the answer is buy. Building basic login is not hard; operating it at production quality for years, with passkeys, recovery, enterprise SSO, SCIM, audit logs and compliance evidence, takes more engineering than teams predict. Building makes sense only at very high scale, when identity is your product, or when regulation rules out the vendors. This guide gives the decision table, real list prices at three scales, a way to cost the build side honestly, and the failure modes homegrown identity tends to hit.
Decision table
| Your situation | Recommendation | Why |
|---|---|---|
| Pre-product or under 50,000 active users | Buy | Published free tiers cover you; spend engineering on the product |
| B2B SaaS selling to enterprises | Buy, choose on SSO/SCIM pricing | Enterprise SSO and SCIM are required and costly to build well |
| Consumer app, 1M+ active users, strong platform team | Run the math below; buy or self-host | Per-user list prices start to matter; discounts usually apply |
| Identity is your product | Build | It is your core competence and differentiator |
| Regulation or sovereignty excludes the vendors | Self-host open source, or build | Control of location and keys is the requirement |
| Wants portability but lacks budget for custom build | Self-host open source | No licence fee, portable code, bounded operations cost |
The cost of "buy": real list prices
These are USD list prices per month for user charges only, taken from vendor pricing pages. Clerk and Amazon Cognito were re-read on November 5, 2026; Supabase and WorkOS are from SWI's live check on October 30, 2026 in the Identity Pricing Transparency Index 2026. They exclude SMS, add-ons, enterprise plans and discounts.
| Active users per month | Amazon Cognito Essentials | Clerk Pro | Supabase Auth Pro | WorkOS AuthKit |
|---|---|---|---|---|
| 10,000 | $0 | $25 | $25 | $0 |
| 100,000 | $1,350 | $1,025 | $25 | $0 |
| 1,000,000 | $14,850 | $17,225 | $2,950 | $0 |
How the numbers are built:
- Cognito Essentials: 10,000 free MAU, then $0.015 per MAU, per its pricing page. Users who sign in through SAML or OIDC federation get only 50 free MAU, then $0.015 each.
- Clerk Pro: $25 a month with 50,000 monthly retained users included, then $0.02 each to 100,000 and $0.018 each to 1,000,000, per its pricing page.
- Supabase Pro: from $25 a month with 100,000 MAU, then $0.00325 per MAU.
- WorkOS AuthKit: free to 1,000,000 MAU, then $2,500 a month per additional million. Enterprise SSO and directory sync are $125 per connection (1 to 15).
Two lessons. First, the spread at 1,000,000 users runs from $0 to over $17,000 a month in user charges, so "vendors are too expensive at scale" depends entirely on which vendor and which unit. Second, for B2B products the connection line often matters more than the user line; see the worked example in how to evaluate a CIAM vendor and the SSO tax entry.
Most of the market does not publish prices at all. The Identity Pricing Transparency Index 2026 found that only 28% of 295 identity vendors still on sale (82) publish a price for any paid tier, and 54% are quote-only. CIAM is one of the more transparent categories.
The honest cost of "build"
There is no credible universal number for build cost, so price it from your own inputs. List the work, estimate engineer-months, and multiply by your fully loaded cost per engineer.
Version 1 scope (before you can launch):
- Sign-up, sign-in and secure credential storage, or passwordless with passkeys built on WebAuthn
- MFA and a safe account recovery flow
- Sessions, refresh tokens and revocation; OAuth 2.0 and OpenID Connect if other apps or APIs consume your tokens
- Rate limiting, bot defense and breached-password checks against credential stuffing
Before the first enterprise deal:
- Enterprise SSO over SAML 2.0 and OIDC, per customer, with a self-serve setup flow
- SCIM 2.0 provisioning and deprovisioning
- Organization and role models, admin console, audit log export
- Evidence for SOC 2 access controls
Every year after:
- Security patches, dependency and library upgrades, protocol changes
- On-call for the login path, which is down whenever you are down
- Penetration tests and incident response for the identity tier
- New factor types and standards (passkey changes, new OAuth profiles)
Then add the ongoing share of an engineer, not just the build months. Put both sides into the build vs buy tool and the TCO calculator.
When to actually build
- You are a hyperscale consumer platform where negotiated vendor pricing still breaks your unit economics
- Your product is itself an identity platform (vendors selling to other developers)
- You have a regulatory environment that prohibits the available vendors
- You have an in-house security and platform engineering team that operates production identity systems already
When to buy
- Everyone else
- Especially: anyone who hasn't yet shipped v1
- Especially: anyone whose product is not "identity"
- Especially: anyone planning to chase SOC 2 in the next 18 months
The middle path: open source self-hosted
For teams uncomfortable with vendor lock-in but unable to justify a full custom build, consider self-hosted open-source identity: Keycloak, FusionAuth (Community edition, self-hosted, unlimited) or SuperTokens (unlimited users self-hosted; $0.02 per MAU on its managed cloud). There is no licence fee and the code is portable. The operational cost is real but bounded: you own patching, upgrades, high availability, backups and monitoring. See the top open-source CIAM platforms.
Failure modes of homegrown identity
The common failures are not exotic cryptography. They are recovery paths, missing MFA and unprotected endpoints, which vendors handle by default and in-house teams add late.
| Failure | Incident | Lesson |
|---|---|---|
| Recovery path weaker than login | Coinbase, 2021: an SMS account recovery flaw led to takeovers of at least 6,000 customers' accounts | Recovery needs the same strength as sign-in |
| No mandatory MFA against stuffing | 23andMe, 2023: about 14,000 accounts accessed, about 6.9 million people's profile data exposed; fined 2.31 million pounds by the UK ICO | Ship MFA and stuffing defenses in v1 |
| Unauthenticated identity API | Authy, 2024: phone numbers enumerated through an unauthenticated endpoint | Authenticate and rate-limit every lookup |
| Broken access control on a customer API | Optus, 2022: about 9.5 million people's data exposed through an API with broken access controls | Authorization is part of identity, not an afterthought |
Step-by-step: making the call
- Forecast active users at 12, 24 and 36 months, and the number of enterprise customers needing SSO or SCIM.
- Price two or three vendors at those points from their pricing pages, including connection fees.
- List the build scope above and estimate engineer-months for v1 and ongoing work.
- Multiply by your loaded engineering cost and compare over three years.
- Add risk: what a takeover incident or login outage would cost you.
- If you buy, design for exit: confirm password hash export and import limits before signing.
Common pitfalls
- Building because of "vendor lock-in concerns" without quantifying the switching cost
- Underestimating the long tail (account recovery, edge cases, support burden)
- Counting only the visible engineering work, not security/compliance/SDK maintenance
- Comparing free-tier headlines without checking what each vendor counts as an active user
- Building without designing for migration to a vendor later
For the market view, see the best CIAM for startups and best CIAM platforms rankings.
Frequently asked questions
- Should a startup build its own authentication?
- Almost never. Published CIAM free tiers checked on October 30, 2026 ran from 5,000 to 1,000,000 monthly active users, so most startups pay nothing or very little for years, while a homegrown system still needs passkeys, MFA, recovery, enterprise SSO, SCIM and audit logs before the first enterprise deal.
- At what scale does building identity become cheaper than buying?
- There is no single crossover. At list prices, 1,000,000 active users cost about $14,850 a month on Amazon Cognito Essentials and about $17,225 a month on Clerk Pro, but $0 in user charges on WorkOS AuthKit and about $2,950 on Supabase Pro. Compare those numbers to the fully loaded cost of the engineers you would dedicate to identity, and include negotiated discounts, which most buyers at that scale get.
- Is open-source self-hosted identity a good middle path?
- Often, yes. Keycloak, FusionAuth Community and SuperTokens self-hosted carry no licence fee, and the code is portable. You pay in operations instead: patching, upgrades, high availability, backups and security monitoring of the identity tier.
- What does building identity actually include?
- More than login. A production identity system needs secure password storage or passwordless, MFA and passkeys, account recovery, session and token management, rate limiting and bot defense, enterprise SSO (SAML and OIDC), SCIM provisioning, an admin console, audit logs and compliance evidence.
- What is the SSO tax and how does it affect build vs buy?
- The SSO tax is charging more for single sign-on than for the base product. If you buy, check whether enterprise SSO and SCIM are per-connection add-ons. If you build, SSO is engineering work you must do anyway, because enterprise customers will require it.
Related on Start with Identity
- BlogCrowdStrike agrees to buy SGNL for 740 million dollars
The deal that opened 2026's consolidation wave. SGNL brings CAEP-based continuous access evaluation and just-in-time authorization to a Falcon identity business
- BlogCyera agrees to buy Oasis Security for about 1 billion dollars
A data-security company is paying roughly 1 billion dollars, about 700 million of it in cash, for a four-year-old non-human identity startup. The price says mor
- BlogHow to vet a national digital ID before you build KYC on it
Not every national ID is equally trustworthy or equally easy to verify. A practical seven-point checklist for evaluating a country's digital ID before you wire