XML 166 R122.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Impairment of non-current assets - Investments in joint ventures (Details) - COP ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Impairment of non-current assets |  |  |
Investment in associates and joint ventures | $ (7,987) | $ (2,092) | $ (83,644)
Equion Energa Limited |  |  |
Impairment of non-current assets |  |  |
Investment in associates and joint ventures | $ (7,987) | $ (2,092) | $ (83,644)

X
- References No definition available. + Details
Name: | ec_DetailedInformationsAboutImpairmentLossesReversalsOfAssetsLineItems
Namespace Prefix: | ec_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The impairment loss + References No definition available. + Details
Name: | ec_ImpairmentsLoss
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | ifrs-full_JointVenturesAxis=ec_EquionEnergyLimitedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |