general

Calculates total cost including sales tax for a purchase. Given a unit price, tax rate percentage, and optional quantity, computes the subtotal (price times quantity), the tax amount rounded to two decimal places, and the final total. Useful for estimating purchase costs across US states and municipalities with different tax rates, comparing pre-tax and post-tax prices, and budgeting. Chain into salary_to_hourly to see how many work-hours a purchase represents.

post/api/sales_tax

Request

  • Base URL: https://calc.engineer
  • URL: https://calc.engineer/api/sales_tax
  • Auth: none declared

Request body

pricenumber required

Unit price of the item in dollars (or any currency). Must be positive.

tax_rate_pctnumber

Sales tax rate as a percentage (e.g. 8.875 for 8.875%). Defaults to 0 — enter your local rate.

quantitynumber

Number of items to purchase. Defaults to 1.

Response

Computed result for sales_tax

toolstring required
versionstring required
computed_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.