> For the complete documentation index, see [llms.txt](https://web3-encyclopedia.gitbook.io/web3-encyclopedia/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://web3-encyclopedia.gitbook.io/web3-encyclopedia/decentralized-finance-defi/gas-fees.md).

# Gas Fees

### **What are gas fees in DeFi?**

If you are familiar with the fast-growing world of **decentralized finance** (DeFi), then it’s likely you know a thing or two about gas fees. The price of doing business in DeFi, gas fees are the charges levied by developers to process transactions on a blockchain –– where the vast majority of DeFi transactions happen.&#x20;

On Ethereum, gas fees are typically charged in gwei, a smaller fraction of Ether (ETH), Ethereum’s native **token**. This is done in order to break down the fees into more sensible units. For example, rather than charge 0.00000002 ETH for a transaction, which is a little tough on the eye, you might be charged a gas ‘price’ of 20 gwei.&#x20;

On top of this, a user will pay for gas ‘used’, setting a gas ‘limit’. The **Ethereum yellow paper** stipulates that every transaction requires at least 21,000 gas, and as such, most user interfaces will set 21,000 as the default limit. The interplay of these two things will determine the price, and the higher you set them, the faster your transaction will be processed.

&#x20;

**How do high gas fees on the Ethereum Network affect DeFi and the DEX Ecosystem?**

*1.*       Ethereum gas fees can sway consumer demand, as higher prices generally lead to a lower number of transactions over time.

*2.*    Less demand means lower users on the network, which subsequently lowers gas fees, creating an equalizing effect.

*3.*   Ethereum whales tend to dominate the network during periods of high gas fees, leaving smaller retailer users sidelined.

&#x20;

<details>

<summary>Sources</summary>

[ <br>](<https://cointelegraph.com/news/total-value-locked-in-defi-marks-new-all-time-high-close-to-40b&#xD;&#xA;https://www.cnbctv18.com/cryptocurrency/explained--total-value-locked-what-is-it-and-why-does-it-matter-13743222.htm&#xD;&#xA;>)[](<https://aivia.io/blog/en/what-is-yield-farming/&#xD;&#xA;https://www.businessinsider.com/personal-finance/yield-farming&#xD;&#xA;>)[ <br>](<https://www.youtube.com/watch?v=8XJ1MSTEuU0&#xD;&#xA;https://www.coindesk.com/learn/2021/07/13/defi-lending-3-major-risks-to-know/&#xD;&#xA;>)

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://web3-encyclopedia.gitbook.io/web3-encyclopedia/decentralized-finance-defi/gas-fees.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
