Short answer

Translate the starting and ending stock values with their respective exchange rates. If both exchange rates are quoted as home-currency units per U.S. dollar, multiply the dollar stock return factor by the exchange-rate return factor.

Keep the quote direction consistent

Identify whether the broker shows local currency per U.S. dollar or the inverse. For a single purchase and sale, convert both at their transaction rates and include conversion costs. For dividend-paying shares, convert each distribution on its actual conversion date. A weaker dollar can reduce a gain measured in dollars, while a stronger dollar can enlarge it.

Worked example or comparison
Basis Evidence or calculation
Worked example or comparison Hypothetical: the stock rises 10% in USD while each USD buys 5% fewer home-currency units. Before costs, the home-currency gain is 1.10 × 0.95 − 1 = 4.5%.

Frequently asked question

Can a profitable USD trade lose money in my home currency?

Yes. Currency movement and conversion costs can be larger than the gain in the stock.

Source

Primary reference · investor.gov

Related guide

How to Purchase a Stock while Verifying Instrument, Order, and Total Cost?