XML 129 R85.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Cash and cash equivalents - Credit quality of banks in Ecopetrol Business Group has deposits and check accounts, and issuers of investments (Details) - COP ($) $ in Millions | Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
--- | --- | --- | --- | ---
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | $ 12,336,115 | $ 15,401,058 | $ 14,549,906 | $ 5,082,308
F1+ |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 2,349,260 | 466,031 |  |
F1 |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 2,133,937 | 1,458,524 |  |
A-1 |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 1,498,034 | 731,424 |  |
P AAA |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 1,475,084 | 0 |  |
AAA |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 993,553 | 5,356,966 |  |
P-1 |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 741,041 | 0 |  |
B |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 670,268 | 16,753 |  |
F2 |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 630,089 | 0 |  |
BRC1+ |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 378,077 | 606,052 |  |
BB |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 103,066 | 463,681 |  |
F3 |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 70,055 | 584 |  |
BBB |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 68,378 | 425,485 |  |
AAAf |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 0 | 714 |  |
AAAm |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 51,710 | 0 |  |
AAAmmf |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 4,562 | 5,508 |  |
C |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 3,156 | 0 |  |
Aaa |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 1,798 | 10,276 |  |
BRC1 |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 1,513 | 1,201 |  |
A |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 0 | 919,903 |  |
A-2 |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 0 | 749,912 |  |
AA |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 0 | 675,596 |  |
A3 |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 0 | 647,316 |  |
A+ |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 0 | 543,260 |  |
A- |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 0 | 477,059 |  |
A2 |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 0 | 197,917 |  |
A1 |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 0 | 192,594 |  |
Baa1 |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 0 | 93,157 |  |
Caa3 |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 0 | 4,385 |  |
Ba1 |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 0 | 3,083 |  |
CCC |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 0 | 1,160 |  |
AAAF |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 64,518 | 0 |  |
Ba2 |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 0 | 3 |  |
Baa3 |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | 0 | 1 |  |
Others |  |  |  |
Cash and cash equivalents |  |  |  |
Cash and cash equivalents | $ 1,098,016 | $ 1,352,513 |  |

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 amount of cash on hand and demand deposits, along with short-term, highly liquid investments that are readily convertible to known amounts of cash and that are subject to an insignificant risk of changes in value. [Refer: Cash; Cash equivalents] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 45 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_45&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph B13 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B13_a&doctype=Appendix&subtype=B -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 54 -Subparagraph i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_i&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashAndCashEquivalents
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

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

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

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

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

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

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

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_FTwoMember
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_BbMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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

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

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

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

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

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ec_Brc1Member
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_TwoMember
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_A3Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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

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

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

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

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

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

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

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

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

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