Better Auth vs Clerk (2026): Cost, Control, Tradeoffs
Better Auth vs Clerk for Next.js and Expo SaaS: pricing checked 1 Dec 2026, data ownership, orgs, MFA, and when to pick hosted auth vs your database.

Better Auth vs Clerk is the fork most Next.js, React Native, and Expo teams hit when auth stops being a weekend task and becomes a product decision. Better Auth is an MIT-licensed library: users, sessions, and OAuth accounts live in your Postgres (or another adapter you choose). Clerk is hosted authentication with prebuilt sign-in UI, a dashboard, and billing on monthly retained users (MRU), not classic MAU.
Prices and plan gates below were read from clerk.com/pricing and better-auth.com/pricing on 1 December 2026. Feature claims point at each vendor's current docs. This post is the dedicated head-to-head. Neon Auth, Supabase Auth, and Auth.js sit in the wider map in Better Auth vs Clerk vs NextAuth vs Supabase Auth.
Better Auth vs Clerk: the short answer
Pick Better Auth when you want user rows in your database, no per-user auth invoice, and plugins for MFA, passkeys, and organizations without a plan upgrade. Pick Clerk when prebuilt sign-in components, a hosted user admin UI, and shipping auth this week matter more than long-term data ownership. Clerk's Hobby tier is $0 up to 50,000 MRU per app, but MFA, passkeys, custom session lifetime, and removing Clerk branding require Pro ($25/mo, $20/mo billed annually). At 100,000 MRU, Clerk Pro is $25 + 50,000 × $0.02 = $1,025/mo on list price before B2B or SSO add-ons.
Rule of thumb: if you need MFA or passkeys on day one, or you expect to grow past 50k retained users, budget Better Auth (or a starter kit that already wires it). If you are validating an idea and want zero auth UI work, Clerk is a legitimate shortcut if you accept migration cost later.
Better Auth vs Clerk at a glance
| Factor | Better Auth | Clerk |
|---|---|---|
| Hosting model | Library in your app (Node, Workers with flags, etc.) | SaaS: Clerk hosts identity APIs and dashboard |
| Data ownership | user, session, account tables in your DB (Drizzle, Prisma, Kysely, Mongo adapters) | Primary user store on Clerk; export and webhooks to mirror into your DB |
| Pricing model | Library: $0. Optional Infrastructure dashboard meters audit logs and detections, not users | MRU per app: 50k included on Hobby/Pro base, then published volume tiers |
| Orgs / B2B | organization plugin: teams, roles, invites in your schema | Base B2B: 100 MRO, 20 members/org, Admin/Member. Enhanced B2B add-on $100/mo for unlimited members and custom rolesets |
| Prebuilt UI | None in core; community Better Auth UI or your components | <SignIn />, <UserButton />, org switchers, hosted account portal |
| Mobile / Expo | @better-auth/expo: you own screens; one backend for web + native | @clerk/expo: hosted flows in Expo Go or prebuilt native components |
| Lock-in | Leave by changing code; data already in your DB | Leave by export + session invalidation; see migrate from Clerk |
Pricing: is Better Auth free, and what Clerk actually costs
Is Better Auth free?
The library is free. Better Auth is MIT-licensed on npm with no per-user fee. The team also sells optional Infrastructure: a connected dashboard for users, sessions, orgs, audit logs, security detections ("Sentinel"), transactional email/SMS, self-service SSO, and directory sync. On 1 December 2026, Better Auth pricing lists:
| Plan | Price | What is metered |
|---|---|---|
| Infrastructure Starter | $0/mo | 1 dashboard seat, 10,000 audit logs/mo (1 day retention), 1,000 security detections/mo |
| Infrastructure Pro | $20/mo | Unlimited seats; 20,000 audit logs then $0.0001/event; 10,000 detections then $0.001/event; email $0.001 each, SMS $0.09 each; 1 self-service SSO connection then $50/mo each extra |
| Enterprise | Custom | Retention, volume, Slack support, implementation help |
None of those lines charge by end-user count. What you pay instead is your database, your email/SMS providers (unless you use Infrastructure messaging), and engineering time for UI, abuse handling, and ops. That tradeoff is ownership: Clerk bundles some of that ops into the invoice.
Clerk free tier and Pro gates (1 December 2026)
Clerk bills Monthly Retained Users (MRU): a user counts when they visit at least one day after signing up ("First Day Free" means same-day-only signups are not billed). Your MRU count is at or below MAU, so the tables below use MRU as the billed unit.
From Clerk pricing on the same date:
| Plan | Base price | MRU included per app | Notable gates |
|---|---|---|---|
| Hobby | $0 | 50,000 | MFA, passkeys, SMS sign-in, remove branding, custom session lifetime: no |
| Pro | $25/mo ($20/mo annual) | 50,000, then volume pricing | MFA, passkeys, SMS, remove branding, 1 SSO + 1 Directory Sync connection included |
| Business | $300/mo ($250/mo annual) | Same MRU tiers as Pro | SOC 2 report, advanced Protect, 30-day application logs |
Volume pricing for MRU (after the included 50,000 per app): $0.02/mo each for 50,001 to 100,000; $0.018 from 100,001 to 1,000,000; $0.015 then $0.012 at higher tiers. Exceeding 50k on Hobby triggers a one-month grace period before you must upgrade.
Features many production apps need on day one sit behind Pro:
- Multifactor authentication (authenticator apps, backup codes)
- Passkeys
- Biometric sign-in on native (Clerk docs list this under Pro)
- More than 3 social connections on Hobby (Hobby: up to 3; Pro: unlimited)
- Remove "Secured by Clerk" branding
B2B (organizations): every plan includes 100 monthly retained organizations (MRO) per app and up to 20 members per organization with Admin/Member roles. The Enhanced B2B Authentication add-on is $100/mo ($85 annual) for unlimited members per org, verified domains, custom roles and rolesets, and auto-join flows. MRO above 100 costs $1/mo each in the published 101 to 1,000 tier (volume discounts at higher MRO counts).
For Auth0, Supabase Auth, and a longer Clerk-only fee table, use Clerk pricing in 2026. That post owns the clerk pricing keyword; this one only uses Clerk numbers needed for the Better Auth comparison.
Worked examples (Clerk Pro, list monthly billing)
Assume every user is a retained user (worst-case ceiling for MAU = MRU). No add-ons except the plan required for MFA/passkeys.
| Retained users / month | Clerk Hobby | Clerk Pro (MFA, passkeys, no branding) | Better Auth library | Better Auth + optional Infrastructure Pro |
|---|---|---|---|---|
| 10,000 | $0 | $25/mo | $0 + your Postgres | $20/mo + Postgres (if you buy the dashboard) |
| 50,000 | $0 (at Hobby cap) | $25/mo | $0 + Postgres | $20/mo + Postgres |
| 100,000 | Not available (upgrade) | $25 + 50,000 × $0.02 = $1,025/mo | $0 + Postgres | $20/mo + Postgres (still no user meter) |
At 100k MRU, Clerk's math is explicit on the pricing page: base $25 plus $0.02 for each user from 50,001 to 100,000. A B2B SaaS that also needs Enhanced B2B stacks +$100/mo on top of user MRU.
Better Auth does not replace database hosting. If you want a single dollar anchor for "what else you pay," a small Supabase or Neon Postgres project is a common pairing; see Neon vs Supabase for host pricing checked in November 2026, not repeated here.
Data ownership and lock-in
Better Auth writes sessions and users into tables you control. With Drizzle (TurboStarter's default), auth schema lives beside app tables, so foreign keys, RLS-style app checks, and backups are one system. Leaving Better Auth means swapping library code, not negotiating an export window.
Clerk is the system of record unless you build a sync layer. Clerk provides full data exports on every plan and webhooks to mirror users into your database, but session tokens are Clerk-issued. If Clerk is down during a token refresh, your app feels it. If you leave, you export users, invalidate sessions, and re-point OAuth callbacks. Password hashes can move: Clerk's dashboard export includes digests, and Better Auth's Clerk migration guide documents bcrypt import. Active sessions do not survive cutover.
Our step-by-step cutover (big-bang vs dual-run, org gaps, mobile clients) is migrate from Clerk to Better Auth. Read that when the decision is already made; read this post when you are still comparing clerk vs better auth economics and shape.
Features compared
Checked against vendor docs linked below on 1 December 2026. This is not every plugin flag; it is what production SaaS teams usually ask about first.
| Capability | Better Auth | Clerk |
|---|---|---|
| Email + password | Core | Hobby+ |
| Magic link / email codes | Plugins / core patterns | Hobby+ |
| Social OAuth | Core (socialProviders) | Hobby (3 providers), Pro (unlimited) |
| MFA / TOTP | twoFactor plugin | Pro+ |
| Passkeys | passkey plugin | Pro+ |
| SMS OTP | Your sender or Infrastructure SMS metering | Pro+, $0.01/SMS US/Canada per pricing page |
| Organizations / multi-tenant | organization plugin | Included with 20-member cap; Enhanced B2B add-on |
| Admin / impersonation | admin plugin | Dashboard + 5 free impersonations/mo; unlimited via Administration add-on $100/mo |
| Enterprise SSO (SAML/OIDC) | SSO plugin + Infrastructure self-service SSO on Pro | 1 SSO connection included on Pro, $75/mo each additional per volume table |
| Webhooks | Server hooks + standard HTTP | First-class webhooks on all plans |
| Session length | You configure | Hobby: fixed 7 days; Pro+: custom up to 10 years |
For MFA implementation detail in Better Auth, see Better Auth 2FA guide. For B2B data modeling in a kit, see how to build multi-tenant SaaS.
Developer experience with code
Both stacks are TypeScript-first. The difference is who owns the route handlers, cookies, and UI.
Better Auth on Next.js (minimal shape)
Server instance with your adapter (Drizzle example from installation and TurboStarter's @workspace/auth):
import { betterAuth } from "better-auth";
import { drizzleAdapter } from "better-auth/adapters/drizzle";
import { db } from "./db";
import * as schema from "./db/auth-schema";
export const auth = betterAuth({
database: drizzleAdapter(db, {
provider: "pg",
schema,
}),
emailAndPassword: { enabled: true },
socialProviders: {
github: {
clientId: process.env.GITHUB_CLIENT_ID!,
clientSecret: process.env.GITHUB_CLIENT_SECRET!,
},
},
});App Router handler at /api/auth/[...all] (Next.js integration):
import { auth } from "@/lib/auth";
import { toNextJsHandler } from "better-auth/next-js";
export const { GET, POST } = toNextJsHandler(auth);Client:
import { createAuthClient } from "better-auth/react";
export const authClient = createAuthClient({
baseURL: process.env.NEXT_PUBLIC_APP_URL,
});You add plugins (2FA, organization, passkey) on the server and matching client plugins where needed. Middleware checks session cookies (cookies helper) instead of a vendor-specific auth() helper. TurboStarter documents the full flow in web auth overview, configuration, and auth flow.
Clerk on Next.js (minimal shape)
From Clerk Next.js quickstart:
import { ClerkProvider } from "@clerk/nextjs";
export default function RootLayout({ children }) {
return (
<ClerkProvider>
<html lang="en">
<body>{children}</body>
</html>
</ClerkProvider>
);
}import { clerkMiddleware } from "@clerk/nextjs/server";
export default clerkMiddleware();
export const config = {
matcher: [
"/((?!_next|[^?]*\\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).*)",
"/(api|trpc)(.*)",
],
};Protected UI is often a hosted component:
import { SignInButton, SignedIn, SignedOut, UserButton } from "@clerk/nextjs";
export function Header() {
return (
<>
<SignedOut>
<SignInButton />
</SignedOut>
<SignedIn>
<UserButton />
</SignedIn>
</>
);
}Clerk's DX win is fewer files and a dashboard for user support. Better Auth's win is that auth.api.getSession and your Drizzle queries read the same user.id without a sync job.
If you want prebuilt screens without Clerk, community Better Auth UI or a starter kit closes part of that gap.
Mobile, Expo, and browser extensions
Multi-surface SaaS should share one session store. Better Auth uses @better-auth/expo with secure storage and deep-link OAuth; you build React Native screens, but cookies/tokens target the same /api/auth origin as the web app. TurboStarter wires that pattern in mobile auth overview and the Expo Better Auth guide.
Clerk ships @clerk/expo with faster time-to-login: hosted authentication in Expo Go or prebuilt native components (often requiring a dev build). Biometric sign-in for native apps is a Pro feature on Clerk's pricing table.
Browser extensions in TurboStarter reuse the web Better Auth backend (extension auth overview). Clerk can secure extensions via the same session APIs, but your extension still depends on Clerk's hosted session lifecycle.
When to pick Clerk vs Better Auth
Clerk is a good choice when:
- You need sign-in UI this week and do not have design capacity
- Your team wants a dashboard for user support without building admin
- You stay under Hobby limits and do not need MFA/passkeys yet (or accept $25/mo Pro immediately)
- Procurement is fine with a hosted subprocessor and MRU pricing
- You are building a single web app first and mobile is later
Better Auth is a good choice when:
- User rows must live in your Postgres for analytics, RLS, or compliance narrative
- You ship web + mobile + extension from one API and want one auth schema
- You need MFA, passkeys, or custom org roles without $100/mo B2B add-ons
- You expect >50k retained users and want to avoid MRU overages (see worked table above)
- You already run Drizzle migrations and want auth tables beside product tables
- You may later self-host on Cloudflare Workers (Better Auth documents Workers flags in installation)
Clerk is not a trap for serious products: it is a hosted product with a clear free tier and a real migration path out. Better Auth is not free in the sense of zero work: it is free in the sense of no per-user line item and full schema ownership.
How TurboStarter does it
TurboStarter ships Better Auth in @workspace/auth: Drizzle adapter against your Postgres, magic link and OAuth providers, session cookie caching, and hooks wired to billing and email packages. Web routes use TanStack Start server functions with session enforcement; mobile and extension clients hit the same backend.
Docs to copy patterns from production code:
If you want a production-ready starter kit instead of wiring auth from zero, see pricing and the homepage at /. If you are comparing four auth products in one article, the landscape post remains Better Auth vs Clerk vs NextAuth vs Supabase Auth.
FAQ
The library is free (MIT). Better Auth does not charge per user. Optional Infrastructure (dashboard, audit logs, detections, transactional email/SMS) has Starter at $0/mo and Pro at $20/mo with usage meters that are not tied to user counts, checked 1 December 2026. You still pay for your database and any email/SMS providers you connect outside Infrastructure.
Better Auth is used in production across Next.js, Nuxt, Svelte, and Expo integrations documented on better-auth.com. The project also maintains Auth.js. Production readiness still depends on your rollout: email deliverability, rate limits, monitoring, and schema migrations. A starter kit like TurboStarter exists to bundle those wiring steps, not to replace your security review.
Yes, for teams that value hosted UI and dashboard speed. Clerk's Hobby plan remains $0 up to 50,000 MRU per app with core sign-in methods, per Clerk pricing on 1 December 2026. Production security features (MFA, passkeys, branding removal) push you to Pro ($25/mo). Clerk is a strong fit for fast validation if you accept MRU pricing and export-based ownership.
Clerk ships org UI, invitations, and RBAC quickly. Base plans cap orgs at 20 members unless you buy Enhanced B2B ($100/mo). Retained orgs above 100 add $1/mo each in the first overage tier. Better Auth implements B2B via the organization plugin in your database with no per-org fee from Better Auth itself. Pick Clerk for speed; pick Better Auth for org data beside app tables and predictable cost at many orgs.
Yes. Clerk exports users (including password digests for email/password accounts). Better Auth documents bcrypt import and OAuth account mapping in the Clerk migration guide. Sessions do not transfer. Follow migrate from Clerk to Better Auth for cutover strategies and org caveats.
Clerk is the identity provider of record while you use the service. Users live in Clerk's systems; you can export and webhook-sync into your database. You do not get direct SQL ownership until you mirror or migrate. Better Auth inverts that: Clerk's export story is good, but the default model is still hosted primary storage.
Both support Expo. Clerk offers @clerk/expo with hosted flows and optional prebuilt native UI (biometrics on Pro). Better Auth uses @better-auth/expo with your UI and the same API routes as web, which matters when one backend must serve iOS, Android, and web. See Better Auth with Expo and mobile 2FA.
Better Auth vs Clerk (2026): Pricing, Lock-in, Which to Pick
Better Auth vs Clerk: verified Clerk cost at 10k, 50k and 100k MAU, MFA, passkeys, Expo and lock-in, plus where Neon Auth, NextAuth and Supabase Auth fit.
Boilerplate vs vibe coding (Claude, ChatGPT Codex, Cursor)
Boilerplate vs vibe coding - when AI-from-scratch works, when a SaaS starter wins, and how to combine both for production.



