XML 293 R185.htm IDEA: XBRL DOCUMENT
v3.25.1

Information by segments (Details) - COP ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022
Information by segments |  |  |
Sales revenue | $ 133,330,428 | $ 143,189,602 | $ 159,611,078
Costs | (86,481,154) | (88,178,198) | (89,458,148)
Gross profit | 46,849,274 | 55,011,404 | 70,152,930
Administration expenses | (5,103,103) | (5,025,797) | (4,335,695)
Operation and projects expenses | (5,647,651) | (5,702,162) | (4,743,628)
Impairment of non-current assets | 867,428 | (2,098,333) | (287,999)
Other operating income (expense) | 1,497,049 | (426,131) | (555,855)
Operating income | 38,462,997 | 41,758,981 | 60,229,753
Financial results |  |  |
Financial income | 1,747,801 | 2,320,969 | 1,317,145
Financial cost registered to projects | (10,319,316) | (10,384,065) | (8,027,252)
Foreign exchange gain (loss) | 51,567 | 2,397,712 | (124,650)
Financial results | (8,519,948) | (5,665,384) | (6,834,757)
Share of profits of associates and joint ventures | 764,366 | 805,349 | 768,422
Profit before income tax expense | 30,707,415 | 36,898,946 | 54,163,418
Income tax expense | (12,208,540) | (11,515,875) | (18,963,938)
Net profit for the year | 18,498,875 | 25,383,071 | 35,199,480
Net profit (loss) attributable to: |  |  |
Owners of parent | 13,841,153 | 21,060,798 | 31,604,781
Non-controlling interest | 4,657,722 | 4,322,273 | 3,594,699
Net profit for the year | 18,498,875 | 25,383,071 | 35,199,480
Supplementary information |  |  |
Depreciation, depletion and amortization | 15,197,283 | 13,812,387 | 12,128,991
Variable Cost |  |  |
Information by segments |  |  |
Costs | (60,324,530) | (64,032,342) | (68,180,219)
Fixed Cost |  |  |
Information by segments |  |  |
Costs | (26,156,624) | (24,145,856) | (21,277,929)
Third party sales |  |  |
Information by segments |  |  |
Sales revenue | 133,330,428 | 143,189,602 | 159,611,078
Operating segments | Exploration and Production |  |  |
Information by segments |  |  |
Sales revenue | 81,087,523 | 81,514,915 | 91,020,465
Costs | (54,863,048) | (51,827,884) | (46,749,420)
Gross profit | 26,224,475 | 29,687,031 | 44,271,045
Administration expenses | (2,665,275) | (2,605,190) | (2,489,557)
Operation and projects expenses | (3,843,280) | (4,102,410) | (3,221,678)
Impairment of non-current assets | (480,180) | (2,741,092) | (890,248)
Other operating income (expense) | 1,583,005 | (148,314) | (310,628)
Operating income | 20,818,745 | 20,090,025 | 37,358,934
Financial results |  |  |
Financial income | 1,121,377 | 1,473,523 | 1,011,182
Financial cost registered to projects | (5,037,086) | (4,872,501) | (2,894,636)
Foreign exchange gain (loss) | (30,253) | 2,009,356 | (44,302)
Financial results | (3,945,962) | (1,389,622) | (1,927,756)
Share of profits of associates and joint ventures | 29,766 | 26,927 | 30,197
Profit before income tax expense | 16,902,549 | 18,727,330 | 35,461,375
Income tax expense | (7,826,203) | (8,610,599) | (13,829,885)
Net profit for the year | 9,076,346 | 10,116,731 | 21,631,490
Net profit (loss) attributable to: |  |  |
Owners of parent | 9,162,709 | 10,208,130 | 21,761,164
Non-controlling interest | (86,363) | (91,399) | (129,674)
Net profit for the year | 9,076,346 | 10,116,731 | 21,631,490
Supplementary information |  |  |
Depreciation, depletion and amortization | 10,478,049 | 8,657,782 | 7,304,525
Operating segments | Exploration and Production | Variable Cost |  |  |
Information by segments |  |  |
Costs | (40,326,798) | (37,643,759) | (34,649,988)
Operating segments | Exploration and Production | Fixed Cost |  |  |
Information by segments |  |  |
Costs | (14,536,250) | (14,184,125) | (12,099,432)
Operating segments | Exploration and Production | Third party sales |  |  |
Information by segments |  |  |
Sales revenue | 52,559,851 | 52,429,502 | 60,719,903
Operating segments | Exploration and Production | Inter-segment sales |  |  |
Information by segments |  |  |
Sales revenue | 28,527,672 | 29,085,413 | 30,300,562
Operating segments | Refining and Petrochemicals |  |  |
Information by segments |  |  |
Sales revenue | 69,220,206 | 82,147,926 | 89,178,947
Costs | (67,717,757) | (75,716,453) | (80,331,998)
Gross profit | 1,502,449 | 6,431,473 | 8,846,949
Administration expenses | (959,147) | (962,063) | (823,349)
Operation and projects expenses | (1,457,106) | (1,392,588) | (1,387,064)
Impairment of non-current assets | 1,265,753 | 1,482,444 | 1,096,021
Other operating income (expense) | 21,847 | (103,563) | (37,959)
Operating income | 373,796 | 5,455,703 | 7,694,598
Financial results |  |  |
Financial income | 166,900 | 197,186 | 89,173
Financial cost registered to projects | (1,678,692) | (1,748,454) | (1,381,682)
Foreign exchange gain (loss) | (177,464) | 657,678 | (289,105)
Financial results | (1,689,256) | (893,590) | (1,581,614)
Share of profits of associates and joint ventures | 194,498 | 251,769 | 222,460
Profit before income tax expense | (1,120,962) | 4,813,882 | 6,335,444
Income tax expense | (88,916) | 753,038 | (1,464,380)
Net profit for the year | (1,209,878) | 5,566,920 | 4,871,064
Net profit (loss) attributable to: |  |  |
Owners of parent | (1,407,810) | 5,352,446 | 4,686,009
Non-controlling interest | 197,932 | 214,474 | 185,055
Net profit for the year | (1,209,878) | 5,566,920 | 4,871,064
Supplementary information |  |  |
Depreciation, depletion and amortization | 2,070,605 | 2,184,053 | 1,960,399
Operating segments | Refining and Petrochemicals | Variable Cost |  |  |
Information by segments |  |  |
Costs | (62,841,448) | (71,009,974) | (76,341,169)
Operating segments | Refining and Petrochemicals | Fixed Cost |  |  |
Information by segments |  |  |
Costs | (4,876,309) | (4,706,479) | (3,990,829)
Operating segments | Refining and Petrochemicals | Third party sales |  |  |
Information by segments |  |  |
Sales revenue | 62,251,340 | 73,616,641 | 82,728,875
Operating segments | Refining and Petrochemicals | Inter-segment sales |  |  |
Information by segments |  |  |
Sales revenue | 6,968,866 | 8,531,285 | 6,450,072
Operating segments | Transportation and Logistics |  |  |
Information by segments |  |  |
Sales revenue | 15,133,721 | 15,509,732 | 13,955,992
Costs | (4,377,897) | (4,380,195) | (3,893,210)
Gross profit | 10,755,824 | 11,129,537 | 10,062,782
Administration expenses | (717,926) | (621,341) | (499,801)
Operation and projects expenses | (552,785) | (426,821) | (327,952)
Impairment of non-current assets | 127,206 | (630,134) | (406,229)
Other operating income (expense) | (17,557) | 34,835 | (96,239)
Operating income | 9,594,762 | 9,486,076 | 8,732,561
Financial results |  |  |
Financial income | 239,915 | 431,593 | 157,264
Financial cost registered to projects | (325,557) | (349,340) | (287,889)
Foreign exchange gain (loss) | 298,935 | (272,900) | 10,080
Financial results | 213,293 | (190,647) | (120,545)
Profit before income tax expense | 9,808,055 | 9,295,429 | 8,612,016
Income tax expense | (3,485,808) | (3,129,197) | (2,962,021)
Net profit for the year | 6,322,247 | 6,166,232 | 5,649,995
Net profit (loss) attributable to: |  |  |
Owners of parent | 5,112,271 | 4,829,051 | 4,483,060
Non-controlling interest | 1,209,976 | 1,337,181 | 1,166,935
Net profit for the year | 6,322,247 | 6,166,232 | 5,649,995
Supplementary information |  |  |
Depreciation, depletion and amortization | 1,320,920 | 1,487,501 | 1,448,626
Operating segments | Transportation and Logistics | Variable Cost |  |  |
Information by segments |  |  |
Costs | (848,032) | (885,109) | (720,247)
Operating segments | Transportation and Logistics | Fixed Cost |  |  |
Information by segments |  |  |
Costs | (3,529,865) | (3,495,086) | (3,172,963)
Operating segments | Transportation and Logistics | Third party sales |  |  |
Information by segments |  |  |
Sales revenue | 2,716,164 | 2,978,937 | 2,807,031
Operating segments | Transportation and Logistics | Inter-segment sales |  |  |
Information by segments |  |  |
Sales revenue | 12,417,557 | 12,530,795 | 11,148,961
Operating segments | Electric power transmission and toll roads concessions |  |  |
Information by segments |  |  |
Sales revenue |  |  | 13,357,506
Costs |  |  | (5,854,832)
Gross profit |  |  | 7,502,674
Administration expenses |  |  | (965,314)
Impairment of non-current assets |  |  | (87,543)
Other operating income (expense) |  |  | (104,664)
Operating income |  |  | 6,345,153
Financial results |  |  |
Financial income |  |  | 577,743
Financial cost registered to projects |  |  | (3,883,596)
Foreign exchange gain (loss) |  |  | 198,677
Financial results |  |  | (3,107,176)
Share of profits of associates and joint ventures |  |  | 515,746
Profit before income tax expense |  |  | 3,753,723
Income tax expense |  |  | (707,652)
Net profit for the year |  |  | 3,046,071
Net profit (loss) attributable to: |  |  |
Owners of parent |  |  | 673,688
Non-controlling interest |  |  | 2,372,383
Net profit for the year |  |  | 3,046,071
Supplementary information |  |  |
Depreciation, depletion and amortization |  |  | 1,415,441
Operating segments | Electric power transmission and toll roads concessions | Fixed Cost |  |  |
Information by segments |  |  |
Costs |  |  | (5,854,832)
Operating segments | Electric power transmission and toll roads concessions | Third party sales |  |  |
Information by segments |  |  |
Sales revenue |  |  | 13,355,269
Operating segments | Electric power transmission and toll roads concessions | Inter-segment sales |  |  |
Information by segments |  |  |
Sales revenue |  |  | 2,237
Operating segments | Concessions, electricity transport and roads |  |  |
Information by segments |  |  |
Sales revenue | 15,805,647 | 14,168,266 |
Costs | (6,952,104) | (5,928,905) |
Gross profit | 8,853,543 | 8,239,361 |
Administration expenses | (1,150,596) | (1,182,380) |
Impairment of non-current assets | (45,351) | (209,551) |
Other operating income (expense) | (2,025) | (201,141) |
Operating income | 7,655,571 | 6,646,289 |
Financial results |  |  |
Financial income | 721,086 | 870,897 |
Financial cost registered to projects | (3,766,580) | (3,984,198) |
Foreign exchange gain (loss) | (39,651) | 3,578 |
Financial results | (3,085,145) | (3,109,723) |
Share of profits of associates and joint ventures | 540,102 | 529,536 |
Profit before income tax expense | 5,110,528 | 4,066,102 |
Income tax expense | (807,613) | (529,117) |
Net profit for the year | 4,302,915 | 3,536,985 |
Net profit (loss) attributable to: |  |  |
Owners of parent | 966,738 | 674,968 |
Non-controlling interest | 3,336,177 | 2,862,017 |
Net profit for the year | 4,302,915 | 3,536,985 |
Supplementary information |  |  |
Depreciation, depletion and amortization | 1,327,709 | 1,483,051 |
Operating segments | Concessions, electricity transport and roads | Fixed Cost |  |  |
Information by segments |  |  |
Costs | (6,952,104) | (5,928,905) |
Operating segments | Concessions, electricity transport and roads | Third party sales |  |  |
Information by segments |  |  |
Sales revenue | 15,803,073 | 14,164,522 |
Operating segments | Concessions, electricity transport and roads | Inter-segment sales |  |  |
Information by segments |  |  |
Sales revenue | 2,574 | 3,744 |
Eliminations |  |  |
Information by segments |  |  |
Sales revenue | (47,916,669) | (50,151,237) | (47,901,832)
Costs | 47,429,652 | 49,675,239 | 47,371,312
Gross profit | (487,017) | (475,998) | (530,520)
Administration expenses | 389,841 | 345,177 | 442,326
Operation and projects expenses | 205,520 | 219,657 | 193,066
Other operating income (expense) | (88,221) | (7,948) | (6,365)
Operating income | 20,123 | 80,888 | 98,507
Financial results |  |  |
Financial income | (501,477) | (652,230) | (518,217)
Financial cost registered to projects | 488,599 | 570,428 | 420,551
Financial results | (12,878) | (81,802) | (97,666)
Share of profits of associates and joint ventures |  | (2,883) | 19
Profit before income tax expense | 7,245 | (3,797) | 860
Net profit for the year | 7,245 | (3,797) | 860
Net profit (loss) attributable to: |  |  |
Owners of parent | 7,245 | (3,797) | 860
Net profit for the year | 7,245 | (3,797) | 860
Eliminations | Variable Cost |  |  |
Information by segments |  |  |
Costs | 43,691,748 | 45,506,500 | 43,531,185
Eliminations | Fixed Cost |  |  |
Information by segments |  |  |
Costs | 3,737,904 | 4,168,739 | 3,840,127
Eliminations | Inter-segment sales |  |  |
Information by segments |  |  |
Sales revenue | $ (47,916,669) | $ (50,151,237) | $ (47,901,832)

X
- Definition Adjustments for depreciation, depletion and amortisation expense to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Depreciation and amortisation expense; Profit (loss)] + References No definition available. + Details
Name: | ec_AdjustmentsForDepreciationDepletionAndAmortisationExpense
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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
- References No definition available. + Details
Name: | ec_SupplementaryInformationAbstract
Namespace Prefix: | ec_
Data Type: | xbrli:stringItemType
Balance Type: | na
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 2024-01-01 -Paragraph 99 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_99&doctype=Standard -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 103 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_103&doctype=Standard -URIDate 2024-03-27 + 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 2024-01-01 -Paragraph 82 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_82_b&doctype=Standard -URIDate 2024-03-27 + 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 2024-01-01 -Paragraph 85 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_85&doctype=Standard -URIDate 2024-03-27 + 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 2024-01-01 -Paragraph 85 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_85&doctype=Standard -URIDate 2024-03-27 + 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]; Classes of financial instruments [domain]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 21 -IssueDate 2024-01-01 -Paragraph 52 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2024-en-r&anchor=para_52_a&doctype=Standard -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 35 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_35&doctype=Standard -URIDate 2024-03-27 + 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 2024-01-01 -Paragraph 103 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_103&doctype=Standard -URIDate 2024-03-27 + 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 2024-01-01 -Paragraph 82 -Subparagraph ba -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_82_ba&doctype=Standard -URIDate 2024-03-27 + 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 IAS -Number 26 -IssueDate 2024-01-01 -Paragraph 35 -Subparagraph b -Clause viii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2024-en-r&anchor=para_35_b_viii&doctype=Standard -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2024-01-01 -Paragraph 23 -Subparagraph h -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_23_h&doctype=Standard -URIDate 2024-03-27 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 12 -IssueDate 2024-01-01 -Paragraph 79 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_79&doctype=Standard -URIDate 2024-03-27 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 12 -IssueDate 2024-01-01 -Paragraph 81 -Subparagraph c -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_81_c_i&doctype=Standard -URIDate 2024-03-27 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 12 -IssueDate 2024-01-01 -Paragraph 81 -Subparagraph c -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2024-en-r&anchor=para_81_c_ii&doctype=Standard -URIDate 2024-03-27 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2024-01-01 -Paragraph B13 -Subparagraph g -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B13_g&doctype=Appendix&subtype=B -URIDate 2024-03-27 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 82 -Subparagraph d -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_82_d&doctype=Standard -URIDate 2024-03-27 + 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 2024-01-01 -Paragraph 18 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2024-en-r&anchor=para_18_b&doctype=Standard -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 1 -IssueDate 2024-01-01 -Paragraph 32 -Subparagraph a -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2024-en-r&anchor=para_32_a_ii&doctype=Standard -URIDate 2024-03-27 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 1 -IssueDate 2024-01-01 -Paragraph 24 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2024-en-r&anchor=para_24_b&doctype=Standard -URIDate 2024-03-27 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2024-01-01 -Paragraph 28 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_28_b&doctype=Standard -URIDate 2024-03-27 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2024-01-01 -Paragraph 23 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_23&doctype=Standard -URIDate 2024-03-27 Reference 6: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 12 -IssueDate 2024-01-01 -Paragraph B10 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B10_b&doctype=Appendix&subtype=B -URIDate 2024-03-27 Reference 7: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 17 -IssueDate 2024-01-01 -Paragraph 113 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2024-en-r&anchor=para_113_b&doctype=Standard -URIDate 2024-03-27 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 81A -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_81A_a&doctype=Standard -URIDate 2024-03-27 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 106 -Subparagraph d -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_106_d_i&doctype=Standard -URIDate 2024-03-27 + 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 2024-01-01 -Paragraph 12 -Subparagraph e -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_12_e&doctype=Standard -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 81B -Subparagraph a -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_81B_a_i&doctype=Standard -URIDate 2024-03-27 + 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 2024-01-01 -Paragraph 81B -Subparagraph a -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_81B_a_ii&doctype=Standard -URIDate 2024-03-27 + 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/exampleRef -Name IFRS -Number 8 -IssueDate 2024-01-01 -Paragraph 28 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_28_b&doctype=Standard -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 8 -IssueDate 2024-01-01 -Paragraph 23 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_23&doctype=Standard -URIDate 2024-03-27 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 5 -IssueDate 2024-01-01 -Paragraph 33 -Subparagraph b -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2024-en-r&anchor=para_33_b_i&doctype=Standard -URIDate 2024-03-27 Reference 4: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 103 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_103&doctype=Standard -URIDate 2024-03-27 Reference 5: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 102 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_102&doctype=Standard -URIDate 2024-03-27 + 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/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 85 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_85&doctype=Standard -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 32 -IssueDate 2024-01-01 -Paragraph IE33 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=32&code=ifrs-tx-2024-en-r&anchor=para_IE33&doctype=Illustrative%20Examples -URIDate 2024-03-27 + 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 2024-01-01 -Paragraph 28 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_28_a&doctype=Standard -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2024-01-01 -Paragraph 23 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_23_a&doctype=Standard -URIDate 2024-03-27 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2024-01-01 -Paragraph 32 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_32&doctype=Standard -URIDate 2024-03-27 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2024-01-01 -Paragraph 33 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_33_a&doctype=Standard -URIDate 2024-03-27 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2024-01-01 -Paragraph 34 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_34&doctype=Standard -URIDate 2024-03-27 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 5 -IssueDate 2024-01-01 -Paragraph 33 -Subparagraph b -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2024-en-r&anchor=para_33_b_i&doctype=Standard -URIDate 2024-03-27 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2024-01-01 -Paragraph B12 -Subparagraph b -Clause v -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B12_b_v&doctype=Appendix&subtype=B -URIDate 2024-03-27 Reference 8: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 12 -IssueDate 2024-01-01 -Paragraph B10 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_B10_b&doctype=Appendix&subtype=B -URIDate 2024-03-27 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 82 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_82_a&doctype=Standard -URIDate 2024-03-27 Reference 10: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 103 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_103&doctype=Standard -URIDate 2024-03-27 Reference 11: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 102 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_102&doctype=Standard -URIDate 2024-03-27 + 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: Total for all associates [member]; Investments accounted for using equity method; Total for all joint ventures [member]; Profit (loss)] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2024-01-01 -Paragraph 28 -Subparagraph e -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_28_e&doctype=Standard -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2024-01-01 -Paragraph 23 -Subparagraph g -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2024-en-r&anchor=para_23_g&doctype=Standard -URIDate 2024-03-27 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 82 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_82_c&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | ec_TypeOfCostAxis=ec_VariableCostMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ec_TypeOfCostAxis=ec_FixedCostMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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