XML 128 R119.htm IDEA: XBRL DOCUMENT
v3.24.3

Segments information (Details) - COP ($) $ in Millions | 6 Months Ended
--- | ---
Jun. 30, 2024 | Jun. 30, 2023
Statement of profit or loss by segment |  |
Revenue from contracts with customers | $ 63,929,546 | $ 73,222,324
Costs | (39,643,519) | (44,265,231)
Gross profit | 24,286,027 | 28,957,093
Administration expenses | (2,127,659) | (2,236,642)
Operation and projects expenses | (2,615,763) | (2,199,293)
Impairment of non-current assets | (8,238) | (6,558)
Other operating income (expense) | (196,681) | (226,718)
Operating income | 19,337,686 | 24,287,882
Financial results |  |
Financial income | 852,278 | 1,349,483
Financial expenses | (4,989,720) | (5,446,231)
Foreign exchange gain (loss) | 45,267 | 547,244
Financial results | (4,092,175) | (3,549,504)
Share of profits of associates and joint ventures | 386,291 | 497,135
Profit before income tax expense | 15,631,802 | 21,235,513
Income tax expense | (6,914,028) | (6,763,926)
Net profit for the period | 8,717,774 | 14,471,587
Net profit (loss) attributable to: |  |
Owners of parent | 6,642,349 | 11,931,149
Non-controlling interest | 2,075,425 | 2,540,438
Net profit for the period | 8,717,774 | 14,471,587
Third party sales |  |
Statement of profit or loss by segment |  |
Revenue from contracts with customers | 63,929,546 | 73,222,324
Operating segments | Exploration and Production |  |
Statement of profit or loss by segment |  |
Revenue from contracts with customers | 40,215,189 | 40,203,798
Costs | (26,233,439) | (25,517,091)
Gross profit | 13,981,750 | 14,686,707
Administration expenses | (1,011,355) | (1,165,724)
Operation and projects expenses | (1,888,828) | (1,433,894)
Other operating income (expense) | (204,528) | (175,097)
Operating income | 10,877,039 | 11,911,992
Financial results |  |
Financial income | 570,047 | 924,689
Financial expenses | (2,413,247) | (2,450,349)
Foreign exchange gain (loss) | (116,617) | 622,037
Financial results | (1,959,817) | (903,623)
Share of profits of associates and joint ventures | 16,505 | 12,111
Profit before income tax expense | 8,933,727 | 11,020,480
Income tax expense | (4,375,740) | (4,861,356)
Net profit for the period | 4,557,987 | 6,159,124
Net profit (loss) attributable to: |  |
Owners of parent | 4,597,514 | 6,211,347
Non-controlling interest | (39,527) | (52,223)
Net profit for the period | 4,557,987 | 6,159,124
Operating segments | Exploration and Production | Third party sales |  |
Statement of profit or loss by segment |  |
Revenue from contracts with customers | 24,959,490 | 25,958,987
Operating segments | Exploration and Production | Inter-segment sales |  |
Statement of profit or loss by segment |  |
Revenue from contracts with customers | 15,255,699 | 14,244,811
Operating segments | Refining and Petrochemicals |  |
Statement of profit or loss by segment |  |
Revenue from contracts with customers | 34,378,452 | 42,608,454
Costs | (32,986,373) | (38,636,523)
Gross profit | 1,392,079 | 3,971,931
Administration expenses | (435,424) | (364,671)
Operation and projects expenses | (630,546) | (708,324)
Impairment of non-current assets | (5,282) | (5,795)
Other operating income (expense) | (42,734) | (34,647)
Operating income | 278,093 | 2,858,494
Financial results |  |
Financial income | 82,915 | 122,835
Financial expenses | (850,850) | (946,212)
Foreign exchange gain (loss) | (18,749) | 251,134
Financial results | (786,684) | (572,243)
Share of profits of associates and joint ventures | 97,720 | 140,349
Profit before income tax expense | (410,871) | 2,426,600
Income tax expense | (476,477) | 97,121
Net profit for the period | (887,348) | 2,523,721
Net profit (loss) attributable to: |  |
Owners of parent | (985,633) | 2,411,227
Non-controlling interest | 98,285 | 112,494
Net profit for the period | (887,348) | 2,523,721
Operating segments | Refining and Petrochemicals | Third party sales |  |
Statement of profit or loss by segment |  |
Revenue from contracts with customers | 30,611,348 | 39,074,037
Operating segments | Refining and Petrochemicals | Inter-segment sales |  |
Statement of profit or loss by segment |  |
Revenue from contracts with customers | 3,767,104 | 3,534,417
Operating segments | Transportation and Logistics |  |
Statement of profit or loss by segment |  |
Revenue from contracts with customers | 7,193,852 | 8,052,098
Costs | (1,990,319) | (2,048,042)
Gross profit | 5,203,533 | 6,004,056
Administration expenses | (301,573) | (291,523)
Operation and projects expenses | (197,753) | (170,147)
Other operating income (expense) | 100,895 | 12,106
Operating income | 4,805,102 | 5,554,492
Financial results |  |
Financial income | 148,490 | 266,247
Financial expenses | (166,755) | (183,818)
Foreign exchange gain (loss) | 200,168 | (105,317)
Financial results | 181,903 | (22,888)
Profit before income tax expense | 4,987,005 | 5,531,604
Income tax expense | (1,784,424) | (1,801,932)
Net profit for the period | 3,202,581 | 3,729,672
Net profit (loss) attributable to: |  |
Owners of parent | 2,612,283 | 2,996,518
Non-controlling interest | 590,298 | 733,154
Net profit for the period | 3,202,581 | 3,729,672
Operating segments | Transportation and Logistics | Third party sales |  |
Statement of profit or loss by segment |  |
Revenue from contracts with customers | 1,384,099 | 1,519,252
Operating segments | Transportation and Logistics | Inter-segment sales |  |
Statement of profit or loss by segment |  |
Revenue from contracts with customers | 5,809,753 | 6,532,846
Operating segments | Concessions, electricity transport and roads |  |
Statement of profit or loss by segment |  |
Revenue from contracts with customers | 7,095,487 | 7,458,456
Costs | (3,178,533) | (2,958,924)
Gross profit | 3,916,954 | 4,499,532
Administration expenses | (568,797) | (583,002)
Impairment of non-current assets | (2,956) | (763)
Other operating income (expense) | 31,972 | (27,052)
Operating income | 3,377,173 | 3,888,715
Financial results |  |
Financial income | 321,328 | 405,811
Financial expenses | (1,828,656) | (2,161,343)
Foreign exchange gain (loss) | (19,535) | (220,610)
Financial results | (1,526,863) | (1,976,142)
Share of profits of associates and joint ventures | 272,066 | 344,675
Profit before income tax expense | 2,122,376 | 2,257,248
Income tax expense | (277,387) | (197,759)
Net profit for the period | 1,844,989 | 2,059,489
Net profit (loss) attributable to: |  |
Owners of parent | 418,620 | 312,476
Non-controlling interest | 1,426,369 | 1,747,013
Net profit for the period | 1,844,989 | 2,059,489
Operating segments | Concessions, electricity transport and roads | Third party sales |  |
Statement of profit or loss by segment |  |
Revenue from contracts with customers | 7,094,262 | 7,456,833
Operating segments | Concessions, electricity transport and roads | Inter-segment sales |  |
Statement of profit or loss by segment |  |
Revenue from contracts with customers | 1,225 | 1,623
Eliminations |  |
Statement of profit or loss by segment |  |
Revenue from contracts with customers | (24,953,434) | (25,100,482)
Costs | 24,745,145 | 24,895,349
Gross profit | (208,289) | (205,133)
Administration expenses | 189,490 | 168,278
Operation and projects expenses | 101,364 | 113,072
Other operating income (expense) | (82,286) | (2,028)
Operating income | 279 | 74,189
Financial results |  |
Financial income | (270,502) | (370,099)
Financial expenses | 269,788 | 295,491
Financial results | (714) | (74,608)
Profit before income tax expense | (435) | (419)
Net profit for the period | (435) | (419)
Net profit (loss) attributable to: |  |
Owners of parent | (435) | (419)
Net profit for the period | (435) | (419)
Eliminations | Third party sales |  |
Statement of profit or loss by segment |  |
Revenue from contracts with customers | (119,653) | (786,785)
Eliminations | Inter-segment sales |  |
Statement of profit or loss by segment |  |
Revenue from contracts with customers | $ (24,833,781) | $ (24,313,697)

X
- Definition It represents expense and other administrative. + References No definition available. + Details
Name: | ec_ExpenseAndOtherAdministrative
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition n/a + References No definition available. + Details
Name: | ec_FinanceIncomeCostAbstract
Namespace Prefix: | ec_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Operation and projects expenses. + References No definition available. + Details
Name: | ec_OperationAndProjectsExpenses
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The net amount of operating income (expense) that the entity does not separately disclose in the same statement or note. + References No definition available. + Details
Name: | ec_OtherNetOperatingIncomeExpense
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of all expenses directly or indirectly attributed to the goods or services sold. Attributed expenses include, but are not limited to, costs previously included in the measurement of inventory that has now been sold, such as depreciation and maintenance of factory buildings and equipment used in the production process, unallocated production overheads, and abnormal amounts of production costs of inventories. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 99 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_99&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 103 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_103&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CostOfSales
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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_DisclosureOfOperatingSegmentsLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of costs associated with financing activities of the entity. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 82 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_82_b&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_FinanceCosts
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of income associated with interest and other financing activities of the entity. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 85 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_85&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_FinanceIncome
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of income or cost associated with interest and other financing activities of the entity. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 85 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_85&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_FinanceIncomeCost
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of exchange differences recognised in profit or loss that arise from foreign currency transactions, excluding those arising on financial instruments measured at fair value through profit or loss in accordance with IFRS 9. [Refer: At fair value [member]; Financial instruments, class [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 21 -IssueDate 2023-01-01 -Paragraph 52 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2023-en-r&anchor=para_52_a&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 35 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_35&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of revenue less cost of sales. [Refer: Cost of sales; Revenue] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 103 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_103&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_GrossProfit
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of impairment loss, impairment gain or reversal of impairment loss that is recognised in profit or loss in accordance with paragraph 5.5.8 of IFRS 9 and that arises from applying the impairment requirements in Section 5.5 of IFRS 9. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 82 -Subparagraph ba -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_82_ba&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ImpairmentLossImpairmentGainAndReversalOfImpairmentLossDeterminedInAccordanceWithIFRS9
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The aggregate amount included in the determination of profit (loss) for the period in respect of current tax and deferred tax. [Refer: Current tax expense (income); Deferred tax expense (income)] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2023-01-01 -Paragraph 23 -Subparagraph h -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23_h&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 26 -IssueDate 2023-01-01 -Paragraph 35 -Subparagraph b -Clause viii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2023-en-r&anchor=para_35_b_viii&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 12 -IssueDate 2023-01-01 -Paragraph 79 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_79&doctype=Standard -URIDate 2023-03-23 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 12 -IssueDate 2023-01-01 -Paragraph 81 -Subparagraph c -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_c_i&doctype=Standard -URIDate 2023-03-23 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 12 -IssueDate 2023-01-01 -Paragraph 81 -Subparagraph c -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_c_ii&doctype=Standard -URIDate 2023-03-23 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph B13 -Subparagraph g -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B13_g&doctype=Appendix&subtype=B -URIDate 2023-03-23 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 82 -Subparagraph d -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_82_d&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_IncomeTaxExpenseContinuingOperations
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The total of income less expenses from continuing and discontinued operations, excluding the components of other comprehensive income. [Refer: Other comprehensive income] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 18 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_18_b&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 1 -IssueDate 2023-01-01 -Paragraph 32 -Subparagraph a -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2023-en-r&anchor=para_32_a_ii&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 1 -IssueDate 2023-01-01 -Paragraph 24 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2023-en-r&anchor=para_24_b&doctype=Standard -URIDate 2023-03-23 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2023-01-01 -Paragraph 28 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_b&doctype=Standard -URIDate 2023-03-23 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2023-01-01 -Paragraph 23 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23&doctype=Standard -URIDate 2023-03-23 Reference 6: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph B10 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B10_b&doctype=Appendix&subtype=B -URIDate 2023-03-23 Reference 7: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 17 -IssueDate 2023-01-01 -Paragraph 113 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_113_b&doctype=Standard -URIDate 2023-03-23 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 81A -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81A_a&doctype=Standard -URIDate 2023-03-23 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 106 -Subparagraph d -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_106_d_i&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ProfitLoss
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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

X
- Definition The profit (loss) from continuing and discontinued operations attributable to non-controlling interests. [Refer: Profit (loss); Non-controlling interests] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph 12 -Subparagraph e -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_12_e&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 81B -Subparagraph a -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81B_a_i&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ProfitLossAttributableToNoncontrollingInterests
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The profit (loss) from continuing and discontinued operations attributable to owners of the parent. [Refer: Profit (loss)] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 81B -Subparagraph a -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81B_a_ii&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ProfitLossAttributableToOwnersOfParent
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The profit (loss) before tax expense or income. [Refer: Profit (loss)] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 5 -IssueDate 2023-01-01 -Paragraph 33 -Subparagraph b -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2023-en-r&anchor=para_33_b_i&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 8 -IssueDate 2023-01-01 -Paragraph 28 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_b&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 8 -IssueDate 2023-01-01 -Paragraph 23 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23&doctype=Standard -URIDate 2023-03-23 Reference 4: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 103 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_103&doctype=Standard -URIDate 2023-03-23 Reference 5: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 102 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_102&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ProfitLossBeforeTax
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The profit (loss) from operating activities of the entity. [Refer: Profit (loss)] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 32 -IssueDate 2023-01-01 -Paragraph IE33 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=32&code=ifrs-tx-2023-en-r&anchor=para_IE33&doctype=Illustrative%20Examples -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 85 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_85&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ProfitLossFromOperatingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The income arising in the course of an entity's ordinary activities. Income is increases in assets, or decreases in liabilities, that result in increases in equity, other than those relating to contributions from holders of equity claims. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2023-01-01 -Paragraph 28 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_a&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2023-01-01 -Paragraph 23 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23_a&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2023-01-01 -Paragraph 32 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_32&doctype=Standard -URIDate 2023-03-23 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 5 -IssueDate 2023-01-01 -Paragraph 33 -Subparagraph b -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2023-en-r&anchor=para_33_b_i&doctype=Standard -URIDate 2023-03-23 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2023-01-01 -Paragraph 33 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_33_a&doctype=Standard -URIDate 2023-03-23 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2023-01-01 -Paragraph 34 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_34&doctype=Standard -URIDate 2023-03-23 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph B12 -Subparagraph b -Clause v -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B12_b_v&doctype=Appendix&subtype=B -URIDate 2023-03-23 Reference 8: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph B10 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B10_b&doctype=Appendix&subtype=B -URIDate 2023-03-23 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 82 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_82_a&doctype=Standard -URIDate 2023-03-23 Reference 10: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 103 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_103&doctype=Standard -URIDate 2023-03-23 Reference 11: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 102 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_102&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_Revenue
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The entity's share of the profit (loss) of associates and joint ventures accounted for using the equity method. [Refer: Associates [member]; Investments accounted for using equity method; Joint ventures [member]; Profit (loss)] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2023-01-01 -Paragraph 28 -Subparagraph e -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_e&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2023-01-01 -Paragraph 23 -Subparagraph g -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23_g&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 82 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_82_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | ec_SalesByTypeAxis=ec_ThirdPartySalesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SegmentConsolidationItemsAxis=ifrs-full_OperatingSegmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | ec_SalesByTypeAxis=ec_IntersegmentSalesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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

X
- Details
Name: | ifrs-full_SegmentConsolidationItemsAxis=ifrs-full_EliminationOfIntersegmentAmountsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |