Does your app need a backend?
Some apps can run entirely on the phone. Most that handle accounts, payments or shared data can’t. Here’s how to tell which one you’re building.
On this page
Short answer
Yes, if your app has any of these:
- People sign in
- Data has to match across phones, people or a website
- Payments
- Notifications you send
- Content you want to change without releasing an update
- An admin panel for your team
- Links to other services
A tool for one person that keeps everything on one device can usually do without one.
The screens are the part of an app everyone sees. The backend is the part that remembers. It decides who is allowed to do what, keeps every phone telling the same story, and does the work nobody should be able to fake from their own device.
Many app ideas arrive as a set of screens, and that’s a fine place to start. But whether those screens need a backend behind them changes the size of the project more than almost any other decision. So it’s worth settling early.
What a backend is#
A backend is everything your app relies on that doesn’t run on the user’s phone. It usually has three parts:
- A server. A computer that is always on and runs your app’s rules: who can see an order, what happens after a payment, when a reminder goes out.
- A database. Where the data lives: users, bookings, messages, prices, stock.
- An API. The doorway the app talks through. The phone asks for something, the API checks who is asking and whether they’re allowed, and answers.
The app on the phone is the front end. It shows things and collects taps. The backend holds the truth, and the app shows a copy of it.
Signs you need one#
Any one of these is enough.
- People sign in. Accounts need somewhere to live, and passwords or one-time codes have to be checked somewhere a user can’t tamper with.
- Data moves between people or devices. A chat, a shared list, a booking that a shop owner needs to see on their own phone. That data has to sit in the middle, where both sides can reach it.
- Money changes hands. Payment providers such as Razorpay and Stripe report the result of a payment to your server, and ask you to check it there. A phone can be tricked into saying “paid”. Your server shouldn’t be.
- You send notifications. Push notifications, SMS and emails are sent from a server, after something happens or on a schedule.
- You want to change content without an update. Prices, menus, banners, articles. If they’re built into the app, every change waits for an App Store or Play Store review.
- Your team needs an admin panel. Someone has to approve listings, answer support requests or see what’s selling. That panel reads and writes the same data the app does.
- You connect to other services. Maps, delivery partners, accounting software, messaging providers. These connections usually need secret keys, and secret keys can’t be shipped inside an app, because anyone can take an app apart.
When you can skip it#
Plenty of apps don’t need one: a calculator, a timer, a notes app that doesn’t sync, a game without leaderboards or accounts. Everything they need is on the device, and nobody else needs to see it.
The trade-off is that the data lives and dies with the phone. If it’s lost or replaced, the user’s data may go with it, unless the phone’s own backup brings it back.
Worth knowing
Apps that start without a backend often grow a small one later: a way to tell users to update, a feedback form, a little shared content. Some of this can be bought as a service rather than built, but it helps to plan for it from the start.
Use a ready-made backend, or build your own?#
You don’t always have to build a backend from scratch. Backend-as-a-service products such as Firebase and Supabase give you sign-in, a database, file storage and small server functions, without running servers yourself.
| Ready-made backend | Your own backend | |
|---|---|---|
| Getting started | Quick. Sign-in, database and storage come ready. | Slower. Each piece is set up and written. |
| Fits best | Simple rules: users, their data, who can read it. | Complex rules, many integrations, heavy reporting. |
| Control | You work within the provider’s features and limits. | You decide how everything works. |
| Running costs | Often free to start. The bill grows with your traffic. | A hosting bill, plus someone to look after it. |
| Changing later | Possible, but data and rules have to be carried across. | Already yours. |
Many products start on a ready-made backend and add their own server pieces as the rules get more specific. That’s a sensible path, as long as the data is planned with the move in mind.
What makes a backend bigger#
Backends vary as much as apps do. These are the things that grow one:
- Kinds of users. A customer app with one kind of user is simpler than a marketplace with buyers, sellers, delivery staff and admins.
- Integrations. Each payment provider, SMS gateway or outside service adds setup, testing, and handling for when it’s down.
- The admin side. Dashboards, reports and approval steps can be as much work as the customer app.
- Live features. Chat, live tracking and instant updates take more care than screens that load when you open them.
- Rules about data. Who can see what, how long things are kept, and what is deleted when someone leaves.
- Expected load. An internal tool for twenty people and a consumer app with a launch campaign are built differently.
Questions to answer before you brief a team#
Rough answers are fine. Together they tell a team most of what they need to size the backend.
If you’d like a second pair of eyes on your answers, tell us about the project.
Questions people ask#
Is a backend the same as a database?
No. The database is one part of a backend. The backend also includes the server code that decides who can read or change the data, and the API the app uses to ask for it.
Can I add a backend later?
Yes, but it’s easier if the app was built expecting one. If data lives only on people’s phones, moving it to a new server takes an app update, and some people will update late.
Does a website need a backend?
A simple website usually doesn’t. Its pages can be plain files. A site with sign-in, bookings, a shop, or a form that saves or sends messages needs a small one, even if it’s a ready-made service.
What is an API, in plain terms?
A list of requests the backend accepts, and the answers it gives back. The app asks for today’s orders for a shop, the API checks the request is allowed, and replies with the orders.