XML 269 R161.htm IDEA: XBRL DOCUMENT
v3.25.1

Revenue from contracts with customers - Additional information (Details) - COP ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022
Revenue from contracts with customers |  |  |
Recognition of price differential | $ 7,525,429 | $ 20,531,095 | $ 36,532,743
Percentage of entity's revenue | 100.00% | 100.00% | 100.00%
Terpel |  |  |
Revenue from contracts with customers |  |  |
Percentage of entity's revenue | 11.00% | 10.00% | 9.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 | $ (238,943) | $ (479,779) | $ (1,143,287)
Result from operations with derivative financial instruments | $ (106,556) | $ (11,372) | $ (434,959)

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

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=ifrs-full_CashFlowHedgesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |