XML 198 R154.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Revenue from contracts with customers - Additional information (Details) - COP ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Revenue from contracts with customers |  |  |
Recognition of price differential | $ 20,531,095 | $ 36,532,743 | $ 11,335,453
Percentage of entity's revenue | 100.00% | 100.00% | 100.00%
Black Gold Re Ltd. | Adoption of new standards | IFRS 17 Issuance contract |  |  |
Revenue from contracts with customers |  |  |
Increase in other foreign services revenues | $ 3,763 |  |
Terpel |  |  |
Revenue from contracts with customers |  |  |
Percentage of entity's revenue | 10.00% | 9.00% | 11.00%
Others |  |  |
Revenue from contracts with customers |  |  |
Percentage of entity's revenue | 10.00% |  |
Cash flow hedging. |  |  |
Revenue from contracts with customers |  |  |
Result of hedges for future exports | $ (479,779) | $ (1,143,287) | $ (249,978)
Result from operations with derivative financial instruments | $ 11,372 | $ (434,959) | $ (99,914)

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
- Definition The amount of increase in other foreign service revenues. + References No definition available. + Details
Name: | ec_IncreaseInOtherForeignServiceRevenues
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The percentage of the entity's revenue. [Refer: Revenue] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IFRS -Number 8 -IssueDate 2023-01-01 -Paragraph 34 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_34&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_PercentageOfEntitysRevenue
Namespace Prefix: | ifrs-full_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ec_BlackGoldReLtdMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis=ifrs-full_IncreaseDecreaseDueToChangesInAccountingPolicyRequiredByIFRSsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_InitiallyAppliedIFRSsAxis=ifrs-full_IFRS17Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MarketsOfCustomersAxis=ec_TerpelMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MarketsOfCustomersAxis=ec_OthersMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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