Should you self-host n8n? What it really costs
Self-host n8n when data must stay inside your network or jurisdiction, when it must reach systems with no public endpoint, or when one high-volume workflow makes the hosted bill your largest cost. Don't self-host only to shrink a bill caused by a badly shaped workflow, and don't do it if no one in the business patches servers. The software can be free to run. The rest is upgrades, one encryption key, backups and someone on call.
By Saveez IrfanUpdated
The short version
- n8n Cloud bills per workflow execution, however many steps it has. As n8n's pricing page listed it in November 2026, Starter is from €20 a month billed annually for 2,500 executions. Pro is from €50 a month billed annually for at least 10,000, and Business from €667 a month billed annually for 40,000. The Community edition is free to self-host under n8n's Sustainable Use License. The full plan-by-plan breakdown is in our n8n pricing guide at /insights/n8n-pricing. This section is only about Cloud versus your own server.
- Before self-hosting to cut a bill, check the bill isn't a badly shaped workflow. Over-frequent schedules and one webhook call per record are the usual causes, and moving the workflow fixes neither.
- The stronger reasons to self-host are data residency, reaching systems with no public endpoint, and very large execution volume, roughly in that order.
- Self-hosting pays only when the hosted bill exceeds infrastructure plus the cost of upkeep time. Work it out with your own numbers before deciding.
- The encryption key is the single point of failure. Restore a database without it and every stored credential is unreadable.
- Pin the version, upgrade on a staging instance, back up before every upgrade, and set execution-data retention yourself.
- If nobody in the business patches a server today, self-hosting is the wrong answer whatever the arithmetic says.
Why does the self-hosting question come up?
Usually because an invoice has grown faster than the value of the work behind it. Before moving anything, check that the bill reflects real work. n8n's documentation says paid plans, cloud or self-hosted, carry an execution quota, and that only production executions count towards it. A Schedule Trigger counts each time it fires, a webhook counts each inbound request, and a polling trigger counts only when it finds new data.
That makes the usual causes of a runaway count structural, and they follow you to your own server, where they stop showing up as money and start showing up as load. Fix them first.
- 01A schedule firing every few minutes for data that changes twice a day. Move to a webhook, or widen the interval to match reality.
- 02One inbound request per record where the source system could send a batch. Each webhook request is an execution, so a batch endpoint and one run is cheaper than many.
- 03An iterator running over a whole table because writing the filter was harder than omitting it. Items inside one execution don't add to the count, but they add run time and memory, which is the load you inherit on your own server. Put the filter in the query instead of a downstream condition.
Cloud or self-hosted: what does n8n cost to run?
n8n charges per workflow execution, so one full run of a workflow counts once, whether it has three steps or thirty. That's the main difference from Zapier, which counts each successful action, and Make, which counts each module run. The prices below are as n8n's pricing page listed them in November 2026, in euros and billed annually, so monthly billing costs more. n8n states that its pricing page is the source of truth for what each plan includes, so check it before you decide.
| Plan | From | Executions a month | Where it runs, and who it is for |
|---|---|---|---|
| Community edition | Free | Not metered | Self-hosted under the Sustainable Use License. You pay for the servers and the upkeep |
| Starter | €20 a month | 2,500 | n8n Cloud |
| Pro | €50 a month | From 10,000 | n8n Cloud. The page's own comparison table shows 25,000, so check which figure applies to the tier you pick |
| Business | €667 a month | 40,000 | Aimed by n8n at companies that self-host and need SSO, LDAP and environments |
Per-execution billing is generous to long workflows and harsh on frequent ones. A workflow with twenty steps that runs 300 times a month is 300 executions. A five-minute schedule is 288 executions a day, about 8,640 in a 30-day month, which is more than Starter's allowance on its own, whether or not each run finds anything. Items processed inside one execution don't add to the count, so the lever is how often a workflow starts, whatever it does once it's running.
So which is cheaper, n8n Cloud or self-hosted? Self-hosting the Community edition removes the execution bill, and replaces it with hosting and someone's time, which the next section prices. Our view is that a business running a few thousand executions a month should start on Cloud, unless an hour of server upkeep a month costs it less than the plan does. There are exceptions. The reasons in the first section, data residency and systems with no public endpoint, don't depend on what Cloud costs. At high volume, the break-even formula below can also come out in favour of your own server. If you need SSO or environments while self-hosting, the plan to compare against is Business, and not the free edition.
What does self-hosting n8n actually cost?
Beyond the infrastructure, the cost is people's time: upgrades, credential rotation, restore tests and incident response. Price the infrastructure from your host's current quotes, and price the time from what an hour of the person doing it costs you. No figure is written here because yours will differ.
| Line | What it is | Scales with |
|---|---|---|
| Compute | One small machine for a light instance, more once workers arrive | Concurrent executions and the memory workflows use |
| Database | SQLite is n8n's default. n8n also supports Postgres, and doesn't recommend SQLite with queue mode | How much execution history you keep |
| Redis | Used by queue mode to carry the queue of pending executions, not needed before it | Nothing until you adopt queue mode |
| Backups | The database, plus the encryption key kept somewhere that isn't the database backup | Retention period |
| Domain, certificate, proxy, monitoring | Webhook triggers must be reachable by whatever calls them, and alerts need somewhere to go | Mostly fixed |
| Attention | Upgrades, credential rotation, restore tests, the incident | How many workflows you run and how critical they are. The largest line, and the one that rarely gets priced |
The free self-hosted edition is licensed under n8n's Sustainable Use License, a source-available 'fair-code' licence rather than a standard open-source one. In n8n's own words it permits use for your own internal business purposes or for non-commercial or personal use. Its FAQ says building automations for clients on your instance is allowed as long as the clients can't create or edit the workflows, and that hosting n8n as a service for clients to build their own workflows isn't. Some features aren't in the free Community edition, including single sign-on, environments and external secret stores, and n8n says they come with its Business and Enterprise plans. Custom roles are an Enterprise feature. n8n also states that its pricing page is the source of truth for what each plan includes, so check it and the licence before assuming self-hosted means free.
Break-even, with the working
Self-hosting pays only when the monthly saving is positive. Monthly saving = hosted bill − (hosting + maintenance hours × your hourly cost). Hosting is what your provider charges for the machine, database, backups and monitoring. Maintenance hours are the time you spend on upgrades, restore tests, credential rotation and incidents. Your hourly cost is what an hour of the person doing that work costs the business.
- 01Take the last few months of the hosted invoice and use the typical month, plus the highest, so a spike doesn't decide it.
- 02Get a current quote for the hosting you'd need, including backups and monitoring.
- 03Measure your own maintenance hours. If you already run one internal server, log the time it takes for a month. If you don't, treat the first quarter as a trial and track hours from day one.
- 04Multiply the hours by a realistic hourly cost, then subtract the total from the hosted bill. If the result is small or negative, or is wiped out by one failed upgrade, stay hosted.
How to self-host n8n: the short version
Getting n8n running on a server takes an afternoon. Running it as something the business can depend on is the list below, and each step has its own section further down. This is the order we set it up in.
- 01Run n8n's official Docker image on a server you control, with an exact version tag pinned instead of a floating latest tag.
- 02Use Postgres instead of the default SQLite for anything you depend on. n8n supports Postgres and doesn't recommend SQLite with queue mode, so starting there avoids a database move later.
- 03Set the encryption key yourself with N8N_ENCRYPTION_KEY, from your own secret store, and back it up somewhere other than the database backup.
- 04Put it behind a domain with a TLS certificate and a reverse proxy, because webhook triggers must be reachable by whatever calls them. Decide who gets an account on the instance, since anyone who builds workflows can use the credentials they can reach.
- 05Set execution-data retention explicitly, so the database doesn't grow until it runs out of storage.
- 06Back up the database, the n8n user folder with the key, and your deployment configuration, then restore them onto a fresh instance once and confirm a workflow runs.
- 07Wire up an uptime check on /healthz, an error workflow, a heartbeat for scheduled workflows, and disk and memory alerts, all pointed somewhere a member of the team checks.
- 08Upgrade on a staging instance first, with a backup taken before every upgrade, on a regular cadence.
- 09Add queue mode, with Redis and workers sharing the same key, only when the editor slows or executions queue. Not on day one.
Steps one to three are the easy part. The rest is the ongoing cost that the break-even formula below prices. If no one will own steps six to eight every month, n8n Cloud is the better answer, whatever the pricing table says.
How should you manage n8n upgrades?
Pin an exact version, test each upgrade on a staging instance, and take a database backup first. n8n recommends keeping a self-hosted instance up to date for the latest features and fixes, which makes upgrading part of the running cost. The gap to the current version also gets harder to close the longer it's left.
- Pin an exact version tag. Running a floating latest tag means an unplanned upgrade every time the container restarts, which amounts to untested software deployed on a schedule you don't control.
- Take a full backup before every upgrade, as n8n's own documentation recommends. Treat the backup as the way back if an upgrade goes wrong, and test that you can restore it.
- Keep a staging instance with copies of the workflows and non-production credentials. It's the difference between finding a breaking node change on a quiet afternoon and finding it in your busiest hour.
- Read release notes for breaking changes first and features second, and upgrade on a regular cadence. The team that hasn't upgraded in a year is the team that can't.
What is the n8n encryption key, and why must you not lose it?
It's the key n8n uses to encrypt credentials before saving them to the database. n8n's documentation says that without the key, a restored database can't be decrypted, so the workflows can come back while every connection is unreadable. By default n8n creates a random key on first launch and saves it in its user folder (~/.n8n by default). You can supply your own with the N8N_ENCRYPTION_KEY environment variable instead. It catches people who did everything else right.
What to do about it
- Set the key explicitly, from your own secret store, instead of letting the instance generate one you've never seen. Back it up somewhere that isn't the database backup. If you later run queue mode, every worker needs the same key as the main instance.
- Treat who has an account on the instance as a security decision. Anyone who can build workflows can make them use the credentials they can reach, so grant access deliberately.
- Never paste a token into an HTTP node header. It then lives in the workflow body, travels with every export, appears in every screenshot, and can't be rotated without editing each place it was pasted. We built a scan-and-extract action into Blueprint Runner because exported Make blueprints carried hard-coded bearer tokens, which made them unsafe to share or commit.
- Keep scheduled work's secrets where the scheduler runs. In FlowForge, our own workflow runner, shared secrets moved from browser storage to server-side storage because a scheduler has no browser to read them from.
How should you back up a self-hosted n8n instance?
Back up three things together: the database, the n8n user folder that holds the encryption key, and your deployment configuration, including any environment variables and external storage you use. Then restore them onto a fresh instance once and confirm a workflow runs. n8n's documentation is explicit that without the key, a restored database can't be decrypted, so any one of the three missing makes the others much less useful.
SQLite is n8n's default database, and n8n's documentation advises stopping n8n before copying a SQLite database file, or using a tool that takes a consistent snapshot, because copying it mid-write can give an inconsistent backup. For anything you depend on, use Postgres, which n8n supports, and back it up with its own tooling. Export workflows as JSON into a repository as well. That isn't real version control, but it's far better than no history.
When do you need n8n queue mode?
When executions start blocking the editor, or webhook bursts arrive faster than one process can handle them. By default (regular mode) a single n8n instance runs its own executions, and n8n's documentation warns that too many concurrent production executions can cause performance degradation and unresponsiveness. The symptom of outgrowing it is a sluggish editor and executions queueing for no obvious reason.
In queue mode the main instance handles triggers and webhook calls and passes each execution to Redis, which holds the queue of pending executions. Workers pick executions up, run them and write the results to the database, and you can add or remove workers as load changes. n8n doesn't recommend queue mode with SQLite, so plan on Postgres. Every worker must share the main instance's encryption key. It's also a real change in footprint: another service to run, another thing that can be down, and a new failure mode where the queue is healthy and the workers aren't. Plan the move for a calm week instead of doing it during an incident.
Who gets alerted when a self-hosted n8n instance stops?
If the answer is 'nobody until a customer asks', either the automation isn't critical or self-hosting has just added an on-call duty to somebody's job. When the instance stops at eleven on a Friday night, who finds out, how, and how quickly? That test has nothing to do with money, and it's what running it yourself actually costs.
What to wire up
- An uptime check that alerts somewhere the team looks. n8n exposes a /healthz endpoint that returns 200 when the instance is reachable, and /healthz/readiness, which also confirms the database is connected and migrated. Add an error workflow that catches failed executions with enough context to diagnose without opening the editor.
- A heartbeat on anything scheduled. A workflow that should run hourly and hasn't run in three hours has failed even though nothing errored, and it will never appear in an error list.
- Disk and memory alerts. A full disk and a workflow that loaded a large file into memory are two ways an instance can die.
- A runbook: where it runs, how to restart it, where the backups and the key are, and who to call. If one person holds all of that in their head, you have a different problem.
Managed n8n hosting or your own server?
Managed hosting means someone else runs the instance. n8n Cloud is n8n's own, billed per execution on the plans above. Other providers also offer to host n8n for you. We haven't reviewed them, and this article doesn't compare them. Whoever runs it, the jobs in the sections above still exist. Managed hosting hands them to the host, so ask how each one is done before you sign.
- Upgrades. Who decides when the version changes, and is each upgrade tested on a copy first?
- The encryption key. Who holds it, and can you have it if you leave? A database without its key brings the workflows back with every credential unreadable.
- Backups. What's backed up, how long is it kept, and when was a restore last tested?
- Access. Who at the host can reach the instance, and who on your side gets an account?
- Alerts. Who finds out when the instance stops, and how quickly?
For an agency, the licence matters as much as the host. n8n's FAQ allows building automations for clients on your own instance, as long as the clients can't create or edit the workflows. It doesn't allow hosting n8n as a service for clients to build their own. Check the current licence before you price a retainer around a shared instance.
Should you self-host n8n? A decision table
| If this is true | Then |
|---|---|
| The bill is high because a schedule fires too often or each record triggers its own request | Fix the workflow. Moving changes where the waste shows up, not whether it exists |
| Volume is large and the work behind it is real | Run the break-even formula with your own numbers. Check what a self-hosted paid plan includes too, as n8n's paid plans carry an execution quota |
| Data may not leave your network or your jurisdiction | Self-host. This is the strongest reason of the lot |
| Nobody in the business patches a server today | Stay hosted. The operational risk outweighs the saving |
| You need SSO, environments, external secret stores or custom roles | These aren't in the free Community edition. Check n8n's current pricing page for the plan that covers them before assuming self-hosted means free |
| One workflow is hot and the others are low volume | Move the one. Leave the rest where they are |
That last row is the option most people miss. Self-hosting isn't all-or-nothing, and the sensible shape is often to leave the long tail of low-volume automations on the hosted platform the team already understands, and take only the expensive workflow onto infrastructure you control. The same logic is why we built Blueprint Runner, an engine that executes Make blueprint JSON natively, so that per-operation pricing stops being a reason to rewrite logic that already works.
Whichever way you go, treat the instance as a system you run rather than an app you installed. Otherwise it becomes a container on a forgotten machine holding credentials no one can rotate, a worse position than the invoice you were escaping.
FAQs
At a few thousand executions a month, n8n Cloud is usually cheaper, unless an hour of server upkeep a month costs you less than the plan does. As n8n's pricing page listed it in November 2026, billed annually, Cloud Starter is from €20 a month for 2,500 workflow executions. Pro is from €50 a month for at least 10,000, and Business from €667 a month for 40,000. n8n aims Business at companies that self-host and need SSO, LDAP and environments. The Community edition is free to self-host, and you pay for servers and upkeep instead. n8n counts each full workflow execution once, however many steps it has. Every plan, and how to estimate your executions, is set out in our n8n pricing guide at /insights/n8n-pricing.
Run n8n's official Docker image with a pinned version, on Postgres instead of SQLite, with the encryption key set by you and backed up separately. Put it behind a domain with TLS so webhooks can reach it, set execution-data retention, back up and test a restore, add uptime and error alerts, and upgrade on a staging instance first. Add queue mode with Redis only when one instance can't keep up.
It can be, because workflow data, execution logs and credentials then live on servers you control, inside the network and jurisdiction you choose. That only helps if those servers are run well: patched, backed up, with the encryption key stored safely and execution data pruned. A neglected self-hosted instance is less private than n8n Cloud. Self-hosting isn't compliance on its own either, because the data still flows to every app your workflows call.
Yes, if it's run like a production system. Pin the version and upgrade on a staging instance, with a backup taken first. Use Postgres in place of SQLite, and set the encryption key yourself and back it up away from the database. Restore a backup onto a fresh instance at least once. Add uptime and error alerts that reach a member of the team, and set execution-data retention so the database can't fill the disk. Move to queue mode only when one instance can't keep up. Skip those steps and the instance is the production risk, whatever the workflows do.
Not by itself. Self-hosting gives you control over where the data sits and who can reach the instance, and security depends on how you use that control. A patched instance behind TLS, with accounts granted deliberately, a protected encryption key and pruned execution data, can be tighter than a hosted one. An instance that's never upgraded, on a machine no one watches, is less secure than n8n Cloud. Start with access, because anyone who can build workflows can use the credentials they can reach.
Use managed hosting, n8n Cloud or another host, unless you have a reason that would hold if the platform were free. Data residency, systems with no public endpoint, and volume big enough that the break-even formula favours your own server are those reasons. Managed hosting doesn't remove the work on upgrades, the encryption key, backups, access and alerts. It moves it to the host, so ask how each is handled. Plan prices are in our n8n pricing guide at /insights/n8n-pricing.
Partly. On the free Community edition, n8n's FAQ allows building automations for clients on your own instance, as long as the clients can't create or edit the workflows. Hosting n8n as a service so clients build their own workflows isn't allowed under the Sustainable Use License. Check n8n's current licence and FAQ before you sell either, and ask n8n if your model falls between the two.
The Community edition is free to self-host under n8n's Sustainable Use License, a source-available 'fair-code' licence rather than a standard open-source one. It permits internal business use, and n8n's FAQ allows building automations for clients on your instance if they can't create or edit workflows. Your infrastructure and your time aren't free. Features such as single sign-on, environments and external secret stores aren't in the Community edition, so check n8n's current licence and pricing pages before assuming it's cheaper.
No. Run the default single-instance setup until the symptoms appear (a sluggish editor, executions queueing), then move. Queue mode needs Redis alongside your database, and n8n doesn't recommend it with SQLite. If you expect to get there, starting on Postgres avoids a database move later.
No. It gives you control over where data sits and who can reach it, which is one input to a compliance position, and only one. You still owe the same answers about what you process, on what basis and for how long, and you have taken on securing and backing up the instance.
Yes, and it's often the sensible shape. Leave the low-volume automations on the hosted platform and move only the high-volume or data-sensitive workflow to your own instance, so you carry the operational burden for as little as possible.
Sources
Statements about what a platform does are checked against the vendor’s own documentation as of 2026-11-23. Vendors change things, so check the current page before you rely on a limit or a price.
- Sustainable use license · n8n
- License FAQ · n8n
- Set a custom encryption key · n8n
- Configuring queue mode · n8n
- Manage execution data · n8n
- Back up and restore · n8n
- n8n Plans and Pricing · n8n
- n8n execution advantage: our pricing model · n8n
Drafted with AI assistance (Claude). Published under Saveez Irfan’s name, who is accountable for it. Editorial policy







