Calculate GP
calculate_gpRead-onlyIdempotent
UK gross profit (GP) calculator for food and drink. mode 'gp_from_price': give cost_ex_vat and selling_price_inc_vat to get GP % and GP per sale (VAT is removed first, as UK hospitality measures it). mode 'price_from_gp': give cost_ex_vat and target_gp_pct to get the menu price needed.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | gp_from_price or price_from_gp. | |
| cost_ex_vat | Yes | Cost of one item/portion, ex-VAT. | |
| vat_rate_pct | No | VAT rate. Default 20; use 0 for zero-rated items. | |
| target_gp_pct | No | Target GP %. Required for price_from_gp. | |
| selling_price_inc_vat | No | Menu price inc VAT. Required for gp_from_price. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| gp_pct | Yes | ||
| verdict | Yes | ||
| more_info | Yes | ||
| cost_ex_vat | Yes | ||
| gross_profit | Yes | ||
| vat_rate_pct | Yes | ||
| food_cost_pct | Yes | ||
| net_price_ex_vat | Yes | ||
| selling_price_inc_vat | Yes |