# Calculating tax

Source: https://developer.avalara.com/services-calculation-en/transaction_workflow/

# Calculating tax

Getting a tax calculation is the main reason why developers use _AvaTax Brazil._ It does not matter if you are just looking to obtain a tax rate for a purchase or sale budget, or if you are looking to effect a transaction and save it in our database. At the moment you call our calculation engine, we will return the transaction and the taxes involved in it.

In general, the answer is to call the tax when you want to calculate taxes naturally.

[Previous](/for-review-only/en/leila-paul/services-calculation-en/design_experience)

[Next](/for-review-only/en/leila-paul/services-calculation-en/transaction_workflow/erp)