# Subtract

Subtract a value or another variable to your variable. Pass an integer or the name of a second variable as the parameter. Also supports `-` as shorthand.

```yaml
capacity: 2500
reservations: 1900
```

::tabs

::tab antlers
```antlers
{{ capacity | subtract(1900) }}
{{ capacity | subtract($reservations) }}
{{ capacity | -($reservations) }}
```
::tab blade
```blade
{{ Statamic::modify($capacity)->subtract(1900) }}
{{ Statamic::modify($capacity)->subtract($reservations) }}
```
::

```html
600
600
600
```
