XML 152 R108.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Taxes - Additional Information (Details) R$ in Millions, $ in Millions |  | 12 Months Ended |
--- | --- | --- | ---
Jan. 01, 2022 | Dec. 31, 2023 COP ($) | Dec. 31, 2023 BRL (R$) | Dec. 31, 2022 COP ($) | Dec. 31, 2021 | Dec. 13, 2022
Taxes |  |  |  |  |  |
Current tax liabilities |  | $ 2,869,225 |  | $ 7,630,901 |  |
Nominal income rate |  | 35.00% | 35.00% | 35.00% | 31.00% |
Presumptive income tax |  |  |  |  | 0.00% |
Effective tax rate |  | 31.20% | 31.20% | 35.00% |  |
Variation rate |  | (3.80%) | (3.80%) |  |  |
Percentage of increase or decrease in exchange rates |  | 20.50% | 20.50% |  |  |
Deferred tax assets not recognised |  | $ 351,203 |  | $ 363,158 |  |
Deferred tax assets are not recognized, Base amount |  | 11,573 |  |  |  |
Deferred tax assets are not recognized, Tax |  | $ 1,736 |  |  |  |
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% | 35.00% |  |
Ecopetrol USA Inc. |  |  |  |  |  |
Taxes |  |  |  |  |  |
Base tax amount |  | $ (22,891) |  |  |  |
Deferred tax assets amount unrecognized |  | (3,276) |  |  |  |
2022 [Member] |  |  |  |  |  |
Taxes |  |  |  |  |  |
Applicable income tax rate before update |  |  |  | 30.00% |  |
Unused tax losses |  |  |  |  |  |
Taxes |  |  |  |  |  |
Deferred tax asset (liability) |  | $ 5,519,519 |  | $ 6,497,845 |  |
Deferred tax assets operating tax losses expiration period |  | 20 years | 20 years |  |  |
Operating loss carryforwards, subject to expiration |  | $ 1,499,997 |  | $ 1,887,805 |  |
Dividend Tax Rate [Member] |  |  |  |  |  |
Taxes |  |  |  |  |  |
Withholding dividend tax rate |  | 10.00% | 10.00% |  |  |
Dividend Tax Rate [Member] | 2022 [Member] |  |  |  |  |  |
Taxes |  |  |  |  |  |
Nominal income rate |  | 35.00% | 35.00% |  |  |
Withholding dividend tax rate |  |  |  | 10.00% |  |
Industry and commerce tax |  |  |  |  |  |
Taxes |  |  |  |  |  |
Current tax liabilities |  | $ 367,861 |  | $ 346,958 |  |
ISA Group |  |  |  |  |  |
Taxes |  |  |  |  |  |
Deferred tax assets operating loss carry forwards not subject to expiration |  | 7,610 |  | 35,806 |  |
ISA Group | Industry and commerce tax |  |  |  |  |  |
Taxes |  |  |  |  |  |
Current tax liabilities |  | 88,901 |  |  |  |
Other Companies |  |  |  |  |  |
Taxes |  |  |  |  |  |
Nominal tax rate |  | 183,485 |  |  |  |
Ecopetrol USA Inc. |  |  |  |  |  |
Taxes |  |  |  |  |  |
Deferred tax assets operating loss carry forwards not subject to expiration |  | 60,568 |  | 339,950 |  |
Refineria de Cartagena S.A.S |  |  |  |  |  |
Taxes |  |  |  |  |  |
Deferred tax assets operating loss carry forwards not subject to expiration |  | $ 1,916,114 |  | 1,871,732 |  |
Invercolsa |  |  |  |  |  |
Taxes |  |  |  |  |  |
Deferred tax assets operating tax losses expiration period |  | 12 years | 12 years |  |  |
Operating loss carryforwards, subject to expiration |  | $ 16,112 |  | 17,524 |  |
Ruta de la Araucana and Transamerican |  |  |  |  |  |
Taxes |  |  |  |  |  |
Operating loss carryforwards, subject to expiration |  | 45,147 |  | 111,273 |  |
Ruta Costera |  |  |  |  |  |
Taxes |  |  |  |  |  |
Operating loss carryforwards, subject to expiration |  | 174,855 |  | 84,964 |  |
Internexa Chile |  |  |  |  |  |
Taxes |  |  |  |  |  |
Operating loss carryforwards, subject to expiration |  | 16,062 |  |  |  |
Deferred tax assets not recognised |  | 12,859 |  |  |  |
Ruta del Maipo |  |  |  |  |  |
Taxes |  |  |  |  |  |
Operating loss carryforwards, subject to expiration |  | 759,609 |  | 1,000,632 |  |
ISA Interchile |  |  |  |  |  |
Taxes |  |  |  |  |  |
Operating loss carryforwards, subject to expiration |  | 933,113 |  | 1,104,625 |  |
Ruta del Loa |  |  |  |  |  |
Taxes |  |  |  |  |  |
Operating loss carryforwards, subject to expiration |  | 30,057 |  | 27,472 |  |
Ruta del Bosque (Chile) |  |  |  |  |  |
Taxes |  |  |  |  |  |
Deferred tax assets not recognised |  | 100,356 |  | 102,864 |  |
Ruta del Maule (Chile) |  |  |  |  |  |
Taxes |  |  |  |  |  |
Deferred tax assets not recognised |  | 36,138 |  | 43,702 |  |
ISA Intervial Colombia |  |  |  |  |  |
Taxes |  |  |  |  |  |
Deferred tax assets not recognised |  | 542 |  | 564 |  |
ISA Capital do Brasil |  |  |  |  |  |
Taxes |  |  |  |  |  |
Deferred tax assets not recognised |  | 17,093 |  | 20,216 |  |
Internexa Brasil Operadora de Telecomunicaes |  |  |  |  |  |
Taxes |  |  |  |  |  |
Deferred tax assets not recognised |  | 95,226 |  | 101,525 |  |
Internexa Participaes (Brasil) |  |  |  |  |  |
Taxes |  |  |  |  |  |
Deferred tax assets not recognised |  | 2,579 |  | 2,913 |  |
ISA Bolivia |  |  |  |  |  |
Taxes |  |  |  |  |  |
Deferred tax assets not recognised |  | 4,934 |  | $ 4,142 |  |
Ecopetrol USA |  |  |  |  |  |
Taxes |  |  |  |  |  |
Nominal tax rate |  | 133,579 |  |  |  |
Ecopetrol Permian |  |  |  |  |  |
Taxes |  |  |  |  |  |
Nominal tax rate |  | 179,955 |  |  |  |
Cartagena |  |  |  |  |  |
Taxes |  |  |  |  |  |
Nominal tax rate |  | 841,937 |  |  |  |
Ecopetrol Capital AG |  |  |  |  |  |
Taxes |  |  |  |  |  |
Nominal tax rate |  | 39,489 |  |  |  |
Esenttia MB |  |  |  |  |  |
Taxes |  |  |  |  |  |
Nominal tax rate |  | 47,781 |  |  |  |
Operating loss carryforwards, subject to expiration |  | $ 76,337 |  |  |  |
Ecopetrol SA And Hocol Petroleum [Member] |  |  |  |  |  |
Taxes |  |  |  |  |  |
Applicable tax rate for fixed assets |  | 35 | 35 |  |  |
Free Trade Zone Area [Member] | Ecopetrol Group |  |  |  |  |  |
Taxes |  |  |  |  |  |
Presumptive income, percentage on beginning equity |  | 15.00% | 15.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% | 20.00% |  |  |
Free trade zone with legal stability contract [Member] | Ecopetrol Group |  |  |  |  |  |
Taxes |  |  |  |  |  |
Nominal income rate |  | 15.00% | 15.00% |  |  |
Brazil Country [Member] | Ecopetrol Group |  |  |  |  |  |
Taxes |  |  |  |  |  |
Nominal income rate |  | 34.00% | 34.00% |  |  |
Percentage of income tax rate taxable base of liquid profit |  | 34.00% |  |  |  |
Percentage of income tax rate based on legal entities gross income |  | 8.00% |  |  |  |
Legal entities maximum gross income | R$ |  |  | R$ 78 |  |  |
Brazil Country [Member] | Bottom of range | Ecopetrol Group |  |  |  |  |  |
Taxes |  |  |  |  |  |
Nominal income rate |  | 12.00% | 12.00% |  |  |
Brazil Country [Member] | Top of range | Ecopetrol Group |  |  |  |  |  |
Taxes |  |  |  |  |  |
Nominal income rate |  | 32.00% | 32.00% |  |  |
Chile Country [Member] | Ecopetrol Group |  |  |  |  |  |
Taxes |  |  |  |  |  |
Nominal income rate |  | 27.00% | 27.00% |  |  |
Peru Country [Member] | Ecopetrol Group |  |  |  |  |  |
Taxes |  |  |  |  |  |
Nominal income rate |  | 29.50% | 29.50% |  |  |
Percentage of current income tax rate on taxable income after deducting employee participation |  | 29.50% |  |  |  |
Percentage of dividend and other forms of profit distribution income tax rate |  | 5.00% |  |  |  |
Percentage of income tax rate of financial expenses deduction |  |  |  |  | 30.00% |
Percentage of income tax rate of deduction allowed for low value added services and cost plus margin |  | 5.00% |  |  |  |
Peru Country [Member] | Bottom of range | Ecopetrol Group |  |  |  |  |  |
Taxes |  |  |  |  |  |
Nominal income rate |  | 5.00% | 5.00% |  |  |
Peru Country [Member] | Top of range | Ecopetrol Group |  |  |  |  |  |
Taxes |  |  |  |  |  |
Nominal income rate |  | 10.00% | 10.00% |  |  |
United States Of America Country [Member] | Ecopetrol Group |  |  |  |  |  |
Taxes |  |  |  |  |  |
Nominal income rate |  | 21.00% | 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 The aggregate amount of base tax associated with investments in subsidiaries, branches and associates and interests in joint arrangements, for which deferred tax assets have not been recognized. + References No definition available. + Details
Name: | ec_BaseTaxAssociatedWithInvestmentsInSubsidiariesBranchesAndAssociatesAndInterestsInJointArrangementsForWhichDeferredTaxAssetsHaveNotBeenRecognized
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
- Definition The aggregate amount of temporary differences associated with investments in subsidiaries, branches and associates and interests in joint arrangements, for which deferred tax assets have not been recognized as a result of satisfying both of the following conditions: (a) the parent, investor, joint venturer or joint operator is able to control the timing of the reversal of the temporary difference; and (b) it is probable that the temporary difference will not reverse in the foreseeable future. [Refer: Associates [member]; Subsidiaries [member]; Temporary differences [member]; Investments in subsidiaries reported in separate financial statements] + References No definition available. + Details
Name: | ec_DifferencesAssociatedWithInvestmentsInSubsidiariesBranchesAndAssociatesAndInterestsInJointArrangementsForWhichDeferredTaxAssetsHaveNotBeenRecognized
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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 Percentage of current income tax rate on taxable income after deducting employee participation. + References No definition available. + Details
Name: | ec_PercentageOfCurrentIncomeTaxRateOnTaxableIncomeAfterDeductingEmployeeParticipation
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage of dividend and other forms of profit distribution income tax rate. + References No definition available. + Details
Name: | ec_PercentageOfDividendAndOtherFormsOfProfitDistributionIncomeTaxRate
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage of income tax rate based on legal entities gross income. + References No definition available. + Details
Name: | ec_PercentageOfIncomeTaxRateBasedOnLegalEntitiesGrossIncome
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage of income tax rate of deduction allowed for low value added services and cost plus margin. + References No definition available. + Details
Name: | ec_PercentageOfIncomeTaxRateOfDeductionAllowedForLowValueAddedServicesAndCostPlusMargin
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage of income tax rate of financial expenses deduction. + References No definition available. + Details
Name: | ec_PercentageOfIncomeTaxRateOfFinancialExpensesDeduction
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage of income tax rate taxable base of liquid profit. + References No definition available. + Details
Name: | ec_PercentageOfIncomeTaxRateTaxableBaseOfLiquidProfit
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The percentage of increase or decrease in exchange rates. + References No definition available. + Details
Name: | ec_PercentageOfIncreaseDecreaseInExchangeRate
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

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 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 2023-01-01 -Paragraph 81 -Subparagraph c -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_c_ii&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ApplicableTaxRate
Namespace Prefix: | ifrs-full_
Data Type: | dtr-types: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 2023-01-01 -Paragraph 81 -Subparagraph c -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_c_ii&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_AverageEffectiveTaxRate
Namespace Prefix: | ifrs-full_
Data Type: | dtr-types: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 2023-01-01 -Paragraph 54 -Subparagraph n -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_n&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CurrentTaxLiabilitiesCurrent
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount of income from structured entities including recurring and non-recurring fees, interest, dividends, gains or losses on the remeasurement or derecognition of interests in structured entities and gains or losses from the transfer of assets and liabilities to the structured entity. [Refer: Unconsolidated structured entities [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph 27 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_27_b&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_IncomeFromStructuredEntities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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 2023-01-01 -Paragraph 81 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_IncreaseDecreaseInDeferredTaxLiabilityAsset
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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: | 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_EcopetrolAmericaIncMember
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_CartagenaMember
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_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_BrazilCountryMember
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_ChileCountryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_GeographicalAreasAxis=ec_PeruCountryMember
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: |