> For the complete documentation index, see [llms.txt](https://support.ellipal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.ellipal.com/docs/troubleshooting-and-support/why-did-my-transaction-fail-with-an-out-of-gas-error.md).

# Why Did My Transaction Fail with an "Out of Gas" Error?

<img src="https://wdcdn.qpic.cn/MTY4ODg1ODE1ODUzMDQ5MQ_231140_nylkFroHxF558Xkt_1728548916?w=1231&#x26;h=610&#x26;type=image/png" alt="" height="299.665" width="604.733">

An out of gas error means the gas limit assigned to your transaction ran out before the Ethereum Virtual Machine (EVM) could finish processing it. This happens more often with token transfers like ERC20 or BEP20 than with a plain ETH transfer, since token transfers run through a smart contract and require more computational steps.

{% hint style="info" %}
The EVM is the core computation engine for Ethereum and other Ethereum-compatible blockchains. It processes smart contracts and transactions.
{% endhint %}

***

### Fix an out of gas error

1. Increase the gas limit for your transaction. The default limit for token transactions in the ELLIPAL App is 150000. If you see an out of gas error, try setting it to 200000 or higher.
2. Try the transaction again with the higher gas limit.

{% hint style="warning" %}
Gas already spent on a failed transaction is not refunded, even if the transaction runs out of gas partway through. This is a characteristic of the Ethereum blockchain itself, not specific to any wallet.
{% endhint %}

***

### FAQ

<details>

<summary><strong>Why do ERC20 and BEP20 transfers need more gas than a plain ETH transfer?</strong></summary>

ERC20 and BEP20 tokens run through smart contract code every time you send them, which requires more computational steps than a simple ETH transfer. This is why token transfers typically need a higher gas limit.

</details>

<details>

<summary><strong>Is setting a higher gas limit riskier or more expensive?</strong></summary>

No. The gas limit is only the maximum amount you're willing to allow, not the amount you'll actually be charged. Only the gas actually used is spent, so setting it higher just gives the transaction more room to complete.

</details>
