XML 289 R181.htm IDEA: XBRL DOCUMENT
v3.25.1

Related parties - Additional Information (Details) - COP ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2024 | Dec. 31, 2023
Transactions between related parties |  |
Remuneration fees to board of directors | $ 6,139 | $ 4,983
Payment of key management personnel compensation | $ 23,186 | $ 35,906
Ownership interest held by government | 88.49% |
Key directors of management |  |
Transactions between related parties |  |
Ownership Interest Held By Related Party | 1.00% |

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 percentage of entity ownership interest held by related party. + References No definition available. + Details
Name: | ec_OwnershipInterestHeldByRelatedParty
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
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table. + References No definition available. + Details
Name: | ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ifrs-full_KeyManagementPersonnelOfEntityOrParentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |