XML 112 R103.htm IDEA: XBRL DOCUMENT
v3.24.3

Revenue from contracts with customers - National and foreign sales (Details) - COP ($) $ in Millions | 6 Months Ended
--- | ---
Jun. 30, 2024 | Jun. 30, 2023
Revenue from contracts with customers |  |
Revenue | $ 63,929,546 | $ 73,222,324
National sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 31,174,949 | 37,475,818
Foreign sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 32,754,597 | 35,746,506
Mid-distillates | National sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 14,344,857 | 16,480,792
Gasolines | National sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 9,043,982 | 12,512,904
Gasolines | Foreign sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 149,590 | 193,394
Natural gas | National sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 1,971,259 | 2,271,821
Services | National sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 1,865,643 | 1,809,889
Electric Power Transmission Services | National sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 1,522,356 | 1,350,548
Electric Power Transmission Services | Foreign sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 2,621,770 | 3,061,980
Plastic and rubber | National sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 445,287 | 654,029
Plastic and rubber | Foreign sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 561,082 | 749,103
Fuel gas Service | National sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 514,013 | 491,706
Asphalts | National sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 386,922 | 464,815
L.P.G. and propane | National sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 321,473 | 479,782
L.P.G. and propane | Foreign sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 170,872 | 149,225
Roads and construction service | National sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 160,635 | 176,879
Roads and construction service | Foreign sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 2,495,770 | 2,546,680
Polyethylene | National sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 150,642 | 158,669
Aromatics | National sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 131,702 | 157,009
Crude oil | National sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 178 | 125,486
Crude oil | Foreign sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 22,989,399 | 25,001,389
Fuel oil | Foreign sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 1,720,541 | 1,826,690
Other products | National sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 316,000 | 341,489
Other products | Foreign sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | 1,167,161 | 945,194
Cash flow hedging | Foreign sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods |  | (673,551)
Cash flow hedging | Foreign sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | (90,623) | (673,551)
Diesel | Foreign sales |  |
Revenue from contracts with customers |  |
Revenue from sale of goods | $ 969,035 | $ 1,946,402

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_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=ifrs-full_CashFlowHedgesMember
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: |