Dev.to WebDev πŸ›  Dev πŸ‘ 0 πŸ“– 4 min read

A Crypto Calculator That Shows What Each Exchange Really Gives You After Fees (and How We Built It)

Disclosure: the calculator links to Kraken and Bybit through our partner links, and we earn a commission if you sign up through them. The ranking is by what you get after fees, not by commission β€” the cheapest exchange s

A Crypto Calculator That Shows What Each Exchange Really Gives You After Fees (and How We Built It)

Disclosure: the calculator links to Kraken and Bybit through our partner links, and we earn a commission if you sign up through them. The ranking is by what you get after fees, not by commission β€” the cheapest exchange shows first even when it isn't a partner.

Most crypto converters answer one question: what is 1 BTC worth in dollars right now. The amount you actually get when you buy or sell is lower, and how much lower depends on the exchange β€” the trading fee for the same order can differ more than tenfold between platforms.

We built a free calculator that shows both: the live price, and what Kraken, Coinbase, Bybit, OKX and Gate give you for the same amount after their fee. It covers Bitcoin, Ethereum, USDT, Solana, XRP and TON (now called GRAM), in US dollars, euros or pounds.

Crypto Calculator: BTC to USD, ETH, USDT, SOL, XRP, TON/GRAM

Convert Bitcoin, Ethereum, USDT, Solana, XRP and Toncoin (GRAM) to USD, EUR or GBP at live Kraken prices β€” and see what each exchange really gives after fees.

favicon starsearn.com

What $500 of Bitcoin gets you

At 14:37 UTC on 25 October 2026, Bitcoin traded at $80,269.60 on Kraken. Here is a $500 market order at each exchange's entry-level taker fee:

Exchange Taker fee Fee on $500 You get
Bybit (spot) 0.10% $0.50 0.006223 BTC
OKX (spot) 0.10% $0.50 0.006223 BTC
Gate (spot) 0.20% (reported) $1.00 0.006217 BTC
Kraken Pro 0.80% $4.00 0.006179 BTC
Coinbase Advanced 1.20% (reported) $6.00 0.006154 BTC

Three things change that picture for a real person:

  • Where you live. Bybit and OKX's global exchange don't take US residents, so in the US the realistic choice is Kraken or Coinbase. Gate's own user agreement lists the UK, the US, Canada, Germany, France, Spain, the Netherlands and others as restricted locations. The calculator reads the visitor's country and marks each exchange as available, not available, or "check availability" when we can't confirm it.
  • New-user bonuses. Kraken gives new accounts $10 in Bitcoin after a $100 bank or crypto deposit plus $100 traded (card deposits don't count, and the bonus isn't offered in the UK or Singapore). On a first purchase up to about $1,400, that bonus is worth more than the fee difference, so with bonuses switched on, Kraken comes first for a $500 buy. The calculator has a toggle for it.
  • Order type and app buttons. The table uses market orders on the order book. Limit orders cost less (maker fees). The "Buy" buttons in the exchanges' simple apps cost more: Kraken's app charges 1% plus a spread, and Coinbase's simple buy adds a fee and a spread that it shows only at checkout.

How it's built

The site runs on Next.js (App Router), hosted on Railway behind Cloudflare.

1. One request for every price. Kraken's public ticker returns several pairs in a single call and needs no API key. We request the six coins in USD plus BTC in EUR and GBP, and derive the euro and pound rates from the BTC cross rates:

const url =
  "https://api.kraken.com/0/public/Ticker?pair=XBTUSD,ETHUSD,USDTUSD,SOLUSD,XRPUSD,TONUSD,XBTEUR,XBTGBP";

// units of each currency per US dollar
const fx = { USD: 1, EUR: btcEur / btcUsd, GBP: btcGbp / btcUsd };

Kraken names some pairs with X/Z prefixes and others without, so each coin maps to every key it may come back under:

const KRAKEN_KEYS = {
  BTC: ["XXBTZUSD", "XBTUSD"],
  ETH: ["XETHZUSD", "ETHUSD"],
  USDT: ["USDTZUSD", "USDTUSD"],
  SOL: ["SOLUSD"],
  XRP: ["XXRPZUSD", "XRPUSD"],
  // Toncoin was renamed Gram (GRAM) in June 2026. Kraken still trades it as TON/USD;
  // Bybit, OKX, Gate and CoinGecko already call it GRAM.
  TON: ["TONUSD"],
};

2. Two fallbacks and a last good answer. If Kraken fails, CoinGecko answers; its free API rate-limits many cloud IP ranges, so it comes second. Bybit's spot tickers come third. They are quoted in USDT and have no fiat pairs, so the euro and pound rates come from the last good response. That last good result survives a full outage in memory: older real numbers beat an empty field, and the page prints the source and the time of the price.

3. A one-minute cache. The server function is wrapped in Next's unstable_cache with revalidate: 60. The browser polls /api/crypto-prices, served with Cache-Control: public, s-maxage=60, stale-while-revalidate=300, once a minute. Every source stays far below its rate limit however many people have the page open.

4. Fees as data, with dates. Each exchange's maker and taker fee lives in one file, next to the source and the date we read it. Values we couldn't confirm on the exchange's own page are labelled "reported". The same data drives our trade-cost checker, so the two tools can't disagree.

5. The country comes from the edge. Cloudflare adds a cf-ipcountry header to every request. The page reads it on the server and passes it to the calculator, which ranks the exchanges available to the visitor first. There is no location prompt and no IP lookup service.

6. Shareable state without duplicate pages. After the first change, the coin, currency, direction and amount go into the URL with history.replaceState, so a result can be shared β€” for example /crypto-calculator?coin=ETH&fiat=EUR&dir=toCoin&amount=500. The canonical URL has no parameters.

7. The converter comes first on a phone. The page has a short text answer for search engines and AI answers, and it comes first in the HTML. On screen, the converter sits above it, so the amount field and the result stay above the browser's toolbar even on a 667-pixel-tall iPhone. It's the same HTML order with a different visual order: a flex column and the order property.

Try it

We checked the fees on 8 October 2026 on each exchange's own pages. They change with volume tiers and over time, so check the exchange before a large trade.

πŸ“° Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.