XML 240 R196.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Exhibit 1 - Consolidated subsidiaries, associates, and joint ventures - Associates and Joint ventures (Details) - COP ($) $ in Millions | 12 Months Ended |
--- | --- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
Disclosure of consolidated subsidiaries, associates and joint ventures |  |  |  |
Net equity | $ 100,252,480 | $ 113,903,089 | $ 90,583,772 | $ 53,499,363
Profit (loss) for the period | 25,383,071 | 35,199,480 | $ 17,630,554 |
Total assets | 280,141,090 | 302,792,431 |  |
Total liabilities | $ 179,888,610 | $ 188,889,342 |  |
Equion Energia Limited |  |  |  |
Disclosure of consolidated subsidiaries, associates and joint ventures |  |  |  |
Functional Currency | US Dollar |  |  |
Ownership interest Ecopetrol, joint venture | 51.00% |  |  |
Activity, joint venture | Exploration and exploitation of hydrocarbons |  |  |
Country/Domicile, joint venture | United Kingdom |  |  |
Geographic area of operations, joint venture | Colombia |  |  |
Net equity | $ 1,329,394 |  |  |
Profit (loss) for the period | 38,718 |  |  |
Total assets | 1,401,176 |  |  |
Total liabilities | $ 71,782 |  |  |
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, trading, and distribution of biofuels and oleochemicals |  |  |
Country/Domicile, joint venture | Colombia |  |  |
Geographic area of operations, joint venture | Colombia |  |  |
Net equity | $ 170,060 |  |  |
Profit (loss) for the period | 55,099 |  |  |
Total assets | 265,330 |  |  |
Total liabilities | $ 95,270 |  |  |
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 for the support of loading and unloading of oil ships, supply of equipment, technical inspections, and load measurements |  |  |
Country/Domicile, associate | Colombia |  |  |
Geographic area of operations, associate | Colombia |  |  |
Net equity | $ 11,274 |  |  |
Profit (loss) for the period | (4,692) |  |  |
Total assets | 41,082 |  |  |
Total liabilities | $ 29,808 |  |  |
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 and administration of port facilities, ports, private docks. |  |  |
Country/Domicile, associate | Colombia |  |  |
Geographic area of operations, associate | Colombia |  |  |
Net equity | $ 8,476 |  |  |
Profit (loss) for the period | 2,904 |  |  |
Total assets | 12,219 |  |  |
Total liabilities | $ 3,743 |  |  |

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