XML 197 R153.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Revenue from contracts with customers - National and foreign sales (Details) - COP ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Revenue from contracts with customers |  |  |
Revenue | $ 143,189,602 | $ 159,611,078 | $ 91,881,204
National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 71,745,082 | 83,651,506 | 44,822,210
Foreign sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 71,444,520 | 75,959,572 | 47,058,994
Mid-distillates | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 32,605,842 | 39,182,510 | 17,140,327
Gasolines | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 23,129,025 | 27,620,199 | 15,475,370
Gasolines | Foreign sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 193,394 | 157,685 |
Natural gas | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 4,358,266 | 4,162,876 | 3,200,069
Natural gas | Foreign sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 105,413 | 254,054 | 71,529
Services | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 3,232,784 | 3,601,681 | 3,065,988
Electric Power Transmission Services | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 2,769,897 | 2,595,505 | 728,467
Electric Power Transmission Services | Foreign sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 5,666,389 | 5,114,783 | 1,827,622
Plastic and rubber | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 1,225,223 | 1,568,816 | 1,642,035
Plastic and rubber | Foreign sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 1,393,669 | 2,036,201 | 2,092,379
Fuel gas Service | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 989,084 | 860,102 | 734,666
Asphalts | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 938,185 | 897,200 | 611,051
L.P.G. and propane | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 762,349 | 1,094,332 | 926,231
L.P.G. and propane | Foreign sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 302,159 | 339,837 | 116,960
Roads and construction service | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 349,834 | 355,737 | 107,179
Roads and construction service | Foreign sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 4,761,317 | 4,676,822 | 1,241,144
Polyethylene | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 314,184 | 302,630 | 320,466
Aromatics | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 297,957 | 343,792 | 247,387
Crude oil | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 128,416 | 375,790 | 193,476
Crude oil | Foreign sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 49,559,864 | 56,651,753 | 34,868,421
Fuel oil | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 36,298 | 9,213 | 23,799
Fuel oil | Foreign sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 4,028,908 | 4,348,312 | 2,288,977
Other income - Gas contracts | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 30 | 1,940 | 2,879
Other products | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 607,708 | 679,183 | 402,828
Other products | Foreign sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | 1,804,697 | 1,633,510 | 1,033,909
Cash flow hedging | National sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods |  |  | (8)
Cash flow hedging | Foreign sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | (468,407) | (1,578,246) | (349,884)
Diesel | Foreign sales |  |  |
Revenue from contracts with customers |  |  |
Revenue from sale of goods | $ 4,097,117 | $ 2,324,861 | $ 3,867,937

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

X
- Definition The amount of revenue arising from the sale of goods. [Refer: Revenue]. + References No definition available. + Details
Name: | ec_RevenuesFromSaleOfGoods
Namespace Prefix: | ec_
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
- Details
Name: | ifrs-full_MarketsOfCustomersAxis=ec_DomesticSalesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MarketsOfCustomersAxis=ec_ForeignSalesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_MeddistillatesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_GasolineAndTurboFuelMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_NaturalGassMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_ServicesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_ElectricPowerTransmissionServices2Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_PlasticAndRubberMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_FuelGasServicesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_AsphaltsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_LpgAndPropaneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_RoadsAndConstructionServicesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_PolyethyleneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_AromaticsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_CrudeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_FuelOilMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_OtherIncomeGasContractsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_OtherProductsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_CashFlowHedgingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ec_DieselMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |