XML 251 R143.htm IDEA: XBRL DOCUMENT
v3.25.1

Provisions for employees' benefits - Plan assets of pension and pension bonds (Details) - Pension trust - COP ($) $ in Millions | Dec. 31, 2024 | Dec. 31, 2023
--- | --- | ---
Disclosure of defined benefit plans |  |
Assets of benefit plan | $ 11,730,776 | $ 12,011,267
Floating interest rate |  |
Disclosure of defined benefit plans |  |
Debt instruments, amount contributed to fair value of plan assets | 230,634 | 1,027,891
Foreign currency |  |
Disclosure of defined benefit plans |  |
Debt instruments, amount contributed to fair value of plan assets | 2,935,450 | 1,980,308
Local currency |  |
Disclosure of defined benefit plans |  |
Debt instruments, amount contributed to fair value of plan assets | 3,189,859 | 3,298,496
Bonds of private entities |  |
Disclosure of defined benefit plans |  |
Debt instruments, amount contributed to fair value of plan assets | 2,932,226 | 3,118,893
Bonds issued by the national government |  |
Disclosure of defined benefit plans |  |
Debt instruments, amount contributed to fair value of plan assets | 1,930,500 | 2,262,378
Other public bonds |  |
Disclosure of defined benefit plans |  |
Debt instruments, amount contributed to fair value of plan assets |  | 197,044
Bonds of foreign entities |  |
Disclosure of defined benefit plans |  |
Cash and cash equivalents, amount contributed to fair value of plan assets | $ 512,107 | $ 126,257

X
- Definition The amount of assets held by retirement benefit plans. [Refer: Defined benefit plans [domain]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 26 -IssueDate 2024-01-01 -Paragraph 35 -Subparagraph a -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2024-en-r&anchor=para_35_a_i&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_AssetsOfBenefitPlan
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount cash and cash equivalents contribute to the fair value of defined benefit plan assets. [Refer: Cash and cash equivalents; Plan assets, at fair value; Defined benefit plans [domain]] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 19 -IssueDate 2024-01-01 -Paragraph 142 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2024-en-r&anchor=para_142_a&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_CashAndCashEquivalentsAmountContributedToFairValueOfPlanAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount instruments representing debt (rather than equity) contribute to the fair value of defined benefit plan assets. [Refer: Plan assets, at fair value; Defined benefit plans [domain]] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 19 -IssueDate 2024-01-01 -Paragraph 142 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2024-en-r&anchor=para_142_c&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_DebtInstrumentsAmountContributedToFairValueOfPlanAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table. + References No definition available. + Details
Name: | ifrs-full_DisclosureOfDefinedBenefitPlansLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ec_TrustAxis=ec_PensionTrustMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_TypesOfInterestRatesAxis=ifrs-full_FloatingInterestRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ec_CurrencyTypesAxis=ec_ForeignCurrencyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ec_CurrencyTypesAxis=ec_LocalCurrencyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=ec_PrivateEntitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=ec_NationalGovernmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=ec_PublicEntitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=ec_ForeignEntitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |