XML 182 R138.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Provisions for employees' benefits - Credit ratings of the issuers and counterparties in assets (Details) - COP ($) $ in Millions | Dec. 31, 2023 | Dec. 31, 2022
--- | --- | ---
Disclosure of defined benefit plans |  |
Plan assets, at fair value | $ 12,011,267 | $ 10,398,810
AAA |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 4,567,823 | 4,138,043
Nation |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 4,037,150 | 3,319,858
BB+ |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 407,183 | 267,961
AA+ |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 323,613 | 312,303
BBB- |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 164,034 | 47,919
AA |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 155,628 | 161,244
F1+ |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 64,624 | 87,111
BBB+ |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 24,796 | 30,331
BAA2 |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 23,864 | 20,880
AA- |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 18,836 | 8,714
BAA1 |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 16,728 | 20,814
BRC1+ |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 15,506 | 43,000
A+ |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 9,499 | 23,514
A |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 1,884 | 2,352
Other ratings |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 985,554 | 414,681
Rating not available |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | $ 1,194,545 | $ 1,500,085

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
- Definition The fair value of defined benefit plan assets. Plan assets comprise assets held by a long-term employee benefit fund and qualifying insurance policies. [Refer: At fair value [member]] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 19 -IssueDate 2023-01-01 -Paragraph 57 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_57_a&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_PlanAssetsAtFairValue
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_AaaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_NationMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_BbPlusMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_AaPlusMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_BbbMinusMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_AaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_FOnePlusMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_BbbPlusMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_BaaTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_AaMinusMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_BaaOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_BrcOnePlusMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_AplusMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_GradeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_OtherQualificationsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_UnratedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |