XML 210 R166.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Risk management - Schedule of Detailed Information About Hedging Instruments Explanatory (Details) - Currency swap contract - COP ($) $ in Millions | Dec. 31, 2023 | Dec. 31, 2022
--- | --- | ---
Red de Energa del Per |  |
Risk management |  |
Hedging instrument assets |  | $ 48,195
Intervial Chile |  |
Risk management |  |
Hedging instrument assets | $ 44,134 | 77,229
Oleoducto Central S.A. |  |
Risk management |  |
Hedging instrument assets | $ 223,091 |
Hedging instrument liabilities |  | $ (137,242)

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 a hedging instrument, recognised as a liability. [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_HedgingInstrumentLiabilities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | ifrs-full_ClassesOfFinancialAssetsAxis=ifrs-full_CurrencySwapContractMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

X
- Details
Name: | srt_CounterpartyNameAxis=ec_OleoductoCentralS.a.Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |