XML 128 R84.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Cash and cash equivalents - Additional Information (Details) - COP ($) $ in Millions | Dec. 31, 2023 | Dec. 31, 2022
--- | --- | ---
Cash and cash equivalents |  |
Restricted cash | $ 1,724,488 | $ 2,067,279
Return on cash and cash equivalents | 9.80% | 8.50%
Interconexion Electrica S.A. E.S.P. |  |
Cash and cash equivalents |  |
Restricted cash | $ 1,580,106 | $ 1,987,409
Cenit |  |
Cash and cash equivalents |  |
Restricted cash | 143,464 | $ 79,870
Other Companies |  |
Cash and cash equivalents |  |
Restricted cash | $ 918 |

X
- Definition The percentage of average return earned on cash and cash equivalents during the period. + References No definition available. + Details
Name: | ec_AverageRateOfReturnOnCashAndCashEquivalents
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
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: | ec_DisclosureOfCashAndCashEquivalentsLineItems
Namespace Prefix: | ec_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of cash and cash equivalents whose use or withdrawal is restricted. [Refer: Cash and cash equivalents] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 55 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_55&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_RestrictedCashAndCashEquivalents
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ec_InterconexinElctricaS.a.EspMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ec_CenitTransporteYLogsticaSASMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ec_OtherCompaniesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |