Short answer

Convert each acquisition's cost to Canadian dollars using the applicable acquisition-date rate. For identical shares, Canadian adjusted cost base generally uses the average cost of those shares rather than choosing a U.S.-dollar tax lot.

Keep a Canadian-dollar ledger

For each purchase, record date, number of shares, U.S. execution price, eligible acquisition costs and the applicable CAD-per-USD rate. Update total Canadian-dollar ACB and divide by the total shares held. Convert sale proceeds and selling expenses using the applicable exchange rate for those transactions. The currency effect can create a gain or loss in Canadian dollars even where the share price was flat in U.S. dollars. Adjust the ledger separately for corporate actions or other basis changes.

Worked example or comparison
Basis Evidence or calculation
Worked example or comparison Illustration before fees. Two purchases of 10 shares at US$20 with CAD-per-USD rates of 1.25 and 1.35 give a total CAD ACB of $520, or $26 per share.

Frequently asked question

Can I convert both buys at the sale-date rate?

Use the rate applicable to each original acquisition for its cost. Convert the sale separately.

Source

Primary reference · canada.ca

Related guide

Buying US Stocks From Canada – A Research Checklist Before Selecting A Broker