Better Auth is a free, open source TypeScript framework that runs inside your own app and database. Clerk is rented. It is a hosted service that bills per monthly retained user, with 50,000 included free per app on its pricing page. That single difference, code you own versus a service you rent, drives almost everything else: setup time, organisation features, the bill at 100,000 users and how painful leaving becomes. Below, you get a feature table, monthly cost arithmetic at 1k, 10k and 100k users from list prices, and a straight recommendation by project type. NextAuth users get a note too.
A library you run versus a service you rent
Better Auth's own docs call it a framework agnostic, universal authentication and authorisation framework for TypeScript, with a plugin ecosystem on top. Your database stays central. Users, sessions and accounts sit there, not in someone else's identity store. The framework handles migrations for that schema, ships a built in rate limiter, and covers email and password, social sign on, 2FA, passkeys, multi-session and organisations through plugins.
Clerk is the opposite shape. You install an SDK, and Clerk runs the identity system: the user records live on its infrastructure, and you read them back through its APIs and webhooks. The trade is plain. You get prebuilt sign in and profile UI, and you pay for the privilege by usage.
One thing trips people up. Better Auth also has a pricing page, and it can look like a per user bill. It isn't. The page says the framework is free and open source, and that the pricing covers optional managed infrastructure you connect to a self hosted Better Auth: a dashboard, audit logs, security detection and similar. On Pro, for instance, the audit log gives 20,000 events a month and then charges $0.0001 per event. You can skip all of it.
So the real question isn't 'which is better'. It is about operating model. You are choosing between auth as a dependency in your codebase and auth as a vendor in your stack. Both are legitimate. I've seen teams happy on either, and for a wider field of providers the five-provider authentication roundup covers Auth0, Supabase and WorkOS as well.
Setting up in a Next.js app
Here's the honest shape of each path.
Better Auth
- Install the package with
npm i better-auth@latest(the command from the V1.0 release notes). - Create an auth config that calls
betterAuthand points at your database. The official migration guide uses a PostgreSQLPoolas its example, but any supported database works. - Enable email and password, add any social providers with their client IDs and secrets, and add plugins (organisation, 2FA, passkey) as you need them.
- Run the CLI migration (
pnpx @better-auth/cli migrate) so the schema matches what the library expects. - Create a client (
authClient) for your React components and read the session from it.
Notice what's missing: any sending of emails. The Clerk migration guide tells you plainly to implement your own logic for verification and password reset emails. That is the cost of owning the flow. It is also where most of the 'extra' setup time goes.
Clerk
Clerk's Auth.js migration guide shows the pattern: run npm install @clerk/nextjs , add the publishable key and secret key to your .env , wrap the app in ClerkProvider, then choose between Clerk's hosted Account Portal or your own custom UI. There is less to decide. There's no database schema to think about and no email provider to wire up for the basics.
StackNotice's comparison estimates 45 minutes for Better Auth against 15 for Clerk. Treat those figures as one blogger's guess, not a benchmark. The direction still matches my experience of the two shapes: Clerk is faster to a working sign in page, while Better Auth is faster to a sign in page that behaves exactly how you want.
What about NextAuth?
If you're coming from Auth.js (formerly NextAuth), there are guides in both directions. Better Auth's V1.0 changelog included a NextAuth.js migration guide, and the release page is dated 'nov.22' with no year stated. One third party write-up, iloveblogs, says Auth.js is now in maintenance mode and puts a standard email/password plus two or three OAuth providers migration at 2-4 hours. Another, buildmvpfast, says if Auth.js is working fine, stay put and migrate when a natural refactor window opens, and budgets roughly two engineer-weeks. Those estimates are far apart. Your custom adapters and session handling decide which one you get.
On the Clerk side, the Auth.js guide links to a migration tool repo for moving user data across.
Organisations, roles and the rest of the feature list
This is where the two diverge most for B2B products. Clerk packages organisations as a free allowance plus a paid add-on. Better Auth takes the other route: an organisation plugin that lives in your own database, where you pay in engineering time rather than seats.
| Feature | Better Auth | Clerk (pricing page, Nov 2026) |
|---|---|---|
| Organisations | Organization & Access Control, per the docs | Free: 100 MROs per app, up to 20 members per organisation. Enhanced add-on: $100/mo ($85/mo billed annually) for unlimited members |
| Roles and RBAC | Access control built into the organisation feature | Admin and Member roles plus custom permissions are free. Custom roles and rolesets need the Enhanced add-on, up to 10 custom roles per instance |
| Passkeys | Available as a plugin | Not included on the free plan, included on Pro and Business |
| 2FA / MFA | Two factor authentication feature | Not included on the free plan, included on Pro and Business |
| SSO | Listed as an enterprise feature; managed self-service SSO is 1 connection, then $50/month per connection | 1 connection on Pro and Business, then $75/mo each for 2-15 |
| Moving in from the other | Official Clerk migration guide: sessions invalidated, organisations not covered | Auth.js migration guide and a migration tool repo |
A few notes on that table.
MROs. Clerk bills organisations as monthly retained organisations. Beyond the 100 included, the Enhanced add-on charges $1/mo each for 101 to 1,000. If you run a B2B product with a few thousand tenants, that line matters more than the per user price.
Free plan limits. The free column also has a fixed 7 day session lifetime. Custom session duration, from 5 minutes to 10 years, is a paid feature. For a quick MVP that's fine. For anything with a login policy, you're on Pro on day one.
Directory Sync. Clerk's Directory Sync connection billing starts January 1, 2027. Budget for it if enterprise customers will ask.
On the Better Auth side I'd call out what the docs don't promise: they list the capabilities, but the depth of any given plugin, including how granular your roles can get and how invitations flow, is something you read in that plugin's page before committing. That's the trade. You get the code and the source of truth, and nobody builds the invitation email for you.
If passkeys are the reason you're reading, I've covered the mechanics in passkey authentication in Next.js with Supabase. The principles carry over. They apply to either tool here.
What it costs at 1k, 10k and 100k users
The arithmetic is below. It is list price maths from the pages cited, not a measured bill, and it assumes every user counts as retained, because Clerk bills monthly retained users, defined as users who return 24+ hours after signing up, and a user's first day is free. Your real bill could be lower. I've used Clerk's monthly Pro price of $25; annual billing drops the base to $20/mo.

| Monthly users | Clerk Hobby | Clerk Pro | Better Auth framework |
|---|---|---|---|
| 1,000 | $0 (no passkeys or MFA) | $25 | $0 licence, plus your own database and hosting |
| 10,000 | $0 (no passkeys or MFA) | $25 | $0 licence, plus your own database and hosting |
| 100,000 | Above the 50,000 limit | $25 + (50,000 x $0.02) | $0 licence, plus your own database and hosting |
The 100,000 line comes from Clerk's tiers: 50,000 included per app, then $0.02 each for 50,001 to 100,000. Past that, it is $0.018 each up to 1,000,000, $0.015 each up to 10,000,000, and $0.012 each beyond. Add the $100/mo Enhanced B2B add-on if you need unlimited organisation members or custom roles. Add the $300/mo Business plan ($250/mo billed annually) if you need the SOC2 report, which Clerk lists only on Business.
A few things I'd keep in mind when reading that table.
- Hobby isn't really a production plan if you want passkeys or MFA. Clerk's free column marks both 'Not included'.
- Going over the limit isn't instant pain. Clerk gives a one-month grace period once usage passes 50,000 MRUs or 100 MROs.
- '$0' for Better Auth is not free. You carry database hosting, email delivery, monitoring and the time to maintain it. I haven't put a figure on that because it depends entirely on your stack and host, and a good host makes it small.
- Optional managed extras exist. Better Auth's managed infrastructure charges, for example, $0.001 per transactional email, $0.09 per SMS and $25/month each for a custom dashboard domain or a log drain. Check its pricing page for the base plan prices, which I've left out.
Watch out for stale numbers
Third party comparisons disagree with Clerk's own page. Kanopy Labs says the free tier is 10,000 MAU and Pro adds $0.02 per MAU beyond 10,000. Clerk's pricing page says 50,000 MRUs per app. When prices and vendor pages conflict, trust the vendor page and the date on it.
One more sanity check. StackNotice suggests evaluating a move off Clerk at 25k MAU. By the arithmetic above, 25,000 users on Clerk Pro sits inside the 50,000 included, so the trigger at that size isn't the invoice. It is something else: data residency, customer questions or a feature you want to own. That brings us to the next section.
Who owns the data, and what leaving costs
With Better Auth, your user table is your table. Data residency is whatever your database region is, and that's the strongest argument for it. StackNotice makes the same point: with Clerk your user data lives on Clerk's infrastructure, and HIPAA Business Associate Agreements need the Enterprise tier and extra contracts. Clerk's pricing page does list HIPAA compliance with a BAA and a 99.99% uptime SLA on Enterprise.
Clerk isn't a lock-in trap, though. It says full data exports are included on all plans and you can export from the dashboard at any time. Migration assistance is included with its enterprise plan.
The catch is what the export contains. The official Clerk to Better Auth guide spells out the pain points:
- All active sessions are invalidated. Everyone logs in again on cut-over.
- Password hashing differs. Clerk uses bcrypt; Better Auth defaults to scrypt. You configure Better Auth to verify with bcrypt so migrated users can still sign in.
- TOTP secrets come across, backup codes don't. The migration script generates new backup codes.
- Organisations aren't covered. The guide says it should be possible with the Organization plugin and extra steps, but it doesn't show them.
As for how long it takes, estimates vary. StackNotice suggests running both systems in parallel for 2-4 weeks, with new sign-ups going to Better Auth while old Clerk sessions expire naturally. buildmvpfast says to budget two engineer-weeks for a typical app of 10K to 50K users and claims teams often migrate out around month nine. Those are third party figures. Use them as a planning range, not a promise.
My read: if you already know a data residency requirement is coming, start on Better Auth. Retrofitting identity is the kind of job that eats a sprint you didn't budget for. The org migration gap makes it worse for B2B apps.
Which one I'd pick
Strengths first. Clerk is excellent when speed and polish matter more than control. Better Auth is excellent when control matters more than the first afternoon.
Pick Clerk when
- You're shipping an MVP or side project and want the prebuilt UI.
- You expect to stay under a few tens of thousands of users, where the Pro base price covers you.
- You need B2B organisation features quickly and have no compliance or residency requirements yet.
- Nobody on the team wants to own email flows, session handling or abuse protection.
Pick Better Auth when
- You want users and sessions in your own database from day one.
- You're heading towards six-figure user counts, where Clerk's per-user charge becomes a real line item.
- A customer, regulator or your own legal team is going to ask where identity data lives.
- You're comfortable writing the sign-in UI and wiring your own email provider.
And NextAuth users?
If Auth.js works for you today, don't rush. During a refactor, Better Auth is the closer relative: still your code, still your database, with more built in than a bare Auth.js setup, including organisations, 2FA and passkeys. If your main frustration is building UI and admin screens, Clerk's Auth.js guide is the more direct route.
For the broader picture of where each of these sits among the other providers, see our authentication hub.
If you'd rather not hand-roll organisations, role checks and a migration plan yourself, that is the sort of work our bespoke web development team takes on.
FAQ
Can I use Better Auth outside Next.js?
Yes. The docs describe it as framework agnostic and say it supports most popular frameworks. Next.js is just where most of the comparison articles focus, because that's where Clerk and Auth.js are strongest.
What happens if I pass 50,000 users on Clerk's free plan?
Clerk gives a one month grace period once usage exceeds 50,000 MRUs or 100 MROs before you need to upgrade. After that, you need a paid plan. That plan also adds passkeys, MFA and custom session lifetime.
Does Clerk charge for users who sign up and never come back?
Not for the first day. Clerk's 'First Day Free' policy means a user's first day never counts towards billing, and a user is counted as retained only when they return 24+ hours after signing up. That's why the 100,000 figure above is a ceiling.
Is Better Auth stable enough for production?
Its V1.0 release notes say V1 means the team believes you can use it in production and will try to keep the APIs stable until the next major version. Read the changelog before upgrading, since V1 itself came with breaking changes.
The sharpest contrast in all of this is the 100,000 user line: a Clerk Pro bill that grows with usage at list price, against a $0 Better Auth licence that hides your own hosting and engineering time. The sharpest caveat sits on the other side: leaving Clerk invalidates every session, and the official guide doesn't yet cover organisations. Check both pricing pages before you commit, because the figures above are only as current as November 2026.
Better Auth and Clerk and their logos are trademarks of their respective owners. They appear in the cover image only to identify what this article covers. This article is independent and is not sponsored or endorsed by Better Auth and Clerk.