XML 136 R92.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

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

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: |