Formula fields let you create dynamic calculations and text transformations without manual data entry. Whether you’re calculating totals, formatting dates, or combining information from multiple fields, formulas make your database work smarter.
Learn how to use Baserow’s Formula fields to perform calculations, manipulate text, and automate data processes across your tables.
Formula fields automatically calculate values based on other fields in your table. They update in real-time when source data changes, making them ideal for totals, averages, date calculations, text formatting, and conditional logic.
The Formula field is available for all Baserow plan types and works seamlessly with all field types. You can reference fields within the same table or from linked tables.
Before creating formulas, it’s helpful to understand these three concepts:
Formula: A complete instruction set that performs calculations or manipulates data. Formulas combine functions, operators, and field references to produce results.
Example: field('Current Quantity') * field('Cost') calculates total price by multiplying two fields.
Function: A predefined operation that takes inputs and produces outputs. Baserow includes mathematical, logical, text, and date/time functions.
Example: length(field('Product Name')) returns the character count of a text field.
Expression: A combination of values, operators, and functions that evaluates to a single result. Expressions are the building blocks of formulas.
Example: field('Current Quantity') * field('Cost') is an expression using field references and the multiplication operator.
+ to add a new field.
+, -, *, /=, <=, >=, <, >AND, OR, NOTUse field('field_name') to reference any field in your table. Field names are case-sensitive and must match exactly.
No. Formula fields are calculated automatically for the entire column. Each cell displays the result of applying the formula to that row’s data. If you need to edit specific values, convert the Formula field to a regular field type first. This will preserve the calculated values as static data.
The Formula field will show an error because the reference no longer exists. To fix this, you can:
Yes. Use Link-to-table fields to connect tables, then reference linked fields using Lookup fields in your formulas. This lets you pull data from related records into your calculations.
Yes. Formula fields recalculate instantly when any referenced field values change. This makes them ideal for dashboards, reports, and tracking metrics that depend on current data.
A Formula field is a column type that contains formulas. A function is a specific operation you use inside formulas (like SUM() or IF()). Think of functions as tools and formulas as the complete instructions that use those tools.
Check the formula reference. Review the complete formula documentation for all available functions and syntax examples.
Still need help? If you’re looking for something else, please feel free to make recommendations or ask us questions; we’re ready to assist you.