minus

Subtract a specified number from the input number to compute the difference.

Syntax

{{ number | minus: subtrahend }}

Example

{% assign price = 80 %}{{ price | minus: 15 }} dollars off

Output

65 dollars off

The minus filter performs arithmetic subtraction, deducting the provided subtrahend from the input number to calculate the net difference.

In programmatic SEO directories, minus computes instant discount savings, promotional rebates, or remaining reservation slots. For example: Save ${{ row.regular_fee | minus: row.promo_fee }} when you book online. Showing concrete dollar savings directly on local service pages significantly boosts lead conversion rates.

Try this syntax in the editor.