> For the complete documentation index, see [llms.txt](https://guide.t0ns.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.t0ns.com/basics-info/what-is-gas-on-ton-and-when-you-pay-it-in-t0ns-mini-app.md).

# What is gas on TON, and when you pay it in t0ns mini app

{% stepper %}
{% step %}

### **What is Gas?**

Gas is a **small network fee** you pay to execute actions on the blockchain. Every on-chain action needs gas to be processed and confirmed by the network.

On TON, gas is always paid in **TON coins**.
{% endstep %}

{% step %}

### **Why Do You Need TON for Gas?**

Even if you swap other tokens (like USDT), you still need a small amount of **TON** in your wallet. Without TON → the transaction cannot be executed.
{% endstep %}

{% step %}

### **When Do You Pay Gas in t0ns?**

You pay gas whenever you perform an on-chain action:

* Swapping tokens
* Adding liquidity
* Removing liquidity
* Collecting earned fees
* Creating a new pool

Each of these actions is a blockchain transaction.&#x20;

<figure><img src="https://2544375910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYOWtH5EV3eQZRdceUUS%2Fuploads%2FiXDtNHlT4qFfscie151R%2F14_1.png?alt=media&amp;token=8eecd0d9-35d3-4e3e-853d-2426fe9f1319" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### **Why Does t0ns Reserve More Gas?**

You may notice that the app shows a **slightly higher gas amount** before confirming.

This is because TON transactions can involve a **chain of internal messages** (especially for swaps and liquidity actions).

t0ns reserves a bit more gas to ensure the transaction completes successfully.
{% endstep %}

{% step %}

### **What Happens to Unused Gas?**

If not all the reserved gas is used, the unused amount is automatically **returned to your wallet**. So you only pay for what is actually consumed.

<figure><img src="https://2544375910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYOWtH5EV3eQZRdceUUS%2Fuploads%2FOqVm1h9mDhZbJpIaes0y%2F14_2.png?alt=media&amp;token=72437148-0236-4d29-a294-1b052c5dd345" alt=""><figcaption></figcaption></figure>

{% endstep %}

{% step %}

### **Gas vs Final Fee**

* **Shown before confirmation:** estimated (with buffer)
* **Final cost:** usually lower

This is normal and part of how TON works.
{% endstep %}

{% step %}

### **Simple Summary**

* Gas = fee for using the network
* Paid in TON
* Required for every on-chain action
* t0ns adds a small buffer for safety
* Unused gas is refunded
  {% endstep %}
  {% endstepper %}

***

✅ **As long as you have a small TON balance — everything will work smoothly.**
