Currency Converter Calculator Formula

Understand the math behind the currency converter calculator. Each variable explained with a worked example.

Formulas Used

Converted Amount

converted = amount * exchange_rate

Inverse Rate

inverse = exchange_rate > 0 ? 1 / exchange_rate : 0

Variables

VariableDescriptionDefault
amountAmount1000
exchange_rateExchange Rate1.08

How It Works

Currency Conversion

Converted Amount = Original Amount × Exchange Rate

Enter the current exchange rate manually (check Google or XE.com for live rates). For example, if 1 USD = 1.08 EUR, use 1.08 as the rate to convert USD to EUR.

Worked Example

Convert $1,000 USD to EUR at rate of 1.08.

amount = 1000exchange_rate = 1.08
  1. 01$1,000 × 1.08 = €1,080
  2. 02Inverse: 1 / 1.08 = 0.9259 USD per EUR

Ready to run the numbers?

Open Currency Converter Calculator