Els Labs
Product19 min read10 April 2026

The Complete Guide to Building a SaaS Product in 2026

Everything you need to know about building a SaaS product from scratch. Architecture decisions, tech stack, pricing models, and go-to-market strategy.

AM
Alex Mitchell
Lead Engineer at Els Labs

What makes SaaS different

Building a SaaS product is not the same as building a web application. A web application serves one organisation. A SaaS product serves hundreds or thousands of organisations, each expecting their data to be isolated, their experience to be customised and their uptime to be guaranteed.

This distinction matters because it affects every decision you make — from database architecture to billing logic to customer support tooling. Get the foundations wrong and you will spend months refactoring. Get them right and you have a product that scales smoothly from your first ten customers to your first ten thousand.

This guide covers the decisions you need to make, the architecture you need to build and the mistakes you need to avoid. It is based on our experience building SaaS products for UK startups and scale-ups — products that have collectively processed millions of transactions and served hundreds of thousands of users.

Key architecture decisions

Multi-tenant vs single-tenant

This is the first and most consequential architectural decision. It determines how you store data, how you handle isolation, how you deploy updates and how you scale.

Multi-tenant architecture means all customers share the same application instance and database. Each customer's data is logically separated (typically by a tenant ID column on every table) but physically stored together. This is the standard SaaS approach and the right choice for 90% of products.

Advantages:

  • Lower infrastructure cost per customer
  • Simpler deployments — one codebase, one database, one update for everyone
  • Easier to maintain and monitor
  • More efficient resource utilisation

Disadvantages:

  • More complex data isolation logic (every query needs tenant filtering)
  • A bug or performance issue affects all customers
  • Harder to meet strict data residency requirements

Single-tenant architecture means each customer gets their own application instance and database. This is more expensive to run and more complex to manage, but it provides complete data isolation.

Choose single-tenant when:

  • Your customers have strict regulatory requirements (certain financial services, healthcare, government)
  • Your customers demand dedicated infrastructure for security or compliance reasons
  • Your pricing model supports the higher infrastructure cost (enterprise contracts, typically £10,000+ per year)

Our recommendation: Start with multi-tenant. Migrate specific enterprise customers to single-tenant instances if and when they require it. This gives you the cost efficiency of multi-tenant for the majority of customers while accommodating enterprise requirements as they arise.

Database architecture

For a multi-tenant SaaS product, you have three database strategies:

Shared database, shared schema: All tenants share one database and one set of tables. A tenant_id column on every table separates data. This is the simplest, cheapest and most common approach. It requires discipline — every query must include the tenant filter, and a missing filter is a data leak.

Shared database, separate schemas: Each tenant gets their own database schema within a shared database. This provides stronger isolation than shared schema and makes per-tenant backups easier. The trade-off is more complex migration logic (you need to run migrations on every schema) and limited scalability.

Separate databases: Each tenant gets their own database. Maximum isolation, but significantly higher operational complexity and cost. Reserved for high-value enterprise tenants.

Our recommendation: Shared database, shared schema with a robust tenant context system. Use your ORM's middleware or hooks to automatically apply tenant filtering to every query. This eliminates the risk of missing a tenant filter in application code. Prisma's middleware feature or PostgreSQL's row-level security policies are effective mechanisms for this.

Application architecture

For your first version, build a monolith. Not a microservices architecture, not an event-driven architecture — a monolith. A well-structured monolith deployed as a single application.

This is not laziness. It is pragmatism. A monolith is faster to develop, simpler to deploy, easier to debug and more than sufficient for your first thousand customers. The overhead of microservices — service discovery, inter-service communication, distributed tracing, deployment orchestration — is not justified until you have specific scaling problems that a monolith cannot handle.

Structure your monolith with clear module boundaries so that extracting services later is straightforward. Separate your billing logic from your core product logic. Keep your authentication service decoupled. These boundaries make future extraction possible without requiring them today.

When you do need to extract services, start with the component that has the most independent scaling requirements. Typically, this is background processing (report generation, data imports, email sending) or a specific compute-intensive feature. Extract one service, operate it successfully for a few months, then consider the next extraction.

Essential SaaS features

Every SaaS product needs a core set of features beyond the product-specific functionality. These are the features that make your product a platform, not just an application. Build them well from the start, because retrofitting is painful.

Authentication and user management

Authentication is the foundation. Get it wrong and nothing else matters. Use a proven authentication service — do not build your own.

Your authentication system needs to support:

  • Email and password registration with email verification
  • Social login (Google, Microsoft at minimum for B2B)
  • Multi-factor authentication (MFA)
  • Password reset flows
  • Session management
  • API key generation for integrations

For B2B SaaS, you also need:

  • Organisation/team management
  • Role-based access control (RBAC)
  • Member invitations and onboarding
  • SSO support (SAML, OIDC) for enterprise customers

Clerk handles most of this out of the box. Auth.js covers the basics. For enterprise SSO, WorkOS is the specialist. Building any of this from scratch is a mistake — the security surface area is too large and the consequences of a vulnerability are too severe.

Billing and subscriptions

Billing is the second most complex feature in any SaaS product, after authentication. Use Stripe — the API is excellent, the documentation is comprehensive and it handles UK/EU tax compliance, SCA authentication and invoice generation.

Your billing system needs:

  • Subscription management (create, upgrade, downgrade, cancel)
  • Multiple pricing tiers
  • Free trial support
  • Usage-based billing (if applicable)
  • Invoice generation and history
  • Payment method management
  • Failed payment handling and dunning
  • Proration for mid-cycle plan changes
  • Tax calculation (VAT for UK/EU)
  • Webhook handling for billing events

Build a billing abstraction layer between Stripe and your application. Your application should know about "plans" and "subscriptions" — it should not know about Stripe-specific concepts like payment_intents or checkout_sessions. This abstraction makes it possible to change billing providers (unlikely but possible) and, more importantly, keeps your application logic clean.

Dunning — the process of handling failed payments — is critical and often overlooked. A failed payment is not a cancellation. It is a recoverable event. Stripe's Smart Retries handle the automatic retry logic, but you need application-level handling: notifications to the user, grace periods, feature restrictions and eventual cancellation. Get dunning right and you will recover 10–20% of payments that would otherwise be lost to involuntary churn.

Analytics and dashboards

Your customers need to see their data. Every B2B SaaS product needs some form of analytics dashboard — even if it is simple.

Start with the metrics that matter most to your customers. For a project management tool, that might be task completion rates and team velocity. For an e-commerce tool, it might be sales trends and customer lifetime value. Do not build a generic analytics platform — build specific dashboards that answer specific questions.

For the technical implementation, you have two approaches:

  1. Application-level analytics: Calculate and store metrics in your application database. Simple, fast for small datasets, but becomes slow as data grows.

  2. Dedicated analytics infrastructure: Use a separate analytics database (ClickHouse, TimescaleDB) or a managed service (Cube.js, Metabase). More complex to set up but scales better.

For your MVP, application-level analytics is fine. Migrate to dedicated analytics infrastructure when your data volume or query complexity demands it — typically when you have hundreds of active customers generating thousands of events per day.

Admin panel and back-office tools

You need an admin panel from day one. Not a polished customer-facing feature — an internal tool that lets your team manage the platform.

Your admin panel needs:

  • Customer management (view, edit, impersonate)
  • Subscription and billing management
  • Feature flag control
  • System health monitoring
  • Support tools (view customer data, debug issues)
  • Basic analytics (revenue, signups, churn)

Build this with a tool like Retool, AdminJS or a simple internal dashboard. Do not invest in custom admin panel design — this is for your team, not your customers. Function over form.

Email and notifications

Your SaaS product will send a lot of email: welcome emails, invoice receipts, password resets, activity notifications, marketing communications. Use a dedicated email service — Resend, Postmark or SendGrid — not your application server's email capability.

Design an email notification system with:

  • Transactional emails (immediate: password resets, receipts)
  • Activity notifications (batched: daily or weekly digests)
  • Marketing emails (scheduled: feature announcements, newsletters)
  • User preferences (let users control what they receive)

Invest in good email templates from the start. Your transactional emails are a touchpoint with every customer, and poorly designed emails undermine trust.

Feature flags

Feature flags let you enable or disable features for specific customers, plans or user segments without deploying code. They are essential for:

  • Gradual rollouts (enable a feature for 10% of users, then 50%, then 100%)
  • Plan differentiation (premium features only available on higher tiers)
  • Beta testing (enable unfinished features for specific customers)
  • Kill switches (instantly disable a problematic feature)

Use a feature flag service like PostHog, LaunchDarkly or Unleash. Do not build your own — feature flag management has subtleties (percentage rollouts, user targeting, audit logging) that are not worth reinventing.

Tech stack for SaaS

The best tech stack for UK startups applies directly to SaaS. Here is the SaaS-specific configuration:

LayerRecommendationWhy
FrontendNext.js + React + TypeScriptServer rendering for marketing pages, app shell for dashboard
StylingTailwind CSS + shadcn/uiFast development, consistent design system
BackendNext.js API routes + server actionsMonolith that scales, full-stack TypeScript
DatabasePostgreSQL (Supabase or Neon)Multi-tenant with row-level security
AuthClerk (B2B) or Auth.jsOrganisation management, SSO support
BillingStripeSubscriptions, invoicing, tax compliance
EmailResend or PostmarkTransactional and marketing email
AnalyticsPostHogProduct analytics, feature flags, session recordings
HostingVercelPreview deployments, edge functions, CDN
MonitoringSentry + Vercel AnalyticsError tracking, performance monitoring
Background jobsInngest or Trigger.devReliable job processing, cron jobs

This stack lets a small team (two to four engineers) build and launch a SaaS MVP in 12–16 weeks.

MVP vs full product: where to draw the line

The biggest mistake first-time SaaS founders make is building too much before launching. Your MVP should solve one problem exceptionally well, not solve ten problems adequately.

What belongs in your MVP

  • The core product feature (the thing customers are paying for)
  • User authentication and basic organisation management
  • One or two pricing tiers with Stripe billing
  • A functional (not beautiful) dashboard
  • Transactional emails
  • Basic error handling and monitoring

What does not belong in your MVP

  • SSO / SAML authentication (add when enterprise customers request it)
  • Advanced analytics dashboards (add when you have enough data to make them useful)
  • Custom branding per tenant (add when customers ask and are willing to pay for it)
  • Public API (add when you have integration partners)
  • Mobile app (add when you have validated the product on web)
  • Advanced permissions and role management (add when customers outgrow basic roles)
  • Audit logging (add when enterprise or compliance requirements demand it)
  • White-labelling (add when the business model supports it)

The principle is simple: build the minimum set of features that delivers enough value for someone to pay for it. Everything else is V2, V3 or V-never, depending on what real users tell you they need.

A good test: can you describe your MVP in one sentence? "A tool that does X for Y audience" should cover it. If you need a paragraph, your scope is too large.

Pricing model considerations

Your pricing model is a product decision, not a finance decision. It affects how customers use your product, how you design features and how you grow revenue.

Common SaaS pricing models

Per-seat pricing (e.g., £10/user/month): Simple to understand, predictable revenue, scales with customer adoption. Works well for collaboration tools, project management, CRM. The downside is that customers actively try to minimise seats, which creates friction.

Usage-based pricing (e.g., £0.01 per API call): Revenue scales with usage, lower barrier to entry. Works well for API services, data processing, infrastructure tools. The downside is unpredictable revenue and potentially large bills that surprise customers.

Tiered pricing (e.g., Starter £29/month, Pro £79/month, Business £199/month): The most common model. Each tier includes a defined set of features and usage limits. Easy to understand, creates natural upgrade paths, works for most B2B SaaS products.

Flat-rate pricing (e.g., £49/month for everything): Simplest model, no usage tracking needed. Works for products where usage does not significantly affect cost-to-serve. Rare in practice because it leaves money on the table with high-usage customers and overcharges low-usage ones.

Pricing strategy recommendations

  • Start with three tiers: A free or low-cost entry tier, a professional tier (your target price point) and an enterprise tier (custom pricing). This gives you market coverage without overwhelming customers with choices.

  • Price on value, not cost: Your price should reflect the value you deliver, not your infrastructure cost. If your tool saves a customer £1,000/month, charging £100/month is reasonable regardless of whether your cost-to-serve is £2/month or £20/month.

  • Include a free tier or free trial: The standard is a 14-day free trial with no credit card required. This maximises trial starts. A limited free tier (freemium) works well for products with network effects or high volume needs.

  • Plan for annual billing: Offer a 15–20% discount for annual payment. Annual billing improves cash flow, reduces churn (customers who pay annually churn at roughly half the rate of monthly customers) and simplifies your revenue forecasting.

  • Make it easy to upgrade: Your product should naturally guide users toward the features they need, which happen to be on higher tiers. In-app upgrade prompts, usage notifications approaching limits and clear feature comparison tables all support organic expansion.

Launch checklist

Before you announce your SaaS product to the world, ensure you have covered these essentials:

Technical readiness

  • All core features working and tested
  • Error monitoring configured (Sentry or similar)
  • Performance monitoring configured (Vercel Analytics or similar)
  • Database backups automated and verified
  • SSL configured on all domains
  • Security headers configured (CSP, HSTS, etc.)
  • Rate limiting on API endpoints and authentication routes
  • GDPR compliance: privacy policy, cookie consent, data export capability
  • Email deliverability tested (SPF, DKIM, DMARC configured)
  • Payment processing tested with real transactions
  • Staging environment matching production

Business readiness

  • Pricing page live with clear tier comparison
  • Terms of service and privacy policy reviewed by a solicitor
  • Support channel established (email, chat, help docs)
  • Onboarding flow tested with real users
  • Analytics tracking key conversion events
  • Billing and invoicing tested end-to-end
  • Cancellation flow tested (including data retention)
  • Customer feedback mechanism in place

Operational readiness

  • On-call rotation or alerting configured
  • Incident response process documented
  • Customer support workflows defined
  • Key metrics defined and dashboarded
  • Runbooks for common issues (database issues, deployment failures, payment failures)

Common SaaS mistakes to avoid

Building for enterprise before you have SMB traction

Enterprise features — SSO, audit logging, custom branding, SLAs, dedicated support — are expensive to build and maintain. Build them when enterprise customers are actively requesting them and willing to pay a premium, not before.

Most successful SaaS products start by serving small and medium businesses, then move upmarket as the product matures. Slack, Notion and Figma all followed this pattern. Start where the sales cycle is short and the feedback loop is fast.

Over-investing in infrastructure

You do not need Kubernetes, a service mesh, multi-region deployment or a complex CI/CD pipeline on day one. Vercel, a single PostgreSQL database and a simple GitHub Actions pipeline will serve your first thousand customers. Invest in infrastructure complexity when you have the traffic to justify it.

Ignoring churn from the start

Every SaaS business has churn. The question is whether you measure it, understand it and actively work to reduce it. Track these metrics from day one:

  • Monthly churn rate: Percentage of customers who cancel each month
  • Net revenue retention: Revenue from existing customers including expansion and contraction
  • Time to value: How quickly new users reach their "aha moment"
  • Activation rate: Percentage of signups who complete onboarding and use the core feature

If your monthly churn is above 5%, fixing churn is more valuable than acquiring new customers. A 5% monthly churn means you lose 46% of your customers every year. Even the best acquisition engine cannot outrun that.

Neglecting onboarding

The first five minutes of a user's experience determine whether they become a customer or a churned trial. Invest heavily in onboarding: welcome emails, guided setup, tooltips, templates, sample data and a clear path to the first moment of value.

The best onboarding is not a tutorial — it is a fast path to value. Help your users do the thing they signed up to do as quickly as possible. Every extra step between signup and value is a point where users drop off.

Frequently asked questions

How much does it cost to build a SaaS product?

An MVP typically costs £40,000–£120,000 and takes 12–24 weeks with a small team. A full-featured product costs £80,000–£250,000+. These figures include design, development, testing and deployment. They do not include marketing, sales or ongoing operational costs. See our detailed guide on web development costs in the UK for comprehensive pricing information.

How long does it take to build a SaaS MVP?

With a team of two to four engineers, a SaaS MVP typically takes 12–16 weeks after a discovery phase. This includes authentication, billing, the core product feature, basic analytics and a simple admin panel. Add four to six weeks if you need a discovery phase first (which we recommend for any SaaS product).

Should I use a SaaS boilerplate or starter kit?

Boilerplates (Shipfast, Makerkit, etc.) can save two to four weeks of setup time. They handle authentication, billing, email and basic UI out of the box. The trade-off is that you inherit their architectural decisions — some of which may not suit your product. They are most useful when your product fits neatly into the standard SaaS pattern. If you have unusual requirements, the time spent adapting a boilerplate may exceed the time saved.

How do I handle multi-tenancy in the database?

Use a shared database with tenant ID filtering on every table. Implement this at the ORM level using middleware or hooks so that every query automatically includes the tenant filter. For PostgreSQL specifically, row-level security (RLS) provides an additional layer of protection by enforcing tenant isolation at the database level, regardless of application code.

When should I hire my first engineer vs outsource?

Outsource for the initial build (MVP and first iterations) and hire when you have product-market fit and enough work for a full-time engineer. The threshold is typically when you are spending £8,000–£12,000/month consistently on development — at that point, a full-time hire becomes more cost-effective and provides better institutional knowledge.

How do I handle GDPR compliance for a SaaS product?

At minimum: publish a clear privacy policy, implement cookie consent, support data export (subject access requests), support data deletion (right to erasure), document your data processing activities and ensure your sub-processors (Stripe, your hosting provider, analytics tools) are GDPR-compliant. If you process sensitive data, consider appointing a Data Protection Officer. For UK-specific compliance, ensure you comply with the UK GDPR and Data Protection Act 2018, which have minor differences from the EU GDPR post-Brexit.

What metrics should I track from day one?

Monthly Recurring Revenue (MRR), churn rate, activation rate (percentage of trials that convert), customer acquisition cost (CAC) and time to value. These five metrics tell you whether your business is growing, retaining and converting. Everything else can wait until you have enough data to make the analysis meaningful.

How do I price my SaaS product?

Start by understanding the value you deliver. Interview your first ten customers and ask what they would pay. Research competitor pricing. Set a price that feels slightly uncomfortable (most founders underprice). Use three tiers — entry, professional, enterprise — and iterate based on conversion data. Your initial pricing will be wrong; plan to adjust it within six months based on real customer behaviour.

The bottom line

Building a SaaS product is a significant undertaking, but the recurring revenue model, the scalability and the compounding returns make it one of the most attractive business models in software.

The key is getting the foundations right: multi-tenant architecture, robust authentication, reliable billing, and a clear MVP scope. Do not over-engineer, do not over-build, and do not optimise for problems you do not have yet.

Start with a discovery phase to validate your product concept and define a realistic specification. Build your MVP in 12–16 weeks. Launch to a small group of early adopters. Iterate based on real feedback. Scale when you have product-market fit.

If you are planning to build a SaaS product and want expert guidance on architecture, tech stack and go-to-market strategy, get in touch. We have helped dozens of UK startups go from concept to launch, and we will give you an honest assessment of what it will take.

Tagged:saasarchitecturemulti-tenantstartupproduct