XML 209 R165.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Risk management - Hedge of a net investment in a foreign operation (Details) - Hedge of a net investment in a foreign operation $ in Millions, $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 USD ($) | Dec. 31, 2023 COP ($) | Dec. 31, 2022 COP ($) | Dec. 31, 2021 COP ($)
Risk management |  |  |  |
Opening balance |  | $ 9,354,071 | $ 4,366,336 | $ 1,494,926
Exchange difference |  | (8,973,471) | 7,526,124 | 4,579,758
Deferred income tax (Note 10) |  | 2,760,084 | (2,538,389) | (1,708,348)
Closing balance | $ 10,270 | $ 3,140,684 | 9,354,071 | 4,366,336
Hedging instrument assets | 10,270 |  | $ 9,354,071 | $ 4,366,336
Ecopetrol Business Group |  |  |  |
Risk management |  |  |  |
Closing balance | 9,942 |  |  |
Hedging instrument assets | 9,942 |  |  |
ISA Colombia |  |  |  |
Risk management |  |  |  |
Closing balance | 328 |  |  |
Hedging instrument assets | $ 328 |  |  |

X
- Definition Disclosure of detailed information about financial risk management + References No definition available. + Details
Name: | ec_DisclosureOfDetailedInformationAboutFinancialRiskManagementLineItems
Namespace Prefix: | ec_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of a hedging instrument, recognised as an asset. [Refer: Hedging instruments [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 24A -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24A_a&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_HedgingInstrumentAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of income tax relating to amounts recognised in other comprehensive income in relation to hedges of net investments in foreign operations. [Refer: Other comprehensive income] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 12 -IssueDate 2023-01-01 -Paragraph 81 -Subparagraph ab -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_ab&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 90 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_90&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_IncomeTaxRelatingToHedgesOfNetInvestmentsInForeignOperationsOfOtherComprehensiveIncome
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of other comprehensive income, before tax, after reclassification adjustments, related to exchange differences on translation of financial statements of foreign operations. [Refer: Other comprehensive income, before tax] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 91 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_91_b&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 7 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_7&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | ifrs-full_TypesOfHedgesAxis=ifrs-full_HedgesOfNetInvestmentInForeignOperationsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CounterpartyNameAxis=ec_EcopetrolBusinessGroupMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CounterpartyNameAxis=ec_IsaColombiaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |