XML 210 R102.htm IDEA: XBRL DOCUMENT
v3.25.1

Taxes - Income tax - Additional Information (Details) |  | 12 Months Ended
--- | --- | ---
Jan. 01, 2022 | Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Disclosure of detailed information about income tax [Line Items] |  |  |  |  |
Statutory tax rate |  | 35.00% | 35.00% | 35.00% |
Presumptive income tax |  |  |  |  | 0.00%
Applicable tax rate for fixed assets | 35 |  |  |  |
Description of tax losses carry forward |  | 12 taxable years |  |  |
Ecopetrol S.A. and Hocol |  |  |  |  |
Disclosure of detailed information about income tax [Line Items] |  |  |  |  |
Applicable tax rate for fixed assets |  | 35 |  |  |
Ecopetrol Group |  |  |  |  |
Disclosure of detailed information about income tax [Line Items] |  |  |  |  |
Statutory tax rate |  | 35.00% | 35.00% |  |
Ecopetrol Group | Free trade zone |  |  |  |  |
Disclosure of detailed information about income tax [Line Items] |  |  |  |  |
Presumptive income, percentage on beginning equity |  | 20.00% | 15.00% |  |
Free trade zone |  |  |  |  |
Disclosure of detailed information about income tax [Line Items] |  |  |  |  |
Statutory tax rate |  | 20.00% |  |  |
Free zone Legal Stability Agreement (LSA) | Ecopetrol Group |  |  |  |  |
Disclosure of detailed information about income tax [Line Items] |  |  |  |  |
Statutory tax rate |  | 15.00% |  |  |
Brazil | Ecopetrol Group |  |  |  |  |
Disclosure of detailed information about income tax [Line Items] |  |  |  |  |
Statutory tax rate |  | 34.00% |  |  |
Chile | Ecopetrol Group |  |  |  |  |
Disclosure of detailed information about income tax [Line Items] |  |  |  |  |
Statutory tax rate |  | 27.00% |  |  |
Peru country | Ecopetrol Group |  |  |  |  |
Disclosure of detailed information about income tax [Line Items] |  |  |  |  |
Statutory tax rate |  | 29.50% |  |  |
USA | Ecopetrol Group |  |  |  |  |
Disclosure of detailed information about income tax [Line Items] |  |  |  |  |
Statutory tax rate |  | 21.00% |  |  |
2022 | Colombia |  |  |  |  |
Disclosure of detailed information about income tax [Line Items] |  |  |  |  |
Statutory tax rate |  |  | 35.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 description of information regarding tax losses carry forward. + References No definition available. + Details
Name: | ec_DescriptionOfTaxLossesCarryForward
Namespace Prefix: | ec_
Data Type: | xbrli:stringItemType
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 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 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
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ec_EcopetrolSaAndHocolPetroleumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SegmentsAxis=ec_EcopetrolGroupMember
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_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_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: |

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

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