- Home
- Resources
- Integrations
- Calculator
n8n Calculator nodeConfigure Calculator in n8n.
An agent that writes a clean report can still get a multiplication wrong. The Calculator node hands it a real arithmetic engine instead of a guess. The n8n Calculator node has no panel to fill in and no account to link: it clips onto the Tool port of an agent and starts answering sums.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n Calculator node actually do?
The Calculator node is a tool sub-node for n8n's AI nodes. A sub-node is a small node that never runs by itself: it clips onto a port of a root node, here the Tool port of an agent, and waits to be called. When the agent hits a number it cannot work out reliably, it sends the expression to the Calculator, gets the result back, and keeps reasoning with a figure it did not invent.
Language models are good at text and shaky at arithmetic. They produce a plausible-looking total rather than a computed one, and the error only shows up later, in a report someone forwards to a client. Handing the sum to a tool removes the guesswork: the agent still decides when to compute, the Calculator decides what the answer is.
Three shapes come back again and again. A marketing agent that pulls raw spend and conversions from several ad platforms, then needs a cost per lead before it writes a paragraph about it. A financial reporting agent that reads rows out of a database and has to total a month, compare it against the previous one, and phrase the difference. A data chatbot that answers questions in a chat window and gets asked for an average or a share of total. In all three, the reasoning belongs to the AI Agent and the number belongs here.
Adding it is close to free in effort. There is no panel to configure, so the whole decision is whether the agent should be allowed to do math at all. If the answer is yes, drag the node in, run one connection to the Tool port, and describe in the agent's prompt what it should compute. The same agent can keep its other tools next to it, including an AI Agent Tool when a second agent is exposed as a tool of the first.
There is a case for skipping it. If the calculation is fixed and known when you build the workflow, a monthly ratio that never changes shape, compute it in the workflow before the agent runs and pass the finished figure in. A tool call costs a round trip through the model, and a model that has the number already has nothing to decide. Calculator earns its place when the math depends on what the agent finds, not on what you planned.
The limits are worth knowing upfront. The node handles arithmetic, not data access: it cannot read a spreadsheet or query an API, so pair it with the tools that do. It also does nothing to the model's own judgment about which numbers matter, and that judgment comes from the model you branch onto the agent, whether that is OpenAI, Google Gemini or another provider. If you are still weighing platforms before building any of this, the n8n review covers the ground.
Where do you plug the Calculator node?
n8n's AI nodes follow a root node plus sub-nodes model: the root node receives the workflow items through its main input, and sub-nodes clip onto its ports, one type of sub-node per port. Calculator is a sub-node, so it has no main input and never runs on its own.
Output (what it plugs into)
- Tool
ai_tool
01Tool
The node sends its output to the Tool port of a root node, the socket where an agent collects the tools it may call while it reasons. Once the wire is drawn, the agent decides by itself when a figure needs computing.
Key parameters
- Required: the connection itself. With nothing on the other end, the node has no main input and nothing ever calls it.
- AI Agent: the usual host, the root node that works through a task step by step and reaches for tools between steps.
- AI Agent Tool: an agent exposed as a tool of another agent, so arithmetic stays reachable one level down.
- MCP Server Trigger: publishes a workflow's tools to outside clients, Calculator included.
Calculator
The Calculator node has 0 parameters. For each one: the node as you configure it in n8n, what the parameter changes, and our field notes.
Parameters index
Need help automating Calculator with n8n?
A person reads every message.
Questions people ask about the Calculator node
01Is the Calculator node included in n8n?
02What do you need to set up before it works?
03What are the limits of the n8n Calculator node?
04What do you have to connect at minimum?
05n8n or Make for an agent that needs math?
Get our weekly integration tips.
No spam. Unsubscribe anytime.


