XML 205 R161.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Risk management - Financial assets and liabilities denominated in foreign currency (Details) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 COP ($)
Risk management |
Scenario / variation in the exchange rate | 1.00%
variation in the exchange rate | 5.00%
USD$ Million |
Risk management |
variation in the exchange rate | 5.00%
Currency risk |
Risk management |
One Percent variations in exchange rate, Effect on income before income taxes | $ 34,326
One percent variations in exchange rate, effect on other comprehensive income | 631,972
Five Percent variations in exchange rate, Effect on income before income taxes | 171,630
Five Percent variations in exchange rate, effect on other comprehensive income | $ 3,159,860

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 Amount of change in comprehensive income due to 5% change in exchange rate. + References No definition available. + Details
Name: | ec_FivePercentVariationInExchangeRateOtherComprehensiveIncome
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of change in income before income taxes due to 5% change in exchange rate. + References No definition available. + Details
Name: | ec_FivePercentVariationsInExchangeRateEffectOnIncomeBeforeIncomeTaxes
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The percentage of maximum investment in terms of cash provided by entity in portfolio, current. + References No definition available. + Details
Name: | ec_MaximumPercentageOfCashInvestmentHeldInPortfolioCurrent
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The percentage of maximum investment in terms of cash provided by entity in portfolio, non current. + References No definition available. + Details
Name: | ec_MaximumPercentageOfCashInvestmentHeldInPortfolioNonCurrent
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of change in income before income taxes due to 1% change in exchange rate. + References No definition available. + Details
Name: | ec_OnePercentVariationsInExchangeRateEffectOnIncomeBeforeIncomeTaxes
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of change in comprehensive income due to 1% change in exchange rate. + References No definition available. + Details
Name: | ec_OnePercentVariationsInExchangeRateOtherComprehensiveIncome
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | srt_CurrencyAxis=ec_UsDollarMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_TypesOfRisksAxis=ifrs-full_CurrencyRiskMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |