{
  "$schema": "https://degreesofsatoshi.com/encyclopedia/schemas/article-v1.json",
  "schemaVersion": "1.0.0",
  "id": "dex-swap-fee-breakdown",
  "canonical": "https://degreesofsatoshi.com/encyclopedia/dex-swap-fee-breakdown/",
  "collection": "defi",
  "title": "DEX swap costs: separating pool fees, gas and interface charges",
  "description": "Separate the costs inside a DEX quote from the network fee and any service charge, without counting the same pool fee twice.",
  "aliases": [
    "why does a DEX swap cost so much",
    "DEX trading fee versus gas fee"
  ],
  "dates": {
    "published": "2026-10-02",
    "modified": "2026-10-02",
    "verified": "2026-10-02T19:18:00.092Z",
    "dataAsOf": "2026-10-02"
  },
  "authorship": {
    "publisher": "Degrees of Satoshi editorial project",
    "process": "AI-assisted research and drafting with a separate automated source-verification pass; no external expert or named human review is implied."
  },
  "quickAnswer": {
    "text": "A DEX swap can involve a pool trading fee and network execution cost. Aave’s documented swap interface also shows that some integrations charge a separate service fee. Price impact is another source of a worse exchange rate, but it is not the same as a named fee. Compare the final amount received and separately paid costs; some fees are already included in the quote.",
    "claimId": "dex-swap-fee-breakdown-quick-answer",
    "sourceIds": [
      "x425-defi-uni-fees",
      "x425-defi-eth-gas",
      "x425-defi-uni-swaps",
      "x425-defi-aave-swaps"
    ]
  },
  "keyFacts": [
    {
      "label": "Pool fee",
      "value": "The fee allocation depends on the pool and protocol version.",
      "sourceIds": [
        "x425-defi-uni-fees"
      ],
      "id": "pool-fee",
      "claimId": "dex-swap-fee-breakdown-fact-pool-fee"
    },
    {
      "label": "Network fee",
      "value": "Executing a transaction consumes gas independently of the pool fee.",
      "sourceIds": [
        "x425-defi-eth-gas"
      ],
      "id": "network-fee",
      "claimId": "dex-swap-fee-breakdown-fact-network-fee"
    },
    {
      "label": "Protocol share",
      "value": "A protocol fee may be taken from the trading fee rather than added as a separate identical charge.",
      "sourceIds": [
        "x425-defi-uni-fees"
      ],
      "id": "protocol-share",
      "claimId": "dex-swap-fee-breakdown-fact-protocol-share"
    }
  ],
  "prerequisites": [
    "slippage-and-price-impact"
  ],
  "sections": [
    {
      "id": "receipt",
      "heading": "Reconcile the quote with the receipt",
      "sourceIds": [
        "x425-defi-uni-fees",
        "x425-defi-eth-gas"
      ],
      "paragraphs": [
        "Suppose an interface quotes 997 units received from a 1,000-unit reference value after pool costs and price impact. If network execution separately costs a hypothetical 2 units in the same valuation currency, the net outcome is 995. Subtracting the embedded 3 again would double-count it.",
        "Use a common valuation time when converting native gas into dollars. A wallet’s maximum gas budget is not necessarily the amount paid."
      ]
    },
    {
      "id": "allocation",
      "heading": "Separate the charge from its recipient",
      "sourceIds": [
        "x425-defi-uni-fees",
        "x425-defi-aave-swaps"
      ],
      "paragraphs": [
        "The trader’s total pool fee and the portion ultimately credited to LPs are different numbers. The retrieved Uniswap documentation describes protocol shares and version-specific rules. An LP revenue figure cannot be substituted for the fee a trader paid.",
        "Aave’s swap-feature documentation gives an example of interface fees that vary by operation and pair. Check the applicable quote and policy; this article does not assume a permanent fee schedule."
      ]
    },
    {
      "id": "failure",
      "heading": "A failed trade can still have a cost",
      "sourceIds": [
        "x425-defi-eth-gas",
        "x425-defi-uni-swaps",
        "x425-defi-uni-x"
      ],
      "paragraphs": [
        "If an on-chain transaction is included but reverts, gas used in execution can still be charged even though the swap does not settle. A quote that never becomes an included transaction is a different event. Signed-order systems can arrange for a filler to pay execution gas, but someone still bears that cost economically."
      ]
    }
  ],
  "faq": [
    {
      "question": "Is a zero interface fee the same as a free swap?",
      "answer": "No. Pool fees, execution costs and price impact are separate. Read the final trade amounts and identify which party pays any gas.",
      "sourceIds": [
        "x425-defi-uni-fees",
        "x425-defi-eth-gas"
      ]
    }
  ],
  "claims": [
    {
      "id": "dex-swap-fee-breakdown-quick-answer",
      "articleSlug": "dex-swap-fee-breakdown",
      "statement": "A DEX swap can involve a pool trading fee and network execution cost. Aave’s documented swap interface also shows that some integrations charge a separate service fee. Price impact is another source of a worse exchange rate, but it is not the same as a named fee. Compare the final amount received and separately paid costs; some fees are already included in the quote.",
      "sourceIds": [
        "source-37357b0a11d2e087",
        "source-5cadd0da692ffaa8",
        "source-30ee786187b1a90d",
        "source-f84decea4c02489e"
      ],
      "sourceLocators": [
        {
          "sourceId": "source-37357b0a11d2e087",
          "locator": "Swap fees; Pool fees tiers; Protocol fees"
        },
        {
          "sourceId": "source-5cadd0da692ffaa8",
          "locator": "Gas; transaction fees; failed transactions"
        },
        {
          "sourceId": "source-30ee786187b1a90d",
          "locator": "exactInputSingle; exactOutputSingle; deadline; amountOutMinimum; amountInMaximum"
        },
        {
          "sourceId": "source-f84decea4c02489e",
          "locator": "Repay with collateral; Collateral Swap; Debt Swap"
        }
      ],
      "scope": {
        "collection": "defi",
        "dataAsOf": "2026-10-02",
        "blockHeight": null
      },
      "qualification": "",
      "evidenceStatus": "documented",
      "verification": {
        "status": "verified",
        "method": "independent automated source review",
        "checkedAt": "2026-10-02T19:18:00.092Z",
        "reviewer": "Independent automated verification — Codex root, separate from the DeFi drafting agent",
        "notes": [
          "Checked embedded pool fees, separate network cost and filler model. 997 − 2 = 995; no double subtraction. Requested primary evidence for interface fees and UniswapX citation."
        ]
      }
    },
    {
      "id": "dex-swap-fee-breakdown-fact-pool-fee",
      "articleSlug": "dex-swap-fee-breakdown",
      "statement": "Pool fee: The fee allocation depends on the pool and protocol version.",
      "sourceIds": [
        "source-37357b0a11d2e087"
      ],
      "sourceLocators": [
        {
          "sourceId": "source-37357b0a11d2e087",
          "locator": "Swap fees; Pool fees tiers; Protocol fees"
        }
      ],
      "scope": {
        "collection": "defi",
        "dataAsOf": "2026-10-02",
        "blockHeight": null
      },
      "qualification": "",
      "evidenceStatus": "documented",
      "verification": {
        "status": "verified",
        "method": "independent automated source review",
        "checkedAt": "2026-10-02T19:18:00.092Z",
        "reviewer": "Independent automated verification — Codex root, separate from the DeFi drafting agent",
        "notes": [
          "Checked embedded pool fees, separate network cost and filler model. 997 − 2 = 995; no double subtraction. Requested primary evidence for interface fees and UniswapX citation."
        ]
      }
    },
    {
      "id": "dex-swap-fee-breakdown-fact-network-fee",
      "articleSlug": "dex-swap-fee-breakdown",
      "statement": "Network fee: Executing a transaction consumes gas independently of the pool fee.",
      "sourceIds": [
        "source-5cadd0da692ffaa8"
      ],
      "sourceLocators": [
        {
          "sourceId": "source-5cadd0da692ffaa8",
          "locator": "Gas; transaction fees; failed transactions"
        }
      ],
      "scope": {
        "collection": "defi",
        "dataAsOf": "2026-10-02",
        "blockHeight": null
      },
      "qualification": "",
      "evidenceStatus": "documented",
      "verification": {
        "status": "verified",
        "method": "independent automated source review",
        "checkedAt": "2026-10-02T19:18:00.092Z",
        "reviewer": "Independent automated verification — Codex root, separate from the DeFi drafting agent",
        "notes": [
          "Checked embedded pool fees, separate network cost and filler model. 997 − 2 = 995; no double subtraction. Requested primary evidence for interface fees and UniswapX citation."
        ]
      }
    },
    {
      "id": "dex-swap-fee-breakdown-fact-protocol-share",
      "articleSlug": "dex-swap-fee-breakdown",
      "statement": "Protocol share: A protocol fee may be taken from the trading fee rather than added as a separate identical charge.",
      "sourceIds": [
        "source-37357b0a11d2e087"
      ],
      "sourceLocators": [
        {
          "sourceId": "source-37357b0a11d2e087",
          "locator": "Swap fees; Pool fees tiers; Protocol fees"
        }
      ],
      "scope": {
        "collection": "defi",
        "dataAsOf": "2026-10-02",
        "blockHeight": null
      },
      "qualification": "",
      "evidenceStatus": "documented",
      "verification": {
        "status": "verified",
        "method": "independent automated source review",
        "checkedAt": "2026-10-02T19:18:00.092Z",
        "reviewer": "Independent automated verification — Codex root, separate from the DeFi drafting agent",
        "notes": [
          "Checked embedded pool fees, separate network cost and filler model. 997 − 2 = 995; no double subtraction. Requested primary evidence for interface fees and UniswapX citation."
        ]
      }
    }
  ],
  "sources": [
    {
      "id": "x425-defi-uni-fees",
      "label": "Fees",
      "publisher": "Uniswap",
      "url": "https://docs.uniswap.org/concepts/protocol/fees",
      "locator": "Swap fees; Pool fees tiers; Protocol fees",
      "note": "Separates liquidity-provider and protocol accounting; no universal live fee schedule asserted.",
      "version": "Documentation retrieved for the 2026-10-02 editorial scope; content hash recorded",
      "checkedAt": "2026-10-02T18:53:19.509Z",
      "contentSha256": "a31d3a8fb469aa7ed619574fd4fb9ae53ed6f2eabd999c66fd86388d014217eb",
      "recordId": "source-37357b0a11d2e087"
    },
    {
      "id": "x425-defi-eth-gas",
      "label": "Gas and fees",
      "publisher": "ethereum.org",
      "url": "https://ethereum.org/en/developers/docs/gas/",
      "locator": "Gas; transaction fees; failed transactions",
      "note": "Network resource cost separately from swap fees.",
      "version": "Documentation retrieved 2026-10-02",
      "checkedAt": "2026-10-02T18:53:23.863Z",
      "contentSha256": "566e61b7dce594a477ef28bab1f5a23279feb4f782e2838623fc7491c9daec66",
      "recordId": "source-5cadd0da692ffaa8"
    },
    {
      "id": "x425-defi-uni-swaps",
      "label": "Single Swaps",
      "publisher": "Uniswap",
      "url": "https://docs.uniswap.org/contracts/v3/guides/swaps/single-swaps",
      "locator": "exactInputSingle; exactOutputSingle; deadline; amountOutMinimum; amountInMaximum",
      "note": "Version-specific router constraints and worked integration examples.",
      "version": "Documentation retrieved for the 2026-10-02 editorial scope; content hash recorded",
      "checkedAt": "2026-10-02T18:53:19.662Z",
      "contentSha256": "34d9c27db51d7c364e5a5c0a8c93361d78a771368eec5079bea7fd709475489c",
      "recordId": "source-30ee786187b1a90d"
    },
    {
      "id": "x425-defi-aave-swaps",
      "label": "Aave v3 Swap Features",
      "publisher": "Aave",
      "url": "https://aave.com/docs/aave-v3/smart-contracts/swap-features",
      "locator": "Repay with collateral; Collateral Swap; Debt Swap",
      "note": "Documented adapter/flash-loan/DEX composition; availability varies by market.",
      "version": "Documentation retrieved for the 2026-10-02 editorial scope; content hash recorded",
      "checkedAt": "2026-10-02T18:53:21.663Z",
      "contentSha256": "b99c7a66fb373b3f455a161aa0503452eeb99555856ba3dcafedde5bf66a33c7",
      "recordId": "source-f84decea4c02489e"
    },
    {
      "id": "x425-defi-uni-x",
      "label": "UniswapX Overview",
      "publisher": "Uniswap",
      "url": "https://docs.uniswap.org/contracts/uniswapx/overview",
      "locator": "Signed orders; fillers; auctions",
      "note": "Outcome-based swap authorization and filler settlement.",
      "version": "Documentation retrieved for the 2026-10-02 editorial scope; content hash recorded",
      "checkedAt": "2026-10-02T18:53:19.990Z",
      "contentSha256": "924f997b2916887483dd58e39a87e4e2111f4c00fd068df1fb24ce47ef271248",
      "recordId": "source-2ffecd3d628a4d03"
    }
  ],
  "related": {
    "articles": [
      "incentives-and-earned-fees",
      "slippage-and-price-impact",
      "intent-based-swaps",
      "exact-input-vs-exact-output-swaps",
      "swap-deadlines-expired-quotes"
    ],
    "dossiers": [],
    "wallets": []
  },
  "revisionHistory": [
    {
      "date": "2026-10-02",
      "kind": "published",
      "summary": "First publication after primary-source research and separate automated verification."
    }
  ],
  "citation": "Degrees of Satoshi editorial project. “DEX swap costs: separating pool fees, gas and interface charges.” Published 2026-10-02; updated 2026-10-02. https://degreesofsatoshi.com/encyclopedia/dex-swap-fee-breakdown/"
}
