XML 157 R49.htm IDEA: XBRL DOCUMENT
v3.25.1

Cash and cash equivalents (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2024
Cash and cash equivalents |
Schedule of Cash and cash equivalents | ​
​ | ​ | ​ | ​ | ​
​ |  | 2024 |  | 2023
Banks |  | 8,990,139 |  | 7,525,552
Short–term investments |  | 5,061,940 |  | 4,808,610
Cash |  | 2,396 |  | 1,953
​ |  | 14,054,475 |  | 12,336,115
​
Credit quality of issuers of investments |
Cash and cash equivalents |
Schedule of other financial assets measured at fair value through profit or loss | ​
​ | ​ | ​ | ​ | ​
Rating |  | 2024 |  | 2023
AAA |  | 1,994,024 |  | 993,553
F1 | ​ | 1,887,118 | ​ | 2,133,937
A+ | ​ | 1,791,193 | ​ | —
F3 |  | 1,419,481 |  | 70,055
A-1 | ​ | 1,107,673 | ​ | 1,498,034
P-1 | ​ | 1,058,446 | ​ | 741,041
F1+ | ​ | 1,027,253 | ​ | 2,349,260
A | ​ | 701,821 | ​ | —
BRC1+ | ​ | 526,853 | ​ | 378,077
BBB | ​ | 352,609 | ​ | 68,378
F2 | ​ | 331,879 | ​ | 630,089
Ba1 | ​ | 156,726 | ​ | —
AA | ​ | 123,665 | ​ | —
A1 | ​ | 85,050 | ​ | —
P AAA | ​ | 38,398 | ​ | 1,475,084
BB | ​ | 12,461 | ​ | 103,066
AAAmmf | ​ | 5,496 | ​ | 4,562
AAAF | ​ | 5,439 | ​ | 64,518
B |  | 3,785 |  | 670,268
BRC1 |  | 1,090 |  | 1,513
Aaa |  | 8 |  | 1,798
AAAm |  | — |  | 51,710
C | ​ | — | ​ | 3,156
Not available rating | ​ | 1,424,007 | ​ | 1,098,016
​ | ​ | 14,054,475 | ​ | 12,336,115

X
- Definition The disclosure of detailed information about Cash and cash equivalents. + References No definition available. + Details
Name: | ec_DisclosureOfDetailedInformationAboutCashAndCashEquivalents
Namespace Prefix: | ec_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition The disclosure of credit risk. [Refer: Credit risk [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2024-01-01 -Section Credit risk -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&doctype=Standard&dita_xref=IFRS07_g35A-38_TI -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 10 -Subparagraph e -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_10_e&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_DisclosureOfCreditRiskExplanatory
Namespace Prefix: | ifrs-full_
Data Type: | dtr-2022:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ec_CreditQualityAxis=ec_CreditQualityOfIssuersOfInvestmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |