XML 167 R123.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Impairment of non-current assets - Cash Generating Units (Details) - Refining and Petrochemical segment - COP ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Impairment of non-current assets |  |  |
Impairment loss - refining and petrochemical segment (reversal of impairment loss) recognized in profit or loss | $ 1,482,444 | $ 1,096,021 | $ (305,466)
Refineria de Cartagena S.A.S |  |  |
Impairment of non-current assets |  |  |
Impairment loss - refining and petrochemical segment (reversal of impairment loss) recognized in profit or loss | 1,482,512 | 1,096,024 | 34,650
Refineria de Cartagena S.A.S | Carrying Amount |  |  |
Impairment of non-current assets |  |  |
Impairment loss - refining and petrochemical segment (reversal of impairment loss) recognized in profit or loss | 26,423,190 | 31,750,957 | 26,808,008
Refineria de Cartagena S.A.S | Recoverable amount |  |  |
Impairment of non-current assets |  |  |
Impairment loss - refining and petrochemical segment (reversal of impairment loss) recognized in profit or loss | 27,905,702 | 32,846,981 | 26,842,658
Invercolsa S.A. |  |  |
Impairment of non-current assets |  |  |
Impairment loss - refining and petrochemical segment (reversal of impairment loss) recognized in profit or loss | (68) | (3) | (97)
Invercolsa S.A. | Carrying Amount |  |  |
Impairment of non-current assets |  |  |
Impairment loss - refining and petrochemical segment (reversal of impairment loss) recognized in profit or loss | 273 | 276 | 292
Invercolsa S.A. | Recoverable amount |  |  |
Impairment of non-current assets |  |  |
Impairment loss - refining and petrochemical segment (reversal of impairment loss) recognized in profit or loss | $ 205 | $ 273 | 195
Refinera de Barrancabermeja |  |  |
Impairment of non-current assets |  |  |
Impairment loss - refining and petrochemical segment (reversal of impairment loss) recognized in profit or loss |  |  | (340,019)
Refinera de Barrancabermeja | Carrying Amount |  |  |
Impairment of non-current assets |  |  |
Impairment loss - refining and petrochemical segment (reversal of impairment loss) recognized in profit or loss |  |  | $ 340,019

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

X
- Definition Adjustments for impairment loss (reversal of impairment loss) on exploration and evaluation assets recognised in profit or loss to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Exploration and evaluation assets [member]; Impairment loss; Adjustments for impairment loss (reversal of impairment loss) recognised in profit or loss; Impairment loss (reversal of impairment loss) recognised in profit or loss] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 20 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossExplorationAndEvaluationAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=ec_RefiningAndPetrochemicalSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SegmentsAxis=ec_RefineriaDeCartegenaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MeasurementAxis=ec_CarryingAmount1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MeasurementAxis=ec_AtFairValue1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SegmentsAxis=ec_InvercolsaSaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SegmentsAxis=ec_RefineriaDeBarrancabermejaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |