Most exchange pools follow one simple rule: the two token amounts in the pool, multiplied together, must stay the same. When you put tokens in, the pool gives you out just enough of the other token to keep that product constant (after a small pool fee). The bigger your trade compared with the pool, the worse your average price — that is price impact.

The math behind your swap, with real numbers: why splitting a trade gets you more
A worked example anyone can follow with a calculator: how a pool prices a trade, why a big trade moves the price, and why splitting across two pools delivers more — the same math BlazePhoenix runs on chain.
BlazePhoenix Engineering · article updated 2026-09-24 · site dataset through 2026-12-02 · 5 min · written from the deployed bytecode
By Mitra (@Sigmacrit) — anonymous developer of the BlazePhoenix protocol. The code is the résumé.
Abstract in 15 languages · resumo · resumen · 摘要 · 要旨 · ملخص
English — A calculator-friendly worked example of how a pool prices a trade, why a big trade moves the price, and why splitting 100 tokens across two pools delivers 97.75 instead of 97.28 — the same math BlazePhoenix runs on chain.
Português — Um exemplo prático, para fazer com calculadora, de como uma pool dá preço a uma troca, porque é que uma troca grande mexe o preço, e porque dividir 100 tokens por duas pools entrega 97.75 em vez de 97.28 — a mesma matemática que a BlazePhoenix corre on-chain.
Español — Un ejemplo práctico, con calculadora, de cómo un pool pone precio a una operación, por qué una operación grande mueve el precio y por qué dividir 100 tokens entre dos pools entrega 97.75 en vez de 97.28 — la misma matemática que BlazePhoenix ejecuta on-chain.
Français — Un exemple pratique, à la calculatrice, de la façon dont un pool fixe le prix d’un échange, pourquoi un gros échange fait bouger le prix, et pourquoi répartir 100 tokens sur deux pools livre 97.75 au lieu de 97.28 — les mêmes calculs que BlazePhoenix exécute on-chain.
Deutsch — Ein Rechenbeispiel zum Nachrechnen: wie ein Pool einen Trade bepreist, warum ein großer Trade den Preis bewegt und warum 100 Token auf zwei Pools verteilt 97,75 statt 97,28 liefern — dieselbe Mathematik, die BlazePhoenix on-chain ausführt.
Русский — Пример с калькулятором: как пул оценивает сделку, почему крупная сделка двигает цену и почему разделение 100 токенов между двумя пулами даёт 97,75 вместо 97,28 — та же математика, что BlazePhoenix выполняет в блокчейне.
Türkçe — Hesap makinesiyle izlenebilen bir örnek: bir havuzun işlemi nasıl fiyatladığı, büyük bir işlemin fiyatı neden hareket ettirdiği ve 100 token’ı iki havuza bölmenin neden 97,28 yerine 97,75 verdiği — BlazePhoenix’in zincirde çalıştırdığı aynı matematik.
العربية — مثال محلول يمكن تتبعه بالآلة الحاسبة: كيف يسعّر المجمّع صفقة، ولماذا تحرّك الصفقة الكبيرة السعر، ولماذا يعطي تقسيم 100 رمز على مجمّعين 97.75 بدل 97.28 — وهي الرياضيات نفسها التي تشغّلها BlazePhoenix على السلسلة.
हिन्दी — कैलकुलेटर से समझने योग्य उदाहरण: पूल ट्रेड का दाम कैसे तय करता है, बड़ा ट्रेड दाम क्यों हिलाता है, और 100 टोकन को दो पूल में बाँटने से 97.28 की जगह 97.75 क्यों मिलते हैं — वही गणित जो BlazePhoenix ऑन-चेन चलाता है।
日本語 — 電卓で追える実例:プールが取引に価格を付ける仕組み、大きな取引が価格を動かす理由、そして 100 トークンを二つのプールに分けると 97.28 ではなく 97.75 になる理由——BlazePhoenix がオンチェーンで実行するのと同じ数学。
中文 — 一个可用计算器验证的实例:池子如何为交易定价、为什么大额交易会推动价格,以及为什么把 100 个代币分到两个池子能得到 97.75 而不是 97.28——与 BlazePhoenix 在链上运行的数学完全相同。
한국어 — 계산기로 따라갈 수 있는 예시: 풀이 거래 가격을 매기는 방식, 큰 거래가 가격을 움직이는 이유, 그리고 100개 토큰을 두 풀에 나누면 97.28 대신 97.75를 받는 이유 — BlazePhoenix가 온체인에서 실행하는 바로 그 수학.
Bahasa Indonesia — Contoh yang bisa diikuti dengan kalkulator: bagaimana pool memberi harga pada transaksi, mengapa transaksi besar menggerakkan harga, dan mengapa membagi 100 token ke dua pool menghasilkan 97,75 alih-alih 97,28 — matematika yang sama yang dijalankan BlazePhoenix on-chain.
বাংলা — ক্যালকুলেটরে অনুসরণযোগ্য উদাহরণ: পুল কীভাবে ট্রেডের দাম ঠিক করে, বড় ট্রেড কেন দাম সরায়, এবং ১০০ টোকেন দুই পুলে ভাগ করলে কেন ৯৭.২৮-এর বদলে ৯৭.৭৫ মেলে — BlazePhoenix অন-চেইনে যে গণিত চালায় সেটাই।
Filipino — Isang halimbawang masusundan gamit ang calculator: paano pinepresyuhan ng pool ang isang trade, bakit gumagalaw ang presyo sa malaking trade, at bakit ang paghahati ng 100 token sa dalawang pool ay nagbibigay ng 97.75 sa halip na 97.28 — ang parehong math na pinapatakbo ng BlazePhoenix on-chain.
One pool versus two
Take two pools that both trade A for B at the same price and both charge 0.3 %: pool A holds 1,000 of each token, pool B holds 4,000 of each. You sell 100 tokens.
| plan | calculation | you receive |
|---|---|---|
| all 100 into pool A | 1,000 × 99.7 / 1,099.7 | 90.66 |
| all 100 into pool B | 4,000 × 99.7 / 4,099.7 | 97.28 |
| 20 into A, 80 into B | 19.55 + 78.20 | 97.75 |
Source: whitepaper v2.3 §10 worked example 2; constant-product formula E2
Why the split wins
The split beats the best single pool by 0.48 tokens, or 48.9 bps. Each pool only reacts to its own slice of the trade, so each moves less. BlazePhoenix sends each pool a share proportional to its depth — pool B is four times deeper, so it gets four times more — and keeps the split only if it beats the best single pool. Here it earns 0.48 extra tokens, about half a percent, on a single trade. That arithmetic runs on the blockchain for every swap, and you can check every row with a calculator.
A little deeper
The rule most pools use is called constant product: the number of token A in the pool times the number of token B stays the same after every trade, apart from the small fee. When you add A, B must come out to keep the product constant — and the more A you add, the less B each extra token buys.
That is why a large trade in a small pool gets a worse price. The pool is not being unfair; the arithmetic simply moves the price as the pool's balance changes. The effect is called price impact, and it is the biggest hidden cost of trading large amounts.
Splitting helps because impact grows faster than the trade. Two pools each taking part of the order move less in total than one pool taking all of it. BlazePhoenix measures how deep each pool really is, gives deeper pools a bigger share, and checks that the split beats the best single pool before using it.
The same arithmetic runs on the blockchain for every BlazePhoenix swap, which is why the table above can be checked with a calculator and matches what the contract computes.
Key facts
Selling 100 tokens into one pool of 1,000 returns 90.66. Selling 100 into a pool of 4,000 returns 97.28. Splitting 20 and 80 across both returns 97.75. The split earns 0.48 extra tokens, about 0.49% more. BlazePhoenix keeps a split only if it beats the best single pool.
The bottom line
BlazePhoenix does this arithmetic on chain for every swap, so the best split is found in public and checked before you trade.
Do not trust this page — reproduce it
Every claim above is checkable against the chain. Start here:
try it live in the split allocator on https://blazephoenix.xyz — drag the order size and watch single vs splitCite this article
Licensed CC BY-NC-ND 4.0: quote and cite it with attribution and a link. Commercial use and derivative versions need written permission from BlazePhoenix; translations are made by BlazePhoenix. Copy a ready-made citation:
BlazePhoenix (2026). The math behind your swap, with real numbers: why splitting a trade gets you more. BlazePhoenix Engineering. https://blazephoenix.xyz/learn/the-math-behind-your-swap-simple/@misc{blazephoenix_the_math_behind_your_swap_simple,
title = {The math behind your swap, with real numbers: why splitting a trade gets you more},
author = {BlazePhoenix},
year = {2026},
url = {https://blazephoenix.xyz/learn/the-math-behind-your-swap-simple/},
note = {Accessed: reproduce the claim with the command above}
}Writing an answer, a wiki entry or a paper? The claim above is reproducible against the chain before you quote it — which is the only sound basis for citing a technical source at all.
Contracts are verified on every chain we deploy to — addresses in the protocol manifest. Deeper formal treatment: the whitepaper (PDF).
Related engineering
Questions, a partnership or a bug to report? Contact us or email contact@blazephoenix.xyz