Blog / Development

What is a backend? What it does for an app and what it costs

What is a backend? What it does for an app and what it costs

Short answer

  • A backend is the part of an app that runs on a server: it stores the data, checks who’s logged in, holds uploaded files, runs the rules and sends push notifications.
  • You need one as soon as data has to be shared between people or survive a lost phone. A calculator or an offline notes app can live without one.
  • Most first versions run on a backend as a service. Firebase and Supabase both start free, with 50,000 monthly active users of login included on their free plans.
  • Supabase Pro starts at $25 a month and Supabase pauses free projects after 1 week of inactivity, so a live app usually ends up on a paid plan.
  • The hosting bill is the small part. Paying a developer to build logins, profiles and a content system typically costs thousands of dollars before the first server invoice.

Every app you’ve ever used has two halves. The bit on your phone is the part you see. The backend is the part you don’t, and it’s where most of the cost, risk and arguing with developers happens.

If you’re planning an app, someone will soon ask you “what are you using for the backend?” You don’t need to write one to answer that question well. You need to know what the jobs are, what the options cost, and which questions expose a bad plan.

This piece goes deep on one part of our guide to how apps are built. Every external price and limit below was checked on the provider’s own page on 6 December 2026.

What is a backend in an app?

A backend is the code and data that live on a server, which is a computer in a data centre that your app talks to over the internet. Your phone sends it requests (“show me my bookings”) and it sends back answers.

Developers also write it as “back end” or “back-end”. Same thing.

Here’s a picture that works. Think of a restaurant.

The dining room is the app on your phone: tables, menus, the waiter. The kitchen is the backend. Customers never go in there, but it holds the stock, follows the recipes, and decides what actually leaves on a plate.

You’d never let diners walk into the kitchen and help themselves. Same idea here: the phone can be tampered with, so anything that matters (prices, who owns which record, whether a payment went through) gets decided on the server.

What’s the difference between the front end and the back end?

The front end is everything the user sees and taps, and the back end is everything that happens on a server out of sight. One draws the screen, the other decides what goes on it.

Front end Back end
Where it runs On the phone, tablet or browser On a server in a data centre
What it does Screens, buttons, animations, forms Stores data, checks permissions, runs rules, sends messages
Who can see it Anyone with the app can inspect it Only you and your developers
Typical tools Swift, Kotlin, React Native, Flutter A database plus server code, or a backend as a service
What breaks if it’s wrong Ugly or confusing screens Lost data, leaked data, wrong charges

“Full stack” just means both halves. A full-stack developer works on the screens and the server.

The front-end choices (native or cross-platform, and which framework) are covered in native vs cross-platform apps. This piece stays in the kitchen.

What does a backend actually do?

A backend does 5 jobs: it stores data in a database, runs the server logic, handles logins, keeps uploaded files and sends notifications. Small apps use some of these. Most business apps use all 5.

1. The database

A database is software that stores information so it can be found again fast: customers, orders, bookings, messages. There are two main families.

Relational databases, like PostgreSQL (usually called Postgres), keep data in linked tables, a bit like spreadsheets that know an order belongs to a customer. Supabase says every project gets a full Postgres database.

Document databases keep loose bundles of fields instead. Google describes Cloud Firestore as a cloud-hosted NoSQL database that keeps data in sync through real-time listeners and keeps working offline, syncing changes when the phone reconnects.

My rule of thumb: if you’ll ever want a report (“bookings per week by staff member”), lean relational. If it’s mostly chat and live feeds, a document database is fine.

2. Server logic and the API

Server logic is the set of rules your app follows that must not live on the phone. Working out a price, applying a discount, deciding whether a booking slot is still free, refusing an order after closing time.

The phone reaches that logic through an API, which is a list of requests the server agrees to answer. “Create booking”, “get my orders”, “cancel subscription”. The app can only ask for things on that list.

That’s also why the backend is where security lives. If the discount is worked out on the phone, someone will eventually change it to 100%.

3. Authentication

Authentication is the app checking who you are. When you log in, the backend checks your password (or your Apple or Google account) and gives the app a token, a temporary pass it shows with every request.

The second half, authorisation, is the backend deciding what you’re allowed to see. It’s the half that gets forgotten. A login screen that works says nothing about whether user A can read user B’s records.

Apple’s rules also land here. Guideline 5.1.1(v) of the App Review Guidelines says that if an app supports account creation, it must also offer account deletion inside the app, and that apps without significant account-based features should let people in without a login. Deleting an account means deleting data on the server, so the backend has to support it.

4. File storage

Photos, PDFs, voice notes and profile pictures are too big to sit in the database, so they go into file storage (sometimes called object storage or a bucket). The database keeps a pointer to each file and who’s allowed to open it.

If customers can upload anything, budget for storage. It’s usually the first free allowance an app outgrows.

5. Push notifications

A push notification travels from your backend to Apple’s or Google’s notification service, which delivers it to the phone. Your server never contacts the phone directly.

Google describes Firebase Cloud Messaging as a cross-platform messaging solution, and says sending needs a trusted environment, such as Cloud Functions or your own app server, to build, target and send the messages. That trusted environment is your backend. It stores each user’s device address and decides who gets what, and when.

The pillar guide walks through how push notifications work step by step if you want the plumbing.

Does my app need a backend?

Your app needs a backend if people log in, if data is shared between users or devices, or if anything has to survive the phone being lost. If it works fully offline for one person, it probably doesn’t.

Run through these 4 questions.

  1. Do people have accounts? Then yes. Something has to check passwords and store who’s who.
  2. Does one person’s action show up for another? A booking a member of staff can see, a message, a review, a loyalty stamp scanned at the till. Yes.
  3. Would a new phone lose everything? If that’s unacceptable, the data needs to live on a server. Yes.
  4. Do you want to message customers? Push notifications need somewhere to store device addresses and send from. Yes.

4 “no” answers and you can build without one. A tip calculator, a unit converter, a timer or a personal checklist can keep everything on the phone.

Be honest with yourself on question 1, though. Most business apps answer yes to at least 2 of these, and a backend bolted on later costs more than one planned in from the start.

What are your backend options?

You have 5 realistic ways to get a backend, from renting a finished one to having developers write their own. The difference is how much you control and how much you have to look after.

A no-code builder with the backend included

If your app is a standard business app (bookings, loyalty cards, food ordering, push notifications, forms, content pages), a no-code app builder already has the backend built. You never pick a database or set up a notification service. You fill in your details and publish.

That’s how our app builder works, and it’s free for up to 10 app users, then $49 a month (up to 1,000 app users) or $99 a month (unlimited). The trade-off is the menu: you build from the features it has, so check yours are on it before you start.

An AI app builder with a built-in backend

AI builders now set up a backend while they write the app. Lovable’s documentation says Lovable Cloud includes a database with real-time updates, user logins, file storage, edge functions (small pieces of server code) and scheduled jobs, built on Supabase’s open-source foundation. Its backend usage comes out of the same credit balance you build with, measured as Run credits.

That’s great for a prototype. The catch is the authorisation half above: the AI will happily build a working login without locking down who can read what. Our pieces on what Lovable is and whether vibe coding is safe cover what to check.

A backend as a service

A backend as a service (BaaS) is a ready-made backend you rent: database, logins, file storage, functions and usually notifications, switched on from a dashboard. Your developer writes the app and connects it.

Firebase (Google), Supabase and AWS Amplify are the big names. Xano is a hosted backend that gives you a Postgres-based database, APIs, logins and business logic, and connects to whatever front end you build, according to its pricing page.

For most first versions, this is the answer I’d give. Someone else patches the servers and keeps them running, and you pay mainly as you grow.

A self-hosted open-source backend

You can also run an open-source backend on your own server. PocketBase describes itself as an open-source backend in 1 file, with a database, real-time subscriptions, email and social logins, file storage and an admin dashboard. The version number on its site today is v0.43.0.

The software is free. The server isn’t, and neither is the time spent updating it, backing it up and fixing it at 11pm. Good for developers who want control; risky for a business owner on their own.

A custom backend

A custom backend is server code your developers write themselves, running on cloud servers you pay for. You go this way when the rules are complicated, when you need to connect to systems you already run (stock, accounts, a CRM), or when the data is sensitive enough that you want full control of where it sits.

It costs the most to build and somebody has to maintain it for as long as the app lives. Plan for that with our guide to app maintenance costs.

How much does a backend cost?

A backend for a first version usually costs $0 to $25 a month to run on a BaaS free or starter plan. Building the features on top of it with a developer costs far more, typically thousands of dollars.

Here’s what the main hosted options charge, from each provider’s own pricing page today.

Option Free plan First paid plan Watch out for
Firebase (Google) Spark: 50,000 monthly active users of login, 1 GiB Firestore, 50,000 reads and 20,000 writes a day, push messaging at no cost Blaze, pay as you go. Functions: 2 million calls a month free, then $0.40 per million File storage and Cloud Functions aren’t available on Spark, so you need Blaze with a card attached
Supabase 50,000 monthly active users, 500 MB database, 1 GB file storage, 5 GB egress, 2 active projects Pro from $25 a month: 100,000 monthly active users, 8 GB database, 100 GB file storage, 250 GB egress Free projects pause after 1 week of inactivity. Team plan is from $599 a month
AWS Amplify Basic: up to 25 apps and 2 backends, 1 GB-month database storage per backend Pro $20 a month, Pro Plus $45 a month, plus optional overages On Basic, a resource pauses until next month when its allowance runs out. Other AWS services bill separately
Xano 100,000 records, 1 GB database, 10 requests per 20 seconds Essential $85 a month billed annually ($99 monthly) 10 requests per 20 seconds is too tight for a live app
Lovable Cloud Built into Lovable; hosting your published app is free Backend usage is counted in Run credits No per-unit backend prices on the docs page
PocketBase on your own server Software is free and open source Cheapest DigitalOcean droplet is $4 a month (512 MiB memory, 1 vCPU, 10 GiB disk) You handle updates, backups and security yourself

Two details catch people. A paused Supabase project means a broken app for whoever opens it next, so free is for building and Pro is for live.

The second is backups. Supabase’s pricing page lists daily backups kept for 7 days on Pro, and point-in-time recovery (rolling back to a moment before something went wrong) as an add-on from $100 a month. Its database docs also put point-in-time recovery on paid plans only.

Now the bigger number: the build. Our app cost calculator prices backend-heavy features like this for a traditional build.

Feature One platform iPhone and Android
Email login $1,500 $3,000
Social login (Apple, Google) $3,000 $6,000
User profiles $2,000 $4,000
Simple messaging $2,000 $4,000
Selling products or services $2,500 $5,000
Connect to an existing website or system $3,000 $4,500
Content management system $6,000 $8,000

A worked example. One platform ($5,000) with email login ($1,500), user profiles ($2,000), simple messaging ($2,000) and a content system ($6,000) comes to $16,500 built the traditional way.

Built AI-assisted (AI writes the first draft and developers finish it), the same app comes out at $6,000 to $8,500 in the calculator. The full breakdown is in how much it costs to build an app.

BaaS or a custom backend: which should you choose?

Choose a backend as a service unless you have a specific reason not to. The usual reasons are deep connections to existing systems, unusual rules, or data you can’t let a third party hold.

Your situation Best fit
Standard business features, no developer No-code app builder
Testing an idea fast, no real customer data yet AI app builder with built-in backend
Your own logic, a developer, launching soon BaaS (Firebase or Supabase)
Reports, orders, bookings you’ll query a lot BaaS on Postgres (Supabase, Amplify) or custom on Postgres
Must talk to your stock, accounts or CRM system Custom backend, or a BaaS plus custom functions
Health, finance or other regulated data Custom backend, designed with that in mind

A common worry is lock-in: “what if we outgrow Firebase?” It’s real but smaller than people think.

A Postgres-based backend keeps your data in a standard format you can move. A document database like Firestore takes more work to move out of, so if you think you’ll leave, start on Postgres.

Take the quiz below for a starting recommendation, then take it to whoever’s building the app.

Backend picker

What kind of backend does your app need?

4 questions. You get one starting point and the reason, to take into a conversation with whoever builds it. Nothing leaves this page.

Can AI and no-code app builders build the backend?

Yes. No-code builders include one, and AI builders now create a database, logins and functions while they write the app. What they don’t do reliably is lock it down.

With a BaaS, the phone often talks straight to the database. The only thing stopping one user reading another’s records is a set of access rules on each table. Supabase calls them row level security, and its documentation says “A table in an exposed schema without RLS is readable and writable by any role with a grant on it.” It tells you to enable it on every table in an exposed schema.

So if an AI tool built your backend, ask it (or a developer) one question: “show me the rule that stops user A reading user B’s data, table by table.” If there’s no clear answer, don’t put real customers in yet. The full checklist is in our app security guide.

And if you’d rather have developers own that part, an AI-assisted build gets you the speed of AI with people checking the server side.

What should you ask a developer about the backend?

Ask where the data lives, who can read it, what it costs at 10 times today’s users, and how you’d leave. 5 questions cover it.

  1. Which backend, and why that one? A good answer names it and gives a reason tied to your app, such as “Postgres, because you need booking reports”.
  2. What stops one user seeing another’s data? They should answer in a sentence.
  3. What’s the monthly bill at launch and at 10 times the users? Ask them to show you the provider’s pricing page.
  4. Who owns the account? The database, storage and notification keys should be in your company’s account, with the developer invited. Our piece on who owns AI-generated code covers the code side.
  5. How are backups done, and have you tested a restore? Until a restore has worked once, you don’t really know the backups do.

If you want to compare providers side by side, our App Tools directory has a backend and database category with prices and free-plan flags.

For how the backend fits with the screens, the stack and the stores, go back to the full guide to how apps are built.

FAQ

What is a backend in simple terms?

A backend is the part of an app that runs on a server instead of your phone. It stores the data, checks who’s logged in, holds files, runs the rules and sends notifications.

Can an app work without a backend?

Yes, if it has no accounts, nothing shared between users and nothing that must survive a lost phone. Calculators, timers and personal offline checklists can keep everything on the device.

Is Firebase a backend?

Yes. Firebase is Google’s backend as a service, with a database, logins, file storage, server functions and push messaging. Its free Spark plan has no file storage or Cloud Functions, which need the pay-as-you-go Blaze plan.

Is Supabase free?

Supabase has a free plan with 50,000 monthly active users, a 500 MB database and 1 GB of file storage, checked on 6 December 2026. Free projects pause after 1 week of inactivity, and Pro starts at $25 a month.

What is the difference between a backend and a database?

The database is one part of the backend: the part that stores records. The backend also includes the server logic, logins, file storage and notifications that sit around it.

Is backend development harder than front end?

It’s different work. Front-end mistakes usually look bad, while backend mistakes can leak or lose data, so backend work needs more care with security and testing.

Do no-code app builders have a backend?

Yes. A no-code app builder runs the backend for you, so features like bookings, loyalty cards and push notifications work without you choosing a database. You build from the features it offers.

Last Updated on December 6, 2026 by Ian Naylor

Your app, live today

Build a native iOS and Android app, or a web app, for your business. Free to start, no code, no developers.