Income taxes (Details) $ in Millions, $ in Millions |
3 Months Ended | 6 Months Ended | |||
|---|---|---|---|---|---|
|
Jun. 30, 2026
CAD ($)
|
Jun. 30, 2025
CAD ($)
|
Jun. 30, 2025
USD ($)
|
Jun. 30, 2026
CAD ($)
|
Jun. 30, 2025
CAD ($)
|
|
| Income Tax Disclosure [Abstract] | |||||
| Effective tax rate | 24.65% | 22.45% | 22.45% | 24.63% | 23.26% |
| Effective tax rate, excluding discrete items | 24.75% | 24.50% | 24.50% | 24.75% | 24.50% |
| Advisory costs | $ 14 | $ 27 | |||
| Business Combination [Line Items] | |||||
| Gain on sale of equity investment | 0 | $ 333 | 0 | $ 333 | |
| Panama Canal Railway Company | |||||
| Business Combination [Line Items] | |||||
| Gain on sale of equity investment | 333 | $ 232 | 333 | ||
| KCS | |||||
| Business Combination [Line Items] | |||||
| Amortization of fair value adjustments | 94 | 96 | 187 | 190 | |
| Acquisition-related costs | $ 27 | $ 19 | $ 36 | $ 39 | |
| X | ||||||||||
- Definition Business Combination, Amortization of Fair Value Adjustments No definition available.
|
| X | ||||||||||
- Definition Effective Income Tax Rate Reconciliation, Estimated Rate, Excluding Discrete Items, Percent No definition available.
|
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of expense for acquisition-related cost incurred to effect business combination. Includes, but is not limited to, finder's fee; advisory, legal, accounting, valuation, and other professional and consulting fees; and general administrative cost, including cost of maintaining internal acquisition department. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Percentage of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of gain (loss) on sale or disposal of an equity method investment. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition A fee charged for services from professionals such as doctors, lawyers and accountants. The term is often expanded to include other professions, for example, pharmacists charging to maintain a medicinal profile of a client or customer. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|