XML 180 R136.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Provisions for employees' benefits - Plan assets of pension and pension bonds (Details) - Pension trust - COP ($) $ in Millions | Dec. 31, 2023 | Dec. 31, 2022
--- | --- | ---
Disclosure of defined benefit plans |  |
Assets of benefit plan | $ 12,011,267 | $ 10,398,810
Floating interest rate |  |
Disclosure of defined benefit plans |  |
Debt instruments, amount contributed to fair value of plan assets | 1,027,891 | 291,847
Foreign currency |  |
Disclosure of defined benefit plans |  |
Debt instruments, amount contributed to fair value of plan assets | 1,980,308 | 1,762,899
Local currency |  |
Disclosure of defined benefit plans |  |
Debt instruments, amount contributed to fair value of plan assets | 3,298,496 | 4,810,813
Bonds of private entities |  |
Disclosure of defined benefit plans |  |
Debt instruments, amount contributed to fair value of plan assets | 3,118,893 | 1,674,431
Bonds issued by the national government |  |
Disclosure of defined benefit plans |  |
Debt instruments, amount contributed to fair value of plan assets | 2,262,378 | 1,552,690
Other public bonds |  |
Disclosure of defined benefit plans |  |
Debt instruments, amount contributed to fair value of plan assets | 197,044 | 201,508
Bonds of foreign entities |  |
Disclosure of defined benefit plans |  |
Cash and cash equivalents, amount contributed to fair value of plan assets | $ 126,257 | $ 104,622

X
- Definition The amount of assets held by retirement benefit plans. [Refer: Defined benefit plans [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 26 -IssueDate 2023-01-01 -Paragraph 35 -Subparagraph a -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2023-en-r&anchor=para_35_a_i&doctype=Standard -URIDate 2023-03-23 + 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 [member]] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 19 -IssueDate 2023-01-01 -Paragraph 142 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_142_a&doctype=Standard -URIDate 2023-03-23 + 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 [member]] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 19 -IssueDate 2023-01-01 -Paragraph 142 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_142_c&doctype=Standard -URIDate 2023-03-23 + 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: | ec_LegalEntitiesAxis=ec_PrivateEntitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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