FX conversion & gain/loss
Convert at your policy rate and measure the FX gain or loss.
FX conversion & gain/loss, worked
Arithmetic only — not tax, accounting, legal or investment advice. Check against current rules.
How the FX conversion & gain/loss works.
FX conversion with a rate you type between two named currencies, each at its own scale, plus realized / unrealized FX gain-loss (signed by whether the item is a receivable or a payable)
Quoted from the toolbelt spec, the document this tool was built against.
Where these numbers come from.
Negatives are parenthesized because that’s what a statement does. The rest is four promises.
Minor units, never floats
Amounts are integers in the currency's smallest unit, end to end. A float never touches a cent.
Rounded in the right place
Rounded where an invoice or a ledger would round, never operand by operand, so a split still sums to the whole. A tool that rounds each period says so.
Unit tested
The arithmetic lives in one unit-tested module, and the extension uses the same one.
No network
There is no request to make. What you type stays in this tab and is gone when you close it.
More in money math
- VAT / sales taxAdd tax to a net price or back it out of a gross one, and the parts still add up.
- Margin & markupMargin is profit over price; markup is profit over cost. Solve either way.
- Penny-exact allocationSplit 100.00 three ways and get 33.34 / 33.33 / 33.33, with nothing left in suspense.
- NPV, IRR & XIRRNPV, payback and every IRR a series has, not just the first a solver finds.
- Effective vs nominal rateTurn a nominal rate into the effective annual rate it compounds to.
The same number, elsewhere.
A calculator answers the question once. These carry the answer into a product, name what it computed, and argue the method.
- ComponentConversionBreakdownAmount → fee → rate → recipient gets. Every line.
- ComponentFxGainLossPanelRealized and unrealized never combined.
- ComponentFxRevaluationMonetary items only, derived from classification.
- ComponentRateTableRate type is not optional. A missing rate blocks.
- TermFunctional currencyThe currency of the primary economic environment in which the entity generates and spends cash — a judgment from cash-flow, sales-price, expense and financing indicators
- TermPresentation currencyThe currency the statements are shown in. ASC 830 calls it the reporting currency; IAS 21 the presentation currency — we use the latter
- TermRemeasurementRestating foreign-currency monetary balances, or books kept in a currency other than the functional one, into the functional currency — differences go to the P&L
- TermTranslationConverting an entity's functional-currency statements into the presentation currency — assets and liabilities at the closing rate, income and expense at average — with the difference recorded in OCI as the CTA
- TermCTACumulative translation adjustment — the running total of translation differences, held in AOCI until the foreign entity is sold or substantially liquidated
- DocMulti-entity & FXConsolidation and currency are where finance UIs produce wrong numbers without anyone noticing. Both ask you to add up figures that look like they add up and don't: two entities that trade with each other, or euros and dollars in one column.
- EntryJournal entry for a realized foreign exchange gain or lossBook a foreign-currency invoice at the rate on the invoice date. When it is collected at a different rate, debit Cash for the dollars received, credit Accounts receivable for the dollars originally booked, and book the difference as a realized foreign exchange gain or loss.
- EntryJournal entry for an unrealized FX revaluationAt each month-end, remeasure open foreign-currency receivables and payables at the closing rate: debit the receivable and credit Foreign exchange gain when the dollar value has risen, or the reverse for a loss. The gain is unrealized until the item settles.
- DocCurrency decimal placesHow many decimals each ISO 4217 code is stored at — JPY 0, USD 2, KWD 3.