How to Build a SaaS App in 2026: Tenancy, Billing and Enterprise Readiness

In this article
- A SaaS app is two products: the features customers buy and the platform layer under them: tenants, sign-in, roles, billing, admin and audit logs. Buyers rarely praise the platform layer, but B2B buyers check for it before they sign.
- Choose the tenancy model first. Most products start pooled (shared database, every row tagged with a tenant ID and protected by row-level security) and offer separate databases only to customers who pay for them.
- Enterprise deals bring a predictable list: SSO through SAML or OIDC, user provisioning through SCIM, granular roles, audit logs and a SOC 2 report. Build the habits early, add the features when a paying customer asks.
- A SaaS MVP usually takes 3–5 months; a B2B-ready product with SSO, seat billing and SOC 2 groundwork takes 5–9 months.
Jump to
Start with three decisions, not screens
Feature lists are easy to change. Three early decisions are not, because every table, query and invoice depends on them:
- Who is the tenant? A company, a team inside it, a workspace a person can join from several companies. Users, data and billing all hang off this.
- How do you charge? Flat plans, per seat, by usage, or a mix. Seats need user counting. Usage needs metering you can audit when a customer disputes an invoice.
- Who will buy in year one? Self-serve small teams want fast sign-up and a card form. Mid-market and enterprise buyers want SSO, roles, audit logs and a SOC 2 report.
The first answer leads straight to your tenancy model. There are four common ones, and most products mix two:
- How it works: one database, every row carries a tenant ID, and row-level security in the database blocks cross-tenant reads.
- Good for: self-serve products, many small customers, fast iteration. The default for a v1.
- Costs: lowest per tenant, one migration for everyone, simplest operations.
- Watch out: one missing filter can leak data, so enforce isolation in the database, not only in code. Large tenants can slow down small ones.
- How it works: one database server, a separate schema (set of tables) for each tenant.
- Good for: dozens to a few hundred business customers who want clearer separation and per-tenant backups.
- Costs: moderate. Every migration runs once per schema, so tooling matters.
- Watch out: migrations that fail halfway leave tenants on different versions. Build the migration runner before tenant number fifty.
- How it works: each tenant gets its own database, sometimes in a region the customer chooses.
- Good for: enterprise customers with data residency or isolation requirements, usually on a premium plan.
- Costs: infrastructure per customer is many times higher than pooled, plus provisioning and monitoring for each database.
- Watch out: cross-tenant reporting and analytics need a separate pipeline. Offer it as an option, not the default.
- How it works: a full copy of the app per customer, in your cloud or on the customer's own infrastructure.
- Good for: regulated or security-sensitive buyers who won't share infrastructure at all.
- Costs: highest. Every release becomes many deployments.
- Watch out: without automated, repeatable deployment, versions drift and support becomes guesswork.
A common path: pooled for everyone at launch, a database-per-tenant option once an enterprise deal pays for it. Our SaaS development cost guide shows what each model adds in hours and in monthly infrastructure.
How to build a SaaS app, step by step
Nine steps. The platform layer starts in the first month, alongside the first workflow, because retrofitting it is the most expensive rework in SaaS.
- Model accounts before featuresDraw the hierarchy: organization, workspaces or teams, users, roles. Decide whether one person can belong to several organizations. Put a tenant ID on every table from the first migration.
- Pick the tenancy model and enforce it in the databaseFor pooled tenancy, turn on row-level security so a query without the tenant context returns nothing. Write automated tests that try to read another tenant's data through every API endpoint.
- Build sign-in, invites and rolesEmail and Google sign-in, invitations, a few fixed roles (owner, admin, member) and permission checks on the server. Use an auth provider that supports SAML and OIDC, so enterprise SSO is a configuration later, not a rebuild.
- Connect billing to entitlementsSet up plans in a billing platform and map each plan to what it unlocks: features, seat limits, usage quotas. Subscription webhooks update access automatically. Features ask "is this allowed?", never "which plan is this?".
- Design onboarding for the first five minutesA new account should reach its first useful result fast: sample data, a guided first task, invites for teammates. Track where trial accounts stop, because that is where revenue leaks.
- Build one core workflow end to endThe job customers pay for, done well, with tests. Resist adding a second workflow before design partners use the first one weekly.
- Build the internal admin panelYour team needs to find any tenant, see its plan and usage, extend a trial, issue a credit and, with the customer's permission, view the account to debug. Log every admin action.
- Add observability per tenantTag logs, metrics and traces with the tenant ID. When one customer says "it's slow", you need to see their requests, not an average across everyone.
- Launch with design partners, then open sign-upStart with a handful of customers who give weekly feedback. Fix what they hit, then open self-serve sign-up and start SOC 2 preparation if mid-market buyers are next.
What you build and what you rent
SaaS teams that ship fast rent the commodity parts of the platform layer and spend their time on the workflow customers pay for. A typical split:
| Layer | Usually rented | Usually built |
|---|---|---|
| Auth and SSO | An auth provider with SAML, OIDC and, later, SCIM support | Organizations, invites, roles, permission checks on every endpoint |
| Billing | Stripe Billing or a similar platform: plans, invoices, retries, tax add-ons | Entitlements, seat counting, usage metering, webhook handling |
| Data | Managed PostgreSQL or another managed database, backups | Tenant isolation, row-level security policies, migration tooling |
| Observability | Logging, metrics, tracing and error tracking services | Tenant tags on everything, alerts that name the affected customers |
| Compliance | A compliance automation platform, an auditor, a penetration test | Audit logs, access reviews, change management, data deletion on request |
| Back office | Help desk, product analytics, email delivery | The admin panel: tenants, plans, credits, impersonation with consent, admin audit trail |
A SaaS boilerplate or starter kit can give you auth, organizations and subscriptions in days. Check how it isolates tenants and handles webhooks before you commit, because you will live with those parts for years.
Architecture rules for a multi-tenant app
Most SaaS rewrites start with a shortcut that worked for the first ten customers. These rules keep the architecture working at a thousand:
- Tenant context on every request. Resolve the tenant once, from the session or the subdomain, and pass it everywhere: database queries, background jobs, caches, file storage paths, search indexes, logs.
- Isolation in the database, not only in code. Row-level security or separate schemas mean a forgotten filter returns nothing instead of another customer's data.
- Noisy neighbors under control. Rate limits and job queues per tenant, so one customer's import of a million rows doesn't slow down everyone else.
- Entitlements in one place. A single service answers what a tenant may do. Pricing changes then touch configuration, not code across the product.
- Enterprise identity built in, not bolted on. SSO through SAML or OIDC lets a customer's IT team control sign-in. SCIM lets them add and remove users automatically when people join or leave. Both are much easier if users already belong to organizations with roles.
- Audit logs from day one. Who changed what, when, in which tenant. Customers ask for them, SOC 2 auditors expect them, and your support team needs them.
What goes into the first version
A SaaS v1 needs more platform than founders expect and fewer features. A typical split:
| At launch | Can wait |
|---|---|
| Pooled multi-tenancy with row-level security and isolation tests | Database per tenant and data residency options |
| Email and Google sign-in, invites, two or three fixed roles | SAML SSO, SCIM provisioning and custom roles, until a buyer asks |
| Flat or per-seat plans with trials in a billing platform | Usage-based billing and metering |
| One core workflow, done well | The second and third workflows |
| Internal admin panel with an action log | Customer-facing admin analytics |
| Audit log, backups, error tracking, per-tenant logs | A SOC 2 Type II report, unless your first buyers require it |
| Onboarding with sample data and a first guided task | Public API, marketplace integrations, white-labeling |
Still validating the idea? Our MVP development cost guide covers leaner first releases.
Built by Gilzor
Results we’ve shipped




Talk to the people who build it. Tell us about your project and get a free estimate of scope, timeline and cost.
Timeline and budget at a glance
Enterprise-grade platforms with tenant isolation options, SCIM and usage billing run $300,000–750,000 or more, and US agencies typically quote 2–2.5 times these figures. A first SOC 2 Type II usually costs $30,000–80,000, and maintenance runs 15–20% of the build per year. See the full breakdown and a calculator in our SaaS development cost guide.
Mistakes that cost the most later
- Building for one customer first. A product built for a single launch client, then made multi-tenant, needs a tenant ID added to every table, query and job. Doing it later usually costs more than doing it at the start.
- Plan names hard-coded in features. "If plan is Pro" scattered through the code makes every pricing change a release. Use entitlements.
- Isolation that lives only in application code. One missing filter is a data breach. Add database-level isolation and tests that try to cross tenants.
- No admin panel, so engineers run support queries. Every refund or trial extension becomes a database session, and SOC 2 auditors will ask who can touch production data.
- Starting SOC 2 when the buyer asks. A Type II report covers an observation period of several months. If the first enterprise deal needs it, starting then can delay the deal by a quarter or more.
- Averages instead of per-tenant monitoring. Your dashboard looks fine while your biggest customer has timeouts. Tag everything with the tenant.
SaaS v1 readiness checklist
Tick what is already true for your product. It shows how ready the platform layer is for paying customers.
SaaS v1 readiness
FAQ
How do I build a SaaS app?
How long does it take to build a SaaS app?
How much does it cost to build a SaaS app?
What is a multi-tenant app?
Do I need SOC 2 to sell SaaS to US companies?
Should I build my own billing system?
Where Gilzor fits
We provide SaaS development: web apps, backends, integrations, UX/UI design and QA, starting with business analysis when the scope is still open. For MagmaSet, a resource management platform, our team ran discovery, designed the product and built a web app with role-based access control and integrations with tools like Jira and Google Calendar, plus a deployment approach for installing it on each client's isolated infrastructure. We work from Poland and Cyprus, with a few shared hours a day with the US East Coast.
Tell us who your customers are, how you plan to charge and which buyers you want in year one. We'll help you choose the tenancy model, plan the platform layer and cut a v1 you can sell.
No sales pitch
Get a straight answer for your project
Tell us what you’re building. We’ll reply with options, a rough cost and timeline. If we’re not the right fit, we’ll say so.

CTO of Gilzor. Responsible for architecture and the engineering standards our teams work by.
LinkedIn →Gilzor · Web Development partner
Need a team for your web product?
Services
Web DevelopmentCustom websites and web apps — front-end, back-end, launch and support.→By company type
Selected projects






The team behind them
More insights





