XML 218 R174.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Related parties - Additional Information (Details) - COP ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022
Related parties |  |
Remuneration fees to board of directors | $ 4,983 | $ 3,582
Payment of key management personnel compensation | $ 35,906 | $ 27,359
Ownership interest held by government | 88.49% |

X
- Definition The amount of fees to board members cancelled during the period. + References No definition available. + Details
Name: | ec_CancellationOfFees
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The percentage of entity ownership interest held by government. + References No definition available. + Details
Name: | ec_OwnershipInterestHeldByGovernment
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The cash outflow for payment of key management personnel compensation. + References No definition available. + Details
Name: | ec_PaymentOfKeyManagementPersonnelCompensation
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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