XML 204 R160.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Risk management - Financial assets and liabilities (Details) $ in Millions, $ in Millions | Dec. 31, 2023 COP ($) | Dec. 31, 2023 USD ($) | Dec. 31, 2022 COP ($) | Dec. 31, 2022 USD ($) | Dec. 31, 2021 COP ($) | Dec. 31, 2020 COP ($)
--- | --- | --- | --- | --- | --- | ---
Risk management |  |  |  |  |  |
Cash and cash equivalents | $ 12,336,115 |  | $ 15,401,058 |  | $ 14,549,906 | $ 5,082,308
Other financial assets | $ 2,232,775 |  | $ 2,725,871 |  |  |
USD$ Million |  |  |  |  |  |
Risk management |  |  |  |  |  |
Cash and cash equivalents |  | $ 554 |  | $ 615 |  |
Other financial assets |  | 1,188 |  | 955 |  |
Trade receivables and payables, net |  | (973) |  | (392) |  |
Loans and borrowings |  | (18,470) |  | (16,113) |  |
Other assets and liabilities, net |  | 268 |  | 202 |  |
Net liability position |  | $ (17,433) |  | $ (14,733) |  |

X
- Definition Disclosure of detailed information about financial risk management + References No definition available. + Details
Name: | ec_DisclosureOfDetailedInformationAboutFinancialRiskManagementLineItems
Namespace Prefix: | ec_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of outstanding funds (loan and borrowings) that the entity is obligated to repay. + References No definition available. + Details
Name: | ec_LoansAndBorrowings
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Other Assets and Liabilities, net + References No definition available. + Details
Name: | ec_OtherAssetsLiabilities
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of trade receivables and payables + References No definition available. + Details
Name: | ec_TradeReceivablesAndPayables
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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
- Definition The net amount of financial liabilities that are subject either to offsetting or to an enforceable master netting arrangement or similar agreement, presented in the statement of financial position. [Refer: Financial liabilities] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 13C -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_13C_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_NetFinancialLiabilitiesSubjectToOffsettingEnforceableMasterNettingArrangementsOrSimilarAgreementsInStatementOfFinancialPosition
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount of financial assets that the entity does not separately disclose in the same statement or note. [Refer: Financial assets] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 54 -Subparagraph d -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_d&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_OtherFinancialAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | srt_CurrencyAxis=ec_UsDollarMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |