Formula Components

Formulas and Databases

Reference

Formula Examples

subtract

Learn how to use the subtract (-) operator in Notion formulas.

1

number - number

2

subtract(number, number)

When used in mathematical equations, the

`-`

operator follows the standard mathematical order of operations (PEMDAS). For more detail, see Operator Precedence.You can also use the function version,

`subtract()`

.1

12 - 5 // Output: 7

2

β

3

subtract(5,12) // Output: -7

If you need to work with more than two operands, the shorthand

`-`

is by far the easiest way to do it.1

40 - 10 - 5 // Output: 25

2

β

3

subtract(subtract(40,10),5) // Output: 25

The example database below tracks a weekend of treasure-spending by three pirates. Each starts with a **Start Budget** of $3,000, and the **Leftover** formula shows how much each has left after the weekend.

subtract

College Info Geek on Notion

Note how Iβve set the **number format** of each column to **U.S. Dollar.** Iβve also set each columnβs **Calculate** value to **Sum,** allowing me to see the total of all rows put together.

1

prop("Start Budget") - prop("Saturday") - prop("Sunday")

Instead of using hard-coded numbers, Iβve called in each property using the

`prop()`

function.β My name is Thomas Frank, and I'm a Notion-certified writer, YouTuber, and template creator. I've been using Notion since 2018 to organize my personal life and to run my business and YouTube channel. In addition to this formula reference, I've created a free Notion course for beginners and several productivity-focused Notion templates. If you'd like to connect, follow me on Twitter.

Last modified 20d ago

Copy link

On this page

Example Formulas

Working with 3 or More Operands

Example Database

View and Duplicate Database

"Leftover" Property Formula