Skip to main content
calc.forex

Free Forex Calculator Widgets

Put a working position size, pip value or margin calculator on your website or blog in under a minute. Copy one line of code — no signup, no API key, no ads inside the widget.

32 calculators with hourly reference rates, light and dark themes and your own preset inputs.

Get the embed code

Pick a calculator and a theme, copy the code, and paste it into any HTML block on your site.

Settings

Theme

Keep the “Powered by calc.forex” line under the widget — it's the only thing we ask in return.

Live preview

Lot Size & Position Size Calculator · light

These are live — try them. Each one works exactly like the full calculator on calc.forex.

Lot Size & Position Size Calculator

Pip Calculator

Forex Margin Calculator

Forex Profit Calculator

Risk-Reward Ratio Calculator

Forex Compounding Calculator

All 32 calculator widgets

Every calculator on calc.forex is available as a widget.

CalculatorWhat it doesEmbed
Lot Size & Position Size CalculatorFree lot size calculator for forex, gold, indices and crypto: enter balance, risk % and stop loss to get the exact position size in lots, in 23 currencies.Selected
Pip CalculatorPip calculator for forex pairs, gold, silver, indices and crypto. See what one pip is worth per lot in your account currency, with the math shown.
Forex Margin CalculatorForex margin calculator: required margin for any lot size and leverage from 1:1 to 1:1000, on currency pairs, gold, indices and crypto, in your currency.
Forex Profit CalculatorForex profit calculator: enter entry, exit, direction and lot size to see the profit or loss in pips and in your account currency. Gold, indices, crypto.
Risk-Reward Ratio CalculatorRisk reward ratio calculator: enter entry, stop loss and take profit to get the R:R ratio, risk and reward in money, and the win rate needed to break even.
Break-Even Price CalculatorBreak-even price calculator: find where a long or short trade covers its spread and commission, with the cost in pips and money for any lot size and pair.
Forex Swap CalculatorForex swap calculator: overnight rollover cost or credit from MT4/MT5 swap points, money per lot or annual %, including triple-swap nights, for any pair.
Forex Lot Size Converter & ChartForex lot size chart and converter: standard, mini, micro and nano lots in units, ounces, contracts and coins for forex, gold, indices and crypto.
Risk of Ruin CalculatorRisk of ruin calculator: the probability of a set drawdown from your win rate, risk : reward and risk per trade, with fixed-risk and compounding models.
Kelly Criterion CalculatorKelly criterion calculator for trading: the share of your balance to risk from win rate and win/loss ratio, with half and quarter Kelly and your edge.
Fibonacci Calculator: Retracement & Extension LevelsFibonacci calculator for trading: retracement levels at 23.6%, 38.2%, 50%, 61.8% and 78.6% plus extensions to 261.8% from any swing high and low.
Pivot Point CalculatorPivot point calculator with classic, Fibonacci, Camarilla, Woodie and DeMark methods: pivot, support and resistance from the previous high, low and close.
Forex Compounding CalculatorForex compounding calculator: project account growth from a return per trade, day, week or month, with optional deposits, a growth chart and milestones.
ATR Position Size CalculatorATR position size calculator: set the stop as a multiple of ATR and get the lot size that risks a fixed share of your balance, for forex, gold and indices.
Forex Hedge CalculatorForex hedge calculator: size a correlation hedge from the correlation and daily range of each instrument, and see how much risk the hedge removes.
Notional Value CalculatorNotional value calculator: the full value of a forex, gold, index or crypto position in your account currency, and the effective leverage it puts on you.
Forex Spread Cost CalculatorForex spread calculator: turn the bid-ask spread into money per trade, per month and per year for any pair, gold, index or crypto, in your currency.
Forex Commission CalculatorForex commission calculator: convert per-side or round-turn rates into the cost per trade and per month for any lot size, in your account currency.
Currency ConverterCurrency converter with ECB reference rates filled in for 23+ currencies. Convert any amount, see the rate both ways or enter your bank or broker rate.
Margin Call & Stop-Out CalculatorMargin call calculator: see your margin level, free margin and how far price can move against you, in money and pips, before a margin call or stop-out.
Drawdown CalculatorDrawdown recovery calculator: the gain needed to recover from any loss (a 50% drawdown needs 100%), plus the profit and number of periods to get back.
Take Profit CalculatorTake profit calculator: how many pips you need and the exact take-profit price to make a set amount, for any lot size on forex, gold, indices and crypto.
Forex Leverage CalculatorForex leverage calculator: find the real leverage of a trade, the margin and margin level it needs, and the largest position your account leverage allows.
Stop Loss CalculatorFree stop loss calculator: turn your risk amount and lot size into a stop distance in pips and an exact stop price, or see what a stop in pips costs you.
Prop Firm Drawdown CalculatorProp firm drawdown calculator: how much you can still lose today and overall under static, trailing or end-of-day limits, and the largest next trade.
Consistency Rule Calculator for Prop FirmsConsistency rule calculator for prop firms: paste your daily P&L to see your best-day share, whether you pass, and how much more profit you need to pass.
Futures CalculatorFutures calculator for ES, NQ, MNQ, CL, GC and more: profit and loss in ticks and dollars, tick and point values, and how many contracts fit your risk.
Stock & Crypto Average Price CalculatorStock average calculator for stocks and crypto: weighted average entry, break-even after fees and how many shares or coins to buy to average down.
Crypto Futures & Liquidation Price CalculatorCrypto futures calculator for USDT perpetuals: profit and ROI, target price for an ROI, and liquidation price for isolated or cross margin at any leverage.
Trading Expectancy CalculatorTrading expectancy calculator: enter win rate and average win and loss to get expectancy per trade, profit factor, win/loss ratio and break-even win rate.
Sharpe Ratio CalculatorSharpe ratio calculator: enter an average return and standard deviation, or paste daily or monthly returns, for the annualised Sharpe and Sortino ratio.
Martingale CalculatorMartingale calculator for forex grids: see the lot size, total exposure, drawdown and break-even move at each level, and the move that wipes you out.

Preset the widget's inputs

Every calculator reads its inputs from the address, so you can open the widget with your own defaults by adding query parameters to the src URL. The easiest way to find the right parameters: set up a calculation on the full calculator page and look at its address bar (or use “Copy link with these numbers”). For the Position Size Calculator:

ParameterMeaningExample values
themeColour scheme of the widgetlight (default) or dark
symInstrumentEURUSD, GBPJPY, XAUUSD, US30, BTCUSD
acctAccount currencyUSD, EUR, GBP, JPY, AUD …
balAccount balance5000
riskRisk per trade (% of balance)1
slStop-loss distance in pips30
https://calc.forex/embed/position-size?theme=light&sym=XAUUSD&acct=EUR&bal=5000&risk=1&sl=30

Automatic height

Results panels open and close as visitors type, so a fixed height either leaves a gap or adds a scrollbar. Each widget reports its height to your page; this small script (included when “Auto-resize height” is ticked) listens for that message and resizes the matching iframe. One copy of the script handles any number of widgets on a page.

<script>addEventListener("message",function(e){var d=e.data;if(e.origin!=="https://calc.forex"||!d||d.type!=="calc.forex:height")return;document.querySelectorAll("iframe").forEach(function(f){if(f.contentWindow===e.source)f.style.height=d.height+"px"})});</script>

Terms of use

  • Free to use on personal, educational and commercial websites, including broker, prop-firm and affiliate sites.
  • Keep the credit link. The “Powered by calc.forex” line under the iframe must stay visible and unmodified (no nofollow).
  • Don't alter or re-host the widget, or present it as your own tool.
  • No warranty. Widgets are provided as is, for education. Results depend on the inputs and reference rates and are not financial advice; see our terms and methodology.

Frequently asked questions

Are the calculator widgets really free?

Yes. Every widget is free for personal and commercial websites, with no signup, API key or usage limit. The only condition is that you keep the visible “Powered by calc.forex” credit link under the widget.

Do the widgets work on WordPress, Wix, Squarespace and Webflow?

Yes. The embed code is plain HTML. In WordPress use a Custom HTML block; in Wix use an Embed HTML element; in Squarespace and Webflow use a Code or Embed block.

Where do the exchange rates come from?

Widgets use the same hourly reference rates as calc.forex, so pip values and margin in non-USD account currencies stay current without any work on your side. Visitors can type in their broker's live quote at any time.

Will the widget slow down my page?

The code uses loading="lazy", so the widget only loads when a visitor scrolls near it, and it runs in an isolated iframe that can't interfere with your site's scripts or styles.