Cyber Monday!-30% off
home

Better Auth vs Clerk (2026): Cost, Control, Tradeoffs

·15 min read

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

FactorBetter AuthClerk
Hosting modelLibrary in your app (Node, Workers with flags, etc.)SaaS: Clerk hosts identity APIs and dashboard
Data ownershipuser, 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 modelLibrary: $0. Optional Infrastructure dashboard meters audit logs and detections, not usersMRU per app: 50k included on Hobby/Pro base, then published volume tiers
Orgs / B2Borganization plugin: teams, roles, invites in your schemaBase B2B: 100 MRO, 20 members/org, Admin/Member. Enhanced B2B add-on $100/mo for unlimited members and custom rolesets
Prebuilt UINone 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-inLeave by changing code; data already in your DBLeave 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:

PlanPriceWhat is metered
Infrastructure Starter$0/mo1 dashboard seat, 10,000 audit logs/mo (1 day retention), 1,000 security detections/mo
Infrastructure Pro$20/moUnlimited 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
EnterpriseCustomRetention, 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:

PlanBase priceMRU included per appNotable gates
Hobby$050,000MFA, passkeys, SMS sign-in, remove branding, custom session lifetime: no
Pro$25/mo ($20/mo annual)50,000, then volume pricingMFA, passkeys, SMS, remove branding, 1 SSO + 1 Directory Sync connection included
Business$300/mo ($250/mo annual)Same MRU tiers as ProSOC 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 / monthClerk HobbyClerk Pro (MFA, passkeys, no branding)Better Auth libraryBetter 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,000Not 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.

CapabilityBetter AuthClerk
Email + passwordCoreHobby+
Magic link / email codesPlugins / core patternsHobby+
Social OAuthCore (socialProviders)Hobby (3 providers), Pro (unlimited)
MFA / TOTPtwoFactor pluginPro+
Passkeyspasskey pluginPro+
SMS OTPYour sender or Infrastructure SMS meteringPro+, $0.01/SMS US/Canada per pricing page
Organizations / multi-tenantorganization pluginIncluded with 20-member cap; Enhanced B2B add-on
Admin / impersonationadmin pluginDashboard + 5 free impersonations/mo; unlimited via Administration add-on $100/mo
Enterprise SSO (SAML/OIDC)SSO plugin + Infrastructure self-service SSO on Pro1 SSO connection included on Pro, $75/mo each additional per volume table
WebhooksServer hooks + standard HTTPFirst-class webhooks on all plans
Session lengthYou configureHobby: 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):

lib/auth.ts
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):

app/api/auth/[...all]/route.ts
import { auth } from "@/lib/auth";
import { toNextJsHandler } from "better-auth/next-js";

export const { GET, POST } = toNextJsHandler(auth);

Client:

lib/auth-client.ts
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:

app/layout.tsx
import { ClerkProvider } from "@clerk/nextjs";

export default function RootLayout({ children }) {
  return (
    <ClerkProvider>
      <html lang="en">
        <body>{children}</body>
      </html>
    </ClerkProvider>
  );
}
middleware.ts
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

world map
Community

Connect with like-minded people

Join our community to get feedback, support, and grow together with 1,000+ builders on board, let's ship it!

Join us

Ship your startup everywhere. In minutes.

Don't burn tokens on setup and start building features on day one.

Get TurboStarter