XML 174 R130.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Loans and borrowings - Additional Information (Details) $ / shares in Units, $ in Millions, $ in Millions | 1 Months Ended | 12 Months Ended |  |
--- | --- | --- | --- | ---
Sep. 30, 2023 USD ($) | Jul. 31, 2023 USD ($) | Jan. 31, 2023 USD ($) | Dec. 31, 2023 COP ($) $ / shares | Dec. 31, 2023 USD ($) | Dec. 31, 2022 COP ($) | Dec. 31, 2021 COP ($) | Dec. 31, 2023 USD ($) | Dec. 31, 2022 USD ($)
Loans and borrowings |  |  |  |  |  |  |  |  |
Repayment of loans and borrowings |  |  |  | $ 21,659,669 |  | $ 16,409,494 | $ 11,267,540 |  |
Proceeds from borrowings |  |  |  | 34,035,090 |  | 16,844,029 | 24,666,792 |  |
Fair value of loans and borrowings |  |  |  | 104,223,267 |  | 106,509,947 |  |  |
Proceeds obtained from loans and borrowings |  |  |  | 34,035,090 |  |  |  |  |
Interest payments |  |  |  | 6,580,746 |  | 5,492,251 | $ 3,333,555 |  |
ISA and its Companies |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Estimated value of the current guarantees |  |  |  | 20,607,822 |  | 23,670,968 |  |  |
Chile | ISA and its Companies |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Estimated value of the current guarantees |  |  |  | 14,899,609 |  | 17,676,320 |  |  |
Brazil | ISA and its Companies |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Estimated value of the current guarantees |  |  |  | 3,029,213 |  | 3,315,648 |  |  |
Colombia | ISA and its Companies |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Estimated value of the current guarantees |  |  |  | $ 2,679,000 |  | $ 2,679,000 |  |  |
Hedge of a net investment in a foreign operation |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Amount in which the company expanded the hedge of a net investment in a foreign operation |  |  |  |  |  |  |  | $ 10,270 | $ 8,940
Cash flow hedging |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Amount in which the company expanded the hedge of a net investment in a foreign operation |  |  |  |  |  |  |  | 6,265 | 5,572
Local Borrowings | Hedge of a net investment in a foreign operation |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Amount in which the company expanded the hedge of a net investment in a foreign operation |  |  |  |  |  |  |  | $ 16,535 | $ 14,512
Commercial and syndicate loans | Local currency |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Borrowings, interest rate |  |  |  | 12.90% |  | 11.50% |  | 12.90% | 11.50%
Commercial and syndicate loans | Foreign currency |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Borrowings, interest rate |  |  |  | 7.20% |  | 4.60% |  | 7.20% | 4.60%
Commercial Loan Maturity June 2028 | Local currency |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Proceeds from borrowings |  |  |  |  | $ 400 |  |  |  |
Commercial Loan Maturity June 2028 | IBR 6M rate | Local currency |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Spread on variable rate |  |  |  | 4.90% |  |  |  | 4.90% |
Long Term Syndicated Loan | Local currency |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Proceeds from borrowings | $ 800 |  |  |  |  |  |  |  |
Bonds | Local currency |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Borrowings, interest rate |  |  |  | 12.40% |  | 9.80% |  | 12.40% | 9.80%
Bonds | Foreign currency |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Decrease In Exchange Rate Of Colombian Pesos Per Dollar | $ / shares |  |  |  | $ 988.15 |  |  |  |  |
Borrowings, interest rate |  |  |  | 6.40% |  | 6.00% |  | 6.40% | 6.00%
Proceeds from borrowings |  |  | $ 300 |  |  |  |  |  |
Bonds With Coupon Rate 8.88 Percent | Foreign currency |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Borrowings, interest rate |  |  | 8.88% |  |  |  |  |  |
Proceeds from borrowings |  |  | $ 2,000 |  |  |  |  |  |
Ifrs Debt Instrument, Term |  |  | 10 years |  |  |  |  |  |
Bonds With Coupon Rate 8.63 Percent | Foreign currency |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Borrowings, interest rate |  | 8.63% |  |  |  |  |  |  |
Proceeds from borrowings |  | $ 1,200 |  |  |  |  |  |  |
Ifrs Debt Instrument, Term |  | 5 years 6 months |  |  |  |  |  |  |
Ecopetrol S.A |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Repayment of loans and borrowings |  |  |  | $ 16,926,267 |  |  |  |  |
Proceeds obtained from loans and borrowings |  |  |  | 27,264,517 |  |  |  |  |
Interest payments |  |  |  | 4,242,746 |  |  |  |  |
Interconexion Electrica S.A. E.S.P |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Repayment of loans and borrowings |  |  |  | 3,937,765 |  |  |  |  |
Proceeds obtained from loans and borrowings |  |  |  | 6,143,079 |  |  |  |  |
Interest payments |  |  |  | 2,162,537 |  |  |  |  |
Ocensa S.A |  |  |  |  |  |  |  |  |
Loans and borrowings |  |  |  |  |  |  |  |  |
Repayment of loans and borrowings |  |  |  | $ 454,009 |  |  |  |  |

X
- Definition The amount of decrease in exchange rate of Colombian pesos per dollar. + References No definition available. + Details
Name: | ec_DecreaseInExchangeRateOfColombianPesosPerDollar
Namespace Prefix: | ec_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition Estimated amount of current guarantees. + References No definition available. + Details
Name: | ec_EstimatedValueOfCurrentGuarantees
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Period of time between issuance and maturity of debt instrument, in PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | ec_IfrsDebtInstrumentTerm
Namespace Prefix: | ec_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value portion of contractual obligation to pay money on demand or on fixed or determinable dates. + References No definition available. + Details
Name: | ec_LoansPayableFairValue
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The adjustment to the basis (reference rate) used for calculation of the interest rate on borrowings. [Refer: Borrowings] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 7 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_7&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_BorrowingsAdjustmentToInterestRateBasis
Namespace Prefix: | ifrs-full_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The interest rate on borrowings. [Refer: Borrowings] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 7 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_7&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_BorrowingsInterestRate
Namespace Prefix: | ifrs-full_
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: | ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The fair value of financial instruments designated as hedging instruments. Hedging instruments are designated derivatives or (for a hedge of the risk of changes in foreign currency exchange rates only) designated non-derivative financial assets or non-derivative financial liabilities whose fair value or cash flows are expected to offset changes in the fair value or cash flows of a designated hedged item. [Refer: At fair value [member]; Derivatives [member]; Derivative financial assets; Derivative financial liabilities; Financial instruments, class [member]; Financial assets; Financial liabilities] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Note Expired 2023-01-01 -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 22 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_22_b&doctype=Standard&book=b -URIDate 2023-03-23 + Details
Name: | ifrs-full_FinancialInstrumentsDesignatedAsHedgingInstrumentsAtFairValue
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- Definition The cash outflow for interest paid, classified as financing activities. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 31 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_31&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_InterestPaidClassifiedAsFinancingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash inflow from borrowings obtained. [Refer: Borrowings] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 17 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_17_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash inflow from non-current borrowings obtained. [Refer: Borrowings] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 17 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_17&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ProceedsFromNoncurrentBorrowings
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash outflow to settle borrowings, classified as financing activities. [Refer: Borrowings] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 17 -Subparagraph d -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_17_d&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | ec_IfrsLegalEntityAxis=ec_IsaAndItsCompaniesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=country_CL
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=country_BR
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=country_CO
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_TypesOfHedgesAxis=ifrs-full_HedgesOfNetInvestmentInForeignOperationsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_TypesOfHedgesAxis=ifrs-full_CashFlowHedgesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_BorrowingsByNameAxis=ec_LocalBorrowingsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_BorrowingsByNameAxis=ec_CommercialAndSyndicateLoansMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ec_CurrencyTypesAxis=ec_LocalCurrencyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ec_CurrencyTypesAxis=ec_ForeignCurrencyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_BorrowingsByNameAxis=ec_CommercialLoanMaturityJune2028Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_TypesOfInterestRatesAxis=ec_Ibr6mRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_BorrowingsByNameAxis=ec_LongTermSyndicatedLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_BorrowingsByNameAxis=ec_BondMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_BorrowingsByNameAxis=ec_BondsWithCouponRate8.88PercentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_BorrowingsByNameAxis=ec_BondsWithCouponRate8.63PercentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_BorrowingsByNameAxis=ec_BorrowingsByEcopetrolS.aMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_BorrowingsByNameAxis=ec_BorrowingsByInterconexionElectricaS.a.E.s.pMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_BorrowingsByNameAxis=ec_BorrowingsByOcensaS.aMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |