# Surcharge Tax

With this, Tax can be applied to surcharge fees based on the tax class you select.

* **Calculate Tax On Surcharge:** Select YES to enable tax on surcharge fees.
* **Tax Class:** Select the tax class to apply the surcharge.
* **Surcharge:** Select the option to display the surcharge in the front end. Excluding Tax, Including Tax, or Including and Excluding Tax.

<figure><img src="/files/obYMlaCR16mqrAdZm74Z" alt=""><figcaption></figcaption></figure>

Frontend Display of Surcharge Tax applied on order in the cart page.

<figure><img src="/files/ofpDh9BqnlbgSDNtpL9u" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.magecomp.com/magento-2-surcharge-extension/surcharge-tax.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
