XML 132 R123.htm IDEA: XBRL DOCUMENT
v3.24.3

Exhibit 1. Consolidated companies, associates, and joint ventures (Unaudited) - Consolidated subsidiary companies (Details) - COP ($) $ in Millions | 6 Months Ended |  |
--- | --- | --- | ---
Jun. 30, 2024 | Jun. 30, 2023 | Dec. 31, 2023 | Dec. 31, 2022
Disclosure of consolidated subsidiaries, associates and joint ventures |  |  |  |
Net equity | $ 95,236,419 | $ 98,242,364 | $ 100,252,480 | $ 113,903,089
Profit (loss) for the period | 8,717,774 | $ 14,471,587 |  |
Total assets | 283,484,766 |  | 280,141,090 |
Total liabilities | $ 188,248,347 |  | $ 179,888,610 |
Equion Energia Limited |  |  |  |
Disclosure of consolidated subsidiaries, associates and joint ventures |  |  |  |
Functional Currency | U.S. Dollar |  |  |
Ownership interest Ecopetrol, joint venture | 51.00% |  |  |
Activity, joint venture | Hydrocarbons exploration and exploitation |  |  |
Country/Domicile, joint venture | United Kingdom |  |  |
Geographic area of operations, joint venture | Colombia |  |  |
Net equity | $ 1,456,602 |  |  |
Profit (loss) for the period | 28,149 |  |  |
Total assets | 1,534,068 |  |  |
Total liabilities | $ 77,466 |  |  |
Ecodiesel Colombia S.A. |  |  |  |
Disclosure of consolidated subsidiaries, associates and joint ventures |  |  |  |
Functional Currency | Colombian peso |  |  |
Ownership interest Ecopetrol, joint venture | 50.00% |  |  |
Activity, joint venture | Production, commercialization and distribution of biofuels and oleochemicals |  |  |
Country/Domicile, joint venture | Colombia |  |  |
Geographic area of operations, joint venture | Colombia |  |  |
Net equity | $ 155,957 |  |  |
Profit (loss) for the period | 18,744 |  |  |
Total assets | 247,720 |  |  |
Total liabilities | $ 91,763 |  |  |
Serviport S.A. [Member] |  |  |  |
Disclosure of consolidated subsidiaries, associates and joint ventures |  |  |  |
Functional Currency | Colombian peso |  |  |
Ownership interest Ecopetrol, associate | 49.00% |  |  |
Activity, associate | Services to support the loading and unloading of oil trucks, supply of equipment for the same purpose, technical inspections, and load measurements |  |  |
Country/Domicile, associate | Colombia |  |  |
Geographic area of operations, associate | Colombia |  |  |
Net equity | $ 17,230 |  |  |
Profit (loss) for the period | (6,773) |  |  |
Total assets | 38,707 |  |  |
Total liabilities | $ 21,477 |  |  |
Sociedad Portuaria Olefinas y Derivados S.A. |  |  |  |
Disclosure of consolidated subsidiaries, associates and joint ventures |  |  |  |
Functional Currency | Colombian peso |  |  |
Ownership interest Ecopetrol, associate | 50.00% |  |  |
Activity, associate | Construction, use, maintenance, adaptation and administration of port facilities, ports, private docks, or service to the general public |  |  |
Country/Domicile, associate | Colombia |  |  |
Geographic area of operations, associate | Colombia |  |  |
Net equity | $ 7,065 |  |  |
Profit (loss) for the period | (920) |  |  |
Total assets | 9,084 |  |  |
Total liabilities | $ 2,019 |  |  |

X
- Definition The description of nature of activity of associate. + References No definition available. + Details
Name: | ec_DescriptionOfNatureOfActivityOfAssociate
Namespace Prefix: | ec_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The description of nature of activity of joint venture. + References No definition available. + Details
Name: | ec_DescriptionOfNatureOfActivityOfJointVenture
Namespace Prefix: | ec_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition The amount of a present economic resource controlled by the entity as a result of past events. Economic resource is a right that has the potential to produce economic benefits. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 13 -IssueDate 2023-01-01 -Paragraph 93 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_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 28 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_c&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 13 -IssueDate 2023-01-01 -Paragraph 93 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_b&doctype=Standard -URIDate 2023-03-23 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 13 -IssueDate 2023-01-01 -Paragraph 93 -Subparagraph e -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_e&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/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 55 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_55&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_Assets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The country in which a joint venture of the entity is incorporated. [Refer: Joint ventures [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2023-01-01 -Paragraph 16 -Subparagraph b -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_16_b_ii&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2023-01-01 -Paragraph 17 -Subparagraph b -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_17_b_ii&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph 21 -Subparagraph a -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_21_a_iii&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CountryOfIncorporationOfJointVenture
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The country in which an associate of the entity is incorporated. [Refer: Associates [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2023-01-01 -Paragraph 16 -Subparagraph b -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_16_b_ii&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2023-01-01 -Paragraph 17 -Subparagraph b -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_17_b_ii&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph 21 -Subparagraph a -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_21_a_iii&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CountryOfIncorporationOrResidenceOfAssociate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The description of the currency of the primary economic environment in which the entity operates. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 21 -IssueDate 2023-01-01 -Paragraph 53 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2023-en-r&anchor=para_53&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 21 -IssueDate 2023-01-01 -Paragraph 57 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2023-en-r&anchor=para_57_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_DescriptionOfFunctionalCurrency
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of residual interest in the assets of the entity after deducting all its liabilities. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 1 -IssueDate 2023-01-01 -Paragraph 24 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2023-en-r&anchor=para_24_a&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 i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2023-en-r&anchor=para_32_a_i&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 13 -IssueDate 2023-01-01 -Paragraph 93 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_a&doctype=Standard -URIDate 2023-03-23 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 13 -IssueDate 2023-01-01 -Paragraph 93 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_b&doctype=Standard -URIDate 2023-03-23 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 13 -IssueDate 2023-01-01 -Paragraph 93 -Subparagraph e -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_e&doctype=Standard -URIDate 2023-03-23 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 55 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_55&doctype=Standard -URIDate 2023-03-23 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 78 -Subparagraph e -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_78_e&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_Equity
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount of a present obligation of the entity to transfer an economic resource as a result of past events. Economic resource is a right that has the potential to produce economic benefits. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 13 -IssueDate 2023-01-01 -Paragraph 93 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_a&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 13 -IssueDate 2023-01-01 -Paragraph 93 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_b&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 13 -IssueDate 2023-01-01 -Paragraph 93 -Subparagraph e -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_e&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 d -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_d&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/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 55 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_55&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_Liabilities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The principal place of business of an associate. [Refer: Principal place of business; Associates [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2023-01-01 -Paragraph 16 -Subparagraph b -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_16_b_ii&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2023-01-01 -Paragraph 17 -Subparagraph b -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_17_b_ii&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph 21 -Subparagraph a -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_21_a_iii&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_PrincipalPlaceOfBusinessOfAssociate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The principal place of business of a joint venture. [Refer: Principal place of business; Joint ventures [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2023-01-01 -Paragraph 16 -Subparagraph b -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_16_b_ii&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2023-01-01 -Paragraph 17 -Subparagraph b -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_17_b_ii&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph 21 -Subparagraph a -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_21_a_iii&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_PrincipalPlaceOfBusinessOfJointVenture
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
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
- Definition The proportion of ownership interest in an associate attributable to the entity. [Refer: Associates [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2023-01-01 -Paragraph 17 -Subparagraph b -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_17_b_iii&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2023-01-01 -Paragraph 16 -Subparagraph b -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_16_b_iii&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph 21 -Subparagraph a -Clause iv -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_21_a_iv&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ProportionOfOwnershipInterestInAssociate
Namespace Prefix: | ifrs-full_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The proportion of ownership interest in a joint venture attributable to the entity. [Refer: Joint ventures [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2023-01-01 -Paragraph 17 -Subparagraph b -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_17_b_iii&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2023-01-01 -Paragraph 16 -Subparagraph b -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_16_b_iii&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph 21 -Subparagraph a -Clause iv -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_21_a_iv&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ProportionOfOwnershipInterestInJointVenture
Namespace Prefix: | ifrs-full_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_JointVenturesAxis=ec_EquionEnergiaLimitedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_JointVenturesAxis=ec_EcodieselColombiaSaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SignificantInvestmentsInAssociatesAxis=ec_ServiportSaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SignificantInvestmentsInAssociatesAxis=ec_SociedadPortuariaOlefinasYDerivadosSaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |