XML 253 R145.htm IDEA: XBRL DOCUMENT
v3.25.1

Provisions for employees' benefits - Credit ratings of the issuers and counterparties in assets (Details) - COP ($) $ in Millions | Dec. 31, 2024 | Dec. 31, 2023
--- | --- | ---
Disclosure of defined benefit plans |  |
Plan assets, at fair value | $ 11,730,776 | $ 12,011,267
AAA |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 6,696,147 | 4,567,823
Nation |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 4,292,768 | 4,037,150
AA+ |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 343,639 | 323,613
AA |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 124,386 | 155,628
F1+ |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 45,233 | 64,624
BRC1+ |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 32,022 | 15,506
BB+ |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 0 | 407,183
BBB- |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 0 | 164,034
BAA2 |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 0 | 23,864
BBB+ |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 0 | 24,796
AA- |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 0 | 18,836
BAA1 |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 0 | 16,728
A+ |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 0 | 9,499
A |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 0 | 1,884
Other ratings |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | 114,539 | 985,554
Rating not available |  |
Disclosure of defined benefit plans |  |
Plan assets, at fair value | $ 82,042 | $ 1,194,545

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 2024-01-01 -Paragraph 57 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2024-en-r&anchor=para_57_a&doctype=Standard -URIDate 2024-03-27 + 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_AaPlusMember
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_BrcOnePlusMember
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_BbbMinusMember
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_BbbPlusMember
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_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: |