XML 204 R96.htm IDEA: XBRL DOCUMENT
v3.25.1

Other financial assets - Additional Information (Details) | 12 Months Ended
--- | ---
Dec. 31, 2024 | Dec. 31, 2023
Colombian pesos |  |
Other financial assets |  |
Average rate of return on investments | 10.20% | 12.90%
US Dollar |  |
Other financial assets |  |
Average rate of return on investments | 4.80% | 7.70%

X
- Definition The percentage of average return earned on investments during the period. + References No definition available. + Details
Name: | ec_AverageRateOfReturnOnInvestments
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line item represents the other financial assets. + References No definition available. + Details
Name: | ec_DisclosureOfOtherFinancialAssetsLineItems
Namespace Prefix: | ec_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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

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