Exchange rates are the values of one currency for the purpose of trading for another.
When traveling, conducting international business, or sending money abroad, understanding and
calculating exchange rates is crucial. This calculator helps you quickly convert amounts
from Canadian Dollars (CAD) to United States Dollars (USD) using the current exchange rate.
The exchange rate fluctuates constantly due to various economic and political factors,
including inflation, interest rates, political stability, and market speculation.
The rate "1 CAD = X USD" means that one Canadian dollar can be exchanged for X US dollars.
For example, if the exchange rate is 0.73, then 100 CAD would be equivalent to 73 USD.
How it works: To convert from CAD to USD, you multiply the amount in CAD
by the current exchange rate (where the rate is expressed as USD per CAD).
The formula is: Amount in USD = Amount in CAD × Exchange Rate (USD/CAD).
function calculateUsd() {
var cadAmountInput = document.getElementById("cadAmount");
var exchangeRateInput = document.getElementById("exchangeRate");
var resultDiv = document.getElementById("result");
var cadAmount = parseFloat(cadAmountInput.value);
var exchangeRate = parseFloat(exchangeRateInput.value);
if (isNaN(cadAmount) || isNaN(exchangeRate)) {
resultDiv.textContent = "Please enter valid numbers for both fields.";
resultDiv.style.color = "red";
return;
}
if (cadAmount < 0 || exchangeRate < 0) {
resultDiv.textContent = "Amounts and rates cannot be negative.";
resultDiv.style.color = "red";
return;
}
var usdAmount = cadAmount * exchangeRate;
// Format to two decimal places for currency
resultDiv.textContent = cadAmount.toFixed(2) + " CAD is equal to " + usdAmount.toFixed(2) + " USD";
resultDiv.style.color = "#333";
}