XML 113 R104.htm IDEA: XBRL DOCUMENT
v3.24.3

Revenue from contracts with customers - Additional information (Details) - COP ($) $ in Millions | 6 Months Ended
--- | ---
Jun. 30, 2024 | Jun. 30, 2023
Revenue from contracts with customers |  |
Recognition of price differential | $ 4,458,676 | $ 13,012,975
Cash flow hedging. |  |
Revenue from contracts with customers |  |
Result of hedges for future exports | 40,114 | (656,746)
Result from operations with derivative financial instruments | $ (130,737) | $ (16,805)

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

X
- Definition Amount of gain (loss) from hedges for future exports. + References No definition available. + Details
Name: | ec_GainLossFromHedgesForFutureExports
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of gain (loss) from operations with derivative financial instruments. + References No definition available. + Details
Name: | ec_GainLossFromOperationsWithDerivativeFinancialInstruments
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The price difference arising because of the difference in parity price of that product and regulated price by authority. + References No definition available. + Details
Name: | ec_IncreaseDecreaseInSalePriceDifferential
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_CashFlowHedgingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |