XML 220 R112.htm IDEA: XBRL DOCUMENT
v3.25.1

Taxes - Additional Information (Details) $ in Millions |  | 12 Months Ended |  |
--- | --- | --- | --- | ---
Jan. 01, 2022 | Dec. 31, 2024 COP ($) | Dec. 31, 2023 COP ($) | Dec. 31, 2022 | Dec. 31, 2021 | Dec. 29, 2024 | Dec. 13, 2022
Taxes |  |  |  |  |  |  |
Percentage of interest acquired |  | 45.00% |  |  |  |  |
Projected Surcharges |  | $ 2,478,546 |  |  |  |  |
Deferred tax |  | 12,955,929 | $ 11,824,515 |  |  |  |
Current tax liabilities |  | $ 2,769,379 | $ 2,869,225 |  |  |  |
Nominal income rate |  | 35.00% | 35.00% | 35.00% |  |  |
Presumptive income tax |  |  |  |  | 0.00% |  |
Effective tax rate |  | 39.80% | 31.20% |  |  |  |
Variation rate |  | 8.60% | 35.00% |  |  |  |
Amount of profit if unrecognized deferred tax asset recognized |  | $ (111,459) |  |  |  |  |
Deferred tax assets not recognised |  | $ 196,543 | $ 351,203 |  |  |  |
Percentage Of Industry And Commerce Tax Discount |  |  |  | 100.00% |  |  |
Applicable tax rate for fixed assets | 35 |  |  |  |  |  |
Capital debt ratio |  | 3 |  |  |  |  |
Vat rate |  | 19.00% |  |  |  |  | 20.00%
Free zone tax rate |  | 20.00% |  |  |  |  |
Income tax rate for future years in free zones |  | 15.00% |  |  |  |  |
Maximum deduction rate per year |  |  |  |  |  |  | 3.00%
Industry and commerce tax deduction rate |  |  | 100.00% |  |  |  |
Percentage of dividend tax rate as withholding tax on income |  |  |  |  |  |  | 10.00%
Ecopetrol Group |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Nominal income rate |  | 35.00% | 35.00% |  |  |  |
Ecopetrol USA Inc. |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Base tax amount |  | $ (69,951) |  |  |  |  |
Deferred tax assets amount unrecognized |  | $ (10,493) |  |  |  |  |
Block CPO09 |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Percentage of interest acquired |  | 45.00% |  |  |  | 45.00% |
2022 [Member] |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Applicable income tax rate before update |  |  |  | 30.00% |  |  |
Unused tax losses |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Deferred tax asset (liability) |  | $ 6,891,980 | $ 5,519,519 |  |  |  |
Deferred tax assets operating tax losses expiration period |  | 20 years |  |  |  |  |
Operating loss carryforwards, subject to expiration |  | $ 1,164,546 | 1,499,997 |  |  |  |
Dividend Tax Rate [Member] |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Withholding dividend tax rate |  | 10.00% |  |  |  |  |
Dividend Tax Rate [Member] | 2022 [Member] |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Nominal income rate |  | 35.00% |  |  |  |  |
Withholding dividend tax rate |  |  |  | 10.00% |  |  |
Industry and commerce tax |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Current tax liabilities |  | $ 377,055 | 367,861 |  |  |  |
ISA Group |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Deferred tax assets operating loss carry forwards not subject to expiration |  | 65,715 | 7,610 |  |  |  |
Other Companies |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Nominal tax rate |  | 119,291 |  |  |  |  |
Cenit | Plant and equipment |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Deferred tax |  | 139,837 |  |  |  |  |
Ecopetrol USA Inc. |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Tax discounts and tax credit |  | 394,968 |  |  |  |  |
Deferred tax assets operating loss carry forwards not subject to expiration |  | 1,088,178 | 60,568 |  |  |  |
Interligacao Eletrica Aguapei | Excess presumptive income |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Deferred tax |  | 533,993 |  |  |  |  |
Refineria de Cartagena S.A.S |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Tax discounts and tax credit |  | (429,047) |  |  |  |  |
Deferred tax assets operating loss carry forwards not subject to expiration |  | 2,236,467 | 1,916,114 |  |  |  |
Refineria de Cartagena S.A.S | Unused tax losses |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Tax discounts and tax credit |  | $ 209,592 |  |  |  |  |
Invercolsa S.A. |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Deferred tax assets operating tax losses expiration period |  | 12 years |  |  |  |  |
Operating loss carryforwards, subject to expiration |  | $ 15,567 | 16,112 |  |  |  |
Ruta de la Araucana and Transamerican |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Operating loss carryforwards, subject to expiration |  | 39,404 | 45,147 |  |  |  |
Ruta Costera |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Operating loss carryforwards, subject to expiration |  | 241,434 | 174,855 |  |  |  |
Deferred tax assets not recognised |  | 391 |  |  |  |  |
Internexa Chile |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Operating loss carryforwards, subject to expiration |  | 704,941 |  |  |  |  |
Ruta del Maipo |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Operating loss carryforwards, subject to expiration |  | 1,157,358 | 759,609 |  |  |  |
ISA Interchile |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Operating loss carryforwards, subject to expiration |  |  | 933,113 |  |  |  |
Ruta del Loa |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Operating loss carryforwards, subject to expiration |  | 60,616 | 30,057 |  |  |  |
Ruta del Bosque (Chile) |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Deferred tax assets not recognised |  | 107,006 | 100,356 |  |  |  |
Ruta del Maule (Chile) |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Deferred tax assets not recognised |  |  | 36,138 |  |  |  |
ISA Intervial Colombia |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Deferred tax assets not recognised |  | 528 | 542 |  |  |  |
ISA Capital do Brasil |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Deferred tax assets not recognised |  | 19,072 | 17,093 |  |  |  |
Internexa Brasil Operadora de Telecomunicaes |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Deferred tax assets not recognised |  | 95,226 | 95,226 |  |  |  |
Internexa Participaes (Brasil) |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Deferred tax assets not recognised |  | 2,641 | 2,579 |  |  |  |
ISA Bolivia |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Deferred tax assets not recognised |  | 7,867 | 4,934 |  |  |  |
Ecopetrol USA |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Nominal tax rate |  | 87,965 |  |  |  |  |
Ecopetrol Permian |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Nominal tax rate |  | 134,252 |  |  |  |  |
Ecopetrol Permian | Unused tax losses |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Deferred tax |  | 353,025 |  |  |  |  |
Refineria de Cartagena S.A.S [Member] |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Nominal tax rate |  | 99,766 |  |  |  |  |
Ecopetrol Capital AG |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Nominal tax rate |  | 25,607 |  |  |  |  |
Esenttia MB |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Nominal tax rate |  | 58,633 |  |  |  |  |
Operating loss carryforwards, subject to expiration |  | $ 117,754 | $ 76,337 |  |  |  |
Ecopetrol SA And Hocol Petroleum [Member] |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Applicable tax rate for fixed assets |  | 35 |  |  |  |  |
Free Trade Zone Area [Member] | Ecopetrol Group |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Presumptive income, percentage on beginning equity |  | 20.00% | 15.00% |  |  |  |
Ecopetrol Trading Asia |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Nominal tax rate |  | $ 137,610 |  |  |  |  |
Bottom of range |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Percentage of interest acquired |  | 20.00% |  |  |  |  |
Top of range |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Percentage of interest acquired |  | 50.00% |  |  |  |  |
Colombia Country [Member] |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Presumptive income tax | 50.00% |  |  |  |  |  |
Colombia Country [Member] | Ecopetrol Group |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Income tax rate for future years in free zones |  | 15.00% |  |  |  |  |
Free Trade Zone Area [Member] |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Nominal income rate |  | 20.00% |  |  |  |  |
Free trade zone with legal stability contract [Member] | Ecopetrol Group |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Nominal income rate |  | 15.00% |  |  |  |  |
Chile Country [Member] | Ecopetrol Group |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Nominal income rate |  | 27.00% |  |  |  |  |
United States Of America Country [Member] | Ecopetrol Group |  |  |  |  |  |  |
Taxes |  |  |  |  |  |  |
Nominal income rate |  | 21.00% |  |  |  |  |

X
- Definition The applicable tax rate for fixed assets. + References No definition available. + Details
Name: | ec_ApplicableTaxRateForFixedAssets
Namespace Prefix: | ec_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition The applicable income tax rate before update. + References No definition available. + Details
Name: | ec_ApplicableTaxRateOld
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Base tax amount. + References No definition available. + Details
Name: | ec_BaseTaxAmount
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Ratio of capital to debt. + References No definition available. + Details
Name: | ec_CaptialDebtRatio
Namespace Prefix: | ec_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | instant

X
- Definition Represents the amount of deferred tax asset not recognised. + References No definition available. + Details
Name: | ec_DeferredTaxAssetNotRecognised
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of unrecognized deferred tax assets. + References No definition available. + Details
Name: | ec_DeferredTaxAssetsAmountUnrecognized
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards that are not subject to expiration dates. + References No definition available. + Details
Name: | ec_DeferredTaxAssetsOperatingLossCarryForwardsNotSubjectToExpiration
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Expiration period of deferred tax asset attributable to deductible operating loss carryforwards. + References No definition available. + Details
Name: | ec_DeferredTaxAssetsOperatingLossCarryforwardsExpirationPeriod
Namespace Prefix: | ec_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | ec_DisclosureOfDetailedInformationAboutIncomeTaxLineItems
Namespace Prefix: | ec_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of tax rate at free zones. + References No definition available. + Details
Name: | ec_FreeZoneTaxRate
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards that are subject to expiration dates. + References No definition available. + Details
Name: | ec_IfrsDeferredTaxAssetsOperatingLossCarryforwardsSubjectToExpiration
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Percentage of deduction rate on industry and commerce tax. + References No definition available. + Details
Name: | ec_IndustryAndCommerceTaxDeductionRate
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage of maximum deduction rate allowed per year of ordinary liquid income before deducting the special deductions. + References No definition available. + Details
Name: | ec_MaximumDeductionRatePerYearOfOrdinaryLiquidIncome
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage of minimum tax rate and will be the result of dividing the adjusted tax on the debugged net profit. + References No definition available. + Details
Name: | ec_MinimumTaxRate
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The amount of profit have a nominal tax rate. + References No definition available. + Details
Name: | ec_NominalTaxRate
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The percentage of industry and commerce tax discount. + References No definition available. + Details
Name: | ec_PercentageOfIndustryAndCommerceTaxDiscount
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The presumptive income percentage on the amount of equity on beginning period. + References No definition available. + Details
Name: | ec_PresumptiveIncomePercentageOnBeginningEquity
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The percentage of presumptive income tax. + References No definition available. + Details
Name: | ec_PresumtiveIncomeTax
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount that represents the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that relates to changes in the tax rate, actuarial calculation, provisions, acquisitions and projected surcharges. + References No definition available. + Details
Name: | ec_TaxEffectFromChangeInTaxRateActuarialCalculationProvisionsAcquisitionsAndProjectedSurcharges
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Rate of variation from the change in effective tax rate. + References No definition available. + Details
Name: | ec_TaxRateVariationFromChangeInEffectiveTaxRate
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of value added tax rate. + References No definition available. + Details
Name: | ec_ValueAddedTaxRate
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Withholding dividend tax rate + References No definition available. + Details
Name: | ec_WithholdingDividendTaxRate
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of dividend tax rate as withholding tax on income + References No definition available. + Details
Name: | ec_WithholdingDividendTaxRateOnIncome
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The applicable income tax rate. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 12 -IssueDate 2024-01-01 -Paragraph 81 -Subparagraph c -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_81_c_ii&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_ApplicableTaxRate
Namespace Prefix: | ifrs-full_
Data Type: | dtr-2022:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The tax expense (income) divided by the accounting profit. [Refer: Accounting profit] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 12 -IssueDate 2024-01-01 -Paragraph 81 -Subparagraph c -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_81_c_ii&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_AverageEffectiveTaxRate
Namespace Prefix: | ifrs-full_
Data Type: | dtr-2022:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The current amount of current tax liabilities. [Refer: Current tax liabilities] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 54 -Subparagraph n -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_54_n&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_CurrentTaxLiabilitiesCurrent
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amounts of income taxes payable in future periods in respect of taxable temporary differences. [Refer: Temporary differences [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 12 -IssueDate 2024-01-01 -Paragraph 81 -Subparagraph g -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_81_g_i&doctype=Standard -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 54 -Subparagraph o -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_54_o&doctype=Standard -URIDate 2024-03-27 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 56 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_56&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_DeferredTaxLiabilities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The increase (decrease) in a deferred tax liability (asset). [Refer: Deferred tax liability (asset)] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 12 -IssueDate 2024-01-01 -Paragraph 81 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_81&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_IncreaseDecreaseInDeferredTaxLiabilityAsset
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The percentage of voting equity interests acquired in a business combination. [Refer: Total for all business combinations [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 3 -IssueDate 2024-01-01 -Paragraph B64 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2024-en-r&anchor=para_B64_c&doctype=Appendix&subtype=B -URIDate 2024-03-27 + Details
Name: | ifrs-full_PercentageOfVotingEquityInterestsAcquired
Namespace Prefix: | ifrs-full_
Data Type: | dtr-2022:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The amount of benefit arising from a previously unrecognised tax loss, tax credit or temporary difference of a prior period that is used to reduce deferred tax expense. [Refer: Deferred tax expense (income); Temporary differences [member]; Unused tax losses [member]; Unused tax credits [member]] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 12 -IssueDate 2024-01-01 -Paragraph 80 -Subparagraph f -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_80_f&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_TaxBenefitArisingFromPreviouslyUnrecognisedTaxLossTaxCreditOrTemporaryDifferenceOfPriorPeriodUsedToReduceDeferredTaxExpense
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount that represents the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that relates to tax losses. [Refer: Accounting profit] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 12 -IssueDate 2024-01-01 -Paragraph 81 -Subparagraph c -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_81_c_i&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_TaxEffectOfTaxLosses
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | ifrs-full_SegmentsAxis=ec_EcopetrolGroupMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SegmentsAxis=ec_EcopetrolAmericaIncMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_BusinessCombinationsAxis=ec_BlockCpo09FromRepsolColombiaOilGasLimitedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ec_FinancialYearAxis=ec_TwoThousandTwentyTwoAfterMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis=ifrs-full_UnusedTaxLossesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ec_IncomeTaxTypeAxis=ec_DividendTaxRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ec_CurrentTaxLiabilitiesTypeAxis=ec_IndustryAndCommerceTaxMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ec_IsaMember
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: |

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

X
- Details
Name: | ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis=ifrs-full_PropertyPlantAndEquipmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

X
- Details
Name: | ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis=ec_ExcessPresumptiveIncomeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

X
- Details
Name: | ifrs-full_RangeAxis=ifrs-full_BottomOfRangeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_RangeAxis=ifrs-full_TopOfRangeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_GeographicalAreasAxis=ec_ColombiaCountryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_GeographicalAreasAxis=ec_FreeTradeZoneAreaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_GeographicalAreasAxis=ec_FreeTradeZoneWithLegalStabilityContractMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_GeographicalAreasAxis=ec_ChileCountryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_GeographicalAreasAxis=ec_UnitedStatesOfAmericaCountryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |