Lets your readers work out what a trade is actually worth in money, before they place it.
Traders think in pips and percentages, and then get their account statement in money. A profit and loss calculator closes that gap. Your reader enters an entry price, an exit price and a position size, and the widget returns the outcome in their account currency, which is the only unit that ever really matters.
The value on an education page is that it makes the relationship between position size and outcome concrete. A twenty pip move sounds trivial until a reader sees it against a one lot position, and a hundred pip target sounds impressive until they see what it produces on a micro lot. Both realisations tend to arrive faster from a calculator than from a paragraph.
The widget handles long and short positions, so a reader can check the downside of a trade as easily as the upside, and it works for any account currency rather than assuming dollars.
Like every widget here it runs in the browser, writes nothing, loads no tracker and needs no sign-up. The appearance is set from the iframe URL so it can match your site without any CSS work on your side.
Free for any site, including commercial ones. Keep the small credit line at the bottom of the widget so readers can find the full version. Nothing is stored about the people who use it. See the disclaimer.
| Parameter | Values | What it does |
|---|---|---|
theme | auto, light, dark | Default follows the reader's own system setting, so the widget looks right on a dark site and a light one without you choosing. |
accent | Six hex digits, e.g. accent=1A56DB | Recolours the header bar and the primary button to match your brand. |
header | 1 or 0 | Set to 0 to hide the title bar when your page already has a heading above the widget. |
breakdown | 1 or 0 | Set to 0 to hide the calculation breakdown for a more compact block. |
corners | 1 or 0 | Set to 0 for square corners if your design has no rounding anywhere else. |
width | full | Removes the 520px maximum so the widget stretches to its container. |
Parameters are added to the iframe URL as a normal query string, for example
/embed/position-size-calculator.html?theme=dark&accent=1A56DB&header=0. The
widget builder lets you set all of them visually and hands you the finished code.
The widget multiplies the price difference between entry and exit by the position size, applies the direction of the trade, and converts the result into the account currency. It shows the outcome in money and as a percentage of the position value.
Because both a target and a stop can be tested in seconds, it doubles as a way for readers to sanity check a trade's risk-to-reward before committing, which is the habit the risk-reward calculator formalises.
Readers can price your scenario against their own account size rather than yours.
The fastest way to show what a pip is worth is to let someone change the lot size and watch the money move.
Useful alongside any article about reviewing closed trades.
The full library of free trading widgets has more than seventy tools, and the widget builder lets you preview and configure any of them before you copy the code.
It calculates the gross outcome from entry, exit and size. Spread, commission and overnight financing are handled by the trading cost calculator and the spread cost calculator, which are separate widgets so that each tool answers one question clearly.
Yes. The reader selects the direction and the calculation inverts, so a short that closes below the entry produces a profit. Getting that sign right is a common stumbling block for beginners, which is part of why it is worth showing.
Yes. The calculation is the same for any instrument where you know the entry, the exit and the size. For JSE shares, remember that securities transfer tax and brokerage apply on top, which this widget does not include.
It is one of the better choices for that audience, because the inputs are intuitive and the output is in money. A reader who has never opened a trading platform can still understand entry, exit and size.
No. It is arithmetic on numbers the reader supplies. Nothing it produces is a recommendation, and the widget carries a risk notice making that clear, which matters if you are publishing to a South African audience under FSCA rules on financial advice.
Widgets show the maths. A demo account shows how the same maths behaves against live spreads and real market movement, without risking funds.
Open a free demo account79% of retail CFD accounts lose money. Demo accounts do not guarantee future profits.