{
 "version": "2.2",
 "instance": {
  "ec-20251231x20f.htm": {
   "nsprefix": "ec",
   "nsuri": "http://www.ecopetrol.com.co/20251231",
   "dts": {
    "schema": {
     "local": [
      "ec-20251231.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/lrr/arcrole/esma-arcrole-2018-11-21.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/net-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/2023/calculation-1.1.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://www.xbrl.org/dtr/type/2022-03-31/types.xsd",
      "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd",
      "https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd",
      "https://xbrl.fasb.org/srt/2025/elts/srt-roles-2025.xsd",
      "https://xbrl.fasb.org/srt/2025/elts/srt-types-2025.xsd",
      "https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd",
      "https://xbrl.fasb.org/us-gaap/2025/elts/us-roles-2025.xsd",
      "https://xbrl.fasb.org/us-gaap/2025/elts/us-types-2025.xsd",
      "https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/dimensions-ea/rol_ifrs_ea-dim_2025-03-27.xsd",
      "https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/dimensions/rol_full_ifrs-dim_2025-03-27.xsd",
      "https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd",
      "https://xbrl.sec.gov/country/2025/country-2025.xsd",
      "https://xbrl.sec.gov/currency/2025/currency-2025.xsd",
      "https://xbrl.sec.gov/cyd/2025/cyd-2025.xsd",
      "https://xbrl.sec.gov/cyd/2025/cyd-af-2025.xsd",
      "https://xbrl.sec.gov/cyd/2025/cyd-af-sub-2025.xsd",
      "https://xbrl.sec.gov/dei/2025/dei-2025.xsd",
      "https://xbrl.sec.gov/ecd/2025/ecd-2025.xsd",
      "https://xbrl.sec.gov/ecd/2025/ecd-sub-2025.xsd",
      "https://xbrl.sec.gov/stpr/2025/stpr-2025.xsd"
     ]
    },
    "calculationLink": {
     "local": [
      "ec-20251231_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "ec-20251231_def.xml"
     ],
     "remote": [
      "https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/dimensions-ea/dim_ifrs_ea_2025-03-27_role-995000.xml",
      "https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/dimensions/dim_full_ifrs_2025-03-27_role-995000.xml"
     ]
    },
    "labelLink": {
     "local": [
      "ec-20251231_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "ec-20251231_pre.xml"
     ]
    },
    "inline": {
     "local": [
      "ec-20251231x20f.htm"
     ]
    }
   },
   "keyStandard": 492,
   "keyCustom": 487,
   "axisStandard": 50,
   "axisCustom": 20,
   "memberStandard": 93,
   "memberCustom": 771,
   "hidden": {
    "total": 668,
    "http://www.ecopetrol.com.co/20251231": 583,
    "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full": 77,
    "http://xbrl.sec.gov/dei/2025": 8
   },
   "contextCount": 2672,
   "entityCount": 1,
   "segmentCount": 889,
   "elementCount": 2290,
   "unitCount": 23,
   "baseTaxonomies": {
    "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full": 5169,
    "http://xbrl.sec.gov/dei/2025": 53,
    "http://xbrl.sec.gov/cyd/2025": 14,
    "http://xbrl.sec.gov/ecd/2025": 1
   },
   "report": {
    "R1": {
     "role": "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation",
     "longName": "995200090 - Document - Document and Entity Information",
     "shortName": "Document and Entity Information",
     "isDefault": "true",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R2": {
     "role": "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition",
     "longName": "995200100 - Statement - Consolidated statement of financial position",
     "shortName": "Consolidated statement of financial position",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "2",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:CashAndCashEquivalents",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:CurrentBorrowingsAndCurrentPortionOfNoncurrentBorrowings",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R3": {
     "role": "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss",
     "longName": "995200200 - Statement - Consolidated statement of profit or loss",
     "shortName": "Consolidated statement of profit or loss",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "3",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:Revenue",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R4": {
     "role": "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome",
     "longName": "995200300 - Statement - Consolidated statement of comprehensive income",
     "shortName": "Consolidated statement of comprehensive income",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "4",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:ProfitLoss",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R5": {
     "role": "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity",
     "longName": "995200400 - Statement - Consolidated statement of changes in equity",
     "shortName": "Consolidated statement of changes in equity",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "5",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2022_ifrs-full_ComponentsOfEquityAxis_ifrs-full_IssuedCapitalMember_ifrs-full_CumulativeEffectAtDateOfInitialApplicationAxis_ifrs-full_IncreaseDecreaseDueToChangesInAccountingPolicyRequiredByIFRSsCumulativeEffectAtDateOfInitialApplicationMember_e4vVUQD7tEa0cSbSG9vm_A",
      "name": "ifrs-full:Equity",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2022_ifrs-full_ComponentsOfEquityAxis_ifrs-full_IssuedCapitalMember_ifrs-full_CumulativeEffectAtDateOfInitialApplicationAxis_ifrs-full_IncreaseDecreaseDueToChangesInAccountingPolicyRequiredByIFRSsCumulativeEffectAtDateOfInitialApplicationMember_e4vVUQD7tEa0cSbSG9vm_A",
      "name": "ifrs-full:Equity",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R6": {
     "role": "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows",
     "longName": "995200500 - Statement - Consolidated statement of cash flows",
     "shortName": "Consolidated statement of cash flows",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "6",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:ProfitLoss",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:AdjustmentsForIncomeTaxExpense",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R7": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureReportingEntity",
     "longName": "995210101 - Disclosure - Reporting entity",
     "shortName": "Reporting entity",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "7",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfReportingEntityTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfReportingEntityTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R8": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparation",
     "longName": "995210201 - Disclosure - Basis for preparation",
     "shortName": "Basis for preparation",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "8",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfReclassificationsOrChangesInPresentationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfReclassificationsOrChangesInPresentationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R9": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureMaterialAccountingJudgmentsAndEstimates",
     "longName": "995210301 - Disclosure - Material accounting judgments and estimates",
     "shortName": "Material accounting judgments and estimates",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "9",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfAccountingJudgementsAndEstimatesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfAccountingJudgementsAndEstimatesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R10": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureAccountingPolicies",
     "longName": "995210401 - Disclosure - Accounting policies",
     "shortName": "Accounting policies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "10",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfMaterialAccountingPolicyInformationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfMaterialAccountingPolicyInformationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R11": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureNewStandardsAndRegulatoryChanges",
     "longName": "995210501 - Disclosure - New standards and regulatory changes",
     "shortName": "New standards and regulatory changes",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "11",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DescriptionOfExpectedImpactOfInitialApplicationOfNewStandardsOrInterpretations",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DescriptionOfExpectedImpactOfInitialApplicationOfNewStandardsOrInterpretations",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R12": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalents",
     "longName": "995210601 - Disclosure - Cash and cash equivalents",
     "shortName": "Cash and cash equivalents",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "12",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R13": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivables",
     "longName": "995210701 - Disclosure - Trade and other receivables",
     "shortName": "Trade and other receivables",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "13",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R14": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureInventories",
     "longName": "995210801 - Disclosure - Inventories",
     "shortName": "Inventories",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "14",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfInventoriesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfInventoriesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R15": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssets",
     "longName": "995210901 - Disclosure - Other financial assets",
     "shortName": "Other financial assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "15",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfFinancialAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfFinancialAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R16": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTaxes",
     "longName": "995211001 - Disclosure - Taxes",
     "shortName": "Taxes",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "16",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfIncomeTaxExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfIncomeTaxExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R17": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureOtherAssets",
     "longName": "995211101 - Disclosure - Other assets",
     "shortName": "Other assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "17",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfOtherAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfOtherAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R18": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureBusinessCombination",
     "longName": "995211201 - Disclosure - Business combination",
     "shortName": "Business combination",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "18",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfBusinessCombinationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfBusinessCombinationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R19": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVentures",
     "longName": "995211301 - Disclosure - Investments in associates and joint ventures",
     "shortName": "Investments in associates and joint ventures",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "19",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfInvestmentsAccountedForUsingEquityMethodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfInvestmentsAccountedForUsingEquityMethodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R20": {
     "role": "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipment",
     "longName": "995211401 - Disclosure - Property, plant, and equipment",
     "shortName": "Property, plant, and equipment",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "20",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R21": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResources",
     "longName": "995211501 - Disclosure - Natural and environmental resources",
     "shortName": "Natural and environmental resources",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "21",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfNaturalAndEnvironmentalResourcesExplanatoryTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfNaturalAndEnvironmentalResourcesExplanatoryTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R22": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilities",
     "longName": "995211601 - Disclosure - Right-of-use assets and lease liabilities",
     "shortName": "Right-of-use assets and lease liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "22",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R23": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssets",
     "longName": "995211701 - Disclosure - Intangible assets",
     "shortName": "Intangible assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "23",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R24": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssets",
     "longName": "995211801 - Disclosure - Impairment of long-term assets",
     "shortName": "Impairment of long-term assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "24",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfImpairmentOfAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfImpairmentOfAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R25": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureGoodwill",
     "longName": "995211901 - Disclosure - Goodwill",
     "shortName": "Goodwill",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "25",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfGoodwillExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfGoodwillExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R26": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowings",
     "longName": "995212001 - Disclosure - Loans and borrowings",
     "shortName": "Loans and borrowings",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "26",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfBorrowingsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfBorrowingsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R27": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayables",
     "longName": "995212101 - Disclosure - Trade and other payables",
     "shortName": "Trade and other payables",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "27",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfTradeAndOtherPayablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfTradeAndOtherPayablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R28": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefits",
     "longName": "995212201 - Disclosure - Provisions for employees' benefits",
     "shortName": "Provisions for employees' benefits",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "28",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfEmployeeBenefitsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfEmployeeBenefitsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R29": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisions",
     "longName": "995212301 - Disclosure - Accrued liabilities and provisions",
     "shortName": "Accrued liabilities and provisions",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "29",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfAccruedExpensesAndOtherLiabilitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfAccruedExpensesAndOtherLiabilitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R30": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureEquity",
     "longName": "995212401 - Disclosure - Equity",
     "shortName": "Equity",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "30",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R31": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomers",
     "longName": "995212501 - Disclosure - Revenue from contracts with customers",
     "shortName": "Revenue from contracts with customers",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "31",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfRevenueExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfRevenueExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R32": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureCostOfSales",
     "longName": "995212601 - Disclosure - Cost of sales",
     "shortName": "Cost of sales",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "32",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfCostOfSalesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfCostOfSalesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R33": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpenses",
     "longName": "995212701 - Disclosure - Administrative, operative, and project expenses",
     "shortName": "Administrative, operative, and project expenses",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "33",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfGeneralAndAdministrativeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfGeneralAndAdministrativeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R34": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpenses",
     "longName": "995212801 - Disclosure - Other operating income (expenses)",
     "shortName": "Other operating income (expenses)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "34",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R35": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureFinancialResult",
     "longName": "995212901 - Disclosure - Financial result",
     "shortName": "Financial result",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "35",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R36": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRiskManagement",
     "longName": "995213001 - Disclosure - Risk management",
     "shortName": "Risk management",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "36",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R37": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRelatedParties",
     "longName": "995213101 - Disclosure - Related parties",
     "shortName": "Related parties",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "37",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfRelatedPartyExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfRelatedPartyExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R38": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureJointOperations",
     "longName": "995213201 - Disclosure - Joint operations",
     "shortName": "Joint operations",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "38",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfJointOperationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfJointOperationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R39": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformation",
     "longName": "995213301 - Disclosure - Business segment information",
     "shortName": "Business segment information",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "39",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R40": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEvents",
     "longName": "995213401 - Disclosure - Subsequent and relevant events",
     "shortName": "Subsequent and relevant events",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "40",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R41": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVentures",
     "longName": "995213501 - Disclosure - Exhibit 1 - Consolidated subsidiaries, associates, and joint ventures",
     "shortName": "Exhibit 1 - Consolidated subsidiaries, associates, and joint ventures",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "41",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfInterestsInSubsidiariesAssociatesAndJointVenturesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfInterestsInSubsidiariesAssociatesAndJointVenturesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R42": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEsp",
     "longName": "995213601 - Disclosure - Exhibit 2 - Consolidated subsidiaries, associates, and joint ventures in Interconexion Electrica SA ESP",
     "shortName": "Exhibit 2 - Consolidated subsidiaries, associates, and joint ventures in Interconexion Electrica SA ESP",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "42",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfInterestsInSubsidiariesAssociatesAndJointVenturesInterconexinElctricaS.a.EspTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfInterestsInSubsidiariesAssociatesAndJointVenturesInterconexinElctricaS.a.EspTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R43": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebt",
     "longName": "995213701 - Disclosure - Exhibit 3 - Conditions of the most significant debt",
     "shortName": "Exhibit 3 - Conditions of the most significant debt",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "43",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfSignificantLoansTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfSignificantLoansTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R44": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContracts",
     "longName": "995213801 - Disclosure - Exhibit 4. Quantitative information of concession services contracts",
     "shortName": "Exhibit 4. Quantitative information of concession services contracts",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "44",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfServiceConcessionArrangementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfServiceConcessionArrangementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R45": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnaudited",
     "longName": "995213901 - Disclosure - Supplemental information on oil and gas producing activities (unaudited)",
     "shortName": "Supplemental information on oil and gas producing activities (unaudited)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "45",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R46": {
     "role": "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc",
     "longName": "995447 - Disclosure - Insider Trading Policies and Procedures",
     "shortName": "Insider Trading Policies and Procedures",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "46",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ecd:InsiderTrdPoliciesProcAdoptedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ecd:InsiderTrdPoliciesProcAdoptedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R47": {
     "role": "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure",
     "longName": "995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure",
     "shortName": "Cybersecurity Risk Management and Strategy Disclosure",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "47",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "cyd:CybersecurityRiskManagementProcessesForAssessingIdentifyingAndManagingThreatsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "cyd:CybersecurityRiskManagementProcessesForAssessingIdentifyingAndManagingThreatsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R48": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies",
     "longName": "99920402 - Disclosure - Accounting policies (Policies)",
     "shortName": "Accounting policies (Policies)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "policies",
     "menuCat": "Policies",
     "order": "48",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfMaterialAccountingPolicyInformationExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfMaterialAccountingPolicyInformationExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R49": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesTables",
     "longName": "99930403 - Disclosure - Accounting policies (Tables)",
     "shortName": "Accounting policies (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "49",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfDepreciationAndAmortisationExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfDepreciationAndAmortisationExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R50": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsTables",
     "longName": "99930603 - Disclosure - Cash and cash equivalents (Tables)",
     "shortName": "Cash and cash equivalents (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "50",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutCashAndCashEquivalents",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutCashAndCashEquivalents",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R51": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesTables",
     "longName": "99930703 - Disclosure - Trade and other receivables (Tables)",
     "shortName": "Trade and other receivables (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "51",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutTradeAndOtherReceivables",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutTradeAndOtherReceivables",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R52": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureInventoriesTables",
     "longName": "99930803 - Disclosure - Inventories (Tables)",
     "shortName": "Inventories (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "52",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutInventoriesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutInventoriesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R53": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsTables",
     "longName": "99930903 - Disclosure - Other financial assets (Tables)",
     "shortName": "Other financial assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "53",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutOtherFinancialAssetTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinancialAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutOtherFinancialAssetTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinancialAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R54": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTaxesTables",
     "longName": "99931003 - Disclosure - Taxes (Tables)",
     "shortName": "Taxes (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "54",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutCurrentTaxAssetsAndLiabilitiesTextblock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutCurrentTaxAssetsAndLiabilitiesTextblock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R55": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsTables",
     "longName": "99931103 - Disclosure - Other assets (Tables)",
     "shortName": "Other assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "55",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutOtherAssetsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfOtherAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutOtherAssetsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfOtherAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R56": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationTables",
     "longName": "99931203 - Disclosure - Business combination (Tables)",
     "shortName": "Business combination (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "56",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutBusinessCombinationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutBusinessCombinationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R57": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesTables",
     "longName": "99931303 - Disclosure - Investments in associates and joint ventures (Tables)",
     "shortName": "Investments in associates and joint ventures (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "57",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfInvestmentEntitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfInvestmentsAccountedForUsingEquityMethodExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfInvestmentEntitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfInvestmentsAccountedForUsingEquityMethodExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R58": {
     "role": "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentTables",
     "longName": "99931403 - Disclosure - Property, plant, and equipment (Tables)",
     "shortName": "Property, plant, and equipment (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "58",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfPropertyPlantAndEquipmentAndItsDepreciationAndImpairmentTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfPropertyPlantAndEquipmentAndItsDepreciationAndImpairmentTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R59": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesTables",
     "longName": "99931503 - Disclosure - Natural and environmental resources (Tables)",
     "shortName": "Natural and environmental resources (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "59",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutNaturalAndEnvironmentalResourcesExplanatoryTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ec:DisclosureOfNaturalAndEnvironmentalResourcesExplanatoryTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutNaturalAndEnvironmentalResourcesExplanatoryTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ec:DisclosureOfNaturalAndEnvironmentalResourcesExplanatoryTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R60": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesTables",
     "longName": "99931603 - Disclosure - Right-of-use assets and lease liabilities (Tables)",
     "shortName": "Right-of-use assets and lease liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "60",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfMovementOfRightOfUseAssetsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfMovementOfRightOfUseAssetsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R61": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsTables",
     "longName": "99931703 - Disclosure - Intangible assets (Tables)",
     "shortName": "Intangible assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "61",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R62": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsTables",
     "longName": "99931803 - Disclosure - Impairment of long-term assets (Tables)",
     "shortName": "Impairment of long-term assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "62",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutImpairmentOfNoncurrentAssetsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutImpairmentOfNoncurrentAssetsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R63": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureGoodwillTables",
     "longName": "99931903 - Disclosure - Goodwill (Tables)",
     "shortName": "Goodwill (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "63",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfReconciliationOfChangesInGoodwillExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfGoodwillExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfReconciliationOfChangesInGoodwillExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfGoodwillExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R64": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsTables",
     "longName": "99932003 - Disclosure - Loans and borrowings (Tables)",
     "shortName": "Loans and borrowings (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "64",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfBorrowingsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfBorrowingsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R65": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesTables",
     "longName": "99932103 - Disclosure - Trade and other payables (Tables)",
     "shortName": "Trade and other payables (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "65",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureDetailedInformationOfTradeAndOtherPayablesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfTradeAndOtherPayablesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureDetailedInformationOfTradeAndOtherPayablesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfTradeAndOtherPayablesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R66": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsTables",
     "longName": "99932203 - Disclosure - Provisions for employees' benefits (Tables)",
     "shortName": "Provisions for employees' benefits (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "66",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutProvisionBalancesForEmployeeBenefitsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfEmployeeBenefitsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutProvisionBalancesForEmployeeBenefitsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfEmployeeBenefitsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R67": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsTables",
     "longName": "99932303 - Disclosure - Accrued liabilities and provisions (Tables)",
     "shortName": "Accrued liabilities and provisions (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "67",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfAccruedLiabilitiesAndProvisionsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfAccruedExpensesAndOtherLiabilitiesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfAccruedLiabilitiesAndProvisionsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfAccruedExpensesAndOtherLiabilitiesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R68": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureEquityTables",
     "longName": "99932403 - Disclosure - Equity (Tables)",
     "shortName": "Equity (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "68",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutShareCapitalReservesAndOtherEquityInterestTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutShareCapitalReservesAndOtherEquityInterestTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R69": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersTables",
     "longName": "99932503 - Disclosure - Revenue from contracts with customers (Tables)",
     "shortName": "Revenue from contracts with customers (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "69",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutBreakdownOfSalesRevenueTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutBreakdownOfSalesRevenueTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R70": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesTables",
     "longName": "99932603 - Disclosure - Cost of sales (Tables)",
     "shortName": "Cost of sales (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "70",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutCostOfSalesOfNonCurrentAssetsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfCostOfSalesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutCostOfSalesOfNonCurrentAssetsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfCostOfSalesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R71": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesTables",
     "longName": "99932703 - Disclosure - Administrative, operative, and project expenses (Tables)",
     "shortName": "Administrative, operative, and project expenses (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "71",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationOnGeneralAndAdministrationExpenseTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfGeneralAndAdministrativeExpenseExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationOnGeneralAndAdministrationExpenseTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfGeneralAndAdministrativeExpenseExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R72": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesTables",
     "longName": "99932803 - Disclosure - Other operating income (expenses) (Tables)",
     "shortName": "Other operating income (expenses) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "72",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfOtherOperatingIncomeExpenseTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfOtherOperatingIncomeExpenseTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R73": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureFinancialResultTables",
     "longName": "99932903 - Disclosure - Financial result (Tables)",
     "shortName": "Financial result (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "73",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfFinanceIncomeExpenseExplanatoryTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfFinanceIncomeExpenseExplanatoryTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R74": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRiskManagementTables",
     "longName": "99933003 - Disclosure - Risk management (Tables)",
     "shortName": "Risk management (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "74",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutCarryingValuesForFinancialAssetsAndLiabilitiesDenominatedInForeignCurrenciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutCarryingValuesForFinancialAssetsAndLiabilitiesDenominatedInForeignCurrenciesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R75": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTables",
     "longName": "99933103 - Disclosure - Related parties (Tables)",
     "shortName": "Related parties (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "75",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfInterestsInOtherEntitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfInterestsInOtherEntitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R76": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureJointOperationsTables",
     "longName": "99933203 - Disclosure - Joint operations (Tables)",
     "shortName": "Joint operations (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "76",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ec_ContractTypeAxis_ec_ContractWhereEntityNotOperatorMember_P0SfAIThK0WWKQ6n8_iB0A",
      "name": "ifrs-full:DisclosureOfInterestsInJointArrangementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ec_ContractTypeAxis_ec_ContractWhereEntityNotOperatorMember_P0SfAIThK0WWKQ6n8_iB0A",
      "name": "ifrs-full:DisclosureOfInterestsInJointArrangementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R77": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationTables",
     "longName": "99933303 - Disclosure - Business segment information (Tables)",
     "shortName": "Business segment information (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "77",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfOperatingSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfOperatingSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R78": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesTables",
     "longName": "99933503 - Disclosure - Exhibit 1 - Consolidated subsidiaries, associates, and joint ventures (Tables)",
     "shortName": "Exhibit 1 - Consolidated subsidiaries, associates, and joint ventures (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "78",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfInterestsInSubsidiariesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ec:DisclosureOfInterestsInSubsidiariesAssociatesAndJointVenturesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfInterestsInSubsidiariesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ec:DisclosureOfInterestsInSubsidiariesAssociatesAndJointVenturesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R79": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspTables",
     "longName": "99933603 - Disclosure - Exhibit 2 - Consolidated subsidiaries, associates, and joint ventures in Interconexion Electrica SA ESP (Tables)",
     "shortName": "Exhibit 2 - Consolidated subsidiaries, associates, and joint ventures in Interconexion Electrica SA ESP (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "79",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfSignificantInvestmentsInSubsidiariesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ec:DisclosureOfInterestsInSubsidiariesAssociatesAndJointVenturesInterconexinElctricaS.a.EspTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DisclosureOfSignificantInvestmentsInSubsidiariesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ec:DisclosureOfInterestsInSubsidiariesAssociatesAndJointVenturesInterconexinElctricaS.a.EspTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R80": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtTables",
     "longName": "99933703 - Disclosure - Exhibit 3 - Conditions of the most significant debt (Tables)",
     "shortName": "Exhibit 3 - Conditions of the most significant debt (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "80",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfLoansTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ec:DisclosureOfSignificantLoansTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfLoansTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ec:DisclosureOfSignificantLoansTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R81": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsTables",
     "longName": "99933803 - Disclosure - Exhibit 4. Quantitative information of concession services contracts (Tables)",
     "shortName": "Exhibit 4. Quantitative information of concession services contracts (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "81",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfQuantitativeInformationOfConcessionServicesContracts",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfServiceConcessionArrangementsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfQuantitativeInformationOfConcessionServicesContracts",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfServiceConcessionArrangementsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R82": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables",
     "longName": "99933903 - Disclosure - Supplemental information on oil and gas producing activities (unaudited) (Tables)",
     "shortName": "Supplemental information on oil and gas producing activities (unaudited) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "82",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutCapitalizedCostsRelatingToOilAndGasProducingActivitiesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:DisclosureOfDetailedInformationAboutCapitalizedCostsRelatingToOilAndGasProducingActivitiesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R83": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureReportingEntityDetails",
     "longName": "99940101 - Disclosure - Reporting entity (Details)",
     "shortName": "Reporting entity (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "83",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:ProportionOfSharesAvailableForPublicTrade",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "p",
       "ec:DisclosureOfReportingEntityTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R84": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
     "longName": "99940201 - Disclosure - Basis for preparation (Details)",
     "shortName": "Basis for preparation (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "84",
     "firstAnchor": {
      "contextRef": "Duration_7_1_2024_To_7_31_2024_IzQhGdm0VEiFiyB3oyA7Ag",
      "name": "ifrs-full:CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_7_1_2024_To_7_31_2024_IzQhGdm0VEiFiyB3oyA7Ag",
      "name": "ifrs-full:CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R85": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesDetails",
     "longName": "99940401 - Disclosure - Accounting policies (Details)",
     "shortName": "Accounting policies (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "85",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_ifrs-full_OfficeEquipmentMember_ifrs-full_RangeAxis_ifrs-full_BottomOfRangeMember_w5Bm9w-tREeoEPUO_0E1Vw",
      "name": "ifrs-full:UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDepreciationAndAmortisationExpenseExplanatory",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_ifrs-full_OfficeEquipmentMember_ifrs-full_RangeAxis_ifrs-full_BottomOfRangeMember_w5Bm9w-tREeoEPUO_0E1Vw",
      "name": "ifrs-full:UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDepreciationAndAmortisationExpenseExplanatory",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R86": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesAdditionalInformationDetails",
     "longName": "99940402 - Disclosure - Accounting policies - Additional Information (Details)",
     "shortName": "Accounting policies - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "86",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:PercentageOfRightOfUseAssetsRecognizedInJointVenture",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "p",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:PercentageOfRightOfUseAssetsRecognizedInJointVenture",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "p",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R87": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsDetails",
     "longName": "99940601 - Disclosure - Cash and cash equivalents (Details)",
     "shortName": "Cash and cash equivalents (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "87",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:Cash",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutCashAndCashEquivalents",
       "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:Cash",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutCashAndCashEquivalents",
       "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R88": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsAdditionalInformationDetails",
     "longName": "99940602 - Disclosure - Cash and cash equivalents - Additional Information (Details)",
     "shortName": "Cash and cash equivalents - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "88",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:RestrictedCashAndCashEquivalents",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:RestrictedCashAndCashEquivalents",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R89": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails",
     "longName": "99940603 - Disclosure - Cash and cash equivalents - Credit quality of banks in the Ecopetrol Business Group has deposits and check accounts, and issuers of investments (Details)",
     "shortName": "Cash and cash equivalents - Credit quality of banks in the Ecopetrol Business Group has deposits and check accounts, and issuers of investments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "89",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:CashAndCashEquivalents",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_ExternalCreditGradesAxis_ec_GradeMember_0deYYrksEkatSw8nOMog3g",
      "name": "ifrs-full:CashAndCashEquivalents",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfCreditRiskExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R90": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails",
     "longName": "99940701 - Disclosure - Trade and other receivables (Details)",
     "shortName": "Trade and other receivables (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "90",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:TradeAndOtherCurrentReceivables",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_ifrs-full_GrossCarryingAmountMember_oBLHt0a9TEKjR0UkoylW4A",
      "name": "ec:ConcessionsTradeAndOtherReceivablesCurrent",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutTradeAndOtherReceivables",
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R91": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesFuelPriceStabilizationFunDetails",
     "longName": "99940702 - Disclosure - Trade and other receivables - Fuel Price Stabilization Fun (Details)",
     "shortName": "Trade and other receivables - Fuel Price Stabilization Fun (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "91",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_ifrs-full_ClassesOfFinancialAssetsAxis_ec_FuelPriceStabilizationFundMember_oB4RpoisTkSIrl-hIfpwTA",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfReconciliationOfChangesInLossAllowanceAndExplanationOfChangesInGrossCarryingAmountForFinancialInstrumentsExplanatory",
       "ec:DisclosureOfDetailedInformationAboutTradeAndOtherReceivables",
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2023_ifrs-full_ClassesOfFinancialAssetsAxis_ec_FuelPriceStabilizationFundMember_kt7k5N_hIki7nR7IYbfblQ",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfReconciliationOfChangesInLossAllowanceAndExplanationOfChangesInGrossCarryingAmountForFinancialInstrumentsExplanatory",
       "ec:DisclosureOfDetailedInformationAboutTradeAndOtherReceivables",
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R92": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails",
     "longName": "99940703 - Disclosure - Trade and other receivables - Additional Information (Details)",
     "shortName": "Trade and other receivables - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "92",
     "firstAnchor": {
      "contextRef": "Duration_12_31_2025_To_12_31_2025_ifrs-full_ClassesOfFinancialAssetsAxis_ec_FuelPriceStabilizationFundMember_KCbGxkRI20mujrTeNiptHw",
      "name": "ifrs-full:ProceedsFromGovernmentGrantsClassifiedAsInvestingActivities",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ifrs-full:DisclosureOfReconciliationOfChangesInLossAllowanceAndExplanationOfChangesInGrossCarryingAmountForFinancialInstrumentsExplanatory",
       "ec:DisclosureOfDetailedInformationAboutTradeAndOtherReceivables",
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_12_31_2025_To_12_31_2025_ifrs-full_ClassesOfFinancialAssetsAxis_ec_FuelPriceStabilizationFundMember_KCbGxkRI20mujrTeNiptHw",
      "name": "ifrs-full:ProceedsFromGovernmentGrantsClassifiedAsInvestingActivities",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ifrs-full:DisclosureOfReconciliationOfChangesInLossAllowanceAndExplanationOfChangesInGrossCarryingAmountForFinancialInstrumentsExplanatory",
       "ec:DisclosureOfDetailedInformationAboutTradeAndOtherReceivables",
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R93": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAllowanceForDoubtfulAccountsDetails",
     "longName": "99940704 - Disclosure - Trade and other receivables - Allowance for doubtful accounts (Details)",
     "shortName": "Trade and other receivables - Allowance for doubtful accounts (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "93",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_ifrs-full_AccumulatedImpairmentMember_ifrs-full_ClassesOfFinancialInstrumentsAxis_ec_TradeAndOtherReceivablesMember_RrtOQ9amGkCWT96JBJmYCA",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfAllowanceForCreditLossesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2022_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_ifrs-full_AccumulatedImpairmentMember_ifrs-full_ClassesOfFinancialInstrumentsAxis_ec_TradeAndOtherReceivablesMember_qLagWWbWvkyqVKPIzRw45g",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfAllowanceForCreditLossesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R94": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails",
     "longName": "99940705 - Disclosure - Trade and other receivables - Movement of the contractual asset (Details)",
     "shortName": "Trade and other receivables - Movement of the contractual asset (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "94",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_bdVjw29efUC0oGFhjMxlKQ",
      "name": "ec:ConcessionAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:IncreaseDecreaseDueToRemunerationAccrualConcessionAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R95": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureInventoriesDetails",
     "longName": "99940801 - Disclosure - Inventories (Details)",
     "shortName": "Inventories (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "95",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:CurrentCrudeOil",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutInventoriesTextBlock",
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:CurrentCrudeOil",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutInventoriesTextBlock",
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R96": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureInventoriesChangesOfAllowancesForLossesDetails",
     "longName": "99940802 - Disclosure - Inventories - Changes of the allowances for losses (Details)",
     "shortName": "Inventories - Changes of the allowances for losses (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "96",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_bdVjw29efUC0oGFhjMxlKQ",
      "name": "ec:ProvisionsForInventories",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfOtherProvisionsExplanatory",
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2022_7vx9eIrkYEqeiwt2T07uRQ",
      "name": "ec:ProvisionsForInventories",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfOtherProvisionsExplanatory",
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R97": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails",
     "longName": "99940901 - Disclosure - Other financial assets (Details)",
     "shortName": "Other financial assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "97",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:FinancialAssetsAtFairValueThroughProfitOrLossAndOtherComprehensiveIncome",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutOtherFinancialAssetTextBlock",
       "ifrs-full:DisclosureOfFinancialAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:FinancialAssetsAtFairValueThroughProfitOrLossAndOtherComprehensiveIncome",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutOtherFinancialAssetTextBlock",
       "ifrs-full:DisclosureOfFinancialAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R98": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
     "longName": "99940902 - Disclosure - Other financial assets - Additional Information (Details)",
     "shortName": "Other financial assets - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "98",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_ClassesOfFinancialAssetsAxis_ifrs-full_ForwardContractMember_ifrs-full_TypesOfRisksAxis_ifrs-full_CurrencyRiskMember_wmj4u8Gt8kudz6ujzM8SyQ",
      "name": "ifrs-full:NotionalAmount",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_ClassesOfFinancialAssetsAxis_ifrs-full_ForwardContractMember_ifrs-full_TypesOfRisksAxis_ifrs-full_CurrencyRiskMember_wmj4u8Gt8kudz6ujzM8SyQ",
      "name": "ifrs-full:NotionalAmount",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R99": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsRestrictionsDetails",
     "longName": "99940903 - Disclosure - Other financial assets - Restrictions (Details)",
     "shortName": "Other financial assets - Restrictions (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "99",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:LongTermRestrictedFundsHavingSpecificDestinationToInvestmentProjects",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "ec:LongTermRestrictedFundsHavingSpecificDestinationToInvestmentProjects",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:LongTermRestrictedFundsHavingSpecificDestinationToInvestmentProjects",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "ec:LongTermRestrictedFundsHavingSpecificDestinationToInvestmentProjects",
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R100": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMaturityDetails",
     "longName": "99940904 - Disclosure - Other financial assets - Maturity (Details)",
     "shortName": "Other financial assets - Maturity (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "100",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:OtherFinancialAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutOtherFinancialAssetTextBlock",
       "ifrs-full:DisclosureOfFinancialAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_MaturityAxis_ifrs-full_NotLaterThanOneYearMember_jT0E9U1ZfUOqK0Ky_0yj_Q",
      "name": "ifrs-full:OtherFinancialAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutMaturityAnalysisOfOtherFinancialAssetsTextblock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R101": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails",
     "longName": "99940905 - Disclosure - Other financial assets - Fair value (Details)",
     "shortName": "Other financial assets - Fair value (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "101",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:FinancialAssetsAtFairValue",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfFairValueMeasurementOfAssetsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:FinancialAssetsAtFairValue",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfFairValueMeasurementOfAssetsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R102": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMovementOfEquityInvestmentsDetails",
     "longName": "99940906 - Disclosure - Other financial assets - Movement of equity investments (Details)",
     "shortName": "Other financial assets - Movement of equity investments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "102",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_ifrs-full_LevelsOfFairValueHierarchyAxis_ifrs-full_Level3OfFairValueHierarchyMember_dLzFm4kpGUq7m8YQL4uJPg",
      "name": "ec:EquityMethodInvestmentsOtherFinancialAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutMovementOfEquityInvestmentTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2024_To_12_31_2024_ifrs-full_LevelsOfFairValueHierarchyAxis_ifrs-full_Level3OfFairValueHierarchyMember_SdxBqWfQjk-iK4U-dZSZ_w",
      "name": "ec:EquityMethodInvestmentsAdditions",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutMovementOfEquityInvestmentTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R103": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails",
     "longName": "99940907 - Disclosure - Other financial assets - Credit rating (Details)",
     "shortName": "Other financial assets - Credit rating (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "103",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:CurrentFinancialAssetsAtFairValueThroughProfitOrLoss",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfCreditRiskExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:CurrentFinancialAssetsAtFairValueThroughProfitOrLoss",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfCreditRiskExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R104": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails",
     "longName": "99941001 - Disclosure - Taxes - Current and Non-current tax assets and liabilities (Details)",
     "shortName": "Taxes - Current and Non-current tax assets and liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "104",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:CurrentTaxAssetsCurrent",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ec_NonCurrentTaxLiabilitiesTypeAxis_ec_DeferredTaxLiabilitiesMember__EmapooWZUqJCiXv1Hp4oQ",
      "name": "ifrs-full:CurrentTaxLiabilitiesNoncurrent",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutCurrentTaxAssetsAndLiabilitiesTextblock",
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R105": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
     "longName": "99941002 - Disclosure - Taxes - Income tax - Additional Information (Details)",
     "shortName": "Taxes - Income tax - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "105",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:ApplicableTaxRate",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutReconciliationOfExpectedIncomeTaxExpenseBenefitTextblock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:AverageEffectiveTaxRate",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "3",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R106": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxExpenseDetails",
     "longName": "99941003 - Disclosure - Taxes - Income tax expense (Details)",
     "shortName": "Taxes - Income tax expense (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "106",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:CurrentTaxExpenseIncomeAndAdjustmentsForCurrentTaxOfPriorPeriods",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutIncomeTaxExpensesTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:CurrentTaxExpenseIncomeAndAdjustmentsForCurrentTaxOfPriorPeriods",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutIncomeTaxExpensesTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R107": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails",
     "longName": "99941004 - Disclosure - Taxes - Reconciliation of the income tax expenses (Details)",
     "shortName": "Taxes - Reconciliation of the income tax expenses (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "107",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:ProfitLossBeforeTax",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:TaxExpenseIncomeAtApplicableTaxRate",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutReconciliationOfExpectedIncomeTaxExpenseBenefitTextblock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R108": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredIncomeTaxDetailss",
     "longName": "99941005 - Disclosure - Taxes - Deferred income tax (Details)",
     "shortName": "Taxes - Deferred income tax (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "108",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:DeferredTaxAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDeferredTaxesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:DeferredTaxAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDeferredTaxesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R109": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails",
     "longName": "99941006 - Disclosure - Taxes - Deferred tax assets and liabilities (Details)",
     "shortName": "Taxes - Deferred tax assets and liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "109",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:DeferredTaxLiabilityAsset",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2019_ahiTS9CHeEiXPT_ksRlBtw",
      "name": "ifrs-full:DeferredTaxLiabilityAsset",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutMovementOfDeferredIncomeTaxTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R110": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredIncomeTaxDetails",
     "longName": "99941007 - Disclosure - Taxes - Deferred income tax (Details)",
     "shortName": "Taxes - Deferred income tax (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "110",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_bdVjw29efUC0oGFhjMxlKQ",
      "name": "ifrs-full:DeferredTaxLiabilityAsset",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DeferredTaxExpenseIncomeRecognisedInProfitOrLoss",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutMovementOfDeferredIncomeTaxTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R111": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails",
     "longName": "99941008 - Disclosure - Taxes - Income tax recorded in other comprehensive income (Details)",
     "shortName": "Taxes - Income tax recorded in other comprehensive income (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "111",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutBreakDownOfOtherComprehensiveIncomeTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutBreakDownOfOtherComprehensiveIncomeTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R112": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesNotRecognizedInSubsidiariesDetails",
     "longName": "99941009 - Disclosure - Taxes - Deferred tax assets and liabilities not recognized in subsidiaries (Details)",
     "shortName": "Taxes - Deferred tax assets and liabilities not recognized in subsidiaries (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "112",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_ec_RutaDelBosqueChileMember_dQzvBos_0kCiXoRTEiIUNw",
      "name": "ec:DeferredTaxAssetNotRecognised",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_ec_RutaDelBosqueChileMember_dQzvBos_0kCiXoRTEiIUNw",
      "name": "ec:DeferredTaxAssetNotRecognised",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R113": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails",
     "longName": "99941010 - Disclosure - Taxes - Minimum Tax Rate (Colombia Tax Law) (Details)",
     "shortName": "Taxes - Minimum Tax Rate (Colombia Tax Law) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "113",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:MinimumTaxRate",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_GeographicalAreasAxis_country_CO_nW-Oi2F930KjEVL6_x_1DA",
      "name": "ifrs-full:IncomeTaxExpenseContinuingOperations",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfAdjustedIncomeTaxRate",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R114": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails",
     "longName": "99941011 - Disclosure - Taxes - Other taxes (Details)",
     "shortName": "Taxes - Other taxes (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "114",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:ApplicableTaxRate",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutReconciliationOfExpectedIncomeTaxExpenseBenefitTextblock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:CaptialDebtRatio",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R115": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails",
     "longName": "99941101 - Disclosure - Other assets (Details)",
     "shortName": "Other assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "115",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:CurrentPrepaidExpenses",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutOtherAssetsTextBlock",
       "ifrs-full:DisclosureOfOtherAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:CurrentPrepaidExpenses",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutOtherAssetsTextBlock",
       "ifrs-full:DisclosureOfOtherAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R116": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationDetails",
     "longName": "99941201 - Disclosure - Business Combination (Details)",
     "shortName": "Business Combination (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "116",
     "firstAnchor": {
      "contextRef": "As_Of_11_13_2025_ifrs-full_BusinessCombinationsAxis_ec_RenewableEnergyGenerationCompaniesAcquisitionMember_CZxiAtEUjUaYIH83kpOBlw",
      "name": "ec:NumberOfCompaniesAcquired",
      "unitRef": "Unit_Standard_company_mw8fETX8IUCG8CbH9O-P5w",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "p",
       "ifrs-full:DisclosureOfBusinessCombinationsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_11_13_2025_ifrs-full_BusinessCombinationsAxis_ec_RenewableEnergyGenerationCompaniesAcquisitionMember_CZxiAtEUjUaYIH83kpOBlw",
      "name": "ec:NumberOfCompaniesAcquired",
      "unitRef": "Unit_Standard_company_mw8fETX8IUCG8CbH9O-P5w",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "p",
       "ifrs-full:DisclosureOfBusinessCombinationsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R117": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails",
     "longName": "99941202 - Disclosure - Business Combination - Identifiable Assets Acquired and Liabilities Assumed (Details)",
     "shortName": "Business Combination - Identifiable Assets Acquired and Liabilities Assumed (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "117",
     "firstAnchor": {
      "contextRef": "As_Of_11_13_2025_ifrs-full_BusinessCombinationsAxis_ec_RenewableEnergyGenerationCompaniesAcquisitionMember_CZxiAtEUjUaYIH83kpOBlw",
      "name": "ifrs-full:CashAndCashEquivalentsRecognisedAsOfAcquisitionDate",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutBusinessCombinationsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_11_13_2025_ifrs-full_BusinessCombinationsAxis_ec_RenewableEnergyGenerationCompaniesAcquisitionMember_CZxiAtEUjUaYIH83kpOBlw",
      "name": "ifrs-full:CashAndCashEquivalentsRecognisedAsOfAcquisitionDate",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutBusinessCombinationsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R118": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
     "longName": "99941301 - Disclosure - Investments in associates and joint ventures - Composition and movements (Details)",
     "shortName": "Investments in associates and joint ventures - Composition and movements (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "118",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:InvestmentsInJointVentures",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInvestmentEntitiesExplanatory",
       "ifrs-full:DisclosureOfInvestmentsAccountedForUsingEquityMethodExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:InvestmentsInAssociates",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInvestmentEntitiesExplanatory",
       "ifrs-full:DisclosureOfInvestmentsAccountedForUsingEquityMethodExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R119": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails",
     "longName": "99941302 - Disclosure - Investments in associates and joint ventures - Movement of investments in associates and joint ventures (Details)",
     "shortName": "Investments in associates and joint ventures - Movement of investments in associates and joint ventures (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "119",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_bdVjw29efUC0oGFhjMxlKQ",
      "name": "ifrs-full:InvestmentsInSubsidiariesJointVenturesAndAssociates",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossNetOfTax",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutChangesInInvestmentsInSubsidiariesAssociatesAndJointVenturesTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R120": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
     "longName": "99941303 - Disclosure - Investments in associates and joint ventures - Additional information about associates and joint ventures (Details)",
     "shortName": "Investments in associates and joint ventures - Additional information about associates and joint ventures (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "120",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:CurrentAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_JointVenturesAxis_ec_InterligaoEltricaDoMadeiraMember_fLiUSOJhFkOjCa_sUF2kTw",
      "name": "ifrs-full:CurrentAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInformationForEachMaterialImpairmentLossRecognisedOrReversedForIndividualAssetOrCashgeneratingUnitExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R121": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesReconciliationOfEquityDetails",
     "longName": "99941304 - Disclosure - Investments in associates and joint ventures - Reconciliation of equity (Details)",
     "shortName": "Investments in associates and joint ventures - Reconciliation of equity (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "121",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:InvestmentsInJointVentures",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInvestmentEntitiesExplanatory",
       "ifrs-full:DisclosureOfInvestmentsAccountedForUsingEquityMethodExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_JointVenturesAxis_ec_InterligaoEltricaDoMadeiraMember_fLiUSOJhFkOjCa_sUF2kTw",
      "name": "ifrs-full:InvestmentsInJointVentures",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutReconciliationOfInvestmentsInJointVenturesTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R122": {
     "role": "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails",
     "longName": "99941401 - Disclosure - Property, plant, and equipment (Details)",
     "shortName": "Property, plant, and equipment (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "122",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_bdVjw29efUC0oGFhjMxlKQ",
      "name": "ifrs-full:PropertyPlantAndEquipment",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2023_gC0WzW9d-UeMNPHsC9wjPg",
      "name": "ifrs-full:PropertyPlantAndEquipment",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R123": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails",
     "longName": "99941501 - Disclosure - Natural and environmental resources (Details)",
     "shortName": "Natural and environmental resources (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "123",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_bdVjw29efUC0oGFhjMxlKQ",
      "name": "ifrs-full:AssetsArisingFromExplorationForAndEvaluationOfMineralResources",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2023_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_ifrs-full_GrossCarryingAmountMember_ifrs-full_ClassesOfAssetsAxis_ec_OilAndGasInvestmentsMember_6kYwUmhSjEGY2S5YVgXzlA",
      "name": "ifrs-full:AssetsArisingFromExplorationForAndEvaluationOfMineralResources",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R124": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesAccountingForSuspendedExploratoryWellsDetails",
     "longName": "99941502 - Disclosure - Natural and environmental resources - Accounting for suspended exploratory wells (Details)",
     "shortName": "Natural and environmental resources - Accounting for suspended exploratory wells (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "124",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:NumberOfProjectsUnderExploratoryWellsExceedingOneYear",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutClassificationByAgeFromCompletionDateOfSuspendedExploratoryWellsTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:NumberOfProjectsUnderExploratoryWellsExceedingOneYear",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutClassificationByAgeFromCompletionDateOfSuspendedExploratoryWellsTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R125": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails",
     "longName": "99941601 - Disclosure - Right-of-use assets and lease liabilities (Details)",
     "shortName": "Right-of-use assets and lease liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "125",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_bdVjw29efUC0oGFhjMxlKQ",
      "name": "ifrs-full:RightofuseAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2023_ifrs-full_ClassesOfLiabilitiesAxis_ifrs-full_LeaseLiabilitiesMember_S3BRqi1NvE67CAs-fVZK4A",
      "name": "ifrs-full:LeaseLiabilities",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R126": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails",
     "longName": "99941701 - Disclosure - Intangible assets (Details)",
     "shortName": "Intangible assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "126",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_bdVjw29efUC0oGFhjMxlKQ",
      "name": "ifrs-full:IntangibleAssetsOtherThanGoodwill",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2023_gC0WzW9d-UeMNPHsC9wjPg",
      "name": "ifrs-full:IntangibleAssetsOtherThanGoodwill",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R127": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails",
     "longName": "99941801 - Disclosure - Impairment of long-term assets (Details)",
     "shortName": "Impairment of long-term assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "127",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutImpairmentOfNoncurrentAssetsTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutImpairmentOfNoncurrentAssetsTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R128": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsExplorationAndProductionDetails",
     "longName": "99941802 - Disclosure - Impairment of long-term assets - Exploration and production (Details)",
     "shortName": "Impairment of long-term assets - Exploration and production (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "128",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutImpairmentLossesOfAssetsOfRefiningAndPetrochemicalsSegmentTextBlockTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2024_To_12_31_2024_ifrs-full_ClassesOfAssetsAxis_ifrs-full_InvestmentsAccountedForUsingEquityMethodMember_gZegSTKuNEWX_IVhmt4iSg",
      "name": "ifrs-full:ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutImpairmentLossesOfAssetsOfRefiningAndPetrochemicalsSegmentTextBlockTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R129": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsBreakdownOfOilfieldsImpairmentLossesDetails",
     "longName": "99941803 - Disclosure - Impairment of long-term assets - Breakdown of oilfields impairment losses (Details)",
     "shortName": "Impairment of long-term assets - Breakdown of oilfields impairment losses (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "129",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutImpairmentLossesOfAssetsOfRefiningAndPetrochemicalsSegmentTextBlockTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_ClassesOfAssetsAxis_ec_OilFieldsMember_ifrs-full_GeographicalAreasAxis_ec_FieldsInColombiaMember_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_ec_ReversalMember_ua700_HMnke3Gpa0-runsA",
      "name": "ec:CashGeneratingUnitCarryingAmount",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutImpairmentLossesOfAssetsOfRefiningAndPetrochemicalsSegmentTextBlockTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R130": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsInvestmentsInJointVenturesDetails",
     "longName": "99941804 - Disclosure - Impairment of long-term assets - Investments in joint ventures (Details)",
     "shortName": "Impairment of long-term assets - Investments in joint ventures (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "130",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2024_To_12_31_2024_VUaGa7O6WEmvb5fLbPV0fg",
      "name": "ec:ImpairmentsLoss",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutImpairmentLossesOfAssetsOfRefiningAndPetrochemicalsSegmentTextBlockTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2024_To_12_31_2024_VUaGa7O6WEmvb5fLbPV0fg",
      "name": "ec:ImpairmentsLoss",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutImpairmentLossesOfAssetsOfRefiningAndPetrochemicalsSegmentTextBlockTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R131": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsCashGeneratingUnitsDetails",
     "longName": "99941805 - Disclosure - Impairment of long-term assets - Cash Generating Units (Details)",
     "shortName": "Impairment of long-term assets - Cash Generating Units (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "131",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2024_To_12_31_2024_ifrs-full_ClassesOfAssetsAxis_ec_RefiningAndPetrochemicalSegmentMember_yG0hQQQLrUuMYuBmN5FIow",
      "name": "ifrs-full:AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossExplorationAndEvaluationAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutImpairmentLossesOfAssetsOfRefiningAndPetrochemicalsSegmentTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2024_To_12_31_2024_ifrs-full_ClassesOfAssetsAxis_ec_RefiningAndPetrochemicalSegmentMember_yG0hQQQLrUuMYuBmN5FIow",
      "name": "ifrs-full:AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossExplorationAndEvaluationAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutImpairmentLossesOfAssetsOfRefiningAndPetrochemicalsSegmentTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R132": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails",
     "longName": "99941806 - Disclosure - Impairment of long-term assets - Energy transmission and roads (Details)",
     "shortName": "Impairment of long-term assets - Energy transmission and roads (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "132",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2023_To_12_31_2023_Q1ZXR4mtdkG3s9DQUJZYRg",
      "name": "ec:ImpairmentLossRecognisedInProfitOrLossNonCurrentAssetsHeldForSale",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ec:ScheduleOfImpairmentLossAllocatedToClassesOfAssetsOfCashGeneratingUnitsTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2023_To_12_31_2023_Q1ZXR4mtdkG3s9DQUJZYRg",
      "name": "ec:ImpairmentLossRecognisedInProfitOrLossNonCurrentAssetsHeldForSale",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ec:ScheduleOfImpairmentLossAllocatedToClassesOfAssetsOfCashGeneratingUnitsTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R133": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
     "longName": "99941807 - Disclosure - Impairment of long-term assets - Additional information (Details)",
     "shortName": "Impairment of long-term assets - Additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "133",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:InformationAboutPricesBasedOnInformationProvidedBySpecializedMarketAnalystsAndManagementAnalysts",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:InformationAboutPricesBasedOnInformationProvidedBySpecializedMarketAnalystsAndManagementAnalysts",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R134": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails",
     "longName": "99941901 - Disclosure - Goodwill (Details)",
     "shortName": "Goodwill (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "134",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:Goodwill",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_ifrs-full_GrossCarryingAmountMember_oBLHt0a9TEKjR0UkoylW4A",
      "name": "ifrs-full:Goodwill",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfReconciliationOfChangesInGoodwillExplanatory",
       "ifrs-full:DisclosureOfGoodwillExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R135": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
     "longName": "99942001 - Disclosure - Loans and borrowings (Details)",
     "shortName": "Loans and borrowings (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "135",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:Borrowings",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
       "ifrs-full:DisclosureOfBorrowingsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:ShorttermBorrowings",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
       "ifrs-full:DisclosureOfBorrowingsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R136": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
     "longName": "99942002 - Disclosure - Loans and borrowings - Additional Information (Details)",
     "shortName": "Loans and borrowings - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "136",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:ProceedsFromNoncurrentBorrowings",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ifrs-full:DisclosureOfBorrowingsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:ProceedsFromNoncurrentBorrowings",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ifrs-full:DisclosureOfBorrowingsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R137": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails",
     "longName": "99942003 - Disclosure - Loans and borrowings - Fair value of loans (Details)",
     "shortName": "Loans and borrowings - Fair value of loans (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "137",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_LevelsOfFairValueHierarchyAxis_ifrs-full_Level2OfFairValueHierarchyMember_kh1MvCnVOE6h7R2NpgDIaA",
      "name": "ec:LoansPayableFairValue",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfFairValueMeasurementOfLiabilitiesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_LevelsOfFairValueHierarchyAxis_ifrs-full_Level2OfFairValueHierarchyMember_kh1MvCnVOE6h7R2NpgDIaA",
      "name": "ec:LoansPayableFairValue",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfFairValueMeasurementOfLiabilitiesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R138": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails",
     "longName": "99942004 - Disclosure - Loans and borrowings - Maturity of loans and borrowings (Details)",
     "shortName": "Loans and borrowings - Maturity of loans and borrowings (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "138",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:Borrowings",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
       "ifrs-full:DisclosureOfBorrowingsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_MaturityAxis_ifrs-full_NotLaterThanOneYearMember_jT0E9U1ZfUOqK0Ky_0yj_Q",
      "name": "ifrs-full:Borrowings",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutBorrowingsByMaturityTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R139": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsBreakdownByTypeOfInterestRateAndCurrencyDetails",
     "longName": "99942005 - Disclosure - Loans and borrowings - Breakdown by type of interest rate and currency (Details)",
     "shortName": "Loans and borrowings - Breakdown by type of interest rate and currency (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "139",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:Borrowings",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
       "ifrs-full:DisclosureOfBorrowingsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_TypesOfInterestRatesAxis_ifrs-full_FixedInterestRateMember_srt_CurrencyAxis_ec_LocalCurrencyMember_-PZtaGUIck2kmq7nd1AGlw",
      "name": "ifrs-full:Borrowings",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutBorrowingsByInterestRateTypeTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R140": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails",
     "longName": "99942101 - Disclosure - Trade and other payables (Details)",
     "shortName": "Trade and other payables (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "140",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:TradeAndOtherPayablesToTradeSuppliers",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureDetailedInformationOfTradeAndOtherPayablesTextBlock",
       "ifrs-full:DisclosureOfTradeAndOtherPayablesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:TradeAndOtherPayablesToTradeSuppliers",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureDetailedInformationOfTradeAndOtherPayablesTextBlock",
       "ifrs-full:DisclosureOfTradeAndOtherPayablesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R141": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesAdditionalInformationDetails",
     "longName": "99942102 - Disclosure - Trade and other payables - Additional information (Details)",
     "shortName": "Trade and other payables - Additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "141",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:PaymentsToAcquireProductiveAssetsInBusinessCombination",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_BusinessCombinationsAxis_ec_BlockCpo09FromRepsolColombiaOilGasLimitedMember_R1uktnMjKU61cPG9qwzVEg",
      "name": "ec:PaymentsToAcquireProductiveAssetsInBusinessCombination",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureDetailedInformationOfTradeAndOtherPayablesTextBlock",
       "ifrs-full:DisclosureOfTradeAndOtherPayablesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R142": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails",
     "longName": "99942201 - Disclosure - Provisions for employees' benefits (Details)",
     "shortName": "Provisions for employees' benefits (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "142",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:ProvisionsForEmployeeBenefits",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutProvisionBalancesForEmployeeBenefitsTextBlock",
       "ifrs-full:DisclosureOfEmployeeBenefitsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:ProvisionsForEmployeeBenefits",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutProvisionBalancesForEmployeeBenefitsTextBlock",
       "ifrs-full:DisclosureOfEmployeeBenefitsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R143": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails",
     "longName": "99942202 - Disclosure - Provisions for employees' benefits - Net of post-employment benefits (Details)",
     "shortName": "Provisions for employees' benefits - Net of post-employment benefits (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "143",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_bdVjw29efUC0oGFhjMxlKQ",
      "name": "ifrs-full:RecognisedLiabilitiesDefinedBenefitPlan",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfNetDefinedBenefitLiabilityAssetExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2023_gC0WzW9d-UeMNPHsC9wjPg",
      "name": "ifrs-full:RecognisedLiabilitiesDefinedBenefitPlan",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfNetDefinedBenefitLiabilityAssetExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R144": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails",
     "longName": "99942203 - Disclosure - Provisions for employees' benefits - Movement in profit and loss and in other comprehensive income (Details)",
     "shortName": "Provisions for employees' benefits - Movement in profit and loss and in other comprehensive income (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "144",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:InterestCostNetOfReturnOnPlanAssetsRecognizedInProfitOrLoss",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutMovementOfDefinedBenefitsPlansRecognizedInResultsAndOtherComprehensiveIncomeTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:InterestCostNetOfReturnOnPlanAssetsRecognizedInProfitOrLoss",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutMovementOfDefinedBenefitsPlansRecognizedInResultsAndOtherComprehensiveIncomeTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R145": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails",
     "longName": "99942204 - Disclosure - Provisions for employees' benefits - Plan assets of pension and pension bonds (Details)",
     "shortName": "Provisions for employees' benefits - Plan assets of pension and pension bonds (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "145",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:PlanAssetsAtFairValue",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutFairValueHierarchyOfPlanAssetsTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_LevelsOfFairValueHierarchyAxis_ifrs-full_Level1OfFairValueHierarchyMember_Tg93rM60jUO1z4DDau0vzQ",
      "name": "ec:PercentageOfPlanAssets",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R146": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsCreditRatingsOfIssuersAndCounterpartiesInAssetsDetails",
     "longName": "99942205 - Disclosure - Provisions for employees' benefits - Credit ratings of the issuers and counterparties in assets (Details)",
     "shortName": "Provisions for employees' benefits - Credit ratings of the issuers and counterparties in assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "146",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:PlanAssetsAtFairValue",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutFairValueHierarchyOfPlanAssetsTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_ExternalCreditGradesAxis_ec_AaaMember_WyjvMTJ_pkuxYRxPSMmi9g",
      "name": "ifrs-full:PlanAssetsAtFairValue",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutFairValueHierarchyOfPlanAssetsTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R147": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails",
     "longName": "99942206 - Disclosure - Provisions for employees' benefits - Actuarial assumptions (Details)",
     "shortName": "Provisions for employees' benefits - Actuarial assumptions (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "147",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_DefinedBenefitPlansAxis_ec_PensionMember_Ryhbdoxk2kKuKtsB89yPqQ",
      "name": "ifrs-full:ActuarialAssumptionOfExpectedRatesOfSalaryIncreases",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfAnalysisOfPresentValueOfDefinedBenefitObligationThatDistinguishesNatureCharacteristicsAndRisksExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_DefinedBenefitPlansAxis_ec_PensionMember_Ryhbdoxk2kKuKtsB89yPqQ",
      "name": "ifrs-full:ActuarialAssumptionOfExpectedRatesOfSalaryIncreases",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfAnalysisOfPresentValueOfDefinedBenefitObligationThatDistinguishesNatureCharacteristicsAndRisksExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R148": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMaturityOfBenefitObligationDetails",
     "longName": "99942207 - Disclosure - Provisions for employees' benefits - Maturity of benefit obligation (Details)",
     "shortName": "Provisions for employees' benefits - Maturity of benefit obligation (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "148",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_MaturityAxis_ifrs-full_NotLaterThanOneYearMember_Oevf5uG5dU21Eu4UQ1cp5A",
      "name": "ifrs-full:EstimateOfContributionsExpectedToBePaidToPlan",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInformationAboutMaturityProfileOfDefinedBenefitObligationExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_MaturityAxis_ifrs-full_NotLaterThanOneYearMember_Oevf5uG5dU21Eu4UQ1cp5A",
      "name": "ifrs-full:EstimateOfContributionsExpectedToBePaidToPlan",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInformationAboutMaturityProfileOfDefinedBenefitObligationExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R149": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails",
     "longName": "99942208 - Disclosure - Provisions for employees' benefits - Sensitivity analysis (Details)",
     "shortName": "Provisions for employees' benefits - Sensitivity analysis (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "149",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_ActuarialAssumptionsAxis_ifrs-full_ActuarialAssumptionOfDiscountRatesMember_ifrs-full_DefinedBenefitPlansAxis_ec_PensionMember_z-ZQODX_aU2n_ObfNrMdrA",
      "name": "ifrs-full:IncreaseDecreaseInDefinedBenefitObligationDueToReasonablyPossibleDecreaseInActuarialAssumption",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfSensitivityAnalysisForActuarialAssumptionsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_ActuarialAssumptionsAxis_ifrs-full_ActuarialAssumptionOfDiscountRatesMember_ifrs-full_DefinedBenefitPlansAxis_ec_PensionMember_z-ZQODX_aU2n_ObfNrMdrA",
      "name": "ifrs-full:IncreaseDecreaseInDefinedBenefitObligationDueToReasonablyPossibleDecreaseInActuarialAssumption",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfSensitivityAnalysisForActuarialAssumptionsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R150": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails",
     "longName": "99942301 - Disclosure - Accrued liabilities and provisions (Details)",
     "shortName": "Accrued liabilities and provisions (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "150",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_bdVjw29efUC0oGFhjMxlKQ",
      "name": "ifrs-full:OtherProvisions",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfAccruedLiabilitiesAndProvisionsTextBlock",
       "ifrs-full:DisclosureOfAccruedExpensesAndOtherLiabilitiesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2022_7vx9eIrkYEqeiwt2T07uRQ",
      "name": "ifrs-full:OtherProvisions",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R151": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
     "longName": "99942302 - Disclosure - Accrued liabilities and provisions - Additional information (Details)",
     "shortName": "Accrued liabilities and provisions - Additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "151",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:MandatoryInvestmentsNaturalResources",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2024_To_12_31_2024_VUaGa7O6WEmvb5fLbPV0fg",
      "name": "ec:MandatoryInvestmentsNaturalResources",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R152": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsLitigationDetails",
     "longName": "99942303 - Disclosure - Accrued liabilities and provisions - Litigation (Details)",
     "shortName": "Accrued liabilities and provisions - Litigation (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "152",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ec_LitigationAxis_ec_IsaEnergiaBrasilCivilContingencyCaseMember_UCL3WMvBvEKI1nWY_r7FlA",
      "name": "ec:LegalProceedingsInProcessDamagesSoughtValue",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfContingentLiabilitiesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ec_LitigationAxis_ec_IsaEnergiaBrasilCivilContingencyCaseMember_UCL3WMvBvEKI1nWY_r7FlA",
      "name": "ec:LegalProceedingsInProcessDamagesSoughtValue",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfContingentLiabilitiesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R153": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentLiabilitiesDetails",
     "longName": "99942304 - Disclosure - Accrued liabilities and provisions - Details of contingent liabilities (Details)",
     "shortName": "Accrued liabilities and provisions - Details of contingent liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "153",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:NumberOfProcessesOfLegalProceedingsNotRecognised",
      "unitRef": "Unit_Standard_item_6RaftZqkjkyFtArRoRlkmA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutUnrecordedContingentLiabilitiesTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:NumberOfProcessesOfLegalProceedingsNotRecognised",
      "unitRef": "Unit_Standard_item_6RaftZqkjkyFtArRoRlkmA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutUnrecordedContingentLiabilitiesTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R154": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentAssetsDetails",
     "longName": "99942305 - Disclosure - Accrued liabilities and provisions - Details of contingent assets (Details)",
     "shortName": "Accrued liabilities and provisions - Details of contingent assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "154",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:NumberOfProcessesOfContingentAssets",
      "unitRef": "Unit_Standard_item_6RaftZqkjkyFtArRoRlkmA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutContingentAssetsTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:NumberOfProcessesOfContingentAssets",
      "unitRef": "Unit_Standard_item_6RaftZqkjkyFtArRoRlkmA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutContingentAssetsTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R155": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureEquityEcopetrolBusinessGroupsReservesDetails",
     "longName": "99942401 - Disclosure - Equity - Ecopetrol Business Groups reserves (Details)",
     "shortName": "Equity - Ecopetrol Business Groups reserves (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "155",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:OtherReserves",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_ComponentsOfEquityAxis_ifrs-full_StatutoryReserveMember_0yYxTIK9_UScdF-mRz1wDQ",
      "name": "ifrs-full:OtherReserves",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutShareCapitalReservesAndOtherEquityInterestTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R156": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureEquityMovementOfEquityReservesDetails",
     "longName": "99942402 - Disclosure - Equity - Movement of equity reserves (Details)",
     "shortName": "Equity - Movement of equity reserves (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "156",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_bdVjw29efUC0oGFhjMxlKQ",
      "name": "ifrs-full:Equity",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2023_ifrs-full_ComponentsOfEquityAxis_ec_EquityReservesMember_z4nA6T19-kmJ3Vy7yXJRPQ",
      "name": "ifrs-full:Equity",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutBalanceAndBreakdownOfChangesInEquityReservesTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R157": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureEquityDividendsPaidDetails",
     "longName": "99942403 - Disclosure - Equity - Dividends paid (Details)",
     "shortName": "Equity - Dividends paid (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "157",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:DividendsPaidClassifiedAsFinancingActivities",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_ec_InterconexionElectricaSaMember_Fq5Nn_5hxEGLV0Wo1IDqzw",
      "name": "ifrs-full:DividendsPaidClassifiedAsFinancingActivities",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDividendsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R158": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails",
     "longName": "99942404 - Disclosure - Equity - Other comprehensive income (Details)",
     "shortName": "Equity - Other comprehensive income (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "158",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:OtherComprehensiveIncomeNetOfTaxHedgesOfNetInvestmentsInForeignOperations",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutBreakDownOfOtherComprehensiveIncomeTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_ComponentsOfEquityAxis_ifrs-full_AccumulatedOtherComprehensiveIncomeMember_Rjv_tRvBlkKag48m1sWTZA",
      "name": "ec:OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslations",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfAnalysisOfOtherComprehensiveIncomeByItemExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R159": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureEquityEarningsPerShareDetails",
     "longName": "99942405 - Disclosure - Equity - Earnings per share (Details)",
     "shortName": "Equity - Earnings per share (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "159",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:ProfitLossAttributableToOwnersOfParent",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R160": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
     "longName": "99942406 - Disclosure - Equity - Additional information (Details)",
     "shortName": "Equity - Additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "160",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:CapitalCommitments",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ifrs-full:DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:CapitalCommitments",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ifrs-full:DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R161": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails",
     "longName": "99942501 - Disclosure - Revenue from contracts with customers - National and foreign sales (Details)",
     "shortName": "Revenue from contracts with customers - National and foreign sales (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "161",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:Revenue",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_MarketsOfCustomersAxis_ec_DomesticSalesMember_ifrs-full_ProductsAndServicesAxis_ec_GasolinesYTurboFuelsMember_tqGQ0u_Na0uRT1F75Q9C9g",
      "name": "ec:RevenuesFromSaleOfGoods",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutBreakdownOfSalesRevenueTableTextBlock",
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R162": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersAdditionalInformationDetails",
     "longName": "99942502 - Disclosure - Revenue from contracts with customers - Additional information (Details)",
     "shortName": "Revenue from contracts with customers - Additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "162",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:IncreaseDecreaseInSalePriceDifferential",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutBreakdownOfSalesRevenueTableTextBlock",
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:IncreaseDecreaseInSalePriceDifferential",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutBreakdownOfSalesRevenueTableTextBlock",
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R163": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails",
     "longName": "99942503 - Disclosure - Revenue from contracts with customers - Sales by geographic area (Details)",
     "shortName": "Revenue from contracts with customers - Sales by geographic area (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "163",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:Revenue",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:PercentageOfProgressObtainedForFunctionalUnit3",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R164": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails",
     "longName": "99942601 - Disclosure - Cost of sales (Details)",
     "shortName": "Cost of sales (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "164",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:VariableCostsGross",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutCostOfSalesOfNonCurrentAssetsTextBlock",
       "ifrs-full:DisclosureOfCostOfSalesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:VariableCostsGross",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutCostOfSalesOfNonCurrentAssetsTextBlock",
       "ifrs-full:DisclosureOfCostOfSalesExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R165": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails",
     "longName": "99942701 - Disclosure - Administrative, operative, and project expenses (Details)",
     "shortName": "Administrative, operative, and project expenses (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "165",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:AdministrativeExpense",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_AttributionOfExpensesByNatureToTheirFunctionAxis_ec_AdministrationExpensesMember_ieh9weqGqEiPbSIyniJIGQ",
      "name": "ifrs-full:WagesAndSalaries",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationOnGeneralAndAdministrationExpenseTableTextBlock",
       "ifrs-full:DisclosureOfGeneralAndAdministrativeExpenseExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R166": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails",
     "longName": "99942801 - Disclosure - Other operating income (expenses) (Details)",
     "shortName": "Other operating income (expenses) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "166",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:GainsLossesOnLitigationSettlements",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfOtherOperatingIncomeExpenseTableTextBlock",
       "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:GainsLossesOnLitigationSettlements",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfOtherOperatingIncomeExpenseTableTextBlock",
       "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R167": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails",
     "longName": "99942901 - Disclosure - Financial result (Details)",
     "shortName": "Financial result (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "167",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:RevenueFromInterest",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfFinanceIncomeExpenseExplanatoryTableTextBlock",
       "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:RevenueFromInterest",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfFinanceIncomeExpenseExplanatoryTableTextBlock",
       "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R168": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails",
     "longName": "99943001 - Disclosure - Risk management - Financial assets and liabilities (Details)",
     "shortName": "Risk management - Financial assets and liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "168",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:CashAndCashEquivalents",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_srt_CurrencyAxis_currency_USD_-RHlDZa4A0GnO8bRZ0V02w",
      "name": "ifrs-full:CashAndCashEquivalents",
      "unitRef": "Unit_Standard_USD_ZJVwVMwXI0a_qqC00nedgw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutCarryingValuesForFinancialAssetsAndLiabilitiesDenominatedInForeignCurrenciesTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R169": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDenominatedInForeignCurrencyDetails",
     "longName": "99943002 - Disclosure - Risk management - Financial assets and liabilities denominated in foreign currency (Details)",
     "shortName": "Risk management - Financial assets and liabilities denominated in foreign currency (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "169",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:MaximumPercentageOfCashInvestmentHeldInPortfolioNonCurrent",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:SensitivityAnalysisForEachTypeOfMarketRisk",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_TypesOfRisksAxis_ifrs-full_CurrencyRiskMember_6nxz5VucIkWcoyGeXrZPQw",
      "name": "ec:OnePercentVariationsInExchangeRateEffectOnIncomeBeforeIncomeTaxes",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:SensitivityAnalysisForEachTypeOfMarketRisk",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R170": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRiskManagementNonDerivativeHedgingInstrumentDetails",
     "longName": "99943003 - Disclosure - Risk management - Non derivative hedging instrument (Details)",
     "shortName": "Risk management - Non derivative hedging instrument (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "170",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_ifrs-full_TypesOfHedgesAxis_ifrs-full_CashFlowHedgesMember_er6y_CxNi0qk7I2wNoIsQQ",
      "name": "ifrs-full:HedgingInstrumentAssets",
      "unitRef": "Unit_Standard_USD_ZJVwVMwXI0a_qqC00nedgw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutHedgingInstrumentsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_TypesOfHedgesAxis_ifrs-full_CashFlowHedgesMember_VXwGf4ZqmkOeMsvSVQbYpQ",
      "name": "ec:ReassignmentOfHedgingInstruments",
      "unitRef": "Unit_Standard_USD_ZJVwVMwXI0a_qqC00nedgw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutHedgingInstrumentsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R171": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRiskManagementCashFlowHedgeForFutureExportsMovementInOtherComprehensiveIncomeDetails",
     "longName": "99943004 - Disclosure - Risk management - Cash flow hedge for future exports (Movement in other comprehensive income) (Details)",
     "shortName": "Risk management - Cash flow hedge for future exports (Movement in other comprehensive income) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "171",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_bdVjw29efUC0oGFhjMxlKQ",
      "name": "ec:MovementInOtherComprehensiveIncome",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutMovementOfOtherComprehensiveIncomeByItemExplanatoryTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2022_7vx9eIrkYEqeiwt2T07uRQ",
      "name": "ec:MovementInOtherComprehensiveIncome",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutMovementOfOtherComprehensiveIncomeByItemExplanatoryTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R172": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails",
     "longName": "99943005 - Disclosure - Risk management - Expected reclassification of the cumulative exchange difference from other comprehensive income to profit or loss (Details)",
     "shortName": "Risk management - Expected reclassification of the cumulative exchange difference from other comprehensive income to profit or loss (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "172",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:IncomeTaxRelatingToCashFlowHedgesOfOtherComprehensiveIncome",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutBreakDownOfOtherComprehensiveIncomeTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_srt_StatementScenarioAxis_srt_ScenarioForecastMember_PAgMHf_9202FZxPZpTlncw",
      "name": "ifrs-full:ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutExpectedReclassificationOfExchangeDifferencesAccumulatedInOtherComprehensiveIncomeToProfitOrLossTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R173": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRiskManagementHedgeOfNetInvestmentInForeignOperationDetails",
     "longName": "99943006 - Disclosure - Risk management - Hedge of a net investment in a foreign operation (Details)",
     "shortName": "Risk management - Hedge of a net investment in a foreign operation (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "173",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:IncomeTaxRelatingToHedgesOfNetInvestmentsInForeignOperationsOfOtherComprehensiveIncome",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutBreakDownOfOtherComprehensiveIncomeTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R174": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRiskManagementScheduleOfDetailedInformationAboutHedgingInstrumentsExplanatoryDetails",
     "longName": "99943007 - Disclosure - Risk management - Schedule of Detailed Information About Hedging Instruments Explanatory (Details)",
     "shortName": "Risk management - Schedule of Detailed Information About Hedging Instruments Explanatory (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "174",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_ClassesOfFinancialAssetsAxis_ifrs-full_CurrencySwapContractMember_srt_CounterpartyNameAxis_ec_IntervialChileMember_qNjQe1acdEmHOnERQMdh-Q",
      "name": "ifrs-full:HedgingInstrumentAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutHedgingInstrumentsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_ClassesOfFinancialAssetsAxis_ifrs-full_CurrencySwapContractMember_srt_CounterpartyNameAxis_ec_IntervialChileMember_qNjQe1acdEmHOnERQMdh-Q",
      "name": "ifrs-full:HedgingInstrumentAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutHedgingInstrumentsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R175": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRiskManagementSignificantConcentrationOfCreditRiskDetails",
     "longName": "99943008 - Disclosure - Risk management - Significant concentration of credit risk (Details)",
     "shortName": "Risk management - Significant concentration of credit risk (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "175",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_ClassesOfFinancialInstrumentsAxis_ec_TradeAndOtherReceivablesMember_ifrs-full_CreditImpairmentOfFinancialInstrumentsAxis_ifrs-full_FinancialInstrumentsNotCreditimpairedMember_Yen1uyM5PECdw7b7AFFqEw",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutAgingAnalysisOfAccountsReceivablePortfolioInArrearsButNotImpairedExplanatoryTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_ClassesOfFinancialInstrumentsAxis_ec_TradeAndOtherReceivablesMember_ifrs-full_CreditImpairmentOfFinancialInstrumentsAxis_ifrs-full_FinancialInstrumentsNotCreditimpairedMember_Yen1uyM5PECdw7b7AFFqEw",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutAgingAnalysisOfAccountsReceivablePortfolioInArrearsButNotImpairedExplanatoryTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R176": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRiskManagementRiskManagementSensitivityInIncomeAndOtherComprehensiveIncomeToVariationsInInterestRateDetails",
     "longName": "99943009 - Disclosure - Risk management - Risk management - Sensitivity in income and other comprehensive income to variations in interest rate (Details)",
     "shortName": "Risk management - Risk management - Sensitivity in income and other comprehensive income to variations in interest rate (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "176",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_TypesOfInterestRatesAxis_ec_IncreaseInFloatingInterestMember_IZ3cC2AlH0uam62SEFh92w",
      "name": "ec:IncreaseDecreaseInFinancialAssetsExpenses",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfFinancialInstrumentsByTypeOfInterestRateExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_TypesOfInterestRatesAxis_ec_IncreaseInFloatingInterestMember_IZ3cC2AlH0uam62SEFh92w",
      "name": "ec:IncreaseDecreaseInFinancialAssetsExpenses",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfFinancialInstrumentsByTypeOfInterestRateExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R177": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRiskManagementMaturityOfFinancialLiabilitiesDetails",
     "longName": "99943010 - Disclosure - Risk management - Maturity of financial liabilities (Details)",
     "shortName": "Risk management - Maturity of financial liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "177",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:BankBorrowingsUndiscountedCashFlows",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DescriptionOfManagingLiquidityRisk",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:BankBorrowingsUndiscountedCashFlows",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DescriptionOfManagingLiquidityRisk",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R178": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRiskManagementLeverageRatioDetails",
     "longName": "99943011 - Disclosure - Risk management - Leverage ratio (Details)",
     "shortName": "Risk management - Leverage ratio (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "178",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:Borrowings",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
       "ifrs-full:DisclosureOfBorrowingsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:NetAssetsLiabilities",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutLeverageRatioTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R179": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
     "longName": "99943012 - Disclosure - Risk management - Additional Information (Details)",
     "shortName": "Risk management - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "179",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:ClosingForeignExchangeRate",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
       "ifrs-full:DisclosureOfBorrowingsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:NetPositionOfAssetsAndLiabilitiesOfFunctionalCurrency",
      "unitRef": "Unit_Standard_USD_ZJVwVMwXI0a_qqC00nedgw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R180": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails",
     "longName": "99943101 - Disclosure - Related parties (Details)",
     "shortName": "Related parties (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "180",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:TradeAndOtherReceivablesRelatedPartyTransactions",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInterestsInOtherEntitiesExplanatory",
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:TradeAndOtherReceivablesRelatedPartyTransactions",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInterestsInOtherEntitiesExplanatory",
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R181": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails",
     "longName": "99943102 - Disclosure - Related parties - Transactions with related parties (Details)",
     "shortName": "Related parties - Transactions with related parties (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "181",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:SalesRelatedPartyTransactions",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfTransactionsBetweenRelatedPartiesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:SalesRelatedPartyTransactions",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfTransactionsBetweenRelatedPartiesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R182": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesAdditionalInformationDetails",
     "longName": "99943103 - Disclosure - Related parties - Additional Information (Details)",
     "shortName": "Related parties - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "182",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:CancellationOfFees",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:CancellationOfFees",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R183": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
     "longName": "99943201 - Disclosure - Joint operations - Contracts in which Ecopetrol is not the operator (Details)",
     "shortName": "Joint operations - Contracts in which Ecopetrol is not the operator (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "183",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ec_ContractNameAxis_ec_ChipironContractMember_ec_ContractTypeAxis_ec_ContractWhereEntityNotOperatorMember_ifrs-full_RangeAxis_ifrs-full_BottomOfRangeMember_OUjwBNo1D06celeEnJ7l0w",
      "name": "ifrs-full:ProportionOfOwnershipInterestInJointOperation",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInterestsInJointArrangementsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ec_ContractNameAxis_ec_ChipironContractMember_ec_ContractTypeAxis_ec_ContractWhereEntityNotOperatorMember_ifrs-full_RangeAxis_ifrs-full_BottomOfRangeMember_OUjwBNo1D06celeEnJ7l0w",
      "name": "ifrs-full:ProportionOfOwnershipInterestInJointOperation",
      "unitRef": "Unit_Standard_pure_Q8ISPXVfVkCUAYQiZHy5fA",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInterestsInJointArrangementsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R184": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails",
     "longName": "99943202 - Disclosure - Joint operations - Contracts in which Ecopetrol is the operator (Details)",
     "shortName": "Joint operations - Contracts in which Ecopetrol is the operator (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "184",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ec_ContractNameAxis_ec_Vmm29ContractMember_ec_ContractTypeAxis_ec_ContractWhereEntityIsOperatorMember_ifrs-full_JointVenturesAxis_ec_ExxonmobilExplorationColombiaMember_9kn0B_iG5Um7oKHKQKhblw",
      "name": "ifrs-full:NameOfJointOperation",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInterestsInJointArrangementsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ec_ContractNameAxis_ec_Vmm29ContractMember_ec_ContractTypeAxis_ec_ContractWhereEntityIsOperatorMember_ifrs-full_JointVenturesAxis_ec_ExxonmobilExplorationColombiaMember_9kn0B_iG5Um7oKHKQKhblw",
      "name": "ifrs-full:NameOfJointOperation",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInterestsInJointArrangementsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R185": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureJointOperationsAdditionalInformationDetails",
     "longName": "99943203 - Disclosure - Joint operations - Additional Information (Details)",
     "shortName": "Joint operations - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "185",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:InvestmentCommitments",
      "unitRef": "Unit_Standard_USD_ZJVwVMwXI0a_qqC00nedgw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:InvestmentCommitments",
      "unitRef": "Unit_Standard_USD_ZJVwVMwXI0a_qqC00nedgw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R186": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
     "longName": "99943301 - Disclosure - Business segment information (Details)",
     "shortName": "Business segment information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "186",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:Revenue",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:OperationAndProjectsExpenses",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfOperatingSegmentsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R187": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
     "longName": "99943302 - Disclosure - Business segment information - Sales by product (Details)",
     "shortName": "Business segment information - Sales by product (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "187",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_MarketsOfCustomersAxis_ec_DomesticSalesMember_T7Zwrm_rcU-nebj3DMTwrQ",
      "name": "ec:RevenuesFromSaleOfGoods",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutBreakdownOfSalesRevenueTableTextBlock",
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_SegmentConsolidationItemsAxis_ifrs-full_OperatingSegmentsMember_B5K7Xauf1UOhXRT-tY03pg",
      "name": "ec:RevenuesFromSaleOfGoods",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfProductsAndServicesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R188": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails",
     "longName": "99943303 - Disclosure - Business segment information - Capital expenditures by segments (Details)",
     "shortName": "Business segment information - Capital expenditures by segments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "188",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_SegmentConsolidationItemsAxis_ifrs-full_OperatingSegmentsMember_KPOcrMiOhUS_sD5wcjJ0Fw",
      "name": "ifrs-full:InvestmentProperty",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationDisclosureOfDetailedInformationAboutInvestmentPropertySegmentWiseTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_ifrs-full_SegmentConsolidationItemsAxis_ifrs-full_OperatingSegmentsMember_KPOcrMiOhUS_sD5wcjJ0Fw",
      "name": "ifrs-full:InvestmentProperty",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationDisclosureOfDetailedInformationAboutInvestmentPropertySegmentWiseTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R189": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails",
     "longName": "99943401 - Disclosure - Subsequent and relevant events (Details)",
     "shortName": "Subsequent and relevant events (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "189",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ifrs-full:ProceedsFromBorrowingsClassifiedAsFinancingActivities",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ec_IfrsLegalEntityAxis_ec_BravaEnergiaSaMember_cU68w1ZBakyo3P1Aw-BhSw",
      "name": "ec:EarningsBeforeInterestTaxesDepreciationAndAmortisation",
      "unitRef": "Unit_Standard_USD_ZJVwVMwXI0a_qqC00nedgw",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "p",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R190": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails",
     "longName": "99943501 - Disclosure - Exhibit 1 - Consolidated subsidiaries, associates, and joint ventures - Consolidated subsidiary companies (Details)",
     "shortName": "Exhibit 1 - Consolidated subsidiaries, associates, and joint ventures - Consolidated subsidiary companies (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "190",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:Equity",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_ec_RefineriaDeCartagenaSASMember_lyOCm2o4f02buc8YpVKg2w",
      "name": "ifrs-full:DescriptionOfFunctionalCurrency",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInterestsInSubsidiariesExplanatory",
       "ec:DisclosureOfInterestsInSubsidiariesAssociatesAndJointVenturesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R191": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails",
     "longName": "99943502 - Disclosure - Exhibit 1 - Consolidated subsidiaries, associates, and joint ventures - Associates and Joint ventures (Details)",
     "shortName": "Exhibit 1 - Consolidated subsidiaries, associates, and joint ventures - Associates and Joint ventures (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "191",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:Equity",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_SignificantInvestmentsInAssociatesAxis_ec_ServiportSaMember_r3g8oJUdNEmeJZAsESPOiw",
      "name": "ifrs-full:DescriptionOfFunctionalCurrency",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInterestsInAssociatesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R192": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
     "longName": "99943601 - Disclosure - Exhibit 2 - Consolidated subsidiaries, associates, and joint ventures in Interconexion Electrica SA ESP (Details)",
     "shortName": "Exhibit 2 - Consolidated subsidiaries, associates, and joint ventures in Interconexion Electrica SA ESP (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "192",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:Assets",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_ec_ConcesinCosteraCartagenaBarranquillaSasMember_srt_ConsolidatedEntitiesAxis_ec_InterconexionElectricaSaEspMember_t4pTDRH5Akq3lE_c0vwU9w",
      "name": "ec:DescriptionOfNatureOfActivityOfSubsidiary",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfSignificantInvestmentsInSubsidiariesExplanatory",
       "ec:DisclosureOfInterestsInSubsidiariesAssociatesAndJointVenturesInterconexinElctricaS.a.EspTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R193": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails",
     "longName": "99943701 - Disclosure - Exhibit 3 - Conditions of the most significant debt (Details)",
     "shortName": "Exhibit 3 - Conditions of the most significant debt (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "193",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ifrs-full:Borrowings",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
       "ifrs-full:DisclosureOfBorrowingsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_ifrs-full_BorrowingsByNameAxis_ec_NationalCurrencyBondOneMember_A3bSMYmUSkGY6MZq7LN7lg",
      "name": "ec:CompanyName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfLoansTextBlock",
       "ec:DisclosureOfSignificantLoansTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R194": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails",
     "longName": "99943801 - Disclosure - Exhibit 4. Quantitative information of concession services contracts (Details)",
     "shortName": "Exhibit 4. Quantitative information of concession services contracts (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "194",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:ConcessionAssetsConstructionServicesForIntangibleAsset",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfQuantitativeInformationOfConcessionServicesContracts",
       "ifrs-full:DisclosureOfServiceConcessionArrangementsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:ConcessionAssetsConstructionServicesForIntangibleAsset",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfQuantitativeInformationOfConcessionServicesContracts",
       "ifrs-full:DisclosureOfServiceConcessionArrangementsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R195": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCapitalizedCostsRelatingToOilAndGasExplorationAndProductionActivitiesDetails",
     "longName": "99943901 - Disclosure - Supplemental information on oil and gas producing activities (unaudited) - Capitalized costs relating to oil and gas exploration and production activities (Details)",
     "shortName": "Supplemental information on oil and gas producing activities (unaudited) - Capitalized costs relating to oil and gas exploration and production activities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "195",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:CapitalizedCostsNaturalandevironmentalproperties",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutCapitalizedCostsRelatingToOilAndGasProducingActivitiesTextBlock",
       "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:CapitalizedCostsNaturalandevironmentalproperties",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutCapitalizedCostsRelatingToOilAndGasProducingActivitiesTextBlock",
       "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R196": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredInOilAndGasExplorationAndDevelopedActivitiesDetails",
     "longName": "99943902 - Disclosure - Supplemental information on oil and gas producing activities (unaudited) - Costs incurred in oil and gas exploration and developed activities (Details)",
     "shortName": "Supplemental information on oil and gas producing activities (unaudited) - Costs incurred in oil and gas exploration and developed activities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "196",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2024_To_12_31_2024_VUaGa7O6WEmvb5fLbPV0fg",
      "name": "ec:CostsIncurredAcquisitionOfProvedProperties",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutCostsIncurredInOilAndGasPropertyAcquisitionExplorationAndDevelopmentActivitiesTextBlock",
       "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2024_To_12_31_2024_VUaGa7O6WEmvb5fLbPV0fg",
      "name": "ec:CostsIncurredAcquisitionOfProvedProperties",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutCostsIncurredInOilAndGasPropertyAcquisitionExplorationAndDevelopmentActivitiesTextBlock",
       "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R197": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails",
     "longName": "99943903 - Disclosure - Supplemental information on oil and gas producing activities (unaudited) - Results of operations for oil and gas exploration and production activities (Details)",
     "shortName": "Supplemental information on oil and gas producing activities (unaudited) - Results of operations for oil and gas exploration and production activities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "197",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:ResultsOfOperationsSalesRevenue",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:ResultsOfOperationsSalesRevenue",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R198": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedReserveInformationDetails",
     "longName": "99943904 - Disclosure - Supplemental information on oil and gas producing activities (unaudited) - Reserve information (Details)",
     "shortName": "Supplemental information on oil and gas producing activities (unaudited) - Reserve information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "198",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2024_bdVjw29efUC0oGFhjMxlKQ",
      "name": "ec:ProvedOilAndGasReservesNet",
      "unitRef": "Unit_Standard_gal_1ngkHJrSPkWSX4Yxgr9bTQ",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutProvedDevelopedAndUndevelopedOilAndGasReserveQuantitiesTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2022_7vx9eIrkYEqeiwt2T07uRQ",
      "name": "ec:ProvedOilAndGasReservesNet",
      "unitRef": "Unit_Standard_gal_1ngkHJrSPkWSX4Yxgr9bTQ",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "b",
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutProvedDevelopedAndUndevelopedOilAndGasReserveQuantitiesTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "unique": true
     }
    },
    "R199": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedFutureNetCashFlowsDetails",
     "longName": "99943905 - Disclosure - Supplemental information on oil and gas producing activities (unaudited) - Future net cash flows (Details)",
     "shortName": "Supplemental information on oil and gas producing activities (unaudited) - Future net cash flows (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "199",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesNetCashInflows",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutScheduleOfStandardizedMeasureOfDiscountedFutureCashFlowsRelatingToProvedCrudeOilAndGasReservesTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesNetCashInflows",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutScheduleOfStandardizedMeasureOfDiscountedFutureCashFlowsRelatingToProvedCrudeOilAndGasReservesTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R200": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails",
     "longName": "99943906 - Disclosure - Supplemental information on oil and gas producing activities (unaudited) - Discounted net cash flows (Details)",
     "shortName": "Supplemental information on oil and gas producing activities (unaudited) - Discounted net cash flows (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "200",
     "firstAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:NetIncreaseDecreaseInNetChangeInSalesAndTransferPricesAndInProductionLiftingCostRelatedToFutureProduction",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutPrincipalSourcesOfChangeInStandardizedMeasureOfDiscountedFutureNetCashFlowsTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "Duration_1_1_2025_To_12_31_2025_9vY4IpM5KEmqAB8RmDWvhg",
      "name": "ec:NetIncreaseDecreaseInNetChangeInSalesAndTransferPricesAndInProductionLiftingCostRelatedToFutureProduction",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "td",
       "tr",
       "table",
       "ec:DisclosureOfDetailedInformationAboutPrincipalSourcesOfChangeInStandardizedMeasureOfDiscountedFutureNetCashFlowsTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R201": {
     "role": "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetails",
     "longName": "99943907 - Disclosure - Supplemental information on oil and gas producing activities (unaudited) - Additional Information (Details)",
     "shortName": "Supplemental information on oil and gas producing activities (unaudited) - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "201",
     "firstAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:NaturalAndEnvironmentalPropertiesIncludingAssetRetirementObligations",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "As_Of_12_31_2025_IkTOkpqM2kSR_ncr53hDLA",
      "name": "ec:NaturalAndEnvironmentalPropertiesIncludingAssetRetirementObligations",
      "unitRef": "Unit_Standard_COP_UsiS0ovkOkm82jVS9PfW0A",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-9",
      "ancestors": [
       "p",
       "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ec-20251231x20f.htm",
      "first": true,
      "unique": true
     }
    }
   },
   "tag": {
    "ec_A1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "A1Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for A1.",
        "label": "A1 [Member]",
        "terseLabel": "A1"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Aa1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Aa1Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to A-1.",
        "label": "A-1 [Member]",
        "terseLabel": "A-1"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsCreditRatingsOfIssuersAndCounterpartiesInAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to AA.",
        "label": "AA [Member]",
        "verboseLabel": "AA"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AaPlusMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AaPlusMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsCreditRatingsOfIssuersAndCounterpartiesInAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for AA+.",
        "label": "AA+ [member]",
        "verboseLabel": "AA+"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AaaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AaaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsCreditRatingsOfIssuersAndCounterpartiesInAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for AAA.",
        "label": "AAA [Member]",
        "verboseLabel": "AAA"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Aaaf2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Aaaf2Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to AAAF.",
        "label": "AAAF",
        "terseLabel": "AAAF"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AaammfMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AaammfMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to AAAmmf.",
        "label": "AAAmmf [Member]",
        "terseLabel": "AAAmmf"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AbandonmentFund": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AbandonmentFund",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails": {
       "parentTag": "ifrs-full_OtherNoncurrentNonfinancialAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the amount of funds set aside, restricted, or held in a designated account to cover future costs associated with the decommissioning, dismantling, abandonment, and site restoration of long-lived assets (such as oil and gas wells, pipelines, or production facilities). These funds may be legally or contractually restricted and are typically accumulated over the useful life of the related assets.",
        "label": "Abandonment Fund",
        "terseLabel": "Abandonment fund"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AccountsPayablesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AccountsPayablesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts payable"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AccountsReceivablesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AccountsReceivablesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts receivable"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AccretionExpenseRelatedToAssetRetirementObligations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AccretionExpenseRelatedToAssetRetirementObligations",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of accretion expense related to asset retirement obligations is recognized during the reporting period.",
        "label": "Accretion expense related to the asset retirement obligations",
        "verboseLabel": "Expense related to the asset retirement obligations"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AccruedNonCurrentLiabilitiesAndProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AccruedNonCurrentLiabilitiesAndProvisions",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represent the accrued non current liabilities and provisions.",
        "label": "Accrued Non Current Liabilities And Provisions",
        "terseLabel": "Accrued liabilities and provisions"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AccumulatedAdditionsInvestmentsInJointVenture": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AccumulatedAdditionsInvestmentsInJointVenture",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesReconciliationOfEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount accumulated of additional investment in joint ventures as on the date.",
        "label": "Accumulated Additions, investments in joint venture",
        "verboseLabel": "Additional value of the investment"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AccumulatedDepreciationAmortisationAndImpairmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AccumulatedDepreciationAmortisationAndImpairmentMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated depreciation and impairment losses",
        "terseLabel": "Accumulated depreciation and impairment losses"
       }
      }
     },
     "auth_ref": [
      "r12",
      "r23",
      "r95",
      "r110",
      "r114",
      "r313",
      "r356",
      "r365",
      "r369"
     ]
    },
    "ifrs-full_AccumulatedDepreciationAndAmortisationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AccumulatedDepreciationAndAmortisationMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated amortization and impairment losses",
        "verboseLabel": "Accumulated amortization"
       }
      }
     },
     "auth_ref": [
      "r23",
      "r682",
      "r693",
      "r696",
      "r697"
     ]
    },
    "ifrs-full_AccumulatedImpairmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AccumulatedImpairmentMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAllowanceForDoubtfulAccountsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated impairment",
        "terseLabel": "Accumulated impairment"
       }
      }
     },
     "auth_ref": [
      "r196",
      "r223",
      "r396",
      "r523",
      "r682",
      "r693",
      "r696",
      "r697"
     ]
    },
    "ifrs-full_AccumulatedOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AccumulatedOtherComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated other comprehensive income",
        "verboseLabel": "Accumulated other comprehensive income"
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ifrs-full_AccumulatedOtherComprehensiveIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other [member]",
        "verboseLabel": "Other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for accumulated other comprehensive income. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r716"
     ]
    },
    "ec_AcquisitionOfEquityStakeInBravaEnergiaS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AcquisitionOfEquityStakeInBravaEnergiaS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for acquisition of equity stake in Brava Energia S.A.",
        "label": "Acquisition of Equity Stake in Brava Energia S.A. [Member]",
        "terseLabel": "Acquisition of equity stake in Brava Energia S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AcquisitiondateFairValueOfTotalConsiderationTransferred",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consideration transferred, acquisition-date fair value",
        "negatedTerseLabel": "Consideration for the acquisition of assets",
        "totalLabel": "Consideration transferred, net of cash and cash equivalents acquired",
        "verboseLabel": "Consideration transferred"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value, at acquisition date, of the consideration transferred in a business combination. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r192",
      "r374"
     ]
    },
    "ifrs-full_AcquisitionrelatedCostsRecognisedAsExpenseForTransactionRecognisedSeparatelyFromAcquisitionOfAssetsAndAssumptionOfLiabilitiesInBusinessCombination": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AcquisitionrelatedCostsRecognisedAsExpenseForTransactionRecognisedSeparatelyFromAcquisitionOfAssetsAndAssumptionOfLiabilitiesInBusinessCombination",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquisition-related costs recognised as expense for transaction recognised separately from acquisition of assets and assumption of liabilities in business combination",
        "terseLabel": "Acquisition-related costs"
       }
      }
     },
     "auth_ref": [
      "r193"
     ]
    },
    "ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AcquisitionsThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquisitions through business combinations, intangible assets other than goodwill",
        "terseLabel": "CPO-09 assets in business combination"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in intangible assets other than goodwill resulting from acquisitions through business combinations. [Refer: Total for all business combinations [member]; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r96",
      "r357"
     ]
    },
    "ifrs-full_AcquisitionsThroughBusinessCombinationsOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AcquisitionsThroughBusinessCombinationsOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquisitions through business combinations, other provisions",
        "verboseLabel": "Fair value adjustment in business combination"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in other provisions resulting from acquisitions through business combinations. [Refer: Total for all business combinations [member]; Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r692"
     ]
    },
    "ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquisitions through business combinations, property, plant and equipment",
        "verboseLabel": "Acquisition of wind and solar energy companies"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in property, plant and equipment resulting from acquisitions through business combinations. [Refer: Total for all business combinations [member]; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r14",
      "r315"
     ]
    },
    "ifrs-full_ActuarialAssumptionOfDiscountRates": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionOfDiscountRates",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Actuarial assumption of discount rates",
        "verboseLabel": "Discount rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The discount rate used as the significant actuarial assumption to determine the present value of a defined benefit obligation. [Refer: Defined benefit obligation, at present value; Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r685"
     ]
    },
    "ifrs-full_ActuarialAssumptionOfDiscountRatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionOfDiscountRatesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Discount rate [Member]",
        "verboseLabel": "Discount rate"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the discount rates used as actuarial assumptions. [Refer: Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r686"
     ]
    },
    "ifrs-full_ActuarialAssumptionOfExpectedRatesOfInflation": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionOfExpectedRatesOfInflation",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Actuarial assumption of expected rates of inflation",
        "verboseLabel": "Expected inflation rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The expected rate of inflation that is used as a significant actuarial assumption to determine the present value of a defined benefit obligation. [Refer: Defined benefit plans [domain]; Defined benefit obligation, at present value; Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r685"
     ]
    },
    "ifrs-full_ActuarialAssumptionOfExpectedRatesOfInflationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionOfExpectedRatesOfInflationMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inflation rate [Member]",
        "verboseLabel": "Inflation rate"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the expected rates of inflation used as actuarial assumptions. [Refer: Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r686"
     ]
    },
    "ifrs-full_ActuarialAssumptionOfExpectedRatesOfPensionIncreases": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionOfExpectedRatesOfPensionIncreases",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Actuarial assumption of expected rates of pension increases",
        "terseLabel": "Pension growth rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The expected rate of increases in pension that is used as a significant actuarial assumption to determine the present value of a defined benefit obligation. [Refer: Defined benefit plans [domain]; Defined benefit obligation, at present value; Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r685"
     ]
    },
    "ifrs-full_ActuarialAssumptionOfExpectedRatesOfSalaryIncreases": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionOfExpectedRatesOfSalaryIncreases",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Actuarial assumption of expected rates of salary increases",
        "verboseLabel": "Salary growth rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The expected rate of salary increases used as a significant actuarial assumption to determine the present value of a defined benefit obligation. [Refer: Defined benefit plans [domain]; Defined benefit obligation, at present value; Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r685"
     ]
    },
    "ifrs-full_ActuarialAssumptionOfExpectedRatesOfSalaryIncreasesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionOfExpectedRatesOfSalaryIncreasesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Salary growth rate [Member]",
        "verboseLabel": "Salary growth rate"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the expected rates of salary increases used as actuarial assumptions. [Refer: Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r686"
     ]
    },
    "ec_ActuarialAssumptionOfLongTermRates": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ActuarialAssumptionOfLongTermRates",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The long term rate used as the significant actuarial assumption to determine the present value of a defined benefit obligation.",
        "label": "Actuarial assumption of long term rates",
        "terseLabel": "Long-term rate"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ActuarialAssumptionOfMedicalCostTrendRatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionOfMedicalCostTrendRatesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cost trend [Member]",
        "verboseLabel": "Cost trend"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the medical cost trend rates used as actuarial assumptions. [Refer: Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r686"
     ]
    },
    "ec_ActuarialAssumptionOfShortTermRates": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ActuarialAssumptionOfShortTermRates",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The short term rate used as the significant actuarial assumption to determine the present value of a defined benefit obligation.",
        "label": "Actuarial assumption of short term rates",
        "terseLabel": "Short-term rate"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ActuarialAssumptionsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionsAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Actuarial assumptions [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r36"
     ]
    },
    "ifrs-full_ActuarialAssumptionsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionsDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Actuarial assumptions [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all actuarial assumptions. Actuarial assumptions are the entity\u2019s unbiased and mutually compatible best estimates of the demographic and financial variables that will determine the ultimate cost of providing post-employment benefits. It also represents the standard value for the 'Actuarial assumptions' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r36"
     ]
    },
    "ifrs-full_ActuarialGainsLossesArisingFromChangesInFinancialAssumptionsNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialGainsLossesArisingFromChangesInFinancialAssumptionsNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Actuarial gains (losses) arising from changes in financial assumptions, net defined benefit liability (asset)",
        "terseLabel": "Gains from financial assumptions"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in a net defined benefit liability (asset) resulting from actuarial gains (losses) arising from changes in financial assumptions that result in remeasurements of the net defined benefit liability (asset). Financial assumptions deal with items such as: (a) the discount rate; (b) benefit levels, excluding any cost of the benefits to be met by employees, and future salary; (c) in the case of medical benefits, future medical costs, including claim handling costs (ie the costs that will be incurred in processing and resolving claims, including legal and adjuster's fees); and (d) taxes payable by the plan on contributions relating to service before the reporting date or on benefits resulting from that service. [Refer: Net defined benefit liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r30"
     ]
    },
    "ec_ActuarialGainsLossesToPlanAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ActuarialGainsLossesToPlanAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of actuarial gains (losses) recorded for plan assets.",
        "label": "Actuarial gains losses to plan assets",
        "terseLabel": "Actuarial gains"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_Additional402vDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "Additional402vDisclosureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional 402(v) Disclosure [Text Block]",
        "terseLabel": "Additional 402(v) Disclosure"
       }
      }
     },
     "auth_ref": [
      "r615"
     ]
    },
    "ifrs-full_AdditionalInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdditionalInformationAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional information [abstract]",
        "verboseLabel": "Other complementary information"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AdditionalPaidInCapitalReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AdditionalPaidInCapitalReceivables",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of additional capital receivable.",
        "label": "Additional Paid in Capital Receivables",
        "terseLabel": "Additional paid in capital receivable"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdditionalPaidinCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdditionalPaidinCapital",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Paid in Capital",
        "terseLabel": "Additional paid in capital"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount received or receivable from the issuance of the entity's shares in excess of nominal value and amounts received from other transactions involving the entity's stock or stockholders."
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ifrs-full_AdditionalPaidinCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdditionalPaidinCapitalMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional paid-in capital [member]",
        "terseLabel": "Additional paid-in capital"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for amounts received from issuance of the entity's shares in excess of nominal value and amounts received from other transactions involving the entity's stock or stockholders."
       }
      }
     },
     "auth_ref": [
      "r716"
     ]
    },
    "ifrs-full_AdditionsOtherThanThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdditionsOtherThanThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions other than through business combinations, intangible assets other than goodwill",
        "terseLabel": "Additions/capitalizations",
        "verboseLabel": "Acquisitions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additions to intangible assets other than goodwill, other than those acquired through business combinations. [Refer: Total for all business combinations [member]; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r96",
      "r357"
     ]
    },
    "ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions other than through business combinations, property, plant and equipment",
        "verboseLabel": "Additions/capitalizations"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additions to property, plant and equipment other than those acquired through business combinations. [Refer: Total for all business combinations [member]; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r13",
      "r314"
     ]
    },
    "ec_AdditionsToLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AdditionsToLeaseLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of additions to lease liabilities.",
        "label": "Additions To Lease Liabilities",
        "terseLabel": "Additions"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdditionsToRightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdditionsToRightofuseAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions to right-of-use assets",
        "terseLabel": "Additions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additions to right-of-use assets. [Refer: Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r173",
      "r273"
     ]
    },
    "dei_AddressTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AddressTypeDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Address Type [Domain]",
        "documentation": "An entity may have several addresses for different purposes and this domain represents all such types."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AdjToCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AdjToCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Compensation Amount",
        "terseLabel": "Adjustment to Compensation, Amount"
       }
      }
     },
     "auth_ref": [
      "r628"
     ]
    },
    "ecd_AdjToCompAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AdjToCompAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Compensation [Axis]",
        "terseLabel": "Adjustment to Compensation:"
       }
      }
     },
     "auth_ref": [
      "r628"
     ]
    },
    "ecd_AdjToNonPeoNeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AdjToNonPeoNeoCompFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Non-PEO NEO Compensation Footnote [Text Block]",
        "terseLabel": "Adjustment to Non-PEO NEO Compensation Footnote"
       }
      }
     },
     "auth_ref": [
      "r628"
     ]
    },
    "ecd_AdjToPeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AdjToPeoCompFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment To PEO Compensation, Footnote [Text Block]",
        "terseLabel": "Adjustment To PEO Compensation, Footnote"
       }
      }
     },
     "auth_ref": [
      "r628"
     ]
    },
    "ec_AdjustedProfitLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AdjustedProfitLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of adjusted profit (loss).",
        "label": "Adjusted Profit (Loss)",
        "verboseLabel": "Total Adjusted Profit"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AdjustedTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AdjustedTaxExpenseIncome",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of tax expense (income) after adjustments.",
        "label": "Adjusted Tax Expense (Income)",
        "terseLabel": "Total Tax Adjusted"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AdjustedTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AdjustedTaxRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of adjusted tax rate.",
        "label": "Adjusted Tax Rate",
        "terseLabel": "Adjusted tax rate"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AdjustmentsForCurrentAndDeferredTaxOfPriorPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AdjustmentsForCurrentAndDeferredTaxOfPriorPeriod",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxExpenseDetails": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustments of tax expense (income) recognised in the period for current tax and deferred tax of prior periods.",
        "label": "Adjustments For Current And Deferred Tax Of Prior Period",
        "terseLabel": "Adjustments to prior years' current and deferred tax"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInInventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInInventories",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 22.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for decrease (increase) in inventories",
        "verboseLabel": "Inventories"
       }
      }
     },
     "auth_ref": [
      "r701"
     ]
    },
    "ec_AdjustmentsForDecreaseIncreaseInOtherAssetsAndLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AdjustmentsForDecreaseIncreaseInOtherAssetsAndLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 27.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustments for decrease (increase) in other assets (liabilities) to reconcile profit (loss) to net cash flow from (used in) operating activities",
        "label": "Adjustments for decrease increase in other assets and liabilities",
        "verboseLabel": "Other assets and liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAndOtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInTradeAndOtherReceivables",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 21.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for decrease (increase) in trade and other receivables",
        "verboseLabel": "Trade and other receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for decrease (increase) in trade and other receivables to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Trade and other receivables; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r704"
     ]
    },
    "ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForDepreciationAndAmortisationExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for depreciation and amortisation expense",
        "verboseLabel": "Depreciation, depletion, and amortization"
       }
      }
     },
     "auth_ref": [
      "r702"
     ]
    },
    "ec_AdjustmentsForDepreciationDepletionAndAmortisationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AdjustmentsForDepreciationDepletionAndAmortisationExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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)]",
        "label": "Adjustments For Depreciation Depletion And Amortisation Expense",
        "verboseLabel": "Depreciation, depletion and amortization"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForFairValueGainsLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForFairValueGainsLosses",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for fair value losses (gains)",
        "verboseLabel": "Gain on fair value adjustment of financial assets and interest"
       }
      }
     },
     "auth_ref": [
      "r702"
     ]
    },
    "ifrs-full_AdjustmentsForFinanceCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForFinanceCosts",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for finance costs",
        "verboseLabel": "Finance cost of loans and borrowings"
       }
      }
     },
     "auth_ref": [
      "r703"
     ]
    },
    "ec_AdjustmentsForGainLossOnAcquisitionOfInvestmentsInSubsidiariesJointVenturesAndAssociates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AdjustmentsForGainLossOnAcquisitionOfInvestmentsInSubsidiariesJointVenturesAndAssociates",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustments for gain (loss) on acquisition of investments in subsidiaries, joint ventures and associates to reconcile profit (loss) to net cash flow from (used in) operating activities.",
        "label": "Adjustments for gain loss on Acquisition of investments in subsidiaries, joint ventures and associates",
        "negatedLabel": "Profit on business combinations",
        "terseLabel": "Adjustments for gain (loss) on acquisition of investments in subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AdjustmentsForGainLossOnDisposalsAssetsHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AdjustmentsForGainLossOnDisposalsAssetsHeldForSale",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustments for gain (loss) on disposals of assets held for sale to reconcile profit (loss) to net cash flow from (used in) operating activities.",
        "label": "Adjustments for gain loss on disposals, assets held for sale",
        "negatedLabel": "Loss on the sale of assets held for sale"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for impairment loss (reversal of impairment loss) recognised in profit or loss",
        "terseLabel": "Impairment reversal (loss)"
       }
      }
     },
     "auth_ref": [
      "r702"
     ]
    },
    "ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossExplorationAndEvaluationAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossExplorationAndEvaluationAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsCashGeneratingUnitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for impairment loss (reversal of impairment loss) recognised in profit or loss, exploration and evaluation assets",
        "terseLabel": "Impairment loss - refining and petrochemical segment (reversal of impairment loss) recognized in profit or loss",
        "verboseLabel": "Impairment expense (recovery)"
       }
      }
     },
     "auth_ref": [
      "r704"
     ]
    },
    "ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossInventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossInventories",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for impairment loss (reversal of impairment loss) recognised in profit or loss, inventories",
        "verboseLabel": "Impairment loss of current assets"
       }
      }
     },
     "auth_ref": [
      "r704"
     ]
    },
    "ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for impairment loss (reversal of impairment loss) recognised in profit or loss, property, plant and equipment",
        "terseLabel": "Impairment (recovery) loss of non-current assets"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for impairment loss (reversal of impairment loss) on property, plant and equipment recognised in profit or loss to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Adjustments for impairment loss (reversal of impairment loss) recognised in profit or loss; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r704"
     ]
    },
    "ec_AdjustmentsForImpairmentLossesReversalOfImpairmentLossesOfOilFields": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AdjustmentsForImpairmentLossesReversalOfImpairmentLossesOfOilFields",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustments for impairment losses (reversal of impairment losses) on oil fields recognised in profit or loss to reconcile profit (loss) to net cash flow from (used in) operating activities.",
        "label": "Adjustments For Impairment Losses (Reversal of Impairment Losses) of Oil Fields",
        "terseLabel": "Profit on reversal of fields"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForIncomeTaxExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForIncomeTaxExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for income tax expense",
        "terseLabel": "Income tax expense"
       }
      }
     },
     "auth_ref": [
      "r120"
     ]
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 25.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for increase (decrease) in employee benefit liabilities",
        "verboseLabel": "Provisions for employee benefits"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for increase (decrease) in employee benefit liabilities to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r704"
     ]
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInOtherOperatingPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInOtherOperatingPayables",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 24.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for increase (decrease) in other operating payables",
        "verboseLabel": "Tax assets and liabilities"
       }
      }
     },
     "auth_ref": [
      "r701"
     ]
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInTradeAccountPayable",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 23.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for increase (decrease) in trade accounts payable",
        "verboseLabel": "Trade and other payables"
       }
      }
     },
     "auth_ref": [
      "r701"
     ]
    },
    "ifrs-full_AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for losses (gains) on disposal of non-current assets",
        "terseLabel": "(Gain) loss on disposal of non-current assets"
       }
      }
     },
     "auth_ref": [
      "r698"
     ]
    },
    "ec_AdjustmentsForRealisedForeignExchangeLossesGains": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AdjustmentsForRealisedForeignExchangeLossesGains",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 19.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustments for realised foreign exchange losses (gains) to reconcile profit (loss) to net cash flow from (used in) operating activities.",
        "label": "Adjustments for realised foreign exchange losses gains",
        "verboseLabel": "Realized (gain) loss on foreign exchange cash flow hedges"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForReconcileProfitLossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForReconcileProfitLossAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments to reconcile profit (loss) [abstract]",
        "verboseLabel": "Adjustments to reconcile the net profit to net cash provided by operating activities:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForUnrealisedForeignExchangeLossesGains",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for unrealised foreign exchange losses (gains)",
        "negatedLabel": "Foreign exchange gain",
        "verboseLabel": "Foreign exchange gain"
       }
      }
     },
     "auth_ref": [
      "r502",
      "r702"
     ]
    },
    "ec_AdministrationExpensesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AdministrationExpensesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for administration expenses.",
        "label": "Administrative expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdministrativeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdministrativeExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Administrative expenses.",
        "negatedLabel": "Administrative expenses",
        "verboseLabel": "Administrative expenses"
       }
      }
     },
     "auth_ref": [
      "r58",
      "r483",
      "r557"
     ]
    },
    "ec_AdministrativeProcessesCaseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AdministrativeProcessesCaseMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsLitigationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Administrative processes case",
        "label": "Administrative Processes Case [Member]",
        "terseLabel": "Administrative processes case"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AdrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AdrMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "American depository receipts",
        "documentation": "American Depositary Receipt (or American Depositary Share, ADS)."
       }
      }
     },
     "auth_ref": [
      "r568"
     ]
    },
    "ec_AdvancesForAssociatedOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AdvancesForAssociatedOperations",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentPayables",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amounts received in advance from counterparties in connection with joint or associated operations, representing obligations to deliver goods or services or settle through future performance.",
        "label": "Advances For Associated Operations",
        "terseLabel": "Advances for associated operations"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AggregateChangeInStandardizedMeasureOfDiscountedFutureNetCashFlows": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AggregateChangeInStandardizedMeasureOfDiscountedFutureNetCashFlows",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of discounted future accumulated cash inflow relating to proved oil and gas reserves.",
        "label": "Aggregate change in the Standardized measure of discounted future net cash flows",
        "totalLabel": "Aggregate change in the standardized measure of discounted future net cash flows for the year"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AggtChngPnsnValInSummryCompstnTblForAplblYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AggtChngPnsnValInSummryCompstnTblForAplblYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Change in Present Value of Accumulated Benefit for All Pension Plans Reported in Summary Compensation Table [Member]",
        "terseLabel": "Aggregate Change in Present Value of Accumulated Benefit for All Pension Plans Reported in Summary Compensation Table"
       }
      }
     },
     "auth_ref": [
      "r673"
     ]
    },
    "ecd_AggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AggtErrCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Erroneous Compensation Amount",
        "terseLabel": "Aggregate Erroneous Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r586",
      "r597",
      "r607",
      "r640"
     ]
    },
    "ecd_AggtErrCompNotYetDeterminedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AggtErrCompNotYetDeterminedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Erroneous Compensation Not Yet Determined [Text Block]",
        "terseLabel": "Aggregate Erroneous Compensation Not Yet Determined"
       }
      }
     },
     "auth_ref": [
      "r589",
      "r600",
      "r610",
      "r643"
     ]
    },
    "ecd_AggtPnsnAdjsSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AggtPnsnAdjsSvcCstMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Pension Adjustments Service Cost [Member]",
        "terseLabel": "Aggregate Pension Adjustments Service Cost"
       }
      }
     },
     "auth_ref": [
      "r674"
     ]
    },
    "ec_AlcanosDeColombiaS.a.E.s.p.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AlcanosDeColombiaS.a.E.s.p.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Alcanos de Colombia S.A. E.S.P.",
        "label": "Alcanos de Colombia S.A. E.S.P."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AllAdjToCompMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AllAdjToCompMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Adjustments to Compensation [Member]",
        "terseLabel": "All Adjustments to Compensation"
       }
      }
     },
     "auth_ref": [
      "r628"
     ]
    },
    "currency_AllCurrenciesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "AllCurrenciesDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsBreakdownByTypeOfInterestRateAndCurrencyDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDenominatedInForeignCurrencyDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Currencies [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AllExecutiveCategoriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AllExecutiveCategoriesMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Executive Categories [Member]",
        "terseLabel": "All Executive Categories"
       }
      }
     },
     "auth_ref": [
      "r635"
     ]
    },
    "ecd_AllIndividualsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AllIndividualsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure",
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure",
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Individuals [Member]",
        "terseLabel": "All Individuals"
       }
      }
     },
     "auth_ref": [
      "r590",
      "r601",
      "r611",
      "r635",
      "r644",
      "r648",
      "r656"
     ]
    },
    "ecd_AllTradingArrangementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AllTradingArrangementsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Trading Arrangements [Member]",
        "terseLabel": "All Trading Arrangements"
       }
      }
     },
     "auth_ref": [
      "r654"
     ]
    },
    "ec_AllowanceForCreditLossesOfFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AllowanceForCreditLossesOfFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of allowance for credit losses of financial assets.",
        "label": "Allowance For Credit Losses Of Financial Assets",
        "terseLabel": "Allowance for expected credit losses"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AmbrosiaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AmbrosiaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ambrosia.",
        "label": "Ambrosia [Member]",
        "terseLabel": "Ambrosia"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "ec_AminusOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AminusOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for A minus one.",
        "label": "AMinus One [Member]",
        "terseLabel": "A-1"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AmortisationIntangibleAssetsOtherThanGoodwill",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortisation, intangible assets other than goodwill",
        "negatedLabel": "Amortization"
       }
      }
     },
     "auth_ref": [
      "r99",
      "r360"
     ]
    },
    "ec_AmountOfCommittedInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AmountOfCommittedInvestments",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of committed investments.",
        "label": "Amount of Committed Investments",
        "terseLabel": "Committed Investments"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AmountOfCommittedInvestmentsInProjects": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AmountOfCommittedInvestmentsInProjects",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of committed investments in projects.",
        "label": "Amount Of Committed Investments In Projects",
        "terseLabel": "Committed investments in projects"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AmountOfProjectsAwarded": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AmountOfProjectsAwarded",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of projects awarded.",
        "label": "Amount of Projects Awarded",
        "terseLabel": "Amount of projects awarded"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AmountOfReinforcementAndImprovementsApproved": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AmountOfReinforcementAndImprovementsApproved",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The approved amount for reinforcement and improvements.",
        "label": "Amount of Reinforcement and Improvements Approved",
        "terseLabel": "Amount of reinforcement and improvements approved"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AmountsPayableRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AmountsPayableRelatedPartyTransactions",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentPayables",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amounts payable, related party transactions",
        "verboseLabel": "Related parties (Note 31)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amounts payable resulting from related party transactions. [Refer: Total for all related parties [member]]"
       }
      }
     },
     "auth_ref": [
      "r49",
      "r54",
      "r334"
     ]
    },
    "ec_AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AmountsRecognisedAsOfAcquisitionDateForEachMajorClassOfAssetsAcquiredAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "No definition available.",
        "label": "Amounts Recognised As Of Acquisition Date For Each Major Class Of Assets Acquired Abstract",
        "terseLabel": "Assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AmountsRecognisedAsOfAcquisitionDateForLiabilitiesAssumedAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AmountsRecognisedAsOfAcquisitionDateForLiabilitiesAssumedAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "No definition available.",
        "label": "Amounts Recognised As Of Acquisition Date For Liabilities Assumed [Abstract]",
        "terseLabel": "Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AnadarkoColombiaCompanyOxyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AnadarkoColombiaCompanyOxyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Anadarko Colombia Company (OXY).",
        "label": "Anadarko Colombia Company (OXY) [Member]",
        "terseLabel": "Anadarko Colombia Company (OXY)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AndeanChemicalLimitedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AndeanChemicalLimitedMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Andean Chemical Limited",
        "terseLabel": "Andean Chemical Limited"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AndeanChemicalsLtdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AndeanChemicalsLtdMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Andean Chemicals Ltd."
       }
      }
     },
     "auth_ref": []
    },
    "ec_AnnulmentAndRestorationOfRightsActionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AnnulmentAndRestorationOfRightsActionsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A classification used to represent contingent liabilities arising from administrative or judicial proceedings in which an entity seeks the annulment (cancellation) of an administrative or regulatory act and the restoration of legal or economic rights allegedly affected by such act.",
        "label": "Annulment and Restoration of Rights Actions [Member]",
        "terseLabel": "Annulment and restoration of rights"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ApplicableSpecialTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ApplicableSpecialTaxRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The applicable special tax rate.",
        "label": "Applicable Special Tax Rate",
        "terseLabel": "Applicable special tax rate"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ApplicableTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ApplicableTaxRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Applicable tax rate",
        "terseLabel": "Statutory tax rate",
        "verboseLabel": "Nominal income rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The applicable income tax rate."
       }
      }
     },
     "auth_ref": [
      "r5",
      "r307"
     ]
    },
    "ec_ApplicableTaxRateForFixedAssets": {
     "xbrltype": "pureItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ApplicableTaxRateForFixedAssets",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The applicable tax rate for fixed assets.",
        "label": "Applicable Tax Rate For Fixed Assets",
        "terseLabel": "Applicable tax rate for fixed assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ApplicableTaxRateOld": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ApplicableTaxRateOld",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The applicable income tax rate before update.",
        "label": "Applicable Tax Rate, Old",
        "terseLabel": "Applicable income tax rate before update"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ApplicationOfNewDecreeOnTaxesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ApplicationOfNewDecreeOnTaxesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to application of new decree on taxes.",
        "label": "Application of New Decree on Taxes [Member]",
        "terseLabel": "Application of new decree on taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AromaticsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AromaticsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aromatics",
        "verboseLabel": "Aromatics"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AsociacinBoquernMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AsociacinBoquernMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Asociacin Boquern.",
        "label": "Asociacin Boquern [Member]",
        "terseLabel": "Asociacion Boqueron"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AsociacinGuajiraContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AsociacinGuajiraContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Asociacin Guajira.",
        "label": "Asociacin Guajira Contract [Member]",
        "terseLabel": "Asociacion Guajira"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AsphaltsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AsphaltsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asphalts",
        "terseLabel": "Asphalts"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AssetRetirementCostMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AssetRetirementCostMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets retirement obligations",
        "terseLabel": "Assets retirement obligations"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AssetRetirementObligationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AssetRetirementObligationMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset retirement obligation [Member]",
        "terseLabel": "Asset retirement obligation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Assets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Assets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets",
        "terseLabel": "Total assets",
        "totalLabel": "Total assets",
        "verboseLabel": "Assets"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": [
      "r160",
      "r161",
      "r163",
      "r249",
      "r252",
      "r406",
      "r407",
      "r448"
     ]
    },
    "ifrs-full_AssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AssetsAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets [Abstract]",
        "verboseLabel": "Assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AssetsArisingFromExplorationForAndEvaluationOfMineralResources": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AssetsArisingFromExplorationForAndEvaluationOfMineralResources",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets arising from exploration for and evaluation of mineral resources",
        "periodEndLabel": "Ending Balance",
        "periodStartLabel": "Beginning Balance",
        "verboseLabel": "Natural and environmental resources"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets arising from the search for mineral resources, including minerals, oil, natural gas and similar non-regenerative resources after the entity has obtained legal rights to explore in a specific area, as well as the determination of the technical feasibility and commercial viability of extracting the mineral resource."
       }
      }
     },
     "auth_ref": [
      "r202"
     ]
    },
    "ifrs-full_AssetsOfBenefitPlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AssetsOfBenefitPlan",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets of benefit plan",
        "terseLabel": "Assets of benefit plan"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets held by retirement benefit plans. [Refer: Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r56"
     ]
    },
    "ec_AssetsOfBenefitPlanAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AssetsOfBenefitPlanAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets of benefit plan [Abstract]",
        "verboseLabel": "Plan assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AssetsRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AssetsRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for total assets acquired in a business combination.",
        "label": "Assets Recognised As Of Acquisition Date",
        "totalLabel": "Total assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AssociatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AssociatesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Associates [member]",
        "terseLabel": "Associates"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the entities over which the investor has significant influence."
       }
      }
     },
     "auth_ref": [
      "r51",
      "r63",
      "r66",
      "r158",
      "r336",
      "r405"
     ]
    },
    "ec_AtFairValue1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AtFairValue1Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsCashGeneratingUnitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recoverable amount [Member]",
        "terseLabel": "Recoverable amount"
       }
      }
     },
     "auth_ref": []
    },
    "ec_AtpTowerHoldingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AtpTowerHoldingsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to ATP Tower Holdings.",
        "label": "ATP Tower Holdings",
        "verboseLabel": "ATP Tower Holdings"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AttributionOfExpensesByNatureToTheirFunctionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AttributionOfExpensesByNatureToTheirFunctionAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Attribution of expenses by nature to their function [axis]"
       }
      }
     },
     "auth_ref": [
      "r713",
      "r717"
     ]
    },
    "ifrs-full_AttributionOfExpensesByNatureToTheirFunctionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AttributionOfExpensesByNatureToTheirFunctionDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Attribution of expenses by nature to their function [domain]"
       }
      }
     },
     "auth_ref": [
      "r713",
      "r717"
     ]
    },
    "dei_AuditorFirmId": {
     "xbrltype": "nonemptySequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AuditorFirmId",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Firm ID",
        "documentation": "PCAOB issued Audit Firm Identifier"
       }
      }
     },
     "auth_ref": [
      "r569",
      "r570",
      "r593"
     ]
    },
    "dei_AuditorLocation": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AuditorLocation",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Location"
       }
      }
     },
     "auth_ref": [
      "r569",
      "r570",
      "r593"
     ]
    },
    "dei_AuditorName": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AuditorName",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Name"
       }
      }
     },
     "auth_ref": [
      "r569",
      "r570",
      "r593"
     ]
    },
    "ec_AverageDailyHydrocarbonProduction": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AverageDailyHydrocarbonProduction",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The average volume of hydrocarbons (oil + natural gas + natural gas liquids) produced per day over a specific period (usually a year or quarter).",
        "label": "Average Daily Hydrocarbon Production",
        "terseLabel": "Average volume of hydrocarbons"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AverageEffectiveTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AverageEffectiveTaxRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average effective tax rate",
        "terseLabel": "Effective tax rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The tax expense (income) divided by the accounting profit. [Refer: Accounting profit]"
       }
      }
     },
     "auth_ref": [
      "r5",
      "r307"
     ]
    },
    "ec_AverageRateOfReturnOnCashAndCashEquivalents": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "AverageRateOfReturnOnCashAndCashEquivalents",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of average return earned on cash and cash equivalents during the period.",
        "label": "Average Rate of Return on Cash and Cash Equivalents",
        "terseLabel": "Return on cash and cash equivalents"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AwardExrcPrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardExrcPrice",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Exercise Price",
        "terseLabel": "Exercise Price"
       }
      }
     },
     "auth_ref": [
      "r651"
     ]
    },
    "ecd_AwardGrantDateFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardGrantDateFairValue",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Grant Date Fair Value",
        "terseLabel": "Fair Value as of Grant Date"
       }
      }
     },
     "auth_ref": [
      "r652"
     ]
    },
    "ecd_AwardTmgDiscLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgDiscLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Disclosures [Line Items]",
        "terseLabel": "Award Timing Disclosures"
       }
      }
     },
     "auth_ref": [
      "r647"
     ]
    },
    "ecd_AwardTmgHowMnpiCnsdrdTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgHowMnpiCnsdrdTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing, How MNPI Considered [Text Block]",
        "terseLabel": "Award Timing, How MNPI Considered"
       }
      }
     },
     "auth_ref": [
      "r647"
     ]
    },
    "ecd_AwardTmgMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgMethodTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Method [Text Block]",
        "terseLabel": "Award Timing Method"
       }
      }
     },
     "auth_ref": [
      "r647"
     ]
    },
    "ecd_AwardTmgMnpiCnsdrdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgMnpiCnsdrdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing MNPI Considered [Flag]",
        "terseLabel": "Award Timing MNPI Considered"
       }
      }
     },
     "auth_ref": [
      "r647"
     ]
    },
    "ecd_AwardTmgMnpiDiscTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgMnpiDiscTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing MNPI Disclosure [Text Block]",
        "terseLabel": "Award Timing MNPI Disclosure"
       }
      }
     },
     "auth_ref": [
      "r647"
     ]
    },
    "ecd_AwardTmgPredtrmndFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgPredtrmndFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Predetermined [Flag]",
        "terseLabel": "Award Timing Predetermined"
       }
      }
     },
     "auth_ref": [
      "r647"
     ]
    },
    "us-gaap_AwardTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AwardTypeAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Type [Axis]",
        "terseLabel": "Award Type"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AwardUndrlygSecuritiesAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardUndrlygSecuritiesAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Underlying Securities Amount",
        "terseLabel": "Underlying Securities"
       }
      }
     },
     "auth_ref": [
      "r650"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardsCloseToMnpiDiscIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r649"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardsCloseToMnpiDiscTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures [Table]",
        "terseLabel": "Awards Close in Time to MNPI Disclosures"
       }
      }
     },
     "auth_ref": [
      "r648"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardsCloseToMnpiDiscTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures [Table Text Block]",
        "terseLabel": "Awards Close in Time to MNPI Disclosures, Table"
       }
      }
     },
     "auth_ref": [
      "r648"
     ]
    },
    "ec_BMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for B.",
        "label": "B [Member]",
        "terseLabel": "B"
       }
      }
     },
     "auth_ref": []
    },
    "country_BO": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2025",
     "localname": "BO",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "BOLIVIA",
        "terseLabel": "Bolivia"
       }
      }
     },
     "auth_ref": []
    },
    "country_BR": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2025",
     "localname": "BR",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Brazil",
        "terseLabel": "Brazil"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Ba1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Ba1Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ba1.",
        "label": "Ba1 [Member]",
        "terseLabel": "Ba1"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BaaTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BaaTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Baa2.",
        "label": "BAA2",
        "verboseLabel": "Baa2"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BancoBilbaoVizcayaArgentariaS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BancoBilbaoVizcayaArgentariaS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Banco Bilbao Vizcaya Argentaria, S.A.",
        "label": "Banco Bilbao Vizcaya Argentaria, S.A. [Member]",
        "terseLabel": "Banco Bilbao Vizcaya Argentaria, S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BankBorrowingsUndiscountedCashFlows": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BankBorrowingsUndiscountedCashFlows",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementMaturityOfFinancialLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bank borrowings, undiscounted cash flows",
        "verboseLabel": "Loans (payment of principal and interest)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of contractual undiscounted cash flows in relation to bank borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r528",
      "r536"
     ]
    },
    "ec_BankOfAmericaN.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BankOfAmericaN.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Bank of America, N.A.",
        "label": "Bank of America, N.A [Member]",
        "terseLabel": "Bank of America, N.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_BankOfChinaLimitedPanamaBranchMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BankOfChinaLimitedPanamaBranchMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Bank of China Limited, Panama branch.",
        "label": "Bank of China Limited, Panama Branch [Member]",
        "terseLabel": "Bank of China Limited, Panama branch"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BasicEarningsLossPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BasicEarningsLossPerShare",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityEarningsPerShareDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basic earnings (loss) per share",
        "terseLabel": "Basic earnings per share (Colombian pesos per share)",
        "verboseLabel": "Basic ordinary shares earnings per share (Colombian pesos)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of profit (loss) attributable to ordinary equity holders of the parent entity (the numerator) divided by the weighted average number of ordinary shares outstanding during the period (the denominator)."
       }
      }
     },
     "auth_ref": [
      "r68",
      "r69"
     ]
    },
    "ec_BasisOfAmortizationOfPrincipal": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BasisOfAmortizationOfPrincipal",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The basis of amortization of principal.",
        "label": "Basis of Amortization of Principal",
        "terseLabel": "Amortization"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BbMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BbMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for BB.",
        "label": "BB [Member]",
        "terseLabel": "BB"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BbPlusMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BbPlusMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsCreditRatingsOfIssuersAndCounterpartiesInAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for BB+.",
        "label": "BB+ [Member]",
        "terseLabel": "BB+"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BbbMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BbbMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for BBB.",
        "label": "BBB [Member]",
        "verboseLabel": "BBB"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BenefitsPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BenefitsPaid",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of benefits paid from plan assets.",
        "label": "Benefits paid",
        "verboseLabel": "Benefits paid"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BenefitsPlanCostsRecognizedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BenefitsPlanCostsRecognizedInProfitOrLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total costs of the benefit plans those recognized in profit or loss during the period.",
        "label": "Benefits plan costs recognized in profit or loss",
        "totalLabel": "Benefits plan costs recognized in profit or loss"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BlackGoldReLtdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BlackGoldReLtdMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Black Gold Re Ltd."
       }
      }
     },
     "auth_ref": []
    },
    "ec_BlockCpo09FromRepsolColombiaOilAmpGasLimitedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BlockCpo09FromRepsolColombiaOilAmpGasLimitedMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the Block CPO-09 from Repsol Colombia Oil &amp;amp; Gas Limited.",
        "label": "Block CPO-09 from Repsol Colombia Oil &amp;amp; Gas Limited [Member]",
        "terseLabel": "Block CPO-09"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BlockCpo09FromRepsolColombiaOilGasLimitedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BlockCpo09FromRepsolColombiaOilGasLimitedMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Block CPO-09 from Repsol Colombia Oil &amp; Gas Limited.",
        "label": "Block CPO-09 from Repsol Colombia Oil &amp; Gas Limited [Member]",
        "terseLabel": "Block CPO09"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Bloque6ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Bloque6ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for Bloque 6 Contract .",
        "label": "Bloque 6 Contract [Member]",
        "terseLabel": "Bloque 6"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BmS54ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BmS54ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for BM-S-54 contract.",
        "label": "BM-S-54 Contract [Member]",
        "terseLabel": "BM-S-54"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for bonds.",
        "label": "Bonds",
        "terseLabel": "Bonds",
        "verboseLabel": "Bonds"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Eight [Member]",
        "label": "Bonds domestic currency Eight",
        "terseLabel": "Bonds, domestic currency eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyEighteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyEighteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Eighteen [Member]",
        "label": "Bonds domestic currency Eighteen",
        "terseLabel": "Bonds, domestic currency eighteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyElevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyElevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Eleven [Member]",
        "label": "Bonds domestic currency Eleven",
        "terseLabel": "Bonds, domestic currency eleven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyFifteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyFifteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Fifteen [Member]",
        "label": "Bonds domestic currency Fifteen",
        "terseLabel": "Bonds, domestic currency fifteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Bonds, domestic currency five.",
        "label": "Bonds domestic currency Five",
        "terseLabel": "Bonds, domestic currency five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Bonds, domestic currency four.",
        "label": "Bonds domestic currency Four",
        "terseLabel": "Bonds, domestic currency four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyFourteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyFourteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency fourteen [Member]",
        "label": "Bonds domestic currency fourteen",
        "terseLabel": "Bonds, domestic currency fourteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Nine [Member]",
        "label": "Bonds domestic currency Nine",
        "terseLabel": "Bonds, domestic currency nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyNineteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyNineteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Nineteen [Member]",
        "label": "Bonds domestic currency Nineteen",
        "terseLabel": "Bonds, domestic currency nineteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds, domestic currency One",
        "label": "Bonds domestic currency One",
        "terseLabel": "Bonds, domestic currency one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencySevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Seven [Member]",
        "label": "Bonds domestic currency Seven",
        "terseLabel": "Bonds, domestic currency seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencySeventeenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencySeventeenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Seventeen [Member]",
        "label": "Bonds domestic currency Seventeen",
        "terseLabel": "Bonds, domestic currency seventeen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencySixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Six [Member].",
        "label": "Bonds domestic currency Six",
        "terseLabel": "Bonds, domestic currency six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencySixteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencySixteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Sixteen [Member]",
        "label": "Bonds domestic currency Sixteen",
        "terseLabel": "Bonds, domestic currency sixteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyTenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyTenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Ten [Member]",
        "label": "Bonds domestic currency Ten",
        "terseLabel": "Bonds, domestic currency ten"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyThirteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyThirteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Thirteen [Member]",
        "label": "Bonds domestic currency Thirteen",
        "terseLabel": "Bonds, domestic currency thirteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Bonds, domestic currency three.",
        "label": "Bonds domestic currency Three",
        "terseLabel": "Bonds, domestic currency three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyTwelveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyTwelveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Twelve [Member]",
        "label": "Bonds domestic currency Twelve",
        "terseLabel": "Bonds, domestic currency twelve"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyTwentyEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Bonds, domestic currency twenty eight.",
        "label": "Bonds domestic currency Twenty Eight [Member]",
        "terseLabel": "Bonds, domestic currency twenty eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyTwentyFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Twenty Five [Member].",
        "label": "Bonds domestic currency Twenty Five",
        "terseLabel": "Bonds, domestic currency twenty five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyTwentyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyTwentyFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Twenty Four [Member].",
        "label": "Bonds domestic currency Twenty Four",
        "terseLabel": "Bonds, domestic currency twenty four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyTwentyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyTwentyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Twenty [Member].",
        "label": "Bonds domestic currency Twenty",
        "terseLabel": "Bonds, domestic currency twenty"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyTwentyNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Bonds, domestic currency twenty nine.",
        "label": "Bonds Domestic Currency Twenty Nine [Member]",
        "terseLabel": "Bonds, domestic currency twenty nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyTwentyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyTwentyOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Twenty One [Member].",
        "label": "Bonds domestic currency Twenty One",
        "terseLabel": "Bonds, domestic currency twenty one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyTwentySevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Twenty Seven [Member].",
        "label": "Bonds domestic currency Twenty Seven",
        "terseLabel": "Bonds, domestic currency twenty seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyTwentySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyTwentySixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Twenty Six [Member].",
        "label": "Bonds domestic currency Twenty Six",
        "terseLabel": "Bonds, domestic currency twenty six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyTwentyThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Twenty Three [Member].",
        "label": "Bonds domestic currency Twenty Three",
        "terseLabel": "Bonds, domestic currency twenty three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyTwentyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyTwentyTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds domestic currency Twenty Two [Member].",
        "label": "Bonds domestic currency Twenty Two",
        "terseLabel": "Bonds, domestic currency twenty two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsDomesticCurrencyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsDomesticCurrencyTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Bonds, domestic currency two.",
        "label": "Bonds domestic currency Two",
        "terseLabel": "Bonds, domestic currency two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "n/a",
        "label": "Bonds Foreign currency Eight",
        "terseLabel": "Bonds, foreign currency eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyEighteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyEighteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Eighteen [Member]",
        "label": "Bonds Foreign currency Eighteen",
        "terseLabel": "Bonds, foreign currency eighteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyElevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyElevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Ten [Member]",
        "label": "Bonds Foreign currency Eleven",
        "terseLabel": "Bonds, foreign currency eleven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyFifteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyFifteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Fifteen  [Member]",
        "label": "Bonds Foreign currency Fifteen",
        "terseLabel": "Bonds, foreign currency fifteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Bonds, foreign currency five.",
        "label": "Bonds Foreign currency Five",
        "terseLabel": "Bonds, foreign currency five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyFortyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyFortyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Bonds, foreign currency forty.",
        "label": "Bonds Foreign currency Forty [Member]",
        "terseLabel": "Bonds, foreign currency forty"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyFortyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyFortyOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Bonds, foreign currency forty one.",
        "label": "Bonds Foreign currency Forty One [Member]",
        "terseLabel": "Bonds, foreign currency forty one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyFortyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyFortyThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Bonds, foreign currency forty three.",
        "label": "Bonds Foreign currency Forty Three [Member]",
        "terseLabel": "Bonds, foreign currency forty three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyFortyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyFortyTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Bonds, foreign currency forty two.",
        "label": "Bonds Foreign currency Forty Two [Member]",
        "terseLabel": "Bonds, foreign currency forty two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Bonds, foreign currency four.",
        "label": "Bonds Foreign currency Four",
        "terseLabel": "Bonds, foreign currency four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyFourteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyFourteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Fourteen [Member]",
        "label": "Bonds Foreign currency Fourteen",
        "terseLabel": "Bonds, foreign currency fourteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents Bonds foreign currency nine.",
        "label": "Bonds Foreign currency Nine",
        "terseLabel": "Bonds, foreign currency nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyNineteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyNineteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Nineteen [Member]",
        "label": "Bonds Foreign currency Nineteen",
        "terseLabel": "Bonds, foreign currency nineteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Bonds, foreign currency one.",
        "label": "Bonds Foreign currency One",
        "terseLabel": "Bonds, foreign currency one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencySevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Bonds, foreign currency seven.",
        "label": "Bonds Foreign currency Seven",
        "terseLabel": "Bonds, foreign currency seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencySeventeenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencySeventeenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Seventeen [Member]",
        "label": "Bonds Foreign currency Seventeen",
        "terseLabel": "Bonds, foreign currency seventeen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencySixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Bonds, foreign currency six.",
        "label": "Bonds Foreign currency Six",
        "terseLabel": "Bonds, foreign currency six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencySixteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencySixteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Sixteen [Member]",
        "label": "Bonds Foreign currency Sixteen",
        "terseLabel": "Bonds, foreign currency sixteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyTenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyTenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents Bonds foreign currency ten.",
        "label": "Bonds Foreign currency Ten",
        "terseLabel": "Bonds, foreign currency ten"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyThirteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyThirteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Thirteen [Member]",
        "label": "Bonds Foreign currency Thirteen",
        "terseLabel": "Bonds, foreign currency thirteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyThirtyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyThirtyEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Thirty Eight [Member].",
        "label": "Bonds Foreign currency Thirty Eight",
        "terseLabel": "Bonds, foreign currency thirty eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyThirtyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyThirtyFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Thirty Five [Member].",
        "label": "Bonds Foreign currency Thirty Five",
        "terseLabel": "Bonds, foreign currency thirty five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyThirtyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyThirtyFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Thirty Four [Member].",
        "label": "Bonds Foreign currency Thirty Four",
        "terseLabel": "Bonds, foreign currency thirty four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyThirtyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyThirtyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Thirty [Member]",
        "label": "Bonds Foreign currency Thirty",
        "terseLabel": "Bonds, foreign currency thirty"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyThirtyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyThirtyNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Thirty Nine [Member].",
        "label": "Bonds Foreign currency Thirty Nine",
        "terseLabel": "Bonds, foreign currency thirty nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyThirtyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyThirtyOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Thirty One [Member]",
        "label": "Bonds Foreign currency Thirty One",
        "terseLabel": "Bonds, foreign currency thirty one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyThirtySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyThirtySevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Thirty Seven [Member].",
        "label": "Bonds Foreign currency Thirty Seven",
        "terseLabel": "Bonds, foreign currency thirty seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyThirtySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyThirtySixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Thirty Six [Member].",
        "label": "Bonds Foreign currency Thirty Six",
        "terseLabel": "Bonds, foreign currency thirty six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyThirtyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyThirtyThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Thirty Three [Member]",
        "label": "Bonds Foreign currency Thirty Three",
        "terseLabel": "Bonds, foreign currency thirty three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyThirtyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyThirtyTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Thirty Two [Member]",
        "label": "Bonds Foreign currency Thirty Two",
        "terseLabel": "Bonds, foreign currency thirty two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Bonds, foreign currency three.",
        "label": "Bonds Foreign currency Three",
        "terseLabel": "Bonds, foreign currency three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyTwelveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyTwelveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Twelve [Member]",
        "label": "Bonds Foreign currency Twelve {Member]",
        "terseLabel": "Bonds, foreign currency twelve"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyTwentyEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Twenty Eight [Member]",
        "label": "Bonds Foreign currency Twenty Eight",
        "terseLabel": "Bonds, foreign currency twenty eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyTwentyFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Twenty Five [Member]",
        "label": "Bonds Foreign currency Twenty Five",
        "terseLabel": "Bonds, foreign currency twenty five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyTwentyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyTwentyFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Twenty Four Member]",
        "label": "Bonds Foreign currency Twenty Four",
        "terseLabel": "Bonds, foreign currency twenty four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyTwentyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyTwentyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Twenty [Member]",
        "label": "Bonds Foreign currency Twenty",
        "terseLabel": "Bonds, foreign currency twenty"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyTwentyNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Twenty Nine [Member]",
        "label": "Bonds Foreign currency Twenty Nine",
        "terseLabel": "Bonds, foreign currency twenty nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyTwentyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyTwentyOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Twenty one [Member]",
        "label": "Bonds Foreign currency Twenty one",
        "terseLabel": "Bonds, foreign currency twenty one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyTwentySevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Twenty Seven [Member]",
        "label": "Bonds Foreign currency Twenty Seven",
        "terseLabel": "Bonds, foreign currency twenty seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyTwentySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyTwentySixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Twenty Six [Member]",
        "label": "Bonds Foreign currency Twenty Six",
        "terseLabel": "Bonds, foreign currency twenty six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyTwentyThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Twenty Three [Member]",
        "label": "Bonds Foreign currency Twenty Three",
        "terseLabel": "Bonds, foreign currency twenty three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyTwentyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyTwentyTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Twenty Two [Member]",
        "label": "Bonds Foreign currency Twenty Two",
        "terseLabel": "Bonds, foreign currency twenty two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BondsForeignCurrencyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BondsForeignCurrencyTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bonds Foreign currency Two",
        "label": "Bonds Foreign currency Two",
        "terseLabel": "Bonds, foreign currency two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BorrowingExpiryDate": {
     "xbrltype": "gYearMonthItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BorrowingExpiryDate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The expiry date of borrowings.",
        "label": "Borrowing Expiry Date",
        "verboseLabel": "Maturity"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BorrowingInitialDate": {
     "xbrltype": "gYearMonthItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BorrowingInitialDate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The initial date of borrowings.",
        "label": "Borrowing Initial Date",
        "terseLabel": "Issue date"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Borrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Borrowings",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsBreakdownByTypeOfInterestRateAndCurrencyDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementLeverageRatioDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings",
        "terseLabel": "Loans and borrowings (Note 20)",
        "totalLabel": "Borrowings",
        "verboseLabel": "Borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of outstanding funds that the entity is obligated to repay."
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ec_BorrowingsByEcopetrolS.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BorrowingsByEcopetrolS.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for borrowings by Ecopetrol S.A.",
        "label": "Borrowings by Ecopetrol S.A [Member]",
        "terseLabel": "Ecopetrol S.A"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BorrowingsByInterconexionElectricaS.a.E.s.pMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BorrowingsByInterconexionElectricaS.a.E.s.pMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for borrowings by Interconexion Electrica S.A. E.S.P.",
        "label": "Borrowings by Interconexion Electrica S.A. E.S.P [Member]",
        "terseLabel": "Interconexion Electrica S.A. E.S.P"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BorrowingsByNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsByNameAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings by name [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r710"
     ]
    },
    "ifrs-full_BorrowingsByNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsByNameDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings by name [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all borrowings when disaggregated by name. It also represents the standard value for the 'Borrowings by name' axis if no other member is used. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r710"
     ]
    },
    "ec_BorrowingsByOcensaS.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BorrowingsByOcensaS.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for borrowings by Ocensa S.A.",
        "label": "Borrowings by Ocensa S.A [Member]",
        "terseLabel": "Ocensa S.A"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BorrowingsInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsInterestRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings, interest rate",
        "terseLabel": "Borrowings, interest rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The interest rate on borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r710"
     ]
    },
    "ifrs-full_BorrowingsInterestRateBasis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsInterestRateBasis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings, interest rate basis",
        "verboseLabel": "Interest rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The basis (reference rate) used for calculation of the interest rate on borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r710"
     ]
    },
    "ifrs-full_BorrowingsOriginalCurrency": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsOriginalCurrency",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings, original currency",
        "verboseLabel": "Currency"
       }
      },
      "en": {
       "role": {
        "documentation": "The currency in which the borrowings are denominated. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r710"
     ]
    },
    "ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsRecognisedAsOfAcquisitionDate",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "ec_LiabilitiesRecognisedAsOfAcquisitionDate",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings recognised as of acquisition date",
        "terseLabel": "Loans and borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for borrowings assumed in a business combination. [Refer: Borrowings; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r708"
     ]
    },
    "ifrs-full_BottomOfRangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BottomOfRangeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bottom of range",
        "verboseLabel": "Bottom of range"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the bottom of a range."
       }
      }
     },
     "auth_ref": [
      "r122",
      "r165",
      "r181",
      "r189",
      "r298",
      "r508",
      "r510",
      "r710"
     ]
    },
    "ec_BpEnergyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BpEnergyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for BP Energy.",
        "label": "BP Energy [Member]",
        "terseLabel": "BP Energy"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BravaEnergiaS.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BravaEnergiaS.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Brava Energia S.A.",
        "label": "Brava Energia S.A [Member]",
        "terseLabel": "Brava Energia S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_Brc1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Brc1Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to BRC1.",
        "label": "BRC1 [Member]",
        "terseLabel": "BRC1"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BrcOnePlusMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BrcOnePlusMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsCreditRatingsOfIssuersAndCounterpartiesInAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for BRC1+.",
        "label": "BRC1+ [Member]",
        "verboseLabel": "BRC1+"
       }
      }
     },
     "auth_ref": []
    },
    "ec_BrentPutOptionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "BrentPutOptionsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Brent put options.",
        "label": "Brent Put Options [Member]",
        "terseLabel": "Brent Put Options"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BuildingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BuildingsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Buildings",
        "verboseLabel": "Buildings"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of plant, property and equipment representing depreciable buildings and similar structures for use in operations. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r681"
     ]
    },
    "ifrs-full_BusinessCombinationsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BusinessCombinationsAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business combinations [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r194",
      "r375"
     ]
    },
    "ifrs-full_BusinessCombinationsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BusinessCombinationsDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business combinations [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Business combinations' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r194",
      "r197",
      "r375"
     ]
    },
    "dei_BusinessContactMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "BusinessContactMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Contact",
        "documentation": "Business contact for the entity"
       }
      }
     },
     "auth_ref": [
      "r570",
      "r593"
     ]
    },
    "ec_C62ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "C62ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for C62 Contract.",
        "label": "C62 Contract [Member]",
        "terseLabel": "C62"
       }
      }
     },
     "auth_ref": []
    },
    "country_CL": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2025",
     "localname": "CL",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Chile",
        "terseLabel": "Chile"
       }
      }
     },
     "auth_ref": []
    },
    "country_CN": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2025",
     "localname": "CN",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CHINA",
        "terseLabel": "China"
       }
      }
     },
     "auth_ref": []
    },
    "country_CO": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2025",
     "localname": "CO",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Colombia",
        "terseLabel": "Colombia",
        "verboseLabel": "Colombia"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CancellationOfFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CancellationOfFees",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of fees to board members cancelled during the period.",
        "label": "Cancellation of Fees",
        "terseLabel": "Remuneration fees to board of directors"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CapitalCommitments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CapitalCommitments",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital commitments",
        "verboseLabel": "Authorized capital"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of future capital expenditures that the entity is committed to make."
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ec_CapitalCommitmentsIncludesIsaCommittedInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CapitalCommitmentsIncludesIsaCommittedInvestments",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of future capital expenditures of ISA that the entity is committed to make.",
        "label": "Capital Commitments Includes an ISA Committed Investments",
        "terseLabel": "ISA committed investments"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CapitalReserveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CapitalReserveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityEcopetrolBusinessGroupsReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fiscal and statutory reserves",
        "terseLabel": "Fiscal and statutory reserves"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing capital reserves."
       }
      }
     },
     "auth_ref": [
      "r716"
     ]
    },
    "ec_CapitalizedCostsAccumulatedDepreciationDepletionAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CapitalizedCostsAccumulatedDepreciationDepletionAmortization",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCapitalizedCostsRelatingToOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": "ec_CapitalizedCostsOilAndGasProducingActivitiesNetTotal",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCapitalizedCostsRelatingToOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated depreciation, depletion, amortization relating to oil and gas producing activities.",
        "label": "Capitalized Costs, Accumulated Depreciation, Depletion, Amortization",
        "negatedLabel": "Accumulated depreciation, depletion, and amortization"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CapitalizedCostsConstructionInProgress": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CapitalizedCostsConstructionInProgress",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCapitalizedCostsRelatingToOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": "ec_CapitalizedCostsOilAndGasProducingActivitiesNetTotal",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCapitalizedCostsRelatingToOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of construction in progress capitalized costs relating to oil and gas producing activities before accounting for accumulated depreciation, depletion and amortization.",
        "label": "Capitalized Costs, Construction in Progress",
        "verboseLabel": "Exploration and production projects"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CapitalizedCostsNaturalandevironmentalproperties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CapitalizedCostsNaturalandevironmentalproperties",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCapitalizedCostsRelatingToOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": "ec_CapitalizedCostsOilAndGasProducingActivitiesNetTotal",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCapitalizedCostsRelatingToOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of natural and environmental properties capitalized costs relating to oil and gas producing activities before accounting for accumulated depreciation, depletion and amortization.",
        "label": "Capitalized Costs, Natural and Environmental Properties",
        "verboseLabel": "Natural and environmental properties"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CapitalizedCostsOilAndGasProducingActivitiesNetTotal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CapitalizedCostsOilAndGasProducingActivitiesNetTotal",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCapitalizedCostsRelatingToOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCapitalizedCostsRelatingToOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net amount of capitalized costs relating to oil and gas producing activities.",
        "label": "Capitalized Costs, Oil and Gas Producing Activities, Net, Total",
        "totalLabel": "Net capitalized cost"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CapitalizedCostsWellsEquipmentAndFacilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CapitalizedCostsWellsEquipmentAndFacilities",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCapitalizedCostsRelatingToOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": "ec_CapitalizedCostsOilAndGasProducingActivitiesNetTotal",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCapitalizedCostsRelatingToOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of wells, equipment and facilities capitalized costs relating to oil and gas producing activities before accounting for accumulated depreciation, depletion and amortization.",
        "label": "Capitalized Costs, Wells, Equipment and Facilities",
        "verboseLabel": "Wells, equipment, and facilities - property, plant, and equipment"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CaptialDebtRatio": {
     "xbrltype": "pureItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CaptialDebtRatio",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio of capital to debt.",
        "label": "Captial Debt Ratio",
        "terseLabel": "Capital debt ratio"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CarbonTaxMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CarbonTaxMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Carbon tax"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CardonContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CardonContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Cardon Contract.",
        "label": "Cardon Contract [Member]",
        "terseLabel": "Cardon"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails",
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAllowanceForDoubtfulAccountsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Carrying amount, accumulated depreciation, amortisation and impairment and gross carrying amount [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r12",
      "r20",
      "r95",
      "r101",
      "r109",
      "r110",
      "r112",
      "r113",
      "r114",
      "r196",
      "r223",
      "r224",
      "r313",
      "r320",
      "r356",
      "r361",
      "r364",
      "r365",
      "r367",
      "r368",
      "r369",
      "r376",
      "r396",
      "r398"
     ]
    },
    "ifrs-full_CarryingAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CarryingAmountMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsCashGeneratingUnitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAllowanceForDoubtfulAccountsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Carrying amount [member]",
        "terseLabel": "Carrying Amount"
       }
      }
     },
     "auth_ref": [
      "r20",
      "r101",
      "r109",
      "r112",
      "r113",
      "r196",
      "r223",
      "r224",
      "r320",
      "r361",
      "r364",
      "r367",
      "r368",
      "r376",
      "r396",
      "r398"
     ]
    },
    "ifrs-full_Cash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Cash",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsDetails": {
       "parentTag": "ifrs-full_CashAndCashEquivalents",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash",
        "verboseLabel": "Cash and banks"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash on hand and demand deposits. [Refer: Cash on hand]"
       }
      }
     },
     "auth_ref": [
      "r705"
     ]
    },
    "ifrs-full_CashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails": {
       "parentTag": "ifrs-full_NetFinancialLiabilitiesSubjectToOffsettingEnforceableMasterNettingArrangementsOrSimilarAgreementsInStatementOfFinancialPosition",
       "weight": -1.0,
       "order": 1.0
      },
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 6.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementLeverageRatioDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and cash equivalents.",
        "negatedTerseLabel": "Cash and cash equivalents (Note 6)",
        "periodEndLabel": "Cash and cash equivalent at the end of the year",
        "periodStartLabel": "Cash and cash equivalents at the beginning of the year",
        "totalLabel": "Total cash and cash equivalents",
        "verboseLabel": "Cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash on hand and demand deposits, along with short-term, highly liquid investments that are readily convertible to known amounts of cash and that are subject to an insignificant risk of changes in value. [Refer: Cash; Cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r123",
      "r151",
      "r299",
      "r440"
     ]
    },
    "ifrs-full_CashAndCashEquivalentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashAndCashEquivalentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and cash equivalents"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashAndCashEquivalentsRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "ec_AssetsRecognisedAsOfAcquisitionDate",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and cash equivalents recognised as of acquisition date",
        "terseLabel": "Cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for cash and cash equivalents acquired in a business combination. [Refer: Cash and cash equivalents; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r708"
     ]
    },
    "ifrs-full_CashFlowHedgesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowHedgesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementNonDerivativeHedgingInstrumentDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flow hedging",
        "terseLabel": "Cash flow hedging",
        "verboseLabel": "Cash flow hedging for future crude oil exports"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for hedges of the exposure to variability in cash flows that (a) are attributable to a particular risk associated with a recognised asset or liability (such as all or some future interest payments on variable rate debt) or a highly probable forecast transaction; and (b) could affect profit or loss. [Refer: Types of hedges [domain]]"
       }
      }
     },
     "auth_ref": [
      "r105",
      "r211",
      "r212",
      "r217",
      "r386",
      "r387",
      "r392"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInExplorationForAndEvaluationOfMineralResourcesClassifiedAsOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInExplorationForAndEvaluationOfMineralResourcesClassifiedAsOperatingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows from (used in) exploration for and evaluation of mineral resources, classified as operating activities",
        "terseLabel": "Write off exploratory assets and dry wells"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from (used in) the search for mineral resources, including minerals, oil, natural gas and similar non-regenerative resources after the entity has obtained legal rights to explore in a specific area, as well as the determination of the technical feasibility and commercial viability of extracting the mineral resource, classified as operating activities."
       }
      }
     },
     "auth_ref": [
      "r202"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows from (used in) financing activities",
        "totalLabel": "Net cash used in financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from (used in) financing activities, which are activities that result in changes in the size and composition of the contributed equity and borrowings of the entity, from continuing and discontinued operations."
       }
      }
     },
     "auth_ref": [
      "r116",
      "r125"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInFinancingActivitiesAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows from (used in) financing activities [abstract]",
        "verboseLabel": "Cash flow from financing activities:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows from (used in) investing activities",
        "totalLabel": "Net cash used in investment activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from (used in) investing activities, which are the acquisition and disposal of long-term assets and other investments not included in cash equivalents, from continuing and discontinued operations."
       }
      }
     },
     "auth_ref": [
      "r116",
      "r125"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInInvestingActivitiesAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows from (used in) investing activities [abstract]",
        "verboseLabel": "Cash flow from investing activities:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInOperatingActivities",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows from (used in) operating activities",
        "totalLabel": "Net cash provided by operating activities"
       }
      }
     },
     "auth_ref": [
      "r116",
      "r125"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows from (used in) operating activities [abstract]",
        "verboseLabel": "Cash flow from operating activities:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows used in obtaining control of subsidiaries or other businesses, classified as investing activities",
        "negatedLabel": "Acquisition of subsidiaries, net of cash acquired",
        "verboseLabel": "Net cash paid"
       }
      },
      "en": {
       "role": {
        "documentation": "The aggregate cash flows used in obtaining control of subsidiaries or other businesses, classified as investing activities. [Refer: Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r121"
     ]
    },
    "ec_CashGeneratingUnitCarryingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CashGeneratingUnitCarryingAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsBreakdownOfOilfieldsImpairmentLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "It represents the carrying amount of cash generating unit.",
        "label": "Cash Generating Unit Carrying Amount",
        "terseLabel": "Carrying amount"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashOutflowForLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashOutflowForLeases",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash outflow for leases",
        "negatedLabel": "Lease payments"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for leases."
       }
      }
     },
     "auth_ref": [
      "r172",
      "r272"
     ]
    },
    "ifrs-full_CategoriesOfRelatedPartiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CategoriesOfRelatedPartiesAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Categories of related parties [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r53",
      "r338"
     ]
    },
    "ifrs-full_CategoriesOfRelatedPartiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CategoriesOfRelatedPartiesDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Categories of related parties [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Categories of related parties' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r53",
      "r338"
     ]
    },
    "ec_CatleyaContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CatleyaContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Catleya Contract.",
        "label": "Catleya Contract [Member]",
        "terseLabel": "Catleya"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CenitTransporteYLogsticaSASMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CenitTransporteYLogsticaSASMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cenit Transporte y Logstica SAS",
        "label": "Cenit Transporte y Logistica S.A.S."
       }
      }
     },
     "auth_ref": []
    },
    "ec_CentralAmericaAndCaribbeanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CentralAmericaAndCaribbeanMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Central America And Caribbean [Member]",
        "terseLabel": "Central America And the Caribbean"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CgusOfSouthNorthAndYaguaraTenayMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CgusOfSouthNorthAndYaguaraTenayMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for CGUs of North and Yaguara-Tenay.",
        "label": "CGUs of South, North and Yaguara-Tenay [Member]",
        "terseLabel": "CGUs of South, North and Yaguara-Tenay"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ChangedPeerGroupFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ChangedPeerGroupFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Changed Peer Group, Footnote [Text Block]",
        "terseLabel": "Changed Peer Group, Footnote"
       }
      }
     },
     "auth_ref": [
      "r626"
     ]
    },
    "ec_ChipironContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ChipironContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Chipiron Contract.",
        "label": "Chipiron Contract [Member]",
        "terseLabel": "Chipiron"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ChngInFrValAsOfVstngDtOfPrrYrEqtyAwrdsVstdInCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ChngInFrValAsOfVstngDtOfPrrYrEqtyAwrdsVstdInCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Change in Fair Value as of Vesting Date of Prior Year Equity Awards Vested in Covered Year [Member]",
        "terseLabel": "Change in Fair Value as of Vesting Date of Prior Year Equity Awards Vested in Covered Year"
       }
      }
     },
     "auth_ref": [
      "r623"
     ]
    },
    "ecd_ChngInFrValOfOutsdngAndUnvstdEqtyAwrdsGrntdInPrrYrsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ChngInFrValOfOutsdngAndUnvstdEqtyAwrdsGrntdInPrrYrsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Year-over-Year Change in Fair Value of Equity Awards Granted in Prior Years That are Outstanding and Unvested [Member]",
        "terseLabel": "Year-over-Year Change in Fair Value of Equity Awards Granted in Prior Years That are Outstanding and Unvested"
       }
      }
     },
     "auth_ref": [
      "r621"
     ]
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "CityAreaCode",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "City Area Code",
        "documentation": "Area code of city"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ClassesOfAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfAssetsAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsBreakdownOfOilfieldsImpairmentLossesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsCashGeneratingUnitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsExplorationAndProductionDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsTables",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of assets [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r72",
      "r74",
      "r164",
      "r175",
      "r275",
      "r341",
      "r408"
     ]
    },
    "ifrs-full_ClassesOfAssetsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfAssetsDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsBreakdownOfOilfieldsImpairmentLossesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsCashGeneratingUnitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsExplorationAndProductionDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsTables",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of assets [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for 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. It also represents the standard value for the 'Classes of assets' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r72",
      "r164",
      "r175",
      "r275",
      "r341",
      "r408"
     ]
    },
    "ifrs-full_ClassesOfContingentLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfContingentLiabilitiesAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of contingent liabilities [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r92",
      "r195",
      "r354"
     ]
    },
    "ifrs-full_ClassesOfContingentLiabilitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfContingentLiabilitiesDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of contingent liabilities [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for possible obligations that arise from past events and whose existence will be confirmed only by the occurrence or non-occurrence of one or more uncertain future events not wholly within the control of the entity; or, present obligations that arise from past events but are not recognised because (a) it is probable that an outflow of resources embodying economic benefits will be required to settle the obligations; or (b) the amount of the obligations cannot be measured with sufficient reliability. It also represents the standard value for the 'Classes of contingent liabilities' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r93",
      "r195"
     ]
    },
    "ifrs-full_ClassesOfFinancialAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfFinancialAssetsAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsTables",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementScheduleOfDetailedInformationAboutHedgingInstrumentsExplanatoryDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesFuelPriceStabilizationFunDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of financial assets [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r188",
      "r233",
      "r234",
      "r262",
      "r263",
      "r421"
     ]
    },
    "ifrs-full_ClassesOfFinancialAssetsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfFinancialAssetsDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsTables",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementScheduleOfDetailedInformationAboutHedgingInstrumentsExplanatoryDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesFuelPriceStabilizationFunDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of financial assets [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated classes of financial assets. It also represents the standard value for the 'Classes of financial assets' axis if no other member is used. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r188",
      "r233",
      "r234",
      "r262",
      "r263",
      "r421"
     ]
    },
    "ifrs-full_ClassesOfFinancialInstrumentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfFinancialInstrumentsAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementSignificantConcentrationOfCreditRiskDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAllowanceForDoubtfulAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of financial instruments [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r223",
      "r225",
      "r227",
      "r228",
      "r396",
      "r400"
     ]
    },
    "ifrs-full_ClassesOfFinancialInstrumentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfFinancialInstrumentsDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementSignificantConcentrationOfCreditRiskDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAllowanceForDoubtfulAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of financial instruments [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated classes of financial instruments. Financial instruments are contracts that give rise to a financial asset of one entity and a financial liability or equity instrument of another entity. It also represents the standard value for the 'Classes of financial instruments' axis if no other member is used. [Refer: Financial assets; Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r223",
      "r225",
      "r227",
      "r228",
      "r396",
      "r400"
     ]
    },
    "ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfIntangibleAssetsOtherThanGoodwillAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of intangible assets other than goodwill [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r102",
      "r362"
     ]
    },
    "ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfIntangibleAssetsOtherThanGoodwillDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of intangible assets other than goodwill [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Classes of intangible assets other than goodwill' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r102",
      "r362"
     ]
    },
    "ifrs-full_ClassesOfLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfLiabilitiesAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of liabilities [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r164",
      "r408"
     ]
    },
    "ifrs-full_ClassesOfLiabilitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfLiabilitiesDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of liabilities [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for 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. It also represents the standard value for the 'Classes of liabilities' axis if no other member is used. [Refer: Liabilities]"
       }
      }
     },
     "auth_ref": [
      "r164",
      "r408"
     ]
    },
    "ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfPropertyPlantAndEquipmentAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedReserveInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of property, plant and equipment [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r21",
      "r321"
     ]
    },
    "ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfPropertyPlantAndEquipmentDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedReserveInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of property, plant and equipment [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Classes of property, plant and equipment' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r21",
      "r321"
     ]
    },
    "ifrs-full_ClassesOfShareCapitalAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfShareCapitalAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails",
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of share capital [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r291",
      "r412",
      "r461"
     ]
    },
    "ifrs-full_ClassesOfShareCapitalDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfShareCapitalDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails",
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of share capital [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for share capital of the entity. It also represents the standard value for the 'Classes of share capital' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r291",
      "r412",
      "r461"
     ]
    },
    "ifrs-full_ClosingForeignExchangeRate": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClosingForeignExchangeRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Closing foreign exchange rate",
        "terseLabel": "Closing balance exchange rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The spot exchange rate at the end of the reporting period. Exchange rate is the ratio of exchange for two currencies. Spot exchange rate is the exchange rate for immediate delivery."
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ec_ClosingForeignExchangeRates": {
     "xbrltype": "pureItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ClosingForeignExchangeRates",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementMaturityOfFinancialLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of closing foreign exchange rates",
        "label": "Closing Foreign Exchange Rates",
        "verboseLabel": "Closing foreign exchange rate"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_CoSelectedMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CoSelectedMeasureAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Company Selected Measure Amount",
        "terseLabel": "Company Selected Measure Amount"
       }
      }
     },
     "auth_ref": [
      "r627"
     ]
    },
    "ecd_CoSelectedMeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CoSelectedMeasureName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Company Selected Measure Name",
        "terseLabel": "Company Selected Measure Name"
       }
      }
     },
     "auth_ref": [
      "r627"
     ]
    },
    "ec_ColombiaEnergyDevelopmentCoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ColombiaEnergyDevelopmentCoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Colombia Energy Development CO.",
        "label": "Colombia Energy Development CO [Member]",
        "terseLabel": "Colombia Energy Development CO"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ColombianPesoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ColombianPesoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for colombian peso.",
        "label": "Colombian Peso [Member]",
        "terseLabel": "Colombian Peso"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CombustiblesLquidosDeColombiaS.aE.s.p.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CombustiblesLquidosDeColombiaS.aE.s.p.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Combustibles Lquidos de Colombia S.A E.S.P.",
        "label": "Combustibles Lquidos de Colombia S.A E.S.P."
       }
      }
     },
     "auth_ref": []
    },
    "ec_CommercialAndSyndicateLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CommercialAndSyndicateLoansMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for commercial and syndicate loans.",
        "label": "Commercial And Syndicate Loans [Member]",
        "terseLabel": "Commercial and syndicate loans and related parties"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CommercialSyndicateLoansAndLeaseLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CommercialSyndicateLoansAndLeaseLiabilitiesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for commercial and syndicate loans and lease liabilities.",
        "label": "Commercial, Syndicate Loans And Lease Liabilities [Member]",
        "terseLabel": "Commercial and syndicated loans and lease liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CommodityPriceRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CommodityPriceRiskMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commodity price risk [member]",
        "terseLabel": "Commodity price risk"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of other price risk that represents the type of risk that the fair value or future cash flows of a financial instrument will fluctuate because of changes in commodity prices. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r524",
      "r537"
     ]
    },
    "ecd_CompActuallyPaidVsCoSelectedMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CompActuallyPaidVsCoSelectedMeasureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Company Selected Measure [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Company Selected Measure"
       }
      }
     },
     "auth_ref": [
      "r632"
     ]
    },
    "ecd_CompActuallyPaidVsNetIncomeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CompActuallyPaidVsNetIncomeTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Net Income [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Net Income"
       }
      }
     },
     "auth_ref": [
      "r631"
     ]
    },
    "ecd_CompActuallyPaidVsOtherMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CompActuallyPaidVsOtherMeasureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Other Measure [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Other Measure"
       }
      }
     },
     "auth_ref": [
      "r633"
     ]
    },
    "ecd_CompActuallyPaidVsTotalShareholderRtnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CompActuallyPaidVsTotalShareholderRtnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Total Shareholder Return [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Total Shareholder Return"
       }
      }
     },
     "auth_ref": [
      "r630"
     ]
    },
    "ec_CompanyName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CompanyName",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The company names of borrowings.",
        "label": "Company Name",
        "terseLabel": "Company"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ComponentsOfEquityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComponentsOfEquityAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityEcopetrolBusinessGroupsReservesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityMovementOfEquityReservesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of equity [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r427"
     ]
    },
    "ifrs-full_ComponentsOfEquityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComponentsOfEquityDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityEcopetrolBusinessGroupsReservesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityMovementOfEquityReservesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of equity [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the residual interest in the assets of the entity after deducting all its liabilities. It also represents the standard value for the 'Components of equity' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r427"
     ]
    },
    "ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of other comprehensive income that will be reclassified to profit or loss, net of tax [abstract]",
        "verboseLabel": "Other comprehensive income that may be reclassified to profit or loss in subsequent periods -net of taxes:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTaxAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTaxAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of other comprehensive income that will not be reclassified to profit or loss, net of tax [abstract]",
        "terseLabel": "Other comprehensive income that will not to be reclassified to profit or loss in subsequent periods (net of taxes):"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncomeCalc2": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive income",
        "totalLabel": "Total comprehensive income for the year, net of tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of change in equity resulting from transactions and other events, other than those changes resulting from transactions with owners in their capacity as owners."
       }
      }
     },
     "auth_ref": [
      "r128",
      "r130",
      "r148",
      "r340",
      "r371",
      "r424",
      "r465",
      "r505"
     ]
    },
    "ifrs-full_ComprehensiveIncomeAttributableToAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComprehensiveIncomeAttributableToAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive income attributable to [abstract]",
        "terseLabel": "Total comprehensive income for the year attributable to:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComprehensiveIncomeAttributableToNoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncomeCalc2": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive income, attributable to non-controlling interests",
        "verboseLabel": "Non-controlling interest"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of comprehensive income attributable to non-controlling interests. [Refer: Comprehensive income; Non-controlling interests]"
       }
      }
     },
     "auth_ref": [
      "r424",
      "r468"
     ]
    },
    "ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComprehensiveIncomeAttributableToOwnersOfParent",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncomeCalc2": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive income, attributable to owners of parent",
        "verboseLabel": "Owners of parent"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of comprehensive income attributable to owners of the parent. [Refer: Comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r424",
      "r469"
     ]
    },
    "ec_ConcesinCosteraCartagenaBarranquillaS.a.sMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConcesinCosteraCartagenaBarranquillaS.a.sMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Concesin Costera-Cartagena-Barranquilla S.A.S.",
        "label": "Concesin Costera-Cartagena-Barranquilla S.A.S [Member]",
        "terseLabel": "Concesin Costera-Cartagena-Barranquilla S.A.S"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConcesionCosteraCartagenaBarranquillaS.a.s.RutaCosteraMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConcesionCosteraCartagenaBarranquillaS.a.s.RutaCosteraMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Concesin Costera-Cartagena-Barranquilla S.A.S.-Ruta Costera.",
        "label": "Concesion Costera-Cartagena-Barranquilla S.A.S.-Ruta Costera [Member]",
        "terseLabel": "Concesion Costera-Cartagena-Barranquilla S.A.S.-Ruta Costera"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConcessionAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConcessionAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount of assets when construction services are exchanged in service concession arrangements.",
        "label": "Concession Assets",
        "periodEndLabel": "Closing balance",
        "periodStartLabel": "Opening balance",
        "totalLabel": "Total concessions, asset"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConcessionAssetsConstructionServicesForContractualAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConcessionAssetsConstructionServicesForContractualAsset",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails": {
       "parentTag": "ec_ConcessionAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount of assets when construction services are exchanged for contractual assets in service concession arrangements.",
        "label": "Concession Assets, Construction Services For Contractual Asset",
        "terseLabel": "Asset concession, contractual asset"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConcessionAssetsConstructionServicesForFinancialAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConcessionAssetsConstructionServicesForFinancialAsset",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails": {
       "parentTag": "ec_ConcessionAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount of assets when construction services are exchanged for financial assets in service concession arrangements.",
        "label": "Concession Assets, Construction Services For Financial Asset",
        "terseLabel": "Asset concession, financial assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConcessionAssetsConstructionServicesForIntangibleAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConcessionAssetsConstructionServicesForIntangibleAsset",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails": {
       "parentTag": "ec_ConcessionAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount of assets when construction services are exchanged for for an intangible asset in service concession arrangements.",
        "label": "Concession Assets, Construction Services For Intangible Asset",
        "terseLabel": "Asset concessions, intangible assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConcessionsAndRightsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConcessionsAndRightsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Concessions And Rights [Member].",
        "label": "Concessions and rights",
        "terseLabel": "Concessions and rights"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConcessionsTradeAndOtherReceivablesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConcessionsTradeAndOtherReceivablesCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentReceivables",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of concessions trade and other receivables current.",
        "label": "Concessions Trade And Other Receivables Current",
        "terseLabel": "Concessions"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConcessionsTradeAndOtherReceivablesNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConcessionsTradeAndOtherReceivablesNoncurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": "ifrs-full_NoncurrentReceivables",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of concessions trade and other receivables noncurrent.",
        "label": "Concessions Trade And Other Receivables Noncurrent",
        "terseLabel": "Concessions"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConexinKimalLoAguirreInChileAndToceCepiEnergyTransmissionProjectMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConexinKimalLoAguirreInChileAndToceCepiEnergyTransmissionProjectMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Conexin Kimal Lo Aguirre in Chile and TOCE CEPI energy transmission project.",
        "label": "Conexin Kimal Lo Aguirre in Chile and TOCE CEPI Energy Transmission Project [Member]",
        "terseLabel": "Conexin Kimal Lo Aguirre in Chile and TOCE CEPI Energy Transmission Project"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConexinKimalLoAguirreS.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConexinKimalLoAguirreS.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to Conexin Kimal Lo Aguirre S.A.",
        "label": "Conexin Kimal Lo Aguirre S.A. [Member]",
        "terseLabel": "Conexion Kimal Lo Aguirre S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConexionKimalLoAguirreS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConexionKimalLoAguirreS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to Conexion Kimal Lo Aguirre S.A.",
        "label": "Conexion Kimal Lo Aguirre S.A. [Member]",
        "terseLabel": "Conexion Kimal Lo Aguirre S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConsechaContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConsechaContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for Consecha contract.",
        "label": "Cosecha Contract [Member]",
        "terseLabel": "Cosecha"
       }
      }
     },
     "auth_ref": []
    },
    "srt_ConsolidatedEntitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ConsolidatedEntitiesAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Entities [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_ConsolidatedEntitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ConsolidatedEntitiesDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Entities [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConsorcioElctricoYapayS.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConsorcioElctricoYapayS.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Its represents Consorcio Elctrico Yapay S.A.",
        "label": "Consorcio Elctrico Yapay S.A [Member]",
        "terseLabel": "Consorcio Elctrico Yapay S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConsorcioElectricoYapayS.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConsorcioElectricoYapayS.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The information pertaining to Consorcio Electrico Yapay S.A.",
        "label": "Consorcio Electrico Yapay S.A [Member]",
        "terseLabel": "Consorcio Electrico Yapay S.A"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConsorcioTransmantaroMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConsorcioTransmantaroMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Consorcio Transmantaro",
        "label": "Consorcio Transmantaro",
        "terseLabel": "Consorcio Transmantaro"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConsorcioTransmantaroS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConsorcioTransmantaroS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Consorcio Transmantaro S.A.",
        "label": "Consorcio Transmantaro S.A. [Member]",
        "terseLabel": "Consorcio Transmantaro S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConstitutionalActionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConstitutionalActionMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for constitutional action.",
        "label": "Constitutional Action [Member]",
        "verboseLabel": "Constitutional"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConstructionAndImprovementBusinessesRoadsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConstructionAndImprovementBusinessesRoadsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for construction and improvement businesses roads.",
        "label": "Construction and Improvement Businesses Roads [Member]",
        "terseLabel": "Construction and Improvement Businesses Roads"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConstructionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConstructionCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of costs associated with construction.",
        "label": "Construction Costs",
        "terseLabel": "Construction Costs"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ConstructionInProgressMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ConstructionInProgressMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Work in progress",
        "terseLabel": "Construction in progress"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for expenditure capitalised during the construction of items of property, plant and equipment that are not yet available for use (ie not yet in the location and condition necessary for it to be capable of operating in the manner intended by the management). [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r681"
     ]
    },
    "dei_ContactPersonnelEmailAddress": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "ContactPersonnelEmailAddress",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contact Personnel Email Address",
        "documentation": "Email address of contact personnel."
       }
      }
     },
     "auth_ref": []
    },
    "dei_ContactPersonnelName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "ContactPersonnelName",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contact Personnel Name",
        "documentation": "Name of contact personnel"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ContingentAssetClaim": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ContingentAssetClaim",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of contingent asset claim.",
        "label": "Contingent asset claim"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ContingentAssetClaimInvoicesProvisionallyPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ContingentAssetClaimInvoicesProvisionallyPaid",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the cash outflow for contingent asset claim invoices provisionally paid.",
        "label": "Contingent Asset Claim Invoices Provisionally Paid",
        "terseLabel": "Contingent asset claim invoices provisionally paid"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ContingentAssetComplianceLetterOfCredit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ContingentAssetComplianceLetterOfCredit",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of contingent asset compliance letter of credit.",
        "label": "Contingent Asset Compliance Letter Of Credit",
        "terseLabel": "Letter of credit compliance"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ContingentAssetNonDetailedCounterclaim": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ContingentAssetNonDetailedCounterclaim",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of contingent asset non detailed counterclaim.",
        "label": "Contingent asset non detailed counterclaim"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ContractNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ContractNameAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contract Name [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ContractNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ContractNameDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contract Name [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ContractTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ContractTypeAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contract Type [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ContractTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ContractTypeDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contract Type [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ContractWhereEntityIsOperatorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ContractWhereEntityIsOperatorMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contract where Entity is operator"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ContractWhereEntityNotOperatorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ContractWhereEntityNotOperatorMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contract where entity not operator"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ContractualCapitalCommitments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ContractualCapitalCommitments",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contractual capital commitments"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of capital commitments for which the entity has entered into a contract. [Refer: Capital commitments]"
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ec_ContributionsToFundsPlanAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ContributionsToFundsPlanAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of contributions to funds ,plan assets.",
        "label": "Contributions to funds, plan assets",
        "verboseLabel": "Contributions to funds"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ControlThresholdOwnershipPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ControlThresholdOwnershipPercentage",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The minimum percentage of equity or voting share capital required for an investor, individually or together with its subsidiaries or affiliates, to obtain control over an entity, including the power to direct relevant activities, exercise majority voting rights, and/or determine financial and operating policies, as assessed in accordance with applicable IFRS standards (including IFRS 10 - Consolidated Financial Statements).",
        "label": "Control Threshold Ownership Percentage",
        "terseLabel": "Control threshold ownership percentage"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ConvertiblePreferredStockPercentageOfSharesIssuedUponConversion": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ConvertiblePreferredStockPercentageOfSharesIssuedUponConversion",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of number of shares issued for  shares of convertible preferred stock that is converted.",
        "label": "Convertible Preferred Stock, Percentage of Shares Issued upon Conversion",
        "terseLabel": "Percentage of shares issued upon conversion"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CorrespondingToReimbursementOfLegalFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CorrespondingToReimbursementOfLegalFees",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Corresponding to reimbursement of legal fees.",
        "label": "Corresponding To Reimbursement Of Legal Fees",
        "terseLabel": "Legal fees"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CostOfInventoriesMaterialsAndOperatingSuppliesRecognisedAsExpenseDuringPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CostOfInventoriesMaterialsAndOperatingSuppliesRecognisedAsExpenseDuringPeriod",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of inventories, materials and operating supplies recognised as an expense during the period.",
        "label": "Cost Of Inventories, Materials and Operating Supplies Recognised As Expense During Period",
        "terseLabel": "Cost of materials and operating supplies"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CostOfInventoriesProcessMaterialsRecognisedAsExpenseDuringPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CostOfInventoriesProcessMaterialsRecognisedAsExpenseDuringPeriod",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of inventories, process materials recognised as an expense during the period.",
        "label": "Cost Of Inventories, Process Materials Recognised As Expense During Period",
        "terseLabel": "Cost of materials"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CostOfInventoriesRecognisedAsExpenseDuringPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CostOfInventoriesRecognisedAsExpenseDuringPeriod",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cost of inventories recognised as expense during period",
        "terseLabel": "Cost of sales"
       }
      }
     },
     "auth_ref": [
      "r43",
      "r297"
     ]
    },
    "ifrs-full_CostOfSales": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CostOfSales",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss": {
       "parentTag": "ifrs-full_GrossProfit",
       "weight": -1.0,
       "order": 2.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cost of sales.",
        "negatedLabel": "Cost of sales",
        "negatedTerseLabel": "Costs",
        "totalLabel": "Cost of sales"
       }
      }
     },
     "auth_ref": [
      "r422",
      "r483"
     ]
    },
    "ec_CostsIncurredAcquisitionOfProvedProperties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CostsIncurredAcquisitionOfProvedProperties",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredInOilAndGasExplorationAndDevelopedActivitiesDetails": {
       "parentTag": "ec_CostsIncurredOilAndGasPropertyAcquisitionExplorationAndDevelopmentActivitiesTotal",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredInOilAndGasExplorationAndDevelopedActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Costs incurred, including capitalized costs and costs charged to expense, associated with the acquisition of oil and gas properties that have proved reserves.",
        "label": "Costs Incurred, Acquisition of Proved Properties",
        "verboseLabel": "Acquisition of proved properties"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CostsIncurredAcquisitionOfUnprovedProperties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CostsIncurredAcquisitionOfUnprovedProperties",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredInOilAndGasExplorationAndDevelopedActivitiesDetails": {
       "parentTag": "ec_CostsIncurredOilAndGasPropertyAcquisitionExplorationAndDevelopmentActivitiesTotal",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredInOilAndGasExplorationAndDevelopedActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Costs incurred, including capitalized costs and costs charged to expense, associated with the acquisition of oil and gas properties that have unproved reserves.",
        "label": "Costs Incurred, Acquisition of Unproved Properties",
        "verboseLabel": "Acquisition of unproved properties"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CostsIncurredOilAndGasDevelopmentCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CostsIncurredOilAndGasDevelopmentCosts",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredInOilAndGasExplorationAndDevelopedActivitiesDetails": {
       "parentTag": "ec_CostsIncurredOilAndGasPropertyAcquisitionExplorationAndDevelopmentActivitiesTotal",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredInOilAndGasExplorationAndDevelopedActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Development costs incurred, including capitalized costs and costs charged to expense, in oil and gas activities.",
        "label": "Costs Incurred, Oil and Gas Development Costs",
        "verboseLabel": "Development costs"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CostsIncurredOilAndGasExplorationCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CostsIncurredOilAndGasExplorationCosts",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredInOilAndGasExplorationAndDevelopedActivitiesDetails": {
       "parentTag": "ec_CostsIncurredOilAndGasPropertyAcquisitionExplorationAndDevelopmentActivitiesTotal",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredInOilAndGasExplorationAndDevelopedActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Exploration costs incurred, including capitalized costs and costs charged to expense, in oil and gas activities.",
        "label": "Costs Incurred, Oil and Gas Exploration Costs",
        "verboseLabel": "Exploration costs"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CostsIncurredOilAndGasPropertyAcquisitionExplorationAndDevelopmentActivitiesTotal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CostsIncurredOilAndGasPropertyAcquisitionExplorationAndDevelopmentActivitiesTotal",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredInOilAndGasExplorationAndDevelopedActivitiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredInOilAndGasExplorationAndDevelopedActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of costs incurred related to oil and gas property acquisition, exploration and development activities, including capitalized costs and costs charged to expense.",
        "label": "Costs Incurred, Oil and Gas Property Acquisition, Exploration, and Development Activities, Total",
        "totalLabel": "Total costs incurred"
       }
      }
     },
     "auth_ref": []
    },
    "srt_CounterpartyNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "CounterpartyNameAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementHedgeOfNetInvestmentInForeignOperationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementScheduleOfDetailedInformationAboutHedgingInstrumentsExplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Counterparty Name [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CountryOfIncorporationOfJointVenture": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CountryOfIncorporationOfJointVenture",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Country of incorporation of joint venture",
        "verboseLabel": "Country/Domicile, joint venture"
       }
      },
      "en": {
       "role": {
        "documentation": "The country in which a joint venture of the entity is incorporated. [Refer: Total for all joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r61",
      "r64",
      "r141"
     ]
    },
    "ifrs-full_CountryOfIncorporationOrResidenceOfAssociate": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CountryOfIncorporationOrResidenceOfAssociate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Country of incorporation of associate",
        "verboseLabel": "Country/Domicile, associate"
       }
      },
      "en": {
       "role": {
        "documentation": "The country in which an associate of the entity is incorporated. [Refer: Total for all associates [member]]"
       }
      }
     },
     "auth_ref": [
      "r61",
      "r64",
      "r141"
     ]
    },
    "ifrs-full_CountryOfIncorporationOrResidenceOfSubsidiary": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CountryOfIncorporationOrResidenceOfSubsidiary",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Country of incorporation of subsidiary",
        "verboseLabel": "Country/Domicile"
       }
      },
      "en": {
       "role": {
        "documentation": "The country in which a subsidiary of the entity is incorporated. [Refer: Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r61",
      "r64",
      "r133",
      "r136"
     ]
    },
    "dei_CountryRegion": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "CountryRegion",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Country Region",
        "documentation": "Region code of country"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CpiPalaguaContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CpiPalaguaContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for CPI Palagua contract.",
        "label": "CPI Palagua Contract [Member]",
        "terseLabel": "CPI Palagua"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CpvenEPCorpSucursalColombiaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CpvenEPCorpSucursalColombiaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for CPVEN E&amp;P Corp Sucursal Colombia.",
        "label": "CPVEN E&amp;P Corp Sucursal Colombia [Member]",
        "terseLabel": "CPVEN E&amp;P Corp Sucursal Colombia"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Cr2ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Cr2ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for CR2 Contract.",
        "label": "CR2 Contract [Member]",
        "terseLabel": "CR2"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CravoNorteContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CravoNorteContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Cravo norte Contract.",
        "label": "Cravo norte Contract [Member]",
        "terseLabel": "Cravo norte"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CrdobaSolar2S.a.s.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CrdobaSolar2S.a.s.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Crdoba Solar 2 S.A.S.",
        "label": "Crdoba Solar 2 S.A.S. [Member]",
        "terseLabel": "Crdoba Solar 2 S.A.S."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CreditImpairmentOfFinancialInstrumentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CreditImpairmentOfFinancialInstrumentsAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementSignificantConcentrationOfCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit impairment of financial instruments [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r223",
      "r227",
      "r396",
      "r400"
     ]
    },
    "ifrs-full_CreditImpairmentOfFinancialInstrumentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CreditImpairmentOfFinancialInstrumentsDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementSignificantConcentrationOfCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit impairment of financial instruments [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all statuses of credit impairment of financial instruments. A financial instrument is credit-impaired when one or more events that have a detrimental impact on the estimated future cash flows of that financial instrument have occurred. This member also represents the standard value for the 'Credit impairment of financial instruments' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r223",
      "r227",
      "r396",
      "r400"
     ]
    },
    "ec_CreditNotesWithBancoSantanderMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CreditNotesWithBancoSantanderMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for credit notes with Banco Santander.",
        "label": "Credit Notes with Banco Santander [Member]",
        "terseLabel": "Credit notes with Banco Santander"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CreditQualityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CreditQualityAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "credit quality [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CreditQualityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CreditQualityDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "credit quality [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CreditQualityOfIssuersOfInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CreditQualityOfIssuersOfInvestmentsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit quality of issuers of investments [Member]",
        "terseLabel": "Credit quality of issuers of investments"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CrossHoldingUnwindingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CrossHoldingUnwindingMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for unwinding of cross-holdings in subsidiaries.",
        "label": "Cross-Holding Unwinding [Member]",
        "terseLabel": "Cross-holding unwinding"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CrossShareholdingUnwindingConsideration": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CrossShareholdingUnwindingConsideration",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of consideration for cross-shareholding unwinding.",
        "label": "Cross-Shareholding Unwinding, Consideration",
        "terseLabel": "Cash consideration"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CrudeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CrudeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for crude oil.",
        "label": "Crude oil",
        "terseLabel": "Crude oil"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CrudeOilInventoryInTransitBarrels": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CrudeOilInventoryInTransitBarrels",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Quantity of crude oil inventory in transit, measured in barrels, for which control has not yet transferred to the customer as of the reporting date.",
        "label": "Crude Oil Inventory in Transit (Barrels)",
        "terseLabel": "Volume of crude oil inventory in transit"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CrudeOilsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CrudeOilsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Crude Oil [Member]",
        "terseLabel": "Crude oil",
        "verboseLabel": "Crude oil"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CumulativeEffectAtDateOfInitialApplicationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CumulativeEffectAtDateOfInitialApplicationAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative effect at date of initial application [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r715"
     ]
    },
    "srt_CurrencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "CurrencyAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsBreakdownByTypeOfInterestRateAndCurrencyDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDenominatedInForeignCurrencyDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Currency [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrencyRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrencyRiskMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDenominatedInForeignCurrencyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Currency risk [member]",
        "verboseLabel": "Currency risk"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a type of market risk representing the risk that the fair value or future cash flows of a financial instrument will fluctuate because of changes in foreign exchange rates. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r182",
      "r183",
      "r184",
      "r185",
      "r243"
     ]
    },
    "ifrs-full_CurrencySwapContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrencySwapContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementScheduleOfDetailedInformationAboutHedgingInstrumentsExplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Currency swap contract"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a currency swap contract. [Refer: Swap contract [member]]"
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ec_CurrencyTypesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrencyTypesAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Axis Information by currency.",
        "label": "Currency Types [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CurrencyTypesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrencyTypesDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Domain information for aggregated classes of currencies.",
        "label": "Currency Types [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CurrentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "No definition.",
        "label": "Current (Abstract)",
        "verboseLabel": "Current"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CurrentAdvancesToContractorsAndSuppliers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentAdvancesToContractorsAndSuppliers",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails": {
       "parentTag": "ifrs-full_OtherCurrentNonfinancialAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of current advances made to contractors and suppliers before goods or services are received.",
        "label": "Current Advances to Contractors and Suppliers",
        "verboseLabel": "Advanced payments to contractors and suppliers"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current assets",
        "totalLabel": "Total current assets",
        "verboseLabel": "Current assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that the entity (a) expects to realise or intends to sell or consume in its normal operating cycle; (b) holds primarily for the purpose of trading; (c) expects to realise within twelve months after the reporting period; or (d) classifies as cash or cash equivalents (as defined in IAS 7) unless the asset is restricted from being exchanged or used to settle a liability for at least twelve months after the reporting period. [Refer: Assets]"
       }
      }
     },
     "auth_ref": [
      "r144",
      "r452",
      "r505"
     ]
    },
    "ifrs-full_CurrentAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentAssetsAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current assets [abstract]",
        "verboseLabel": "Current assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentBorrowingsAndCurrentPortionOfNoncurrentBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentBorrowingsAndCurrentPortionOfNoncurrentBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current borrowings and current portion of non-current borrowings",
        "verboseLabel": "Loans and borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current borrowings and current portion of non-current borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ifrs-full_CurrentCrudeOil": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentCrudeOil",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesDetails": {
       "parentTag": "ifrs-full_Inventories",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current crude oil",
        "verboseLabel": "Crude oil"
       }
      },
      "en": {
       "role": {
        "documentation": "A classification of current inventory representing the amount of unrefined, unprocessed oil. [Refer: Inventories]"
       }
      }
     },
     "auth_ref": [
      "r689"
     ]
    },
    "ifrs-full_CurrentFinancialAssetsAtFairValueThroughProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentFinancialAssetsAtFairValueThroughProfitOrLoss",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current financial assets at fair value through profit or loss",
        "terseLabel": "Other financial assets measured at fair value through profit"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current financial assets measured at fair value through profit or loss. [Refer: Financial assets at fair value through profit or loss]"
       }
      }
     },
     "auth_ref": [
      "r236",
      "r378"
     ]
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Fiscal Year End Date",
        "documentation": "End date of current fiscal year in the format --MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "ec_CurrentIncomeTaxAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentIncomeTaxAssetsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for income tax.",
        "label": "Income tax [member]",
        "verboseLabel": "Income tax"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CurrentIncomeTaxLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentIncomeTaxLiabilitiesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for income tax payable.",
        "label": "Income tax payable [Member]",
        "terseLabel": "Income tax payable"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentInvestments",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails": {
       "parentTag": "ifrs-full_OtherCurrentNonfinancialAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current investments",
        "verboseLabel": "Partners in joint operations"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current investments."
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ifrs-full_CurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_Liabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current liabilities",
        "totalLabel": "Total current liabilities",
        "verboseLabel": "Current liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities that: (a) the entity expects to settle in its normal operating cycle; (b) the entity holds primarily for the purpose of trading; (c) are due to be settled within twelve months after the reporting period; or (d) the entity does not have the right at the end of the reporting period to defer settlement for at least twelve months after the reporting period."
       }
      }
     },
     "auth_ref": [
      "r146",
      "r453",
      "r505"
     ]
    },
    "ifrs-full_CurrentLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentLiabilitiesAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current liabilities [abstract]",
        "verboseLabel": "Current liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CurrentLoansPayableRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentLoansPayableRelatedPartyTransactions",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amounts of loans payable, resulting from related party transactions, classified as current.",
        "label": "Current Loans Payable, Related Party Transactions",
        "terseLabel": "Loans and borrowings, Current"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CurrentPayablesForInsuranceAndReinsurance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentPayablesForInsuranceAndReinsurance",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentPayables",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of current payables for insurance and reinsurance.",
        "label": "Current Payables For Insurance And Reinsurance",
        "terseLabel": "Insurance and reinsurance"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentPetroleumAndPetrochemicalProducts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentPetroleumAndPetrochemicalProducts",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesDetails": {
       "parentTag": "ifrs-full_Inventories",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current petroleum and petrochemical products",
        "verboseLabel": "Fuels and petrochemicals"
       }
      },
      "en": {
       "role": {
        "documentation": "A classification of current inventory representing the amount of products derived from crude oil and natural gas. [Refer: Current crude oil; Current natural gas]"
       }
      }
     },
     "auth_ref": [
      "r689"
     ]
    },
    "ifrs-full_CurrentPrepaidExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentPrepaidExpenses",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails": {
       "parentTag": "ifrs-full_OtherCurrentNonfinancialAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current prepaid expenses",
        "verboseLabel": "Prepaid expenses"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as a current asset for expenditures made prior to the period when the economic benefit will be realised."
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ifrs-full_CurrentProvisionsForEmployeeBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentProvisionsForEmployeeBenefits",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current provisions for employee benefits",
        "terseLabel": "Current",
        "verboseLabel": "Provisions for employee benefits"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current provisions for employee benefits. [Refer: Provisions for employee benefits]"
       }
      }
     },
     "auth_ref": [
      "r419",
      "r456"
     ]
    },
    "ifrs-full_CurrentRawMaterialsAndCurrentProductionSupplies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentRawMaterialsAndCurrentProductionSupplies",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesDetails": {
       "parentTag": "ifrs-full_Inventories",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current raw materials and current production supplies",
        "verboseLabel": "Materials for goods production"
       }
      },
      "en": {
       "role": {
        "documentation": "A classification of current inventory representing the amount of current raw materials and current production supplies. [Refer: Current production supplies; Current raw materials]"
       }
      }
     },
     "auth_ref": [
      "r689"
     ]
    },
    "ec_CurrentReceivableFromIndustrialServices": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentReceivableFromIndustrialServices",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentReceivables",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of current receivables from industrial services.",
        "label": "Current Receivable from Industrial Services",
        "terseLabel": "Industrial services"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CurrentReceivablesDueFromDomesticCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentReceivablesDueFromDomesticCustomers",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentReceivables",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of current receivables due from foreign customers.",
        "label": "Current receivables due from domestic customers",
        "verboseLabel": "Domestic"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CurrentReceivablesDueFromForeignCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentReceivablesDueFromForeignCustomers",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentReceivables",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of current receivables due from foreign customers.",
        "label": "Current receivables due from foreign customers",
        "verboseLabel": "Foreign"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CurrentReceivablesFromEmployeesLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentReceivablesFromEmployeesLoans",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentReceivables",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of current receivables from employees loans.",
        "label": "Current Receivables from Employees Loans",
        "terseLabel": "Accounts receivable from employees"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentServiceCostNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentServiceCostNetDefinedBenefitLiabilityAsset",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current service cost, net defined benefit liability (asset)",
        "verboseLabel": "Current service cost"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in the net defined benefit liability (asset) resulting from employee service in the current period. [Refer: Net defined benefit liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r27",
      "r324"
     ]
    },
    "ec_CurrentServiceCostRecognizedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentServiceCostRecognizedInProfitOrLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_BenefitsPlanCostsRecognizedInProfitOrLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Current service costs of the benefit plans recognized in profit or loss.",
        "label": "Current service cost recognized in profit or loss",
        "verboseLabel": "Current service cost"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CurrentTaxAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentTaxAssetsAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Definition not available.",
        "label": "Current tax assets [Abstract]",
        "terseLabel": "Tax assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentTaxAssetsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentTaxAssetsCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current tax assets, current",
        "terseLabel": "Current tax assets",
        "verboseLabel": "Current tax assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The current amount of current tax assets. [Refer: Current tax assets]"
       }
      }
     },
     "auth_ref": [
      "r444"
     ]
    },
    "ifrs-full_CurrentTaxAssetsNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentTaxAssetsNoncurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current tax assets, non-current",
        "terseLabel": "Non-current tax assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The non-current amount of current tax assets. [Refer: Current tax assets]"
       }
      }
     },
     "auth_ref": [
      "r444"
     ]
    },
    "ec_CurrentTaxAssetsTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentTaxAssetsTypeAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Tax Assets Type [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CurrentTaxAssetsTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentTaxAssetsTypeDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Tax Assets Type [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentTaxExpenseIncome",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current tax expense (income)",
        "terseLabel": "Current"
       }
      }
     },
     "auth_ref": [
      "r484",
      "r547"
     ]
    },
    "ifrs-full_CurrentTaxExpenseIncomeAndAdjustmentsForCurrentTaxOfPriorPeriods": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentTaxExpenseIncomeAndAdjustmentsForCurrentTaxOfPriorPeriods",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxExpenseDetails": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current tax expense (income) and adjustments for current tax of prior periods",
        "verboseLabel": "Current income tax"
       }
      }
     },
     "auth_ref": [
      "r678"
     ]
    },
    "ifrs-full_CurrentTaxExpenseIncomeRelatedToPillarTwoIncomeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentTaxExpenseIncomeRelatedToPillarTwoIncomeTaxes",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current tax expense (income), related to Pillar Two income taxes",
        "terseLabel": "Pillar Two income taxes"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current tax expense (income) related to Pillar Two income taxes."
       }
      }
     },
     "auth_ref": [
      "r9",
      "r311"
     ]
    },
    "ec_CurrentTaxLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentTaxLiabilitiesAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Definition not available.",
        "label": "Current tax liabilities [Abstract]",
        "terseLabel": "Tax liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentTaxLiabilitiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentTaxLiabilitiesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current tax liabilities, current",
        "verboseLabel": "Current tax liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The current amount of current tax liabilities. [Refer: Current tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r444"
     ]
    },
    "ifrs-full_CurrentTaxLiabilitiesNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentTaxLiabilitiesNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current tax liabilities, non-current",
        "terseLabel": "Non-current tax liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The non-current amount of current tax liabilities. [Refer: Current tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r444"
     ]
    },
    "ec_CurrentTaxLiabilitiesTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentTaxLiabilitiesTypeAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Tax Liabilities Type [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CurrentTaxLiabilitiesTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentTaxLiabilitiesTypeDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Tax Liabilities Type [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CurrentTradeAndOtherLoanReceivablesRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentTradeAndOtherLoanReceivablesRelatedPartyTransactions",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amounts of trade and other loans receivable, resulting from related party transactions, classified as current.",
        "label": "Current Trade And Other Loan Receivables, Related Party Transactions",
        "terseLabel": "Trade and other receivables - Loans, Current"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CurrentTradeAndOtherPayablesRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentTradeAndOtherPayablesRelatedPartyTransactions",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amounts of trade and other accounts payable, resulting from related party transactions, classified as current.",
        "label": "Current Trade And Other Payables, Related Party Transactions",
        "terseLabel": "Trade and other payables, Current"
       }
      }
     },
     "auth_ref": []
    },
    "ec_CurrentTradeAndOtherReceivablesRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "CurrentTradeAndOtherReceivablesRelatedPartyTransactions",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amounts of trade and other receivables, resulting from related party transactions, classified as current.",
        "label": "Current Trade And Other Receivables, Related Party Transactions",
        "terseLabel": "Trade and other receivables, Current"
       }
      }
     },
     "auth_ref": []
    },
    "cyd_CybersecurityRiskBoardCommitteeOrSubcommitteeResponsibleForOversightTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskBoardCommitteeOrSubcommitteeResponsibleForOversightTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Board Committee or Subcommittee Responsible for Oversight [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r578",
      "r667"
     ]
    },
    "cyd_CybersecurityRiskBoardOfDirectorsOversightTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskBoardOfDirectorsOversightTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Board of Directors Oversight [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r578",
      "r667"
     ]
    },
    "cyd_CybersecurityRiskManagementExpertiseOfManagementResponsibleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementExpertiseOfManagementResponsibleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Expertise of Management Responsible [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r580",
      "r669"
     ]
    },
    "cyd_CybersecurityRiskManagementPositionsOrCommitteesResponsibleFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementPositionsOrCommitteesResponsibleFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Positions or Committees Responsible [Flag]"
       }
      }
     },
     "auth_ref": [
      "r580",
      "r669"
     ]
    },
    "cyd_CybersecurityRiskManagementPositionsOrCommitteesResponsibleReportToBoardFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementPositionsOrCommitteesResponsibleReportToBoardFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Positions or Committees Responsible Report to Board [Flag]"
       }
      }
     },
     "auth_ref": [
      "r582",
      "r671"
     ]
    },
    "cyd_CybersecurityRiskManagementPositionsOrCommitteesResponsibleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementPositionsOrCommitteesResponsibleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Positions or Committees Responsible [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r580",
      "r669"
     ]
    },
    "cyd_CybersecurityRiskManagementProcessesForAssessingIdentifyingAndManagingThreatsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementProcessesForAssessingIdentifyingAndManagingThreatsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Processes for Assessing, Identifying, and Managing Threats [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r573",
      "r662"
     ]
    },
    "cyd_CybersecurityRiskManagementProcessesIntegratedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementProcessesIntegratedFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Processes Integrated [Flag]"
       }
      }
     },
     "auth_ref": [
      "r574",
      "r663"
     ]
    },
    "cyd_CybersecurityRiskManagementProcessesIntegratedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementProcessesIntegratedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Processes Integrated [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r574",
      "r663"
     ]
    },
    "cyd_CybersecurityRiskManagementStrategyAndGovernanceAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementStrategyAndGovernanceAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management, Strategy, and Governance [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r572",
      "r661"
     ]
    },
    "cyd_CybersecurityRiskManagementStrategyAndGovernanceLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementStrategyAndGovernanceLineItems",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management, Strategy, and Governance [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r572",
      "r661"
     ]
    },
    "cyd_CybersecurityRiskManagementStrategyAndGovernanceTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementStrategyAndGovernanceTable",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management, Strategy, and Governance [Table]"
       }
      }
     },
     "auth_ref": [
      "r572",
      "r661"
     ]
    },
    "cyd_CybersecurityRiskManagementThirdPartyEngagedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementThirdPartyEngagedFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Third Party Engaged [Flag]"
       }
      }
     },
     "auth_ref": [
      "r575",
      "r664"
     ]
    },
    "cyd_CybersecurityRiskMateriallyAffectedOrReasonablyLikelyToMateriallyAffectRegistrantFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskMateriallyAffectedOrReasonablyLikelyToMateriallyAffectRegistrantFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Materially Affected or Reasonably Likely to Materially Affect Registrant [Flag]"
       }
      }
     },
     "auth_ref": [
      "r577",
      "r666"
     ]
    },
    "cyd_CybersecurityRiskMateriallyAffectedOrReasonablyLikelyToMateriallyAffectRegistrantTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskMateriallyAffectedOrReasonablyLikelyToMateriallyAffectRegistrantTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Materially Affected or Reasonably Likely to Materially Affect Registrant [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r577",
      "r666"
     ]
    },
    "cyd_CybersecurityRiskProcessForInformingBoardCommitteeOrSubcommitteeResponsibleForOversightTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskProcessForInformingBoardCommitteeOrSubcommitteeResponsibleForOversightTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Process for Informing Board Committee or Subcommittee Responsible for Oversight [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r578",
      "r667"
     ]
    },
    "cyd_CybersecurityRiskProcessForInformingManagementOrCommitteesResponsibleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskProcessForInformingManagementOrCommitteesResponsibleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Process for Informing Management or Committees Responsible [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r581",
      "r670"
     ]
    },
    "cyd_CybersecurityRiskRoleOfManagementTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskRoleOfManagementTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Role of Management [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r579",
      "r668"
     ]
    },
    "cyd_CybersecurityRiskThirdPartyOversightAndIdentificationProcessesFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskThirdPartyOversightAndIdentificationProcessesFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Third Party Oversight and Identification Processes [Flag]"
       }
      }
     },
     "auth_ref": [
      "r576",
      "r665"
     ]
    },
    "ec_DalmatianContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DalmatianContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for Dalmatian  Contract .",
        "label": "Dalmatian Contract [Member]",
        "terseLabel": "Dalmatian"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DamagesCausedByExportActivitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DamagesCausedByExportActivitiesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsLitigationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for damages caused by export activities.",
        "label": "Damages Caused by Export Activities [Member]",
        "terseLabel": "Damages caused by export activities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DebtInstrumentsAmountContributedToFairValueOfPlanAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DebtInstrumentsAmountContributedToFairValueOfPlanAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Instruments Amount Contributed To Fair Value Of Plan Assets",
        "terseLabel": "Debt instruments, amount contributed to fair value of plan assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount instruments representing debt (rather than equity) contribute to the fair value of defined benefit plan assets. [Refer: Plan assets, at fair value; Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r491",
      "r548"
     ]
    },
    "ec_DecreaseDueToPaymentsConcessionAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DecreaseDueToPaymentsConcessionAssets",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of decrease in concession assets due to payments.",
        "label": "Decrease due to Payments, Concession Assets",
        "negatedLabel": "Payments for concession assets (cash)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DecreaseInFloatingInterestMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DecreaseInFloatingInterestMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementRiskManagementSensitivityInIncomeAndOtherComprehensiveIncomeToVariationsInInterestRateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decrease in floating interest (-100 basis points)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DecreaseThroughCollectionsFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DecreaseThroughCollectionsFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesFuelPriceStabilizationFunDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The decrease in financial assets from adjustments made during the period, possibly due to amounts collected that were previously considered doubtful.",
        "label": "Decrease Through Collections, Financial Assets",
        "terseLabel": "Collections"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DecreaseThroughLossOfControlOfSubsidiaryRightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DecreaseThroughLossOfControlOfSubsidiaryRightofuseAssets",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decrease through loss of control of subsidiary, right-of-use assets",
        "negatedLabel": "Effect of loss of control in subsidiaries"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease in right-of-use assets resulting from the loss of control of a subsidiary. [Refer: Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r683"
     ]
    },
    "ec_DecreaseThroughWriteOffsAndUsesFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DecreaseThroughWriteOffsAndUsesFinancialAssets",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAllowanceForDoubtfulAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The decrease in financial assets resulting from write-offs and uses.",
        "label": "Decrease Through Write Offs And Uses, Financial Assets",
        "terseLabel": "Accounts receivable write-off and uses"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DeferredIncomeTaxDueToChangeInTaxRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DeferredIncomeTaxDueToChangeInTaxRate",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxExpenseDetails": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of deferred income tax arising due to change in tax rates.",
        "label": "Deferred Income Tax Due To Change In Tax Rate",
        "terseLabel": "Deferred income tax - rate change"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DeferredIncomeTaxRelatingToComponentsOfOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DeferredIncomeTaxRelatingToComponentsOfOtherComprehensiveIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementCashFlowHedgeForFutureExportsMovementInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of deferred income tax relating to amounts recognised in other comprehensive income.",
        "label": "Deferred Income Tax Relating To Components Of Other Comprehensive Income",
        "verboseLabel": "Deferred tax"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DeferredTaxAssetNotRecognised": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DeferredTaxAssetNotRecognised",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesNotRecognizedInSubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the amount of deferred tax asset not recognised.",
        "label": "Deferred Tax Asset Not Recognised",
        "terseLabel": "Deferred tax assets not recognised"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DeferredTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DeferredTaxAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredIncomeTaxDetailss": {
       "parentTag": "ifrs-full_NetDeferredTaxAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredIncomeTaxDetailss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax assets",
        "terseLabel": "Deferred tax assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amounts of income taxes recoverable in future periods in respect of: (a) deductible temporary differences; (b) the carryforward of unused tax losses; and (c) the carryforward of unused tax credits. [Refer: Temporary differences [member]; Unused tax credits [member]; Unused tax losses [member]]"
       }
      }
     },
     "auth_ref": [
      "r6",
      "r308",
      "r445",
      "r449"
     ]
    },
    "ec_DeferredTaxAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DeferredTaxAssetsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for deferred tax assets.",
        "label": "Deferred tax assets [Member]",
        "terseLabel": "Deferred tax assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DeferredTaxAssetsOperatingLossCarryForwardsNotSubjectToExpiration": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DeferredTaxAssetsOperatingLossCarryForwardsNotSubjectToExpiration",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards that are not subject to expiration dates.",
        "label": "Deferred Tax Assets Operating Loss Carry Forwards Not Subject To Expiration",
        "terseLabel": "Deferred tax assets operating loss carry forwards not subject to expiration"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DeferredTaxAssetsOperatingLossCarryforwardsExpirationPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsExpirationPeriod",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expiration period of deferred tax asset attributable to deductible operating loss carryforwards.",
        "label": "Deferred Tax Assets, Operating Loss Carryforwards, Expiration Period",
        "terseLabel": "Deferred tax asset attributable to deductible operating loss carryforwards"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DeferredTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DeferredTaxExpenseIncome",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax expense (income)",
        "terseLabel": "Deferred"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of tax expense (income) relating to changes in deferred tax liabilities and deferred tax assets. [Refer: Deferred tax assets; Deferred tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r7",
      "r309"
     ]
    },
    "ec_DeferredTaxExpenseIncomeAndAdjustmentsForDeferredTaxOfPriorPeriods": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DeferredTaxExpenseIncomeAndAdjustmentsForDeferredTaxOfPriorPeriods",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxExpenseDetails": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of deferred tax expense (income) and adjustments for the deferred tax of prior periods.",
        "label": "Deferred Tax Expense Income And Adjustments For Deferred Tax Of Prior Periods",
        "verboseLabel": "Deferred income tax"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DeferredTaxExpenseIncomeRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DeferredTaxExpenseIncomeRecognisedInProfitOrLoss",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredIncomeTaxDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax expense (income) recognised in profit or loss",
        "verboseLabel": "Deferred tax recognized in profit or loss"
       }
      }
     },
     "auth_ref": [
      "r7",
      "r309"
     ]
    },
    "ifrs-full_DeferredTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DeferredTaxLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredIncomeTaxDetailss": {
       "parentTag": "ifrs-full_NetDeferredTaxAssets",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredIncomeTaxDetailss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Net",
        "negatedLabel": "Deferred tax liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amounts of income taxes payable in future periods in respect of taxable temporary differences. [Refer: Temporary differences [member]]"
       }
      }
     },
     "auth_ref": [
      "r6",
      "r308",
      "r445",
      "r449"
     ]
    },
    "ec_DeferredTaxLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DeferredTaxLiabilitiesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for deferred tax liabilities.",
        "label": "Deferred tax liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DeferredTaxLiabilitiesRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DeferredTaxLiabilitiesRecognisedAsOfAcquisitionDate",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "ec_LiabilitiesRecognisedAsOfAcquisitionDate",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax liabilities recognised as of acquisition date",
        "terseLabel": "Deferred tax liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for deferred tax liabilities assumed in a business combination. [Refer: Deferred tax liabilities; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r708"
     ]
    },
    "ifrs-full_DeferredTaxLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DeferredTaxLiabilityAsset",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredIncomeTaxDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax liability (asset)",
        "periodEndLabel": "Closing balance",
        "periodStartLabel": "Opening balance",
        "terseLabel": "Deferred tax assets (liabilities)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of deferred tax liabilities or assets. [Refer: Deferred tax liabilities; Deferred tax assets]"
       }
      }
     },
     "auth_ref": [
      "r6",
      "r308"
     ]
    },
    "ifrs-full_DefinedBenefitPlansAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DefinedBenefitPlansAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMaturityOfBenefitObligationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined benefit plans [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r322"
     ]
    },
    "ifrs-full_DefinedBenefitPlansDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DefinedBenefitPlansDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMaturityOfBenefitObligationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined benefit plans [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for post-employment benefit plans other than defined contribution plans. Defined contribution plans are post-employment benefit plans under which an entity pays fixed contributions into a separate entity (a fund) and will have no legal or constructive obligation to pay further contributions if the fund does not hold sufficient assets to pay all employee benefits relating to employee service in the current and prior periods. It also represents the standard value for the 'Defined benefit plans' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r322"
     ]
    },
    "ec_DelawareBasinContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DelawareBasinContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for Delaware Basin Contract.",
        "label": "Delaware Basin Contract [Member]",
        "terseLabel": "Delaware Basin"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DepletionExpenseIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DepletionExpenseIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of depletion expense of intangible assets other than goodwill.",
        "label": "Depletion expense, intangible assets other than goodwill",
        "verboseLabel": "Depletion expense"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DeprecatedSharebasedPaymentArrangementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DeprecatedSharebasedPaymentArrangementsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deprecated Share based Payment Arrangements [Member]",
        "terseLabel": "Share-based payment arrangements"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DepreciationAndAmortisationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DepreciationAndAmortisationExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation and amortisation expense",
        "verboseLabel": "Depreciation and amortization"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of depreciation and amortisation expense. Depreciation and amortisation are the systematic allocations of depreciable amounts of assets over their useful lives."
       }
      }
     },
     "auth_ref": [
      "r152",
      "r246",
      "r254",
      "r423",
      "r483",
      "r556"
     ]
    },
    "ec_DepreciationDepletionAndAmortizationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DepreciationDepletionAndAmortizationExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of depreciation, depletion and amortisation expense. Depreciation, depletion and amortisation are the systematic allocations of depreciable amounts of assets over their useful lives.",
        "label": "Depreciation, Depletion And Amortization Expense",
        "verboseLabel": "Depreciation, depletion, and amortization"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DepreciationDepletionAndAmortizationRelatedToAssetRetirementObligations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DepreciationDepletionAndAmortizationRelatedToAssetRetirementObligations",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of depreciation, depletion and amortization related to asset retirement obligations is recognized during the reporting period.",
        "label": "Depreciation, depletion and amortization related to asset retirement obligations"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DepreciationPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DepreciationPropertyPlantAndEquipment",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation, property, plant and equipment",
        "negatedLabel": "Depreciation expense"
       }
      }
     },
     "auth_ref": [
      "r18",
      "r22",
      "r318"
     ]
    },
    "ifrs-full_DepreciationRightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DepreciationRightofuseAssets",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation, right-of-use assets",
        "negatedLabel": "Depreciation of the year"
       }
      }
     },
     "auth_ref": [
      "r171",
      "r271"
     ]
    },
    "ifrs-full_DerivativesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DerivativesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative financial instruments"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for financial instruments or other contracts within the scope of IFRS 9 with all three of the following characteristics: (a) Their value changes in response to the change in a specified interest rate, financial instrument price, commodity price, foreign exchange rate, index of prices or rates, credit rating or credit index, or other variable, provided in the case of a non-financial variable that the variable is not specific to a party to the contract (sometimes called the \u2018underlying\u2019); (b) They require no initial net investment or an initial net investment that is smaller than would be required for other types of contracts that would be expected to have a similar response to changes in market factors; (c) They are settled at a future date. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r507",
      "r509",
      "r525",
      "r538"
     ]
    },
    "ec_DerivexS.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DerivexS.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Derivex S.A.",
        "label": "Derivex S.A. [Member]",
        "terseLabel": "Derivex S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfAccountingPolicyForBorrowingCostsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForBorrowingCostsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for borrowing costs [text block]",
        "verboseLabel": "Capitalization of borrowing costs"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for interest and other costs that the entity incurs in connection with the borrowing of funds."
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForBusinessCombinationsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForBusinessCombinationsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for business combinations [text block]",
        "terseLabel": "Business combinations"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for business combinations. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForCashFlowsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForCashFlowsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for cash flows [text block]",
        "verboseLabel": "Cash flow hedge"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for cash flows."
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForDeferredIncomeTaxExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForDeferredIncomeTaxExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for deferred income tax [text block]",
        "verboseLabel": "Deferred income tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for deferred income tax. [Refer: Deferred tax expense (income)]"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForDerivativeFinancialInstrumentsAndHedgingExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForDerivativeFinancialInstrumentsAndHedgingExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for derivative financial instruments and hedging [text block]",
        "verboseLabel": "Derivative financial instruments"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for derivative financial instruments and hedging. [Refer: Classes of financial instruments [domain]; Derivatives [member]]"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForEmployeeBenefitsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForEmployeeBenefitsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for employee benefits [text block]",
        "verboseLabel": "Employee benefits"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for employee benefits. Employee benefits are all forms of consideration given by an entity in exchange for services rendered by employees or for the termination of employment."
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForExpensesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForExpensesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for expenses [text block]",
        "verboseLabel": "Costs and expenses"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for expenses."
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForExplorationAndEvaluationExpenditures": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForExplorationAndEvaluationExpenditures",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for exploration and evaluation expenditures [text block]",
        "verboseLabel": "Natural and environmental resources"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's accounting policy for exploration and evaluation assets. [Refer: Exploration and evaluation assets [member]]"
       }
      }
     },
     "auth_ref": [
      "r201"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForFairValueMeasurementExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForFairValueMeasurementExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for fair value measurement [text block]",
        "terseLabel": "Fair value hedge"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for fair value measurement. [Refer: At fair value [member]]"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForFinanceIncomeAndCostsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForFinanceIncomeAndCostsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for finance income and costs [text block]",
        "verboseLabel": "Finance income (expenses)"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForFinancialAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForFinancialAssetsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for financial assets [text block]",
        "verboseLabel": "Financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for financial assets. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for financial instruments [text block]",
        "verboseLabel": "Financial instruments"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for financial instruments. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForFinancialLiabilitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForFinancialLiabilitiesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for financial liabilities [text block]",
        "verboseLabel": "Financial liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for financial liabilities. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForGoodwillExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForGoodwillExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for goodwill [text block]",
        "verboseLabel": "Goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for goodwill. [Refer: Goodwill]"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ec_DescriptionOfAccountingPolicyForHedgeOfNetInvestmentsInForeignOperation": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DescriptionOfAccountingPolicyForHedgeOfNetInvestmentsInForeignOperation",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The description of the entity's accounting policy for hedge of a net investment in a foreign operation.",
        "label": "Description of accounting policy for hedge of net investments in foreign operation [text block]",
        "verboseLabel": "Hedge of net investment in a foreign operation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfAccountingPolicyForHedgingExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForHedgingExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for hedging [text block]",
        "verboseLabel": "Hedging operations"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for hedging."
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForImpairmentOfAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForImpairmentOfAssetsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for impairment of assets [text block]",
        "verboseLabel": "Impairment of long-term non-monetary assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for the impairment of assets."
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ec_DescriptionOfAccountingPolicyForIncomeTaxAndOtherTaxes": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DescriptionOfAccountingPolicyForIncomeTaxAndOtherTaxes",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The description of the entity's accounting policy for income tax and other taxes.",
        "label": "Description of accounting policy for income tax and other taxes [text block]",
        "verboseLabel": "Income tax and other taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfAccountingPolicyForIncomeTaxExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForIncomeTaxExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for income tax [text block]",
        "verboseLabel": "Current income tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for income tax."
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for intangible assets other than goodwill [text block]",
        "verboseLabel": "Intangible assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for intangible assets other than goodwill. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForInvestmentInAssociates": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForInvestmentInAssociates",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for investment in associates [text block]",
        "verboseLabel": "Investments in associates"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for investments in associates. [Refer: Total for all associates [member]]"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForInvestmentsInJointVentures": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForInvestmentsInJointVentures",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for investments in joint ventures [text block]",
        "verboseLabel": "Joint ventures"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for investments in joint ventures. [Refer: Total for all joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForLeasesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForLeasesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for leases [text block]",
        "verboseLabel": "Leases"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for leases. A lease is an agreement whereby the lessor conveys to the lessee in return for a payment or series of payments the right to use an asset for an agreed period of time."
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForMeasuringInventories": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForMeasuringInventories",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for measuring inventories [text block]",
        "verboseLabel": "Inventories"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's accounting policy for measuring inventories. [Refer: Inventories]"
       }
      }
     },
     "auth_ref": [
      "r41",
      "r295"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForNoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForNoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for non-current assets or disposal groups classified as held for sale [text block]",
        "verboseLabel": "Non-current assets held for sale"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for non-current assets or disposal groups classified as held for sale. [Refer: Non-current assets or disposal groups classified as held for sale]"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for property, plant and equipment [text block]",
        "verboseLabel": "Property, plant, and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForProvisionsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForProvisionsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for provisions [text block]",
        "verboseLabel": "Provisions and contingent liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for provisions. [Refer: Provisions]"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForRecognitionOfRevenue": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForRecognitionOfRevenue",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for recognition of revenue [text block]",
        "verboseLabel": "Revenue from contracts with customers"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ec_DescriptionOfAccountingPolicyForRoyaltiesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DescriptionOfAccountingPolicyForRoyaltiesPolicyTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for royalties.",
        "label": "Description Of Accounting Policy For Royalties [Policy Text Block]",
        "terseLabel": "Royalties"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfAccountingPolicyForSegmentReportingExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForSegmentReportingExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for segment reporting [text block]",
        "verboseLabel": "Business segment information"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for segment reporting."
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForTaxesOtherThanIncomeTaxExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForTaxesOtherThanIncomeTaxExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for taxes other than income tax [text block]",
        "verboseLabel": "Other taxes"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForTransactionsWithRelatedPartiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForTransactionsWithRelatedPartiesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for transactions with related parties [text block]",
        "verboseLabel": "Related parties"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for transactions with related parties. [Refer: Total for all related parties [member]]"
       }
      }
     },
     "auth_ref": [
      "r718"
     ]
    },
    "ec_DescriptionOfAccountingPolicyForjointOperations": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DescriptionOfAccountingPolicyForjointOperations",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The description of the entity's accounting policy for joint operations.",
        "label": "Description of accounting policy for joint operations [text block]",
        "verboseLabel": "Joint operations"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfAccountingPolicyToDetermineComponentsOfCashAndCashEquivalents": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyToDetermineComponentsOfCashAndCashEquivalents",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for determining components of cash and cash equivalents [text block]",
        "verboseLabel": "Cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's accounting policy used to determine the components of cash and cash equivalents. [Refer: Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r124",
      "r300"
     ]
    },
    "ec_DescriptionOfAuditBenefitTerms": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DescriptionOfAuditBenefitTerms",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Description of audit benefit terms.",
        "label": "Description Of Audit Benefit Terms",
        "terseLabel": "Description of audit benefit terms"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfDiscountRatesAppliedToCashFlowProjections": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfDiscountRatesAppliedToCashFlowProjections",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Discount rate applied to cash flow projections",
        "terseLabel": "Discount rates used in the estimate of the obligation"
       }
      },
      "en": {
       "role": {
        "documentation": "The discount rate applied to cash flow projections for a cash-generating unit (group of units). [Refer: Total for all cash-generating units [member]]"
       }
      }
     },
     "auth_ref": [
      "r80",
      "r82",
      "r343",
      "r345"
     ]
    },
    "ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description Of Discount Rates Used In Current Estimate Of Value In Use",
        "terseLabel": "Discount rate used in current estimate of value in use"
       }
      },
      "en": {
       "role": {
        "documentation": "The discount rate used in the current estimate of the present value of the future cash flows expected to be derived from an asset or cash-generating unit."
       }
      }
     },
     "auth_ref": [
      "r77"
     ]
    },
    "ifrs-full_DescriptionOfExpectedImpactOfInitialApplicationOfNewStandardsOrInterpretations": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfExpectedImpactOfInitialApplicationOfNewStandardsOrInterpretations",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNewStandardsAndRegulatoryChanges"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of expected impact of initial application of new standards or interpretations [text block]",
        "verboseLabel": "New standards and regulatory changes"
       }
      }
     },
     "auth_ref": [
      "r126",
      "r302"
     ]
    },
    "ifrs-full_DescriptionOfExpectedImpactOfInitialApplicationOfNewStandardsOrInterpretationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfExpectedImpactOfInitialApplicationOfNewStandardsOrInterpretationsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "New standards and regulatory changes"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfFunctionalCurrency": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfFunctionalCurrency",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of functional currency",
        "verboseLabel": "Functional currency"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the currency of the primary economic environment in which the entity operates."
       }
      }
     },
     "auth_ref": [
      "r46",
      "r47",
      "r332"
     ]
    },
    "ifrs-full_DescriptionOfManagingLiquidityRisk": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfManagingLiquidityRisk",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of how entity manages liquidity risk [text block]",
        "verboseLabel": "Schedule of how entity manages liquidity risk"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of how the entity manages its liquidity risk. [Refer: Liquidity risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r230",
      "r402"
     ]
    },
    "ec_DescriptionOfNatureOfActivityOfAssociate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DescriptionOfNatureOfActivityOfAssociate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The description of nature of activity of associate.",
        "label": "Description of nature of activity of associate",
        "verboseLabel": "Activity, associate"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DescriptionOfNatureOfActivityOfJointVenture": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DescriptionOfNatureOfActivityOfJointVenture",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The description of nature of activity of joint venture.",
        "label": "Description of nature of activity of joint venture",
        "verboseLabel": "Activity, joint venture"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DescriptionOfNatureOfActivityOfSubsidiary": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DescriptionOfNatureOfActivityOfSubsidiary",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The description of nature of activity of subsidiary.",
        "label": "Description of nature of activity of subsidiary",
        "verboseLabel": "Activity"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DescriptionOfTaxLossesCarryForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DescriptionOfTaxLossesCarryForward",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The description of information regarding tax losses carry forward.",
        "label": "Description of tax losses carry forward"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DesignationOfNewHedgeItems": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DesignationOfNewHedgeItems",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementNonDerivativeHedgingInstrumentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of new hedge items designated.",
        "label": "Designation of New Hedge Items",
        "terseLabel": "Designation of new hedge items"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DetailedInformationAboutImpairmentLossesReservalsOfAssetsExplorationAndProductionLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DetailedInformationAboutImpairmentLossesReservalsOfAssetsExplorationAndProductionLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsBreakdownOfOilfieldsImpairmentLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line item represent concept detailed information about impairment losses reservals of assets exploration and production.",
        "label": "Detailed Information About Impairment Losses Reservals Of Assets Exploration And Production [Line Items]",
        "terseLabel": "Impairment of non-current assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DetailedInformationAboutImpairmentLossesReservalsOfAssetsExplorationAndProductionTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DetailedInformationAboutImpairmentLossesReservalsOfAssetsExplorationAndProductionTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsBreakdownOfOilfieldsImpairmentLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule disclosing detailed information about impairment losses reservals of assets exploration and production.",
        "label": "Detailed Information About Impairment Losses Reservals Of Assets Exploration And Production [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DetailedInformationsAboutImpairmentLossesReversalsOfAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DetailedInformationsAboutImpairmentLossesReversalsOfAssetsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsCashGeneratingUnitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsExplorationAndProductionDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsInvestmentsInJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Detailed informations about impairment losses reversals of assets [Line Items]",
        "terseLabel": "Impairment of long-term assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DetailedInformationsAboutImpairmentLossesReversalsOfAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DetailedInformationsAboutImpairmentLossesReversalsOfAssetsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsCashGeneratingUnitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsExplorationAndProductionDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsInvestmentsInJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Detailed informations about impairment losses reversals of assets [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DieselMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DieselMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Diesel"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DilutedEarningsLossPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DilutedEarningsLossPerShare",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityEarningsPerShareDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Diluted earnings (loss) per share",
        "terseLabel": "Diluted earnings per share (Colombian pesos per share)",
        "verboseLabel": "Diluted ordinary shares earnings per share (Colombian pesos)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of profit (loss) attributable to ordinary equity holders of the parent entity (the numerator), divided by the weighted average number of ordinary shares outstanding during the period (the denominator), both adjusted for the effects of all dilutive potential ordinary shares. [Refer: Ordinary shares [member]; Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r68",
      "r69"
     ]
    },
    "ifrs-full_DilutiveEffectOfAllInstrumentsOnWeightedAverageNumberOfOrdinaryShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DilutiveEffectOfAllInstrumentsOnWeightedAverageNumberOfOrdinaryShares",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dilutive effect of all instruments on weighted average number of ordinary shares",
        "terseLabel": "Potentially dilutive financial instruments outstanding"
       }
      },
      "en": {
       "role": {
        "documentation": "The potential dilutive effect on the weighted average number of ordinary shares that relates to the assumed conversion of the entity\u2019s instruments. It represents the aggregate of the reconciliation amounts for all classes of instruments that reflect dilutive effect on weighted average number of ordinary shares."
       }
      }
     },
     "auth_ref": [
      "r70"
     ]
    },
    "ec_DisclosureDetailedInformationOfTradeAndOtherPayablesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureDetailedInformationOfTradeAndOtherPayablesTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The detailed information of trade and other payable.",
        "label": "Disclosure Detailed information of trade and other payables [Text Block]",
        "verboseLabel": "Schedule of trade and other payables"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfAccountingJudgementsAndEstimatesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfAccountingJudgementsAndEstimatesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureMaterialAccountingJudgmentsAndEstimates"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of accounting judgements and estimates [text block]",
        "verboseLabel": "Material accounting judgments and estimates"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of judgements that management has made in the process of applying the entity's accounting policies that have the most significant effect on amounts recognised in the financial statements along with information about the assumptions that the entity makes about the future, and other major sources of estimation uncertainty at the end of the reporting period, that have a significant risk of resulting in a material adjustment to the carrying amounts of assets and liabilities within the next year. [Refer: Carrying amount [member]]"
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ec_DisclosureOfAccountingPoliciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfAccountingPoliciesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting policies"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfAccountingPoliciesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfAccountingPoliciesLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of accounting policies [Line Items]",
        "verboseLabel": "Accounting policies"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfAccountingPoliciesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfAccountingPoliciesTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of accounting policies [Table]",
        "verboseLabel": "Disclosure of accounting policies [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfAccruedExpensesAndOtherLiabilitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfAccruedExpensesAndOtherLiabilitiesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisions"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of accrued expenses and other liabilities [text block]",
        "verboseLabel": "Accrued liabilities and provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of accrued expenses and other liabilities. [Refer: Accruals; Other liabilities]"
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ec_DisclosureOfAccruedLiabilitiesAndProvisionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfAccruedLiabilitiesAndProvisionsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued liabilities and provisions"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfAccruedLiabilitiesAndProvisionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfAccruedLiabilitiesAndProvisionsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsLitigationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of accrued liabilities and provisions [Line Items]",
        "terseLabel": "Accrued liabilities and provisions"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfAccruedLiabilitiesAndProvisionsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfAccruedLiabilitiesAndProvisionsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsLitigationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of accrued liabilities and provisions [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfAccruedLiabilitiesAndProvisionsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfAccruedLiabilitiesAndProvisionsTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about the changes in different categories of accrued liabilities and provisions.",
        "label": "Disclosure of accrued liabilities and provisions [Text Block]",
        "verboseLabel": "Schedule of accrued liabilities and provisions"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfAdjustedIncomeTaxRate": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfAdjustedIncomeTaxRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tabular disclosure of adjusted rate of income tax rate.",
        "label": "Disclosure Of Adjusted Income Tax Rate",
        "terseLabel": "Schedule of adjusted income tax rate"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfAllowanceForCreditLossesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfAllowanceForCreditLossesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of allowance for credit losses [text block]",
        "terseLabel": "Schedule of changes in the allowance for doubtful accounts"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the allowance relating to impairments of financial assets due to credit losses. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ifrs-full_DisclosureOfAnalysisOfOtherComprehensiveIncomeByItemExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfAnalysisOfOtherComprehensiveIncomeByItemExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of analysis of other comprehensive income by item [text block]",
        "terseLabel": "Schedule of composition of the other comprehensive results attributable to the shareholders"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure of the analysis of other comprehensive income by item."
       }
      }
     },
     "auth_ref": [
      "r428"
     ]
    },
    "ifrs-full_DisclosureOfAnalysisOfPresentValueOfDefinedBenefitObligationThatDistinguishesNatureCharacteristicsAndRisksExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfAnalysisOfPresentValueOfDefinedBenefitObligationThatDistinguishesNatureCharacteristicsAndRisksExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of analysis of present value of defined benefit obligation that distinguishes nature, characteristics and risks [text block]",
        "verboseLabel": "Schedule of analysis of present value of defined benefit obligation that distinguishes nature, characteristics and risks"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of an analysis of the present value of a defined benefit obligation that distinguishes the nature, characteristics and risks of the obligation. Such a disclosure could distinguish: (a) between amounts owing to active members, deferred members, and pensioners; (b) between vested benefits and accrued but not vested benefits; and (c) between conditional benefits, amounts attributable to future salary increases and other benefits. [Refer: Defined benefit obligation, at present value]"
       }
      }
     },
     "auth_ref": [
      "r488"
     ]
    },
    "ec_DisclosureOfBasisOfPresentationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfBasisOfPresentationAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Basis for preparation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfBorrowingsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfBorrowingsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowings"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of borrowings [text block]",
        "verboseLabel": "Loans and borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ifrs-full_DisclosureOfBusinessCombinationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfBusinessCombinationsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Business combination"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfBusinessCombinationsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfBusinessCombinationsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombination"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of business combinations [text block]",
        "terseLabel": "Business combination"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for business combinations."
       }
      }
     },
     "auth_ref": [
      "r198"
     ]
    },
    "ifrs-full_DisclosureOfBusinessCombinationsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfBusinessCombinationsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about business combination [line items]",
        "terseLabel": "Basis for presentation"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfBusinessCombinationsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfBusinessCombinationsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about business combination [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of business combinations."
       }
      }
     },
     "auth_ref": [
      "r194",
      "r375"
     ]
    },
    "ifrs-full_DisclosureOfCashAndCashEquivalentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfCashAndCashEquivalentsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalents"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of cash and cash equivalents [text block].",
        "verboseLabel": "Cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of cash and cash equivalents. [Refer: Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ec_DisclosureOfChangesInEquityLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfChangesInEquityLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityDividendsPaidDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityEcopetrolBusinessGroupsReservesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityMovementOfEquityReservesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "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.",
        "label": "Disclosure of changes in equity [Line Items]",
        "terseLabel": "Equity"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfChangesInEquityTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfChangesInEquityTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityDividendsPaidDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityEcopetrolBusinessGroupsReservesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityMovementOfEquityReservesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule disclosing information related to details of changes in equity.",
        "label": "Disclosure of changes in equity [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfClassesOfShareCapitalLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfClassesOfShareCapitalLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of classes of share capital [line items]",
        "terseLabel": "Document and Entity Information"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfClassesOfShareCapitalTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfClassesOfShareCapitalTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of classes of share capital [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to classes of share capital."
       }
      }
     },
     "auth_ref": [
      "r291",
      "r412",
      "r461"
     ]
    },
    "ec_DisclosureOfConditionsOfTheMostSignificantLoansAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfConditionsOfTheMostSignificantLoansAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of conditions of the most significant loans.",
        "label": "Exhibit 3 - Conditions of the most significant debt"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfConsolidatedSubsidiariesAssociatesAndJointVenturesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfConsolidatedSubsidiariesAssociatesAndJointVenturesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "No definition available.",
        "label": "Exhibit 1 - Consolidated subsidiaries, associates, and joint ventures"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfConsolidatedSubsidiariesAssociatesAndJointVenturesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfConsolidatedSubsidiariesAssociatesAndJointVenturesLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of consolidated subsidiaries, associates and joint ventures [Line Items]",
        "verboseLabel": "Exhibit 1 - Consolidated subsidiaries, associates, and joint ventures"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfConsolidatedSubsidiariesAssociatesAndJointVenturesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfConsolidatedSubsidiariesAssociatesAndJointVenturesTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of consolidated subsidiaries, associates and joint ventures [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfContingentLiabilitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfContingentLiabilitiesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of contingent liabilities [text block]",
        "verboseLabel": "Schedule of litigations"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of contingent liabilities. [Refer: Classes of contingent liabilities [domain]]"
       }
      }
     },
     "auth_ref": [
      "r92",
      "r354"
     ]
    },
    "ec_DisclosureOfCostOfSalesBeforeImpairmentOfNoncurrentAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfCostOfSalesBeforeImpairmentOfNoncurrentAssetsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cost of sales"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfCostOfSalesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfCostOfSalesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSales"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of cost of sales [text block]",
        "verboseLabel": "Cost of sales"
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ifrs-full_DisclosureOfCreditRiskExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfCreditRiskExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsTables",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of external credit grades [text block]",
        "verboseLabel": "Schedule of other financial assets measured at fair value through profit or loss"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of credit risk. [Refer: Credit risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r242",
      "r712"
     ]
    },
    "ifrs-full_DisclosureOfDeferredTaxesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDeferredTaxesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of deferred taxes [text block]",
        "terseLabel": "Schedule of deferred income tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of deferred taxes. [Refer: Deferred tax liabilities; Deferred tax assets]"
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ifrs-full_DisclosureOfDefinedBenefitPlansAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDefinedBenefitPlansAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Provisions for employees' benefits"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDefinedBenefitPlansLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDefinedBenefitPlansLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsCreditRatingsOfIssuersAndCounterpartiesInAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMaturityOfBenefitObligationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of defined benefit plans [line items]",
        "terseLabel": "Disclosure of defined benefit plans"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDefinedBenefitPlansTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDefinedBenefitPlansTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsCreditRatingsOfIssuersAndCounterpartiesInAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMaturityOfBenefitObligationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of defined benefit plans [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to defined benefit plans."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r322"
     ]
    },
    "ifrs-full_DisclosureOfDepreciationAndAmortisationExpenseExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDepreciationAndAmortisationExpenseExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of depreciation and amortisation expense [text block]",
        "terseLabel": "Schedule of depreciation and amortisation expense"
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ec_DisclosureOfDetailedInformationAboutAgingAnalysisOfAccountsReceivablePortfolioInArrearsButNotImpairedExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutAgingAnalysisOfAccountsReceivablePortfolioInArrearsButNotImpairedExplanatoryTableTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about the aging analysis of the accounts receivable portfolio in arrears, but not impaired.",
        "label": "Disclosure Of Detailed Information About Aging Analysis Of Accounts Receivable Portfolio In Arrears, But Not Impaired, Explanatory [Table Text Block]",
        "terseLabel": "Schedule of Analysis of age of financial assets that are past due but not impaired"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutBalanceAndBreakdownOfChangesInEquityReservesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutBalanceAndBreakdownOfChangesInEquityReservesTableTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tabular disclosure of detailed information about balance and breakdown of changes in equity reserves.",
        "label": "Disclosure of detailed information about balance and breakdown of changes in equity reserves [Table Text Block]",
        "terseLabel": "Schedule of balance of movement of the equity reserves"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutBorrowingsByInterestRateTypeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutBorrowingsByInterestRateTypeTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about borrowings by interest rate type.",
        "label": "Disclosure of detailed information about borrowings by interest rate type [Text Block]",
        "verboseLabel": "Schedule of Breakdown by type of interest rate and currency"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutBorrowingsByMaturityTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutBorrowingsByMaturityTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about borrowings by maturity.",
        "label": "Disclosure of detailed information about borrowings by maturity [Text Block]",
        "verboseLabel": "Schedule of maturity of loans and borrowings"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about borrowings [text block]",
        "verboseLabel": "Schedule of composition of loans and borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r710"
     ]
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutBorrowingsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsBreakdownByTypeOfInterestRateAndCurrencyDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about borrowings [line items]",
        "terseLabel": "Conditions of the most significant debt",
        "verboseLabel": "Loans and borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutBorrowingsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about borrowings [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of borrowings."
       }
      }
     },
     "auth_ref": [
      "r710"
     ]
    },
    "ec_DisclosureOfDetailedInformationAboutBreakDownOfOtherComprehensiveIncomeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutBreakDownOfOtherComprehensiveIncomeTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about breakdown of other comprehensive income.",
        "label": "Disclosure Of Detailed Information About Break down Of Other Comprehensive Income [Text Block]",
        "terseLabel": "Schedule of income tax recorded in other comprehensive income"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutBreakdownOfSalesRevenueTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutBreakdownOfSalesRevenueTableTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of detailed information about breakdown of sales revenue.",
        "label": "Disclosure of detailed information about breakdown of sales revenue [Table Text Block]",
        "terseLabel": "Schedule of detailed information of revenue from contracts with customers"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutBusinessCombinationsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutBusinessCombinationsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about business combination [text block]",
        "terseLabel": "Schedule of identifiable assets acquired and liabilities assumed"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about business combinations. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r199"
     ]
    },
    "ec_DisclosureOfDetailedInformationAboutCapitalizedCostsRelatingToOilAndGasProducingActivitiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutCapitalizedCostsRelatingToOilAndGasProducingActivitiesTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of aggregate capitalized costs relating to an enterprise's oil and gas producing activities and the aggregate related accumulated depreciation, depletion, amortization.",
        "label": "Disclosure of detailed information about capitalized costs relating to oil and gas producing activities [Text Block]",
        "verboseLabel": "Schedule of capitalized costs relating to oil and gas exploration and production activities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutCarryingValuesForFinancialAssetsAndLiabilitiesDenominatedInForeignCurrenciesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutCarryingValuesForFinancialAssetsAndLiabilitiesDenominatedInForeignCurrenciesTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The detailed information about the carrying amount of financial assets and liabilities denominated in foreign currencies.",
        "label": "Disclosure Of Detailed Information About The Carrying Values For Financial Assets And Liabilities Denominated In Foreign Currencies [Text Block]",
        "verboseLabel": "Schedule of book values of financial assets and liabilities denominated in foreign currency"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutCashAndCashEquivalents": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutCashAndCashEquivalents",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about Cash and cash equivalents.",
        "label": "Disclosure of detailed information about Cash and cash equivalents [text block]",
        "verboseLabel": "Schedule of Cash and cash equivalents"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutChangesInInvestmentsInSubsidiariesAssociatesAndJointVenturesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutChangesInInvestmentsInSubsidiariesAssociatesAndJointVenturesTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about changes in investments in subsidiaries, associates and joint ventures.",
        "label": "Disclosure of detailed information about changes in investments in subsidiaries, associates and joint ventures [Text Block]",
        "terseLabel": "Schedule of movement of investments in associates and joint ventures"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutClassificationByAgeFromCompletionDateOfSuspendedExploratoryWellsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutClassificationByAgeFromCompletionDateOfSuspendedExploratoryWellsTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about classification by age from completion date of the suspended exploratory wells.",
        "label": "Disclosure of detailed information about classification by age from completion date of the suspended exploratory wells [Text Block]",
        "verboseLabel": "Schedule of detailed information about classification by age from completion date of suspended exploratory wells"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutContingentAssetsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutContingentAssetsTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about contingent assets.",
        "label": "Disclosure of detailed information about contingent assets [Text Block]",
        "verboseLabel": "Schedule of contingent assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutCostOfSalesOfNonCurrentAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutCostOfSalesOfNonCurrentAssetsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about cost of sales of non current assets [Line Items]",
        "terseLabel": "Cost of variables and fixed"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutCostOfSalesOfNonCurrentAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutCostOfSalesOfNonCurrentAssetsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about cost of sales of non current assets [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutCostOfSalesOfNonCurrentAssetsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutCostOfSalesOfNonCurrentAssetsTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The detail of cost of sales of non current assets per function for the year.",
        "label": "Disclosure of detailed information about cost of sales of non current assets [Text Block]",
        "verboseLabel": "Schedule of cost of sales of non current assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutCostsIncurredInOilAndGasPropertyAcquisitionExplorationAndDevelopmentActivitiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutCostsIncurredInOilAndGasPropertyAcquisitionExplorationAndDevelopmentActivitiesTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about costs Incurred in oil and gas property acquisition, exploration, and development activities.",
        "label": "Disclosure of detailed information about costs Incurred in oil and gas property acquisition, exploration, and development activities [Text Block]",
        "verboseLabel": "Schedule of costs incurred in oil and gas exploration and developed activities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutCurrentTaxAssetsAndLiabilitiesTextblock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutCurrentTaxAssetsAndLiabilitiesTextblock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about current tax assets and liabilities.",
        "label": "Disclosure Of Detailed Information About Current Tax Assets And Liabilities TextBlock",
        "verboseLabel": "Schedule of current tax assets and tax liabilities and movements of deferred income tax"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutExpectedReclassificationOfExchangeDifferencesAccumulatedInOtherComprehensiveIncomeToProfitOrLossTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutExpectedReclassificationOfExchangeDifferencesAccumulatedInOtherComprehensiveIncomeToProfitOrLossTableTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about expected reclassification of exchange differences accumulated in other comprehensive income to profit or loss.",
        "label": "Disclosure of detailed information about expected reclassification of exchange differences accumulated in other comprehensive income to profit or loss [Table Text Block]",
        "verboseLabel": "Schedule of expected reclassification of exchange differences accumulated in other comprehensive income to profit or loss"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutFairValueHierarchyOfPlanAssetsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutFairValueHierarchyOfPlanAssetsTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about fair value hierarchy of plan assets.",
        "label": "Disclosure of detailed information about fair value hierarchy of plan assets [Text Block]",
        "verboseLabel": "Schedule of fair value hierarchy of plan assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutFinancialRiskManagementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutFinancialRiskManagementLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDenominatedInForeignCurrencyDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementHedgeOfNetInvestmentInForeignOperationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementMaturityOfFinancialLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementNonDerivativeHedgingInstrumentDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementRiskManagementSensitivityInIncomeAndOtherComprehensiveIncomeToVariationsInInterestRateDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementScheduleOfDetailedInformationAboutHedgingInstrumentsExplanatoryDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementSignificantConcentrationOfCreditRiskDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of detailed information about financial risk management",
        "label": "Disclosure of detailed information about financial risk management [Line Items]",
        "terseLabel": "Risk management"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutFinancialRiskManagementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutFinancialRiskManagementTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDenominatedInForeignCurrencyDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementHedgeOfNetInvestmentInForeignOperationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementMaturityOfFinancialLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementNonDerivativeHedgingInstrumentDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementRiskManagementSensitivityInIncomeAndOtherComprehensiveIncomeToVariationsInInterestRateDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementScheduleOfDetailedInformationAboutHedgingInstrumentsExplanatoryDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementSignificantConcentrationOfCreditRiskDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about financial risk management [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutGeneralAndAdministrationExpenseLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutGeneralAndAdministrationExpenseLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about general and administration expense [Line Items]",
        "terseLabel": "Administrative, operation and project expenses:"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutGeneralAndAdministrationExpenseTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutGeneralAndAdministrationExpenseTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about general and administration expense [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutHedgingInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutHedgingInstrumentsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about hedging instruments [text block]",
        "verboseLabel": "Schedule of non-derivative hedging instrument"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about hedging instruments. [Refer: Hedging instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r211",
      "r386",
      "r394"
     ]
    },
    "ec_DisclosureOfDetailedInformationAboutImpairmentLossesOfAssetsOfRefiningAndPetrochemicalsSegmentTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutImpairmentLossesOfAssetsOfRefiningAndPetrochemicalsSegmentTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about the impairment of assets of exploration and production segment.",
        "label": "Disclosure of detailed information about impairment losses of assets of refining and petrochemicals segment [Text Block]",
        "terseLabel": "Schedule of refining and petrochemical segment"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutImpairmentLossesOfAssetsOfRefiningAndPetrochemicalsSegmentTextBlockTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutImpairmentLossesOfAssetsOfRefiningAndPetrochemicalsSegmentTextBlockTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about the impairment of assets of exploration and production segment.",
        "label": "DisclosureOfDetailedInformationAboutImpairmentLossesOfAssetsOfRefiningAndPetrochemicalsSegmentTextBlock [Text Block]",
        "verboseLabel": "Schedule of breakdown of oilfields impairment losses or reversals"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutImpairmentOfNoncurrentAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutImpairmentOfNoncurrentAssetsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about impairment of non-current assets [Line Items]",
        "terseLabel": "Impairment of non-current assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutImpairmentOfNoncurrentAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutImpairmentOfNoncurrentAssetsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about impairment of non-current assets [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutImpairmentOfNoncurrentAssetsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutImpairmentOfNoncurrentAssetsTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about the impairment of Non-Current assets.",
        "label": "Disclosure Of Detailed Information About Impairment Of Noncurrent Assets [Text Block]",
        "verboseLabel": "Schedule of impairments or reversals"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutIncomeTaxExpensesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutIncomeTaxExpensesTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about income tax expenses.",
        "label": "Disclosure of detailed information about income tax Expenses [Text Block]",
        "verboseLabel": "Schedule of income tax expense"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutIncomeTaxLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutIncomeTaxLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesNotRecognizedInSubsidiariesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about income tax [Line Items]",
        "verboseLabel": "Taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutIncomeTaxTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutIncomeTaxTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesNotRecognizedInSubsidiariesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about income tax [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about intangible assets [text block]",
        "verboseLabel": "Schedule of intangibles and their amortizations"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about intangible assets. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r102",
      "r362"
     ]
    },
    "ec_DisclosureOfDetailedInformationAboutInventoriesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutInventoriesTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about inventories.",
        "label": "Disclosure of detailed information about inventories [Text Block]",
        "verboseLabel": "Schedule of inventories"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutLeverageRatioTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutLeverageRatioTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about leverage ratio.",
        "label": "Disclosure Of Detailed Information About Leverage Ratio [Text Block]",
        "terseLabel": "Schedule of leverage index over the periods reported"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutMaturityAnalysisOfOtherFinancialAssetsTextblock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutMaturityAnalysisOfOtherFinancialAssetsTextblock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about maturity analysis of other financial assets.",
        "label": "Disclosure Of Detailed Information About Maturity Analysis Of other Financial Assets TextBlock",
        "terseLabel": "Schedule of maturities of other financial assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutMovementOfDeferredIncomeTaxTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutMovementOfDeferredIncomeTaxTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about movement of deferred income tax.",
        "label": "Disclosure Of Detailed Information About Movement Of Deferred Income Tax [Text Block]",
        "terseLabel": "Schedule of movements of deferred income tax"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutMovementOfDefinedBenefitsPlansRecognizedInResultsAndOtherComprehensiveIncomeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutMovementOfDefinedBenefitsPlansRecognizedInResultsAndOtherComprehensiveIncomeTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about movement of defined benefits plans recognized in results and other comprehensive income.",
        "label": "Disclosure of detailed information about movement of defined benefits plans recognized in results and other comprehensive income [Text Block]",
        "verboseLabel": "Schedule of movement of defined benefits plans recognized in results and other comprehensive income"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutMovementOfEquityInvestmentTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutMovementOfEquityInvestmentTableTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about movement of equity investment of other financial assets.",
        "label": "Disclosure Of Detailed Information About Movement Of Equity Investment [Table Text Block]",
        "terseLabel": "Schedule of movement of equity investments in level 3"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutMovementOfOtherComprehensiveIncomeByItemExplanatoryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutMovementOfOtherComprehensiveIncomeByItemExplanatoryTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about movement of other comprehensive income by item.",
        "label": "Disclosure of detailed information about movement of other comprehensive income by item explanatory [Text Block]",
        "verboseLabel": "Schedule of movement in the other comprehensive income"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutNaturalAndEnvironmentalResourcesExplanatoryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutNaturalAndEnvironmentalResourcesExplanatoryTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about natural and environmental resources.",
        "label": "Disclosure of detailed Information about natural and environmental resources explanatory [Text Block]",
        "verboseLabel": "Schedule of detailed information about natural and environmental"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutOtherAssetsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutOtherAssetsTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about other assets.",
        "label": "Disclosure of detailed information about other assets [Text Block]",
        "verboseLabel": "Schedule of other assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutOtherFinancialAssetTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutOtherFinancialAssetTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about other financial assets.",
        "label": "Disclosure of detailed information about other financial asset [Text Block]",
        "verboseLabel": "Schedule of other financial assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutPrincipalSourcesOfChangeInStandardizedMeasureOfDiscountedFutureNetCashFlowsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutPrincipalSourcesOfChangeInStandardizedMeasureOfDiscountedFutureNetCashFlowsTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about principal sources of change in standardized measure of discounted future net cash flows.",
        "label": "Disclosure of detailed information about principal sources of change in standardized measure of discounted future net cash flows [Text Block]",
        "verboseLabel": "Schedule of principal sources of change in the standardized measure of discounted net cash flows"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutProvedDevelopedAndUndevelopedOilAndGasReserveQuantitiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutProvedDevelopedAndUndevelopedOilAndGasReserveQuantitiesTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about proved developed and undeveloped oil and gas reserve quantities.",
        "label": "Disclosure of detailed information about proved developed and undeveloped oil and gas reserve quantities [Text Block]",
        "verboseLabel": "Schedule of information relates to the net proven reserves owned by the Ecopetrol Business Group"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutProvisionBalancesForEmployeeBenefitsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutProvisionBalancesForEmployeeBenefitsTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about provision balances for employee benefits.",
        "label": "Disclosure of detailed information about provision balances for employee benefits [Text Block]",
        "verboseLabel": "Schedule of provision balances for employee benefits"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutProvisionForEmployeeBenefitsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutProvisionForEmployeeBenefitsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Detailed Information About Provision For Employee Benefits [Line Items]",
        "terseLabel": "Disclosure of detailed information about provision for employee benefits"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutProvisionForEmployeeBenefitsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutProvisionForEmployeeBenefitsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about provision for employee benefits [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutReconciliationOfExpectedIncomeTaxExpenseBenefitTextblock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutReconciliationOfExpectedIncomeTaxExpenseBenefitTextblock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about Reconciliation of the expected income tax expense -benefit.",
        "label": "Disclosure Of Detailed Information About Reconciliation Of Expected Income Tax Expense Benefit [TextBlock]",
        "terseLabel": "Schedule of reconciliation of the income tax expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutReconciliationOfInvestmentsInJointVenturesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutReconciliationOfInvestmentsInJointVenturesTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about reconciliation of investments in joint ventures.",
        "label": "Disclosure Of Detailed Information About Reconciliation Of Investments In Joint Ventures [Text Block]",
        "terseLabel": "Schedule of reconciliation of equity of the significant investments and carrying amount of investments"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about results of operations for oil and gas exploration and production activities.",
        "label": "Disclosure of detailed information about results of operations for oil and gas exploration and production activities [Text Block]",
        "verboseLabel": "Schedule of results of operations for oil and gas exploration and production activities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutSalesRevenueLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutSalesRevenueLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about sales revenue [Line Items]",
        "terseLabel": "Revenue from contracts with customers"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutSalesRevenueTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutSalesRevenueTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about sales revenue [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutScheduleOfStandardizedMeasureOfDiscountedFutureCashFlowsRelatingToProvedCrudeOilAndGasReservesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutScheduleOfStandardizedMeasureOfDiscountedFutureCashFlowsRelatingToProvedCrudeOilAndGasReservesTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about schedule of standardized measure of discounted future cash flows relating to prove crude oil and gas reserves.",
        "label": "Disclosure of detailed information about schedule of standardized measure of discounted future cash flows relating to proved crude oil and gas reserves [Text Block]",
        "verboseLabel": "Schedule of standardized measure of discounted future net cash flows relating to proved oil and gas quantities and changes therein"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutServiceConcessionArrangementsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutServiceConcessionArrangementsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about service concession arrangements [text block]",
        "terseLabel": "Service concession agreements"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about service concession arrangements. [Refer: Service concession arrangements [domain]]"
       }
      }
     },
     "auth_ref": [
      "r264"
     ]
    },
    "ec_DisclosureOfDetailedInformationAboutShareCapitalReservesAndOtherEquityInterestTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutShareCapitalReservesAndOtherEquityInterestTableTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tabular disclosure of detailed information about share capital, reserves and other equity interest.",
        "label": "Disclosure of detailed information about share capital, reserves and other equity interest [Table Text Block]",
        "terseLabel": "Schedule of composition of the ecopetrol business group's reserves"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutTradeAndOtherReceivables": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutTradeAndOtherReceivables",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about trade and other receivables.",
        "label": "Disclosure of detailed information about trade and other receivables [text block]",
        "verboseLabel": "Schedule of trade and other receivables, net"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationAboutUnrecordedContingentLiabilitiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationAboutUnrecordedContingentLiabilitiesTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about unrecorded contingent liabilities.",
        "label": "Disclosure of detailed information about unrecorded contingent liabilities [Text Block]",
        "verboseLabel": "Schedule of unrecorded contingent liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationDisclosureOfDetailedInformationAboutInvestmentPropertySegmentWiseTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationDisclosureOfDetailedInformationAboutInvestmentPropertySegmentWiseTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about investment property segment wise.",
        "label": "Disclosure Of Detailed Information Disclosure Of Detailed Information About Investment Property Segment Wise [Text Block]",
        "terseLabel": "Schedule of detailed information about investment property segment wise"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDetailedInformationOnGeneralAndAdministrationExpenseTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDetailedInformationOnGeneralAndAdministrationExpenseTableTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of detailed information on general and administration expense.",
        "label": "Disclosure of detailed information on general and administration expense [Table Text Block]",
        "terseLabel": "Schedule of administrative, operative, and project expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfDisaggregationOfRevenueFromContractsWithCustomersTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfDisaggregationOfRevenueFromContractsWithCustomersTableTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of disaggregation of revenue from contracts with customers.",
        "label": "Disclosure of disaggregation of revenue from contracts with customers [Table Text Block]",
        "terseLabel": "Schedule of sales by geographic areas"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDividendsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDividendsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of dividends [text block]",
        "terseLabel": "Schedule of dividends paid"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of dividends. Dividends are distributions of profits to holders of equity investments in proportion to their holdings of a particular class of capital."
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ifrs-full_DisclosureOfEarningsPerShareExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfEarningsPerShareExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of earnings per share [text block]",
        "verboseLabel": "Schedule of earnings per share"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for earnings per share."
       }
      }
     },
     "auth_ref": [
      "r71"
     ]
    },
    "ifrs-full_DisclosureOfEmployeeBenefitsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfEmployeeBenefitsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefits"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of employee benefits [text block]",
        "terseLabel": "Provisions for employees' benefits"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for employee benefits."
       }
      }
     },
     "auth_ref": [
      "r40"
     ]
    },
    "ifrs-full_DisclosureOfEntitysReportableSegmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfEntitysReportableSegmentsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of entity's operating segments [text block]",
        "verboseLabel": "Business segment information"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for operating segments."
       }
      }
     },
     "auth_ref": [
      "r260"
     ]
    },
    "ec_DisclosureOfEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfEquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfEventsAfterReportingPeriodExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfEventsAfterReportingPeriodExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEvents"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of events after reporting period [text block]",
        "terseLabel": "Subsequent and relevant events"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for events after the reporting period."
       }
      }
     },
     "auth_ref": [
      "r1"
     ]
    },
    "ifrs-full_DisclosureOfExplorationAndEvaluationAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfExplorationAndEvaluationAssetsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of exploration and evaluation assets [text block]",
        "verboseLabel": "Supplemental information on oil and gas producing activities (unaudited)"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for exploration and evaluation assets."
       }
      }
     },
     "auth_ref": [
      "r203"
     ]
    },
    "ifrs-full_DisclosureOfFairValueMeasurementOfAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFairValueMeasurementOfAssetsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of fair value measurement of assets [text block]",
        "verboseLabel": "Schedule of other financial assets recognized at fair value"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the fair value measurement of assets."
       }
      }
     },
     "auth_ref": [
      "r164",
      "r408"
     ]
    },
    "ifrs-full_DisclosureOfFairValueMeasurementOfLiabilitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFairValueMeasurementOfLiabilitiesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of fair value measurement of liabilities [text block]",
        "terseLabel": "Schedule of fair value of loans"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the fair value measurement of liabilities."
       }
      }
     },
     "auth_ref": [
      "r164",
      "r408"
     ]
    },
    "ifrs-full_DisclosureOfFairValueOfPlanAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFairValueOfPlanAssetsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of fair value of plan assets [text block]",
        "verboseLabel": "Schedule of fair value of plan assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the fair value of defined benefit plan assets. [Refer: Plan assets [member]; Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r34",
      "r329"
     ]
    },
    "ifrs-full_DisclosureOfFinanceIncomeExpenseExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinanceIncomeExpenseExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResult"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of finance income (cost) [text block]",
        "verboseLabel": "Financial result"
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ec_DisclosureOfFinanceIncomeExpenseExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfFinanceIncomeExpenseExplanatoryTableTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure Of Finance Income Expense Explanatory.",
        "label": "Disclosure Of Finance Income Expense Explanatory [Table Text Block]",
        "verboseLabel": "Schedule of financial result"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Other financial assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial assets [text block]",
        "verboseLabel": "Other financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of financial assets. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r235",
      "r377"
     ]
    },
    "ifrs-full_DisclosureOfFinancialAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesFuelPriceStabilizationFunDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial assets [line items]",
        "terseLabel": "Trade and other receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesFuelPriceStabilizationFunDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to financial assets."
       }
      }
     },
     "auth_ref": [
      "r235",
      "r377"
     ]
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsByTypeOfInterestRateExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial instruments by type of interest rate [text block]",
        "verboseLabel": "Schedule of financial instruments by type of interest rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of financial instruments by type of interest rate. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r709"
     ]
    },
    "ec_DisclosureOfFinancialResultNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfFinancialResultNetAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial result"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfFinancialRiskManagementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfFinancialRiskManagementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk management"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialRiskManagementExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialRiskManagementExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial risk management [text block]",
        "verboseLabel": "Risk management"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the entity's financial risk management practices and policies."
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ifrs-full_DisclosureOfGeneralAndAdministrativeExpenseExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfGeneralAndAdministrativeExpenseExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpenses"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of general and administrative expense [text block]",
        "terseLabel": "Administrative, operative, and project expenses"
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ec_DisclosureOfGoodwillAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfGoodwillAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfGoodwillExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfGoodwillExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureGoodwill"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of goodwill [text block]",
        "verboseLabel": "Goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of goodwill. [Refer: Goodwill]"
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ec_DisclosureOfGoodwillLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfGoodwillLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Goodwill [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfGoodwillTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfGoodwillTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Goodwill [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfImpairmentOfAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfImpairmentOfAssetsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of impairment of assets [text block]",
        "verboseLabel": "Impairment of long-term assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for the impairment of assets."
       }
      }
     },
     "auth_ref": [
      "r86"
     ]
    },
    "ec_DisclosureOfImpairmentOfLongtermAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfImpairmentOfLongtermAssetsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of impairment of long-term assets [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfImpairmentOfNoncurrentAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfImpairmentOfNoncurrentAssetsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment of long-term assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfIncomeTaxExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfIncomeTaxExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxes"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of income tax [text block]",
        "verboseLabel": "Taxes"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for income taxes."
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "ifrs-full_DisclosureOfInformationAboutMaturityProfileOfDefinedBenefitObligationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInformationAboutMaturityProfileOfDefinedBenefitObligationExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of information about maturity profile of defined benefit obligation [text block]",
        "verboseLabel": "Schedule of maturity profile of defined benefit obligation"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of information about the maturity profile of a defined benefit obligation. This will include the weighted average duration of the defined benefit obligation and may include other information about the distribution of the timing of benefit payments, such as a maturity analysis of the benefit payments. [Refer: Defined benefit obligation, at present value]"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "ifrs-full_DisclosureOfInformationForEachMaterialImpairmentLossRecognisedOrReversedForIndividualAssetOrCashgeneratingUnitExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInformationForEachMaterialImpairmentLossRecognisedOrReversedForIndividualAssetOrCashgeneratingUnitExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of information for impairment loss recognised or reversed for individual asset or cash-generating unit [text block]",
        "terseLabel": "Schedule of breakdown of assets, liabilities and results of the main investments in associates and joint ventures"
       }
      }
     },
     "auth_ref": [
      "r78"
     ]
    },
    "ifrs-full_DisclosureOfInformationForEachMaterialImpairmentLossRecognisedOrReversedForIndividualAssetOrCashgeneratingUnitLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInformationForEachMaterialImpairmentLossRecognisedOrReversedForIndividualAssetOrCashgeneratingUnitLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of information for impairment loss recognised or reversed for individual asset or cash-generating unit [line items]",
        "terseLabel": "Impairment of long-term assets"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfIntangibleAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfIntangibleAssetsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangible assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfIntangibleAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfIntangibleAssetsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of intangible assets [text block]",
        "verboseLabel": "Intangible assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for intangible assets."
       }
      }
     },
     "auth_ref": [
      "r103"
     ]
    },
    "ifrs-full_DisclosureOfIntangibleAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfIntangibleAssetsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about intangible assets [line items]",
        "verboseLabel": "Intangible assets"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfIntangibleAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfIntangibleAssetsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about intangible assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of intangible assets."
       }
      }
     },
     "auth_ref": [
      "r102",
      "r362"
     ]
    },
    "ifrs-full_DisclosureOfInterestsInAssociatesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInterestsInAssociatesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of interests in associates [text block]",
        "verboseLabel": "Schedule of interests in associates and joint ventures"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of interests in associates. [Refer: Total for all associates [member]]"
       }
      }
     },
     "auth_ref": [
      "r139"
     ]
    },
    "ifrs-full_DisclosureOfInterestsInJointArrangementsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInterestsInJointArrangementsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of interests in joint arrangements [text block]",
        "verboseLabel": "Schedule of interests in joint arrangements"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of interests in joint arrangements. A joint arrangement is an arrangement of which two or more parties have joint control."
       }
      }
     },
     "auth_ref": [
      "r139"
     ]
    },
    "ifrs-full_DisclosureOfInterestsInOtherEntitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInterestsInOtherEntitiesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of interests in other entities [text block]",
        "terseLabel": "Schedule of associates and joint ventures"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for interests in other entities."
       }
      }
     },
     "auth_ref": [
      "r132"
     ]
    },
    "ec_DisclosureOfInterestsInSubsidiariesAssociatesAndJointVenturesInterconexinElctricaS.a.EspTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfInterestsInSubsidiariesAssociatesAndJointVenturesInterconexinElctricaS.a.EspTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEsp"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for interests in subsidiaries, associates and joint ventures Interconexin Elctrica S.A. ESP.",
        "label": "Disclosure Of Interests In Subsidiaries Associates And Joint Ventures Interconexin ElctricaS.a. Esp Text Block",
        "verboseLabel": "Exhibit 2 - Consolidated subsidiaries, associates, and joint ventures in Interconexion Electrica SA ESP"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfInterestsInSubsidiariesAssociatesAndJointVenturesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfInterestsInSubsidiariesAssociatesAndJointVenturesTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVentures"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for interests in subsidiaries, associates and joint ventures.",
        "label": "Disclosure Of Interests In Subsidiaries, Associates And Joint Ventures [Text Block]",
        "verboseLabel": "Exhibit 1 - Consolidated subsidiaries, associates, and joint ventures"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfInterestsInSubsidiariesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInterestsInSubsidiariesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of interests in subsidiaries [text block]",
        "verboseLabel": "Schedule of interests in subsidiaries"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of interests in subsidiaries. [Refer: Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r138"
     ]
    },
    "ifrs-full_DisclosureOfInventoriesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInventoriesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInventories"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of inventories [text block]",
        "verboseLabel": "Inventories"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for inventories."
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "ec_DisclosureOfInventoriesNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfInventoriesNetAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventories"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfInvestmentEntitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInvestmentEntitiesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of investment entities [text block]",
        "verboseLabel": "Schedule of investment entities"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of investment entities. An investment entity is an entity that: (a) obtains funds from one or more investors for the purpose of providing those investor(s) with investment management services; (b) commits to its investor(s) that its business purpose is to invest funds solely for returns from capital appreciation, investment income, or both; and (c) measures and evaluates the performance of substantially all of its investments on a fair value basis."
       }
      }
     },
     "auth_ref": [
      "r159"
     ]
    },
    "ifrs-full_DisclosureOfInvestmentsAccountedForUsingEquityMethodExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInvestmentsAccountedForUsingEquityMethodExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVentures"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of investments accounted for using equity method [text block]",
        "verboseLabel": "Investments in associates and joint ventures"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of investments accounted for using the equity method. [Refer: Investments accounted for using equity method]"
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ec_DisclosureOfInvestmentsInAssociatesAndJointVenturesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfInvestmentsInAssociatesAndJointVenturesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in associates and joint ventures"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesReconciliationOfEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Investments in associates and joint ventures [Line Items]",
        "terseLabel": "Investments in associates and joint ventures"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfInvestmentsInAssociatesAndJointVenturesTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesReconciliationOfEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Investments in associates and joint ventures [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfJointOperationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfJointOperationsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Joint operations"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfJointOperationsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfJointOperationsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of joint operations [text block]",
        "verboseLabel": "Joint operations"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of joint operations. [Refer: Total for all joint operations [member]]"
       }
      }
     },
     "auth_ref": [
      "r157"
     ]
    },
    "ifrs-full_DisclosureOfJointOperationsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfJointOperationsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of joint operations [line items]",
        "terseLabel": "Joint operations"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfJointOperationsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfJointOperationsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of joint operations [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to joint operations."
       }
      }
     },
     "auth_ref": [
      "r157"
     ]
    },
    "ec_DisclosureOfLoansAndBorrowingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfLoansAndBorrowingsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans and borrowings"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfLoansAndBorrowingsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfLoansAndBorrowingsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsBreakdownByTypeOfInterestRateAndCurrencyDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Loans and borrowings [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfLoansTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfLoansTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of disclosure of loans.",
        "label": "Disclosure Of Loans [Text Block]",
        "terseLabel": "Schedule of loans"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfMaterialAccountingPolicyInformationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfMaterialAccountingPolicyInformationExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of material accounting policy information [text block]",
        "terseLabel": "Accounting policies"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure of material accounting policy information applied by the entity."
       }
      }
     },
     "auth_ref": [
      "r301",
      "r415",
      "r430"
     ]
    },
    "ec_DisclosureOfMovementOfRightOfUseAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfMovementOfRightOfUseAssetsTableTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure for movement of right-of-use assets.",
        "label": "Disclosure of Movement of Right of Use Assets [Table Text Block]",
        "terseLabel": "Schedule of movement of right-of-use assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfNaturalAndEnvironmentalResourcesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfNaturalAndEnvironmentalResourcesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Natural and environmental resources"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfNaturalAndEnvironmentalResourcesExplanatoryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfNaturalAndEnvironmentalResourcesExplanatoryTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResources"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for natural and environmental resources.",
        "label": "Disclosure of natural and environmental resources explanatory [Text Block]",
        "verboseLabel": "Natural and environmental resources"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfNaturalAndEnvironmentalResourcesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfNaturalAndEnvironmentalResourcesLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesAccountingForSuspendedExploratoryWellsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Natural and environmental resources [Line Items]",
        "terseLabel": "Natural and environmental resources"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfNaturalAndEnvironmentalResourcesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfNaturalAndEnvironmentalResourcesTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesAccountingForSuspendedExploratoryWellsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Natural and environmental resources [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNetDefinedBenefitLiabilityAssetExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfNetDefinedBenefitLiabilityAssetExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of net defined benefit liability (asset) [text block]",
        "verboseLabel": "Schedule of net defined benefit liability (asset)"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of a net defined benefit liability (asset). [Refer: Net defined benefit liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r26",
      "r323"
     ]
    },
    "ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfNonadjustingEventsAfterReportingPeriodAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent and relevant events"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of non-adjusting events after reporting period [line items]",
        "terseLabel": "Subsequent and relevant events"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfNonadjustingEventsAfterReportingPeriodTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of non-adjusting events after reporting period [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to non-adjusting events after the reporting period."
       }
      }
     },
     "auth_ref": [
      "r0",
      "r303"
     ]
    },
    "ifrs-full_DisclosureOfOperatingSegmentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOperatingSegmentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Business segment information"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOperatingSegmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOperatingSegmentsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of operating segments [text block]",
        "verboseLabel": "Schedule of operating segments"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of operating segments. [Refer: Operating segments [member]]"
       }
      }
     },
     "auth_ref": [
      "r249"
     ]
    },
    "ifrs-full_DisclosureOfOperatingSegmentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOperatingSegmentsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of operating segments [line items]",
        "terseLabel": "Business segment information"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOperatingSegmentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOperatingSegmentsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of operating segments [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to operating segments."
       }
      }
     },
     "auth_ref": [
      "r249"
     ]
    },
    "ec_DisclosureOfOtherAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfOtherAssetsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Other assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOtherAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOtherAssetsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of other assets [text block]",
        "verboseLabel": "Other assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of other assets. [Refer: Other assets]"
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ec_DisclosureOfOtherFinancialAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfOtherFinancialAssetsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMaturityDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMovementOfEquityInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsRestrictionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line item represents the other financial assets.",
        "label": "Disclosure of Other financial assets [Line Items]",
        "verboseLabel": "Other financial assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfOtherFinancialAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfOtherFinancialAssetsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMaturityDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMovementOfEquityInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsRestrictionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Table disclosure represent the other financial assets.",
        "label": "Disclosure of Other financial assets [Table]",
        "verboseLabel": "Disclosure of Other financial assets [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfOtherOperatingIncomeAndExpensesNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfOtherOperatingIncomeAndExpensesNetAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Other operating income (expenses)"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOtherOperatingIncomeExpenseExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOtherOperatingIncomeExpenseExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpenses"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of other operating income (expense) [text block]",
        "terseLabel": "Other operating income (expenses)"
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ec_DisclosureOfOtherOperatingIncomeExpenseTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfOtherOperatingIncomeExpenseTableTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of other operating income expense",
        "label": "Disclosure of other operating income expense [Table Text Block]",
        "terseLabel": "Schedule of other operating expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOtherProvisionsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOtherProvisionsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of other provisions [text block]",
        "verboseLabel": "Schedule of changes of the allowances for losses"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of other provisions. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r91",
      "r353"
     ]
    },
    "ifrs-full_DisclosureOfProductsAndServicesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfProductsAndServicesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of products and services [text block]",
        "verboseLabel": "Schedule of products and services"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the entity's products and services. [Refer: Products and services [domain]]"
       }
      }
     },
     "auth_ref": [
      "r256"
     ]
    },
    "ec_DisclosureOfPropertyPlantAndEquipmentAndItsDepreciationAndImpairmentTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfPropertyPlantAndEquipmentAndItsDepreciationAndImpairmentTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about the changes in property, plant and equipment and its depreciation and impairment.",
        "label": "Disclosure of property, plant and equipment and its depreciation and impairment [Text Block]",
        "verboseLabel": "Schedule of plant and equipment and depreciation and impairment"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of property, plant and equipment [text block]",
        "verboseLabel": "Property, plant, and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for property, plant and equipment."
       }
      }
     },
     "auth_ref": [
      "r24"
     ]
    },
    "ec_DisclosureOfPropertyPlantAndEquipmentExplanatoryAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfPropertyPlantAndEquipmentExplanatoryAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, plant, and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about property, plant and equipment [line items]",
        "terseLabel": "Property, plant, and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about property, plant and equipment [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of property, plant and equipment."
       }
      }
     },
     "auth_ref": [
      "r21",
      "r321"
     ]
    },
    "ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-use assets and lease liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of quantitative information about right-of-use assets [text block]",
        "verboseLabel": "Right-of-use assets and lease liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of quantitative information about right-of-use assets. [Refer: Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r175",
      "r275"
     ]
    },
    "ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of quantitative information about right-of-use assets [line items]",
        "terseLabel": "Right-of-use assets and lease liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of quantitative information about right-of-use assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to right-of-use assets."
       }
      }
     },
     "auth_ref": [
      "r175",
      "r275"
     ]
    },
    "ec_DisclosureOfQuantitativeInformationOfConcessionServicesContracts": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfQuantitativeInformationOfConcessionServicesContracts",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of detailed information about quantitative information of concession services contracts",
        "label": "Disclosure Of Quantitative Information Of Concession Services Contracts",
        "terseLabel": "Schedule of concession services contracts"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfReclassificationsOrChangesInPresentationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfReclassificationsOrChangesInPresentationExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassifications",
        "terseLabel": "Basis for preparation"
       }
      }
     },
     "auth_ref": [
      "r285",
      "r417",
      "r433"
     ]
    },
    "ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfReconciliationOfChangesInGoodwillExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of reconciliation of changes in goodwill [text block]",
        "verboseLabel": "Schedule of goodwill in acquisitions of subsidiaries"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the reconciliation of changes in goodwill. [Refer: Goodwill]"
       }
      }
     },
     "auth_ref": [
      "r196",
      "r376"
     ]
    },
    "ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfReconciliationOfChangesInGoodwillLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of reconciliation of changes in goodwill [line items]",
        "terseLabel": "Trade and other receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfReconciliationOfChangesInGoodwillTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfReconciliationOfChangesInGoodwillTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of reconciliation of changes in goodwill [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the reconciliation of changes in goodwill."
       }
      }
     },
     "auth_ref": [
      "r196",
      "r376"
     ]
    },
    "ifrs-full_DisclosureOfReconciliationOfChangesInLossAllowanceAndExplanationOfChangesInGrossCarryingAmountForFinancialInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfReconciliationOfChangesInLossAllowanceAndExplanationOfChangesInGrossCarryingAmountForFinancialInstrumentsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of reconciliation of changes in loss allowance and explanation of changes in gross carrying amount for financial instruments [text block]",
        "terseLabel": "Schedule of account receivable from the fuel price stabilization fund"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the reconciliation of changes in the loss allowance and explanation of changes in the gross carrying amount for financial instruments. Loss allowance is the allowance for expected credit losses on financial assets measured in accordance with paragraph 4.1.2 of IFRS 9, lease receivables and contract assets, the accumulated impairment amount for financial assets measured in accordance with paragraph 4.1.2A of IFRS 9 and the provision for expected credit losses on loan commitments and financial guarantee contracts. [Refer: Gross carrying amount [member]]"
       }
      }
     },
     "auth_ref": [
      "r223",
      "r224",
      "r396",
      "r398"
     ]
    },
    "ifrs-full_DisclosureOfReconciliationOfChangesInLossAllowanceAndExplanationOfChangesInGrossCarryingAmountForFinancialInstrumentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfReconciliationOfChangesInLossAllowanceAndExplanationOfChangesInGrossCarryingAmountForFinancialInstrumentsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAllowanceForDoubtfulAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of reconciliation of changes in loss allowance and explanation of changes in gross carrying amount for financial instruments [line items]",
        "terseLabel": "Trade and other receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfReconciliationOfChangesInLossAllowanceAndExplanationOfChangesInGrossCarryingAmountForFinancialInstrumentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfReconciliationOfChangesInLossAllowanceAndExplanationOfChangesInGrossCarryingAmountForFinancialInstrumentsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAllowanceForDoubtfulAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of reconciliation of changes in loss allowance and explanation of changes in gross carrying amount for financial instruments [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the reconciliation of changes in the loss allowance and explanation of changes in the gross carrying amount for financial instruments."
       }
      }
     },
     "auth_ref": [
      "r223",
      "r224",
      "r396",
      "r398"
     ]
    },
    "ifrs-full_DisclosureOfRelatedPartyExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfRelatedPartyExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedParties"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of related party [text block]",
        "verboseLabel": "Related parties"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for related parties."
       }
      }
     },
     "auth_ref": [
      "r55"
     ]
    },
    "ec_DisclosureOfReportingEntityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfReportingEntityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Reporting entity"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfReportingEntityTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfReportingEntityTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureReportingEntity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The disclosure of the entity's business and share holdings structure.",
        "label": "Disclosure of reporting entity [text block] [Text Block]",
        "verboseLabel": "Reporting entity"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfRevenueExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfRevenueExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomers"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of revenue [text block]",
        "verboseLabel": "Revenue from contracts with customers"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for revenue."
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ec_DisclosureOfSalesRevenueAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfSalesRevenueAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Sales revenue [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfSensitivityAnalysisForActuarialAssumptionsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfSensitivityAnalysisForActuarialAssumptionsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of sensitivity analysis for actuarial assumptions [text block]",
        "verboseLabel": "Schedule of sensitivity analysis for actuarial assumptions"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of a sensitivity analysis for significant actuarial assumptions used to determine the present value of a defined benefit obligation. [Refer: Actuarial assumptions [domain]; Defined benefit obligation, at present value]"
       }
      }
     },
     "auth_ref": [
      "r36"
     ]
    },
    "ifrs-full_DisclosureOfServiceConcessionArrangementsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfServiceConcessionArrangementsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Exhibit 4. Quantitative information of concession services contracts"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfServiceConcessionArrangementsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfServiceConcessionArrangementsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContracts"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of service concession arrangements [text block]",
        "terseLabel": "Exhibit 4. Quantitative information of concession services contracts"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for service concession arrangements."
       }
      }
     },
     "auth_ref": [
      "r266"
     ]
    },
    "ifrs-full_DisclosureOfServiceConcessionArrangementsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfServiceConcessionArrangementsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about service concession arrangements [line items]",
        "terseLabel": "Exhibit 4. Quantitative information of concession services contracts"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfServiceConcessionArrangementsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfServiceConcessionArrangementsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about service concession arrangements [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of service concession arrangements."
       }
      }
     },
     "auth_ref": [
      "r264"
     ]
    },
    "ifrs-full_DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of share capital, reserves and other equity interest [text block]",
        "verboseLabel": "Equity"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for share capital, reserves and other equity interest."
       }
      }
     },
     "auth_ref": [
      "r293",
      "r413",
      "r462"
     ]
    },
    "ec_DisclosureOfSignificantEstimatesAndAccountingJudgmentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfSignificantEstimatesAndAccountingJudgmentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Material accounting judgments and estimates"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfSignificantInvestmentsInAssociatesLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Significant Investments In Associates [Line Items]"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfSignificantInvestmentsInAssociatesTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of associates [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to associates."
       }
      }
     },
     "auth_ref": [
      "r63",
      "r66",
      "r158",
      "r405"
     ]
    },
    "ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfSignificantInvestmentsInSubsidiariesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of subsidiaries [text block]",
        "terseLabel": "Schedule of subsidiaries, associates, and joint ventures in Interconexion Electrica S.A. ESP"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of subsidiaries. [Refer: Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r63",
      "r66",
      "r155",
      "r403"
     ]
    },
    "ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfSignificantInvestmentsInSubsidiariesLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of subsidiaries [line items]",
        "terseLabel": "Exhibit 2 - Consolidated subsidiaries, associates, and joint ventures in Interconexion Electrica SA ESP"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfSignificantInvestmentsInSubsidiariesTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of subsidiaries [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to subsidiaries."
       }
      }
     },
     "auth_ref": [
      "r63",
      "r66",
      "r155",
      "r403"
     ]
    },
    "ec_DisclosureOfSignificantLoansTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfSignificantLoansTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebt"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of significant loans.",
        "label": "Disclosure of significant loans [Text Block]",
        "verboseLabel": "Exhibit 3 - Conditions of the most significant debt"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfSubsidiariesAssociatesAndJointVenturesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfSubsidiariesAssociatesAndJointVenturesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "No definition available.",
        "label": "Exhibit 2 - Consolidated subsidiaries, associates, and joint ventures in Interconexion Electrica SA ESP"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfTaxesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfTaxesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfTaxesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfTaxesLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Taxes [Line Items]",
        "terseLabel": "Taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfTaxesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfTaxesTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Taxes [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of temporary difference, unused tax losses and unused tax credits [text block]",
        "terseLabel": "Schedule of deferred income tax assets and liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of types of temporary differences, unused tax losses and unused tax credits. [Refer: Unused tax credits [member]; Unused tax losses [member]; Temporary differences [member]]"
       }
      }
     },
     "auth_ref": [
      "r8",
      "r310"
     ]
    },
    "ifrs-full_DisclosureOfTradeAndOtherPayablesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTradeAndOtherPayablesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of trade and other payables [text block]",
        "verboseLabel": "Trade and other payables"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of trade and other payables. [Refer: Trade and other payables]"
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ec_DisclosureOfTradeAndOtherPayablesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfTradeAndOtherPayablesLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line item of Trade and other payables.",
        "label": "Disclosure Of Trade And Other Payables (Line Items)",
        "terseLabel": "Trade and other payables"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisclosureOfTradeAndOtherPayablesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisclosureOfTradeAndOtherPayablesTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of Trade and other payables table.",
        "label": "Disclosure Of Trade and other payables (Table)"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTradeAndOtherReceivablesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTradeAndOtherReceivablesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of trade and other receivables [text block]",
        "verboseLabel": "Trade and other receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of trade and other receivables. [Refer: Trade and other receivables]"
       }
      }
     },
     "auth_ref": [
      "r712"
     ]
    },
    "ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTransactionsBetweenRelatedPartiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Related parties"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTransactionsBetweenRelatedPartiesExplanatory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of transactions between related parties [text block]",
        "verboseLabel": "Schedule of transactions between related parties"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of transactions between the entity and its related parties. [Refer: Total for all related parties [member]]"
       }
      }
     },
     "auth_ref": [
      "r50",
      "r335"
     ]
    },
    "ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTransactionsBetweenRelatedPartiesLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of transactions between related parties [line items]",
        "terseLabel": "Transactions between related parties",
        "verboseLabel": "Main transactions with related parties"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTransactionsBetweenRelatedPartiesTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of transactions between related parties [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to transactions between related parties."
       }
      }
     },
     "auth_ref": [
      "r53",
      "r338"
     ]
    },
    "ec_Disclosureofincometaxratetabletextblock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Disclosureofincometaxratetabletextblock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tabular disclosure of income tax rate.",
        "label": "Disclosure Of Income Tax Rate [Table Text Block]",
        "terseLabel": "Schedule of income tax rate"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DiscountRateMeasurementInputMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DiscountRateMeasurementInputMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Discount rate, measurement input [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a discount rate used as a measurement input used in valuation techniques based on a present value calculation."
       }
      }
     },
     "auth_ref": [
      "r706"
     ]
    },
    "ec_DiscountRateWithTaxMeasurementInputMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DiscountRateWithTaxMeasurementInputMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for a discount rate with tax used as a measurement input used in valuation techniques based on a present value calculation.",
        "label": "Discount Rate With Tax, Measurement Input [Member]",
        "terseLabel": "Rate with tax"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DiscountRateWithoutTaxMeasurementInputMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DiscountRateWithoutTaxMeasurementInputMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for a discount rate without tax used as a measurement input used in valuation techniques based on a present value calculation.",
        "label": "Discount Rate Without Tax, Measurement Input [Member]",
        "terseLabel": "Rate without tax"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DismissalOfClaimAmountByPlaintiff": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DismissalOfClaimAmountByPlaintiff",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of claim amount by plaintiff.",
        "label": "Dismissal of Claim Amount by Plaintiff",
        "terseLabel": "Dismissal of claim amount by Plaintif"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisposalOfLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisposalOfLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of disposals of lease liabilities.",
        "label": "Disposal of Lease Liabilities",
        "negatedLabel": "Disposals"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Disposals": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Disposals",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "It represents disposals.",
        "label": "Disposals",
        "negatedLabel": "Disposals"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DisposalsAndRetirementIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisposalsAndRetirementIntangibleAssetsOtherThanGoodwill",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The decrease in intangible assets other than goodwill resulting from disposals and retirements. [Refer: Intangible assets other than goodwill]",
        "label": "Disposals And Retirement Intangible Assets Other Than Goodwill",
        "negatedLabel": "Disposals"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisposalsAndRetirementsIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisposalsAndRetirementsIntangibleAssetsOtherThanGoodwill",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disposals and retirements, intangible assets other than goodwill",
        "negatedLabel": "Disposals"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease in intangible assets other than goodwill resulting from disposals and retirements. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r694"
     ]
    },
    "ec_DisposalsOfRightOfUseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DisposalsOfRightOfUseAssets",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The decrease in right-of-use assets resulting from disposals. [Refer: Right-of-use assets]",
        "label": "Disposals Of Right Of Use Assets",
        "negatedLabel": "Disposals"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DividendPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DividendPayables",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentPayables",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend payables",
        "verboseLabel": "Dividends payable"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends that the company has declared but not yet paid."
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ec_DividendTaxRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DividendTaxRateMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend Tax Rate [Member]",
        "terseLabel": "Dividend Tax Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DividendsPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DividendsPaid",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends recognised as distributions to owners.",
        "negatedLabel": "Dividends declared"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends recognised as distributions to owners."
       }
      }
     },
     "auth_ref": [
      "r287",
      "r414",
      "r429"
     ]
    },
    "ifrs-full_DividendsPaidClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DividendsPaidClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityDividendsPaidDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends paid, classified as financing activities",
        "negatedLabel": "Dividends paid",
        "terseLabel": "Dividends paid"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for dividends paid by the entity, classified as financing activities."
       }
      }
     },
     "auth_ref": [
      "r119"
     ]
    },
    "ifrs-full_DividendsPaidToEquityHoldersOfParentClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DividendsPaidToEquityHoldersOfParentClassifiedAsFinancingActivities",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends paid to equity holders of parent, classified as financing activities",
        "terseLabel": "Dividends paid to equity holders of parent, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for dividends paid to equity holders of the parent, classified as financing activities."
       }
      }
     },
     "auth_ref": [
      "r700"
     ]
    },
    "ifrs-full_DividendsProposedOrDeclaredBeforeFinancialStatementsAuthorisedForIssueButNotRecognisedAsDistributionToOwnersPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DividendsProposedOrDeclaredBeforeFinancialStatementsAuthorisedForIssueButNotRecognisedAsDistributionToOwnersPerShare",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends proposed or declared before financial statements authorised for issue but not recognised as distribution to owners per share",
        "terseLabel": "Dividend paid by share corresponds, per share"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount, per share, of dividends proposed or declared before financial statements were authorised for issue but not recognised as distribution to owners."
       }
      }
     },
     "auth_ref": [
      "r294",
      "r416",
      "r431"
     ]
    },
    "ifrs-full_DividendsReceived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DividendsReceived",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends received",
        "verboseLabel": "Dividends received"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends received."
       }
      }
     },
     "auth_ref": [
      "r143"
     ]
    },
    "ifrs-full_DividendsReceivedClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DividendsReceivedClassifiedAsInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends received, classified as investing activities",
        "verboseLabel": "Dividends received"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from dividends received, classified as investing activities. [Refer: Dividends received]"
       }
      }
     },
     "auth_ref": [
      "r119"
     ]
    },
    "ifrs-full_DividendsRecognisedAsDistributionsToNoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DividendsRecognisedAsDistributionsToNoncontrollingInterests",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends recognised as distributions to non-controlling interests",
        "negatedLabel": "Dividends declared"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends recognised as distributions to non-controlling interests. [Refer: Non-controlling interests]"
       }
      }
     },
     "auth_ref": [
      "r714"
     ]
    },
    "ifrs-full_DividendsRecognisedAsDistributionsToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DividendsRecognisedAsDistributionsToOwnersOfParent",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends recognised as distributions to owners of parent",
        "terseLabel": "Dividends distributed"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends recognised as distributions to owners of the parent. [Refer: Parent [member]]"
       }
      }
     },
     "auth_ref": [
      "r714"
     ]
    },
    "ifrs-full_DividendsRecognisedAsDistributionsToOwnersPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DividendsRecognisedAsDistributionsToOwnersPerShare",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends recognised as distributions to owners per share"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount, per share, of dividends recognised as distributions to owners."
       }
      }
     },
     "auth_ref": [
      "r287",
      "r414",
      "r429"
     ]
    },
    "dei_DocumentAccountingStandard": {
     "xbrltype": "accountingStandardItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentAccountingStandard",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Accounting Standard",
        "documentation": "The basis of accounting the registrant has used to prepare the financial statements included in this filing This can either be 'U.S. GAAP', 'International Financial Reporting Standards', or 'Other'."
       }
      }
     },
     "auth_ref": [
      "r570"
     ]
    },
    "ec_DocumentAndEntityInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DocumentAndEntityInformationAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Document and Entity Information [Abstract]",
        "label": "Document and Entity Information"
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentAnnualReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentAnnualReport",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Annual Report",
        "documentation": "Boolean flag that is true only for a form used as an annual report."
       }
      }
     },
     "auth_ref": [
      "r569",
      "r570",
      "r593"
     ]
    },
    "dei_DocumentFinStmtErrorCorrectionFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentFinStmtErrorCorrectionFlag",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Financial Statement Error Correction [Flag]",
        "documentation": "Indicates whether any of the financial statement period in the filing include a restatement due to error correction."
       }
      }
     },
     "auth_ref": [
      "r569",
      "r570",
      "r593",
      "r636"
     ]
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Period Focus",
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3. 1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentFiscalYearFocus": {
     "xbrltype": "gYearItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentFiscalYearFocus",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Fiscal Year Focus",
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentPeriodEndDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period End Date",
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period. The format of the date is YYYY-MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentRegistrationStatement": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentRegistrationStatement",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Registration Statement",
        "documentation": "Boolean flag that is true only for a form used as a registration statement."
       }
      }
     },
     "auth_ref": [
      "r564"
     ]
    },
    "dei_DocumentShellCompanyReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentShellCompanyReport",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Shell Company Report",
        "documentation": "Boolean flag that is true for a Shell Company Report pursuant to section 13 or 15(d) of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r570"
     ]
    },
    "dei_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Transition Report",
        "documentation": "Boolean flag that is true only for a form used as a transition report."
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentType",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Type",
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'."
       }
      }
     },
     "auth_ref": []
    },
    "ec_DollarDenominatedLoanMaturingIn2030Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DollarDenominatedLoanMaturingIn2030Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for dollar-denominated loan maturing in 2030",
        "label": "Dollar Denominated Loan Maturing In 2030 [Member]",
        "terseLabel": "Dollar-denominated loan maturing in 2030"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans eight.",
        "label": "Domestic Commercial Loans Eight [Member]",
        "terseLabel": "Domestic commercial loans eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansEighteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansEighteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans eighteen.",
        "label": "Domestic Commercial Loans Eighteen [Member]",
        "terseLabel": "Domestic commercial loans eighteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansElevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansElevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans eleven.",
        "label": "Domestic Commercial Loans Eleven [Member]",
        "terseLabel": "Domestic commercial loans eleven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansFifteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansFifteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans fifteen.",
        "label": "Domestic Commercial Loans Fifteen [Member]",
        "terseLabel": "Domestic commercial loans fifteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans five.",
        "label": "Domestic Commercial Loans Five [Member]",
        "terseLabel": "Domestic commercial loans five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans four.",
        "label": "Domestic Commercial Loans Four [Member]",
        "terseLabel": "Domestic commercial loans four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansFourteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansFourteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans fourteen.",
        "label": "Domestic Commercial Loans Fourteen [Member]",
        "terseLabel": "Domestic commercial loans fourteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans nine.",
        "label": "Domestic Commercial Loans Nine [Member]",
        "terseLabel": "Domestic commercial loans nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansNineteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansNineteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans nineteen.",
        "label": "Domestic Commercial Loans Nineteen [Member]",
        "terseLabel": "Domestic commercial loans nineteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans one.",
        "label": "Domestic Commercial Loans One [Member]",
        "terseLabel": "Domestic commercial loans one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansSevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansSevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans seven.",
        "label": "Domestic Commercial Loans Seven [Member]",
        "terseLabel": "Domestic commercial loans seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansSeventeenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansSeventeenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans seventeen.",
        "label": "Domestic Commercial Loans Seventeen [Member]",
        "terseLabel": "Domestic commercial loans seventeen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansSixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansSixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans six.",
        "label": "Domestic Commercial Loans Six [Member]",
        "terseLabel": "Domestic commercial loans six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansSixteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansSixteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans sixteen.",
        "label": "Domestic Commercial Loans Sixteen [Member]",
        "terseLabel": "Domestic commercial loans sixteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansTenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansTenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans ten.",
        "label": "Domestic Commercial Loans Ten [Member]",
        "terseLabel": "Domestic commercial loans ten"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansThirteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansThirteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans thirteen.",
        "label": "Domestic Commercial Loans Thirteen [Member]",
        "terseLabel": "Domestic commercial loans thirteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans three.",
        "label": "Domestic Commercial Loans Three [Member]",
        "terseLabel": "Domestic commercial loans three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansTwelveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansTwelveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans twelve.",
        "label": "Domestic Commercial Loans Twelve [Member]",
        "terseLabel": "Domestic commercial loans twelve"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansTwentyEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans twenty eight.",
        "label": "Domestic Commercial Loans Twenty Eight [Member]",
        "terseLabel": "Domestic commercial loans twenty eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansTwentyFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans twenty five.",
        "label": "Domestic Commercial Loans Twenty Five [Member]",
        "terseLabel": "Domestic commercial loans twenty five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansTwentyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansTwentyFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans twenty four.",
        "label": "Domestic Commercial Loans Twenty Four [Member]",
        "terseLabel": "Domestic commercial loans twenty four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansTwentyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansTwentyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans twenty.",
        "label": "Domestic Commercial Loans Twenty [Member]",
        "terseLabel": "Domestic commercial loans twenty"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansTwentyNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans twenty nine.",
        "label": "Domestic Commercial Loans Twenty Nine [Member]",
        "terseLabel": "Domestic commercial loans twenty nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansTwentyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansTwentyOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans twenty one.",
        "label": "Domestic Commercial Loans Twenty One [Member]",
        "terseLabel": "Domestic commercial loans twenty one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansTwentySevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans twenty seven.",
        "label": "Domestic Commercial Loans Twenty Seven [Member]",
        "terseLabel": "Domestic commercial loans twenty seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansTwentySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansTwentySixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans twenty six.",
        "label": "Domestic Commercial Loans Twenty Six [Member]",
        "terseLabel": "Domestic commercial loans twenty six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansTwentyThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans twenty three.",
        "label": "Domestic Commercial Loans Twenty Three [Member]",
        "terseLabel": "Domestic commercial loans twenty three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansTwentyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansTwentyTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans twenty two.",
        "label": "Domestic Commercial Loans Twenty Two [Member]",
        "terseLabel": "Domestic commercial loans twenty two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticCommercialLoansTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticCommercialLoansTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to domestic commercial loans two.",
        "label": "Domestic Commercial Loans Two [Member]",
        "terseLabel": "Domestic commercial loans two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_DomesticSalesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "DomesticSalesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for domestic sales.",
        "label": "National sales",
        "terseLabel": "Local sales"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_DvddsOrOthrErngsPdOnEqtyAwrdsNtOthrwsRflctdInTtlCompForCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "DvddsOrOthrErngsPdOnEqtyAwrdsNtOthrwsRflctdInTtlCompForCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends or Other Earnings Paid on Equity Awards not Otherwise Reflected in Total Compensation for Covered Year [Member]",
        "terseLabel": "Dividends or Other Earnings Paid on Equity Awards not Otherwise Reflected in Total Compensation for Covered Year"
       }
      }
     },
     "auth_ref": [
      "r625"
     ]
    },
    "ec_E2EnergaEficienteS.a.E.s.p.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "E2EnergaEficienteS.a.E.s.p.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for E2 Energa Eficiente S.A. E.S.P.",
        "label": "E2 Energa Eficiente S.A. E.S.P. [Member]",
        "terseLabel": "E2 Energia Eficiente S.A. E.S.P."
       }
      }
     },
     "auth_ref": []
    },
    "ec_EEGuaOff0ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EEGuaOff0ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for E&amp;E GUA OFF-0 contract.",
        "label": "E&amp;E GUA OFF-0 Contract [Member]",
        "terseLabel": "E&amp;E GUA OFF-0"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EPCol1ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EPCol1ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for E&amp;P COL 1 contract.",
        "label": "E&amp;P COL 1 Contract [Member]",
        "terseLabel": "E&amp;P COL 1"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EPCol2ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EPCol2ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for E&amp;P COL 2 contract.",
        "label": "E&amp;P COL 2 Contract [Member]",
        "terseLabel": "E&amp;P COL 2"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EPCol6ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EPCol6ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for E&amp;P COL 6 contract.",
        "label": "E&amp;P COL 6 Contract [Member]",
        "terseLabel": "E&amp;P COL 6"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EPCol7ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EPCol7ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for E&amp;P COL 7 contract.",
        "label": "E&amp;P COL 7 Contract [Member]",
        "terseLabel": "E&amp;P COL 7"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EarningsBeforeInterestTaxesDepreciationAndAmortisation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EarningsBeforeInterestTaxesDepreciationAndAmortisation",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of company's operating performance by measuring profit before financing costs, tax expenses, and non-cash accounting charges for depreciation and amortisation.",
        "label": "Earnings Before Interest, Taxes, Depreciation, and Amortisation",
        "terseLabel": "EBITDA"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EasementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EasementsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Easements [Member].",
        "label": "Easements",
        "terseLabel": "Easements"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcodieselColombiaSaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcodieselColombiaSaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ecodiesel Colombia S.A.",
        "label": "Ecodiesel Colombia S.A. [member]",
        "terseLabel": "Ecodiesel Colombia S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_EconovaTechnologyAndInnovationS.l.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EconovaTechnologyAndInnovationS.l.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to Econova Technology and Innovation S.L.",
        "label": "Econova Technology and Innovation S.L. [Member]",
        "terseLabel": "Econova Technology &amp; innovation S.L."
       }
      }
     },
     "auth_ref": []
    },
    "ec_EconovaTechnologyInnovationS.lMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EconovaTechnologyInnovationS.lMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "It represents information of econova technology &amp; innovation, S.L.",
        "label": "Econova Technology &amp; Innovation, S.L [Member]",
        "terseLabel": "Econova Technology &amp; Innovation, S.L."
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcopetrolAmericaIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcopetrolAmericaIncMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ecopetrol USA Inc.",
        "terseLabel": "Ecopertrol USA"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcopetrolAmericaLlcMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcopetrolAmericaLlcMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ecopetrol Amrica LLC.",
        "label": "Ecopetrol America LLC."
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcopetrolBusinessGroupMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcopetrolBusinessGroupMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementHedgeOfNetInvestmentInForeignOperationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to Ecopetrol Business Group.",
        "label": "Ecopetrol Business Group"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcopetrolCapitalAgMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcopetrolCapitalAgMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ecopetrol Capital AG"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcopetrolCostaAfueraSasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcopetrolCostaAfueraSasMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ecopetrol Costa Afuera S.A.S."
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcopetrolDelPerSAUnitedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcopetrolDelPerSAUnitedMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ecopetrol del Peru S. A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcopetrolGlobalEnergySluMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcopetrolGlobalEnergySluMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ecopetrol Global Energy S.L.U."
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcopetrolGroupMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcopetrolGroupMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ecopetrol Group"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcopetrolMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcopetrolMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityDividendsPaidDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ecopetrol.",
        "label": "Ecopetrol [member]",
        "terseLabel": "Ecopetrol",
        "verboseLabel": "Ecopetrol S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcopetrolOleoEGasDoBrasilLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcopetrolOleoEGasDoBrasilLtdaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ecopetrol Oleo e Gas do Brasil Ltda.",
        "label": "Ecopetrol Oleo e Gas do Brasil Ltda.",
        "terseLabel": "Ecopetrol Oleo e Gas do Brasil Ltda"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcopetrolPermianLlcMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcopetrolPermianLlcMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ecopetrol Permian LLC.",
        "label": "Ecopetrol Permian LLC."
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcopetrolSaAndHocolPetroleumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcopetrolSaAndHocolPetroleumMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ecopetrol s.a and hocol.",
        "label": "Ecopetrol SA And Hocol Petroleum [Member]",
        "terseLabel": "Ecopetrol S.A. and Hocol"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcopetrolShareholdersGeneralAssemblyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcopetrolShareholdersGeneralAssemblyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to Ecopetrol shareholders general assembly.",
        "label": "Ecopetrol Shareholders General Assembly [Member]",
        "terseLabel": "Shareholders' General Assembly in Ecopetrol S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcopetrolSingaporePte.LtdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcopetrolSingaporePte.LtdMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ecopetrol Singapore PTE. LTD.",
        "label": "Ecopetrol Singapore PTE. LTD"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcopetrolTradingAsiaPte.LtdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcopetrolTradingAsiaPte.LtdMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ecopetrol Trading Asia PTE. LTD.",
        "label": "Ecopetrol Trading Asia PTE. LTD"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcopetrolUsTradingLlcMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcopetrolUsTradingLlcMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ecopetrol US Trading LLC.",
        "label": "Ecopetrol US Trading LLC [Member]",
        "terseLabel": "Ecopetrol US Trading LLC"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EcpHidrocarburosDeMexicoSaDeCvMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EcpHidrocarburosDeMexicoSaDeCvMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ECP Hidrocarburos de Mexico S.A. de C.V."
       }
      }
     },
     "auth_ref": []
    },
    "ec_EducationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EducationMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Education",
        "terseLabel": "Education",
        "verboseLabel": "Education"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EffectOfExchangeRateChangesOnCashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effect of exchange rate changes on cash and cash equivalents",
        "verboseLabel": "Exchange difference in cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The effect of exchange rate changes on cash and cash equivalents held or due in a foreign currency. [Refer: Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r117",
      "r118"
     ]
    },
    "ec_EffectiveTaxRateOfNonMonetaryAssetsAndLiabilitiesMeasuredInDifferentFunctionalCurrency": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EffectiveTaxRateOfNonMonetaryAssetsAndLiabilitiesMeasuredInDifferentFunctionalCurrency",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount that represents the effect of non-monetary assets and liabilities measured in different functional currency.",
        "label": "Effective Tax Rate Of Non-Monetary Assets And Liabilities Measured In Different Functional Currency",
        "terseLabel": "Effect of non-monetary assets and liabilities measured in different functional currency"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EffectsOfEquityMethodInvestmentsByTypeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EffectsOfEquityMethodInvestmentsByTypeAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effects of equity method investments by type [Abstract]",
        "verboseLabel": "Effects of equity method through:"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ElGuandoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ElGuandoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for El Guando contract.",
        "label": "El Guando [Member]",
        "terseLabel": "El Guando"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ElNinoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ElNinoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for El Nio contract.",
        "label": "El Nino [Member]",
        "terseLabel": "El Nino"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ElRobleSolarS.a.s.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ElRobleSolarS.a.s.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for El Roble Solar S.A.S.",
        "label": "El Roble Solar S.A.S. [Member]",
        "terseLabel": "El Roble Solar S.A.S."
       }
      }
     },
     "auth_ref": []
    },
    "ec_ElectricPowerConcessionServiceContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ElectricPowerConcessionServiceContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for the electric power concession service contract.",
        "label": "Electric Power Concession Service Contract [Member]",
        "terseLabel": "Electric power"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ElectricPowerTransmissionAndTollRoadsConcessionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ElectricPowerTransmissionAndTollRoadsConcessionsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This Member stands for Concessions, electricity transport and roads.",
        "label": "Electric Power transmission and toll roads concessions [Member]",
        "verboseLabel": "Concessions, electricity transport and roads"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ElectricPowerTransmissionServices2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ElectricPowerTransmissionServices2Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This Member stands for Electric power transmission.",
        "label": "Electric Power Transmission Services",
        "verboseLabel": "Electric power transmission services"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EliminationOfIntersegmentAmountsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EliminationOfIntersegmentAmountsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Elimination of intersegment amounts [member]",
        "terseLabel": "Inter-segments"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the elimination of intersegment amounts in the reconciliations of total segment amounts to amounts recognised in the entity's financial statements."
       }
      }
     },
     "auth_ref": [
      "r541",
      "r542"
     ]
    },
    "ec_EmeraldEnergyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EmeraldEnergyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Emerald Energy.",
        "label": "Emerald Energy [Member]",
        "terseLabel": "Emerald Energy"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EmeraldEnergyPlcSucColombiaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EmeraldEnergyPlcSucColombiaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Emerald Energy PLC Suc. Colombia.",
        "label": "Emerald Energy PLC Suc. Colombia [Member]",
        "terseLabel": "Emerald Energy PLC Suc. Colombia"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EmployeeCompensationBenefitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EmployeeCompensationBenefitsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for employee compensation benefits.",
        "label": "Employee Compensation Benefits [Member]",
        "terseLabel": "Employee benefits"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EmployeeStockOptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EmployeeStockOptionMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Employee Stock Option [Member]",
        "terseLabel": "Employee Stock Option"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EnerfinServicesS.a.s.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EnerfinServicesS.a.s.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Enerfin Services S.A.S.",
        "label": "Enerfin Services S.A.S. [Member]",
        "terseLabel": "Enerfin Services S.A.S."
       }
      }
     },
     "auth_ref": []
    },
    "ec_EnerfnSociedadDeEnergaS.l.uAndEnerfinEnerventoExteriorS.l.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EnerfnSociedadDeEnergaS.l.uAndEnerfinEnerventoExteriorS.l.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Enerfn Sociedad de Energa S.L.U and Enerfin Enervento Exterior S.L.",
        "label": "Enerfn Sociedad de Energa S.L.U and Enerfin Enervento Exterior S.L. [Member]",
        "terseLabel": "Enerfn Sociedad de Energa S.L.U and Enerfin Enervento Exterior S.L"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EnergyExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EnergyExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Energy expense",
        "verboseLabel": "Electric Energy"
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ec_EnergyPowerTransmissionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EnergyPowerTransmissionMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for energy power transmission services.",
        "label": "Energy Power Transmission [Member]",
        "terseLabel": "Energy transmission",
        "verboseLabel": "Energy transmission services"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EnergySolutionsDevelopmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EnergySolutionsDevelopmentMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for energy solutions development.",
        "label": "Energy Solutions Development [Member]",
        "terseLabel": "Energy Solutions Development"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EnergyTransmissionAndRoadsSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EnergyTransmissionAndRoadsSegmentMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for energy transmission and roads segment.",
        "label": "Energy Transmission and Roads Segment [Member]",
        "terseLabel": "Energy transmission and roads"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line One",
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCityOrTown": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, City or Town",
        "documentation": "Name of the City or Town"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCountry": {
     "xbrltype": "countryCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressCountry",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Country",
        "documentation": "ISO 3166-1 alpha-2 country code."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressPostalZipCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressPostalZipCode",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Postal Zip Code",
        "documentation": "Code for the postal or zip code"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressesAddressTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressesAddressTypeAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Addresses, Address Type [Axis]",
        "documentation": "The axis of a table defines the relationship between the domain members or categories in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Central Index Key",
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK."
       }
      }
     },
     "auth_ref": [
      "r566"
     ]
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityCommonStockSharesOutstanding",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Common Stock, Shares Outstanding",
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCurrentReportingStatus": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Current Reporting Status",
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity [Domain]",
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityEmergingGrowthCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityEmergingGrowthCompany",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r566"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity File Number",
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityFilerCategory": {
     "xbrltype": "filerCategoryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityFilerCategory",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Filer Category",
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": [
      "r566"
     ]
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Incorporation, State or Country Code",
        "documentation": "Two-character EDGAR code representing the state or country of incorporation."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityInteractiveDataCurrent": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityInteractiveDataCurrent",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Interactive Data Current",
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files)."
       }
      }
     },
     "auth_ref": [
      "r676"
     ]
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Registrant Name",
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC."
       }
      }
     },
     "auth_ref": [
      "r566"
     ]
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Shell Company",
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r566"
     ]
    },
    "dei_EntityVoluntaryFilers": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityVoluntaryFilers",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Voluntary Filers",
        "documentation": "Indicate 'Yes' or 'No' if the registrant is not required to file reports pursuant to Section 13 or Section 15(d) of the Act."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityWellKnownSeasonedIssuer": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityWellKnownSeasonedIssuer",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Well-known Seasoned Issuer",
        "documentation": "Indicate 'Yes' or 'No' if the registrant is a well-known seasoned issuer, as defined in Rule 405 of the Securities Act. Is used on Form Type: 10-K, 10-Q, 8-K, 20-F, 6-K, 10-K/A, 10-Q/A, 20-F/A, 6-K/A, N-CSR, N-Q, N-1A."
       }
      }
     },
     "auth_ref": [
      "r677"
     ]
    },
    "ec_EnvironmentalContingenciesProvisionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EnvironmentalContingenciesProvisionMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Environmental contingencies and others"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_EqtyAwrdsAdjFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "EqtyAwrdsAdjFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Awards Adjustments, Footnote [Text Block]",
        "terseLabel": "Equity Awards Adjustments, Footnote"
       }
      }
     },
     "auth_ref": [
      "r619"
     ]
    },
    "ecd_EqtyAwrdsAdjsExclgValRprtdInSummryCompstnTblMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "EqtyAwrdsAdjsExclgValRprtdInSummryCompstnTblMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Awards Adjustments, Excluding Value Reported in the Compensation Table [Member]",
        "terseLabel": "Equity Awards Adjustments, Excluding Value Reported in Compensation Table"
       }
      }
     },
     "auth_ref": [
      "r672"
     ]
    },
    "ecd_EqtyAwrdsAdjsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "EqtyAwrdsAdjsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Awards Adjustments [Member]",
        "terseLabel": "Equity Awards Adjustments"
       }
      }
     },
     "auth_ref": [
      "r672"
     ]
    },
    "ecd_EqtyAwrdsInSummryCompstnTblForAplblYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "EqtyAwrdsInSummryCompstnTblForAplblYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Grant Date Fair Value of Equity Award Amounts Reported in Summary Compensation Table [Member]",
        "terseLabel": "Aggregate Grant Date Fair Value of Equity Award Amounts Reported in Summary Compensation Table"
       }
      }
     },
     "auth_ref": [
      "r672"
     ]
    },
    "ec_EquionEnergiaLimitedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EquionEnergiaLimitedMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equion Energia Limited"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EquionEnergyLimitedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EquionEnergyLimitedMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsInvestmentsInJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesReconciliationOfEquityDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Equion Energa Limited.",
        "label": "Equion Energa Limited [Member]",
        "terseLabel": "Equion Energa Limited"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Equity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Equity",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAndLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityMovementOfEquityReservesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementLeverageRatioDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "disclosureGuidance": "Net equity",
        "label": "Equity.",
        "periodEndLabel": "Closing balance",
        "periodStartLabel": "Opening balance",
        "terseLabel": "Equity",
        "totalLabel": "Total equity",
        "verboseLabel": "Equity (Note 24)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of residual interest in the assets of the entity after deducting all its liabilities."
       }
      }
     },
     "auth_ref": [
      "r127",
      "r129",
      "r160",
      "r161",
      "r163",
      "r339",
      "r370",
      "r406",
      "r407",
      "r420",
      "r448",
      "r457"
     ]
    },
    "ifrs-full_EquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EquityAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity [Abstract]",
        "terseLabel": "Equity"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EquityAndLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EquityAndLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity and liabilities",
        "totalLabel": "Total liabilities and equity"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of the entity's equity and liabilities. [Refer: Equity; Liabilities]"
       }
      }
     },
     "auth_ref": [
      "r448"
     ]
    },
    "ifrs-full_EquityAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EquityAttributableToOwnersOfParent",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_Equity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity attributable to owners of parent",
        "totalLabel": "Equity attributable to owners of parent"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of equity attributable to the owners of the parent. This specifically excludes non-controlling interest."
       }
      }
     },
     "auth_ref": [
      "r447"
     ]
    },
    "ifrs-full_EquityAttributableToOwnersOfParentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EquityAttributableToOwnersOfParentMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Attributable To Owners Of Parent [Member]",
        "verboseLabel": "Total"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for equity attributable to the owners of the parent."
       }
      }
     },
     "auth_ref": [
      "r427"
     ]
    },
    "ec_EquityInvestmentsAndOthersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EquityInvestmentsAndOthersMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for equity investments and others.",
        "label": "Equity Investments and Others [Member]",
        "terseLabel": "Equity investments and others"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EquityInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EquityInvestmentsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity investments [member]",
        "terseLabel": "Equity investments"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for investments in equity instruments."
       }
      }
     },
     "auth_ref": [
      "r525",
      "r538"
     ]
    },
    "ec_EquityMethodInvestmentsAdditions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EquityMethodInvestmentsAdditions",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMovementOfEquityInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of additions payment in equity method investments.",
        "label": "Equity Method Investments, Additions",
        "terseLabel": "Additions"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EquityMethodInvestmentsForeignExchangeCurrencyGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EquityMethodInvestmentsForeignExchangeCurrencyGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMovementOfEquityInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in equity method investment resulting from foreign exchange gain (loss).",
        "label": "Equity Method Investments, Foreign Exchange Currency Gain (Loss)",
        "negatedLabel": "Currency translation through other comprehensive income (OCI)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EquityMethodInvestmentsIncreaseDecreaseInFairValueThroughOtherComprehensiveIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EquityMethodInvestmentsIncreaseDecreaseInFairValueThroughOtherComprehensiveIncomeLoss",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMovementOfEquityInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The equity method investments of increase (decrease) in fair value through other comprehensive income (loss).",
        "label": "Equity Method Investments, Increase (Decrease) in Fair Value Through Other Comprehensive Income (Loss)",
        "terseLabel": "Changes in fair value through other comprehensive income (OCI)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EquityMethodInvestmentsOtherFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EquityMethodInvestmentsOtherFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMovementOfEquityInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The equity method investments other financial assets.",
        "label": "Equity Method Investments, Other Financial Assets",
        "periodEndLabel": "Closing balance",
        "periodStartLabel": "Opening balance"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EquityReservesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EquityReservesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityMovementOfEquityReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for equity reserves.",
        "label": "Equity reserves",
        "terseLabel": "Equity reserves"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_EquityValuationAssumptionDifferenceFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "EquityValuationAssumptionDifferenceFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Valuation Assumption Difference, Footnote [Text Block]",
        "terseLabel": "Equity Valuation Assumption Difference, Footnote"
       }
      }
     },
     "auth_ref": [
      "r629"
     ]
    },
    "ecd_ErrCompAnalysisTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ErrCompAnalysisTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Erroneous Compensation Analysis [Text Block]",
        "terseLabel": "Erroneous Compensation Analysis"
       }
      }
     },
     "auth_ref": [
      "r586",
      "r597",
      "r607",
      "r640"
     ]
    },
    "ecd_ErrCompRecoveryTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ErrCompRecoveryTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Erroneously Awarded Compensation Recovery [Table]",
        "terseLabel": "Erroneously Awarded Compensation Recovery"
       }
      }
     },
     "auth_ref": [
      "r583",
      "r594",
      "r604",
      "r637"
     ]
    },
    "ec_EsenttiaMasterbatchLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EsenttiaMasterbatchLtdaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member represents Esenttia Masterbatch Ltda.",
        "label": "Esenttia Masterbatch Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "ec_EsenttiaMbMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EsenttiaMbMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Esenttia MB.",
        "label": "Esenttia MB [Member]",
        "terseLabel": "Esenttia MB"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EsenttiaResinasDeMexicoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EsenttiaResinasDeMexicoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to Esenttia Resinas de Mexico.",
        "label": "Esenttia Resinas de Mexico [Member]",
        "terseLabel": "Esenttia Resinas de Mxico"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EsenttiaResinasDelPeruSacMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EsenttiaResinasDelPeruSacMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Esenttia Resinas del Peru SAC.",
        "label": "Esenttia Resinas del Peru SAC"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EsenttiaS.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EsenttiaS.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Esenttia S.A.",
        "label": "Esenttia S.A.",
        "terseLabel": "Esenttia S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_EsoxContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EsoxContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for ESOX Contract.",
        "label": "ESOX Contract [Member]",
        "terseLabel": "ESOX"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EstimateOfContributionsExpectedToBePaidToPlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EstimateOfContributionsExpectedToBePaidToPlan",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMaturityOfBenefitObligationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimate of contributions expected to be paid to plan for next annual reporting period",
        "terseLabel": "payment of post-employment obligations"
       }
      },
      "en": {
       "role": {
        "documentation": "The estimate of the expected contributions to be made to a defined benefit plan for the next annual reporting period. [Refer: Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r37",
      "r39",
      "r330"
     ]
    },
    "ifrs-full_EstimatedFinancialEffectOfContingentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EstimatedFinancialEffectOfContingentAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated financial effect of contingent assets",
        "terseLabel": "Amounts involved of contingent assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of the estimated financial effect of possible assets that arise from past events and whose existence will be confirmed only by the occurrence or non-occurrence of one or more uncertain future events not wholly within control of the entity."
       }
      }
     },
     "auth_ref": [
      "r94",
      "r355"
     ]
    },
    "ec_EstimatedReservePercentageSpecializedFirms": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EstimatedReservePercentageSpecializedFirms",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Its represents percentage of estimated reserve percentage of specialized firms.",
        "label": "Estimated Reserve Percentage Specialized Firms",
        "terseLabel": "Percentage of estimated reserve specialized firms"
       }
      }
     },
     "auth_ref": []
    },
    "ec_EstimatedValueOfCurrentGuarantees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "EstimatedValueOfCurrentGuarantees",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Estimated amount of current guarantees.",
        "label": "Estimated Value of Current Guarantees",
        "terseLabel": "Estimated value of the current guarantees"
       }
      }
     },
     "auth_ref": []
    },
    "srt_EuropeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "EuropeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Europe [Member]",
        "terseLabel": "Europe"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ExchangeRateOnLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ExchangeRateOnLoans",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of exchange rate on loans.",
        "label": "Exchange Rate on Loans",
        "terseLabel": "Exchange rate effect in deferred income tax variation"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ExecutiveCategoryAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ExecutiveCategoryAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Executive Category [Axis]",
        "terseLabel": "Executive Category:"
       }
      }
     },
     "auth_ref": [
      "r635"
     ]
    },
    "ec_ExemptIncomeDueToApplicationOfTreatiesToAvoidDoubleTaxation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ExemptIncomeDueToApplicationOfTreatiesToAvoidDoubleTaxation",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of exempt income due to the application of treaties to avoid double taxation.",
        "label": "Exempt Income Due to the Application of Treaties to Avoid Double Taxation",
        "negatedLabel": "Exempt income due to the application of treaties to avoid double taxation"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ExpenseAndOtherAdministrative": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ExpenseAndOtherAdministrative",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "It represents expense and other administrative.",
        "label": "Expense and Other Administrative",
        "terseLabel": "Other operating expenses, net",
        "verboseLabel": "Administration expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ExpenseArisingFromExplorationForAndEvaluationOfMineralResources",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": "ec_ResultsOfOperationsExpenseFromOilAndGasProducingActivitiesTotal",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense arising from exploration for and evaluation of mineral resources",
        "terseLabel": "Exploration expenses",
        "verboseLabel": "Exploration costs"
       }
      }
     },
     "auth_ref": [
      "r202"
     ]
    },
    "ifrs-full_ExplorationAndEvaluationAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ExplorationAndEvaluationAssetsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploration and evaluation",
        "terseLabel": "Exploration and evaluation"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for exploration and evaluation expenditures recognised as assets in accordance with the entity's accounting policy. Exploration and evaluation expenditures are expenditures incurred by an entity in connection with the exploration for, and evaluation of, mineral resources before the technical feasibility and commercial viability of extracting a mineral resource are demonstrable."
       }
      }
     },
     "auth_ref": [
      "r691"
     ]
    },
    "ec_ExplorationAndEvaluationsAssetsNumberOfWellsSuspended": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ExplorationAndEvaluationsAssetsNumberOfWellsSuspended",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesAccountingForSuspendedExploratoryWellsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate number of wells of exploration and evaluation assets suspended as of the reporting date.",
        "label": "Exploration And Evaluations Assets, Number Of Wells Suspended",
        "terseLabel": "Projects under 1 year of suspension"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ExplorationAndProductionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ExplorationAndProductionMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploration and Production [Member]",
        "terseLabel": "Exploration and Production",
        "verboseLabel": "Exploration and production"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ExplorationForAndEvaluationOfMineralResourceLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ExplorationForAndEvaluationOfMineralResourceLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Exploration for and Evaluation of Mineral Resource [Line Items]",
        "terseLabel": "Supplemental information on oil and gas producing activities (unaudited)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ExplorationForAndEvaluationOfMineralResourceTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ExplorationForAndEvaluationOfMineralResourceTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Not available.",
        "label": "Exploration For and Evaluation of Mineral Resource [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ExplorationForAndEvaluationOfMineralResourcesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ExplorationForAndEvaluationOfMineralResourcesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental information on oil and gas producing activities (unaudited)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ExtensionsDiscoveriesAdditionsAndImprovedRecovery": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ExtensionsDiscoveriesAdditionsAndImprovedRecovery",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails": {
       "parentTag": "ec_AggregateChangeInStandardizedMeasureOfDiscountedFutureNetCashFlows",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in standardized measure of discounted future net cash flow as a result of extensions, discoveries and improved recovery of proved oil and gas reserves.",
        "label": "Extensions, Discoveries, Additions and Improved Recovery",
        "verboseLabel": "Net change due to extensions, discoveries, and improved recovery"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ExternalCreditGradesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ExternalCreditGradesAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsCreditRatingsOfIssuersAndCounterpartiesInAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "External credit grades [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r522",
      "r534",
      "r553"
     ]
    },
    "ifrs-full_ExternalCreditGradesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ExternalCreditGradesDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsCreditRatingsOfIssuersAndCounterpartiesInAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "External credit grades [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'External credit grades' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r522",
      "r534",
      "r553"
     ]
    },
    "ec_ExtrucolS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ExtrucolS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Extrucol S.A.",
        "label": "Extrucol S.A. [Member]",
        "terseLabel": "Extrucol S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_ExxonmobilExplorationColombiaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ExxonmobilExplorationColombiaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ExxonMobil Exploration Colombia.",
        "label": "ExxonMobil Exploration Colombia [Member]",
        "terseLabel": "ExxonMobil Exploration Colombia"
       }
      }
     },
     "auth_ref": []
    },
    "ec_F3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "F3Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for F3.",
        "label": "F3",
        "terseLabel": "F3"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to F1.",
        "label": "F1 [Member]",
        "terseLabel": "F1"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FOnePlusMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FOnePlusMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsCreditRatingsOfIssuersAndCounterpartiesInAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to F1+.",
        "label": "F1+",
        "terseLabel": "F1+",
        "verboseLabel": "F1+"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to F2.",
        "label": "F2",
        "terseLabel": "F2"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FairValueAdjustmentsInBusinessCombinationsPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FairValueAdjustmentsInBusinessCombinationsPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in property, plant and equipment resulting from acquisitions through fair value adjustment in business combinations.",
        "label": "Fair Value Adjustments in Business Combinations, Property Plant And Equipment",
        "terseLabel": "Fair value adjustment in business combination"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FeeAndCommissionExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FeeAndCommissionExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fee and commission expense",
        "verboseLabel": "Commissions, fees, freights and services"
       }
      }
     },
     "auth_ref": [
      "r724"
     ]
    },
    "ec_FeeForRegulatoryEntities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FeeForRegulatoryEntities",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of regulatory fees incurred by entity to meet regulatory obligations.",
        "label": "Fee for regulatory entities",
        "verboseLabel": "Fee for regulatory entities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FieldsInColombiaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FieldsInColombiaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsBreakdownOfOilfieldsImpairmentLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fields in Colombia [Member]",
        "verboseLabel": "Oil fields in Colombia"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FinanceCostOnLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FinanceCostOnLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of finance cost of lease liabilities.",
        "label": "Finance Cost on Lease Liabilities",
        "terseLabel": "Finance cost"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinanceCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinanceCosts",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": -1.0,
       "order": 2.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance costs",
        "negatedLabel": "Finance expenses",
        "negatedTerseLabel": "Financial cost registered to projects",
        "negatedTotalLabel": "Financial expenses"
       }
      }
     },
     "auth_ref": [
      "r471"
     ]
    },
    "ec_FinanceCostsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FinanceCostsAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "No definition available.",
        "label": "Finance costs [Abstract]",
        "verboseLabel": "Financial expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FinanceExpensesFromFinancialAssetsMeasuredAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FinanceExpensesFromFinancialAssetsMeasuredAtFairValue",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails": {
       "parentTag": "ifrs-full_FinanceCosts",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of finance expenses from financial assets measured at fair value.",
        "label": "Finance expenses from Financial Assets Measured at Fair Value",
        "negatedLabel": "Financial expenses measured at fair value"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinanceIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinanceIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance income",
        "terseLabel": "Financial income",
        "totalLabel": "Finance income",
        "verboseLabel": "Finance income"
       }
      }
     },
     "auth_ref": [
      "r724"
     ]
    },
    "ec_FinanceIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FinanceIncomeAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance income [Abstract]",
        "verboseLabel": "Finance income"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinanceIncomeCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinanceIncomeCost",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance income (cost)",
        "terseLabel": "Financial results",
        "totalLabel": "Total financial result",
        "verboseLabel": "Financial (expenses) income"
       }
      }
     },
     "auth_ref": [
      "r724"
     ]
    },
    "ec_FinanceIncomeCostAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FinanceIncomeCostAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "n/a",
        "label": "Finance income cost [Abstract]",
        "verboseLabel": "Financial results"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FinanceIncomeCostAbstractAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FinanceIncomeCostAbstractAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "n/a",
        "label": "Finance income cost abstract [Abstract]",
        "verboseLabel": "Financial results"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FinanceIncomeFromFinancialAssetsMeasuredAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FinanceIncomeFromFinancialAssetsMeasuredAtFairValue",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails": {
       "parentTag": "ifrs-full_FinanceIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of finance income from financial assets measured at fair value.",
        "label": "Finance Income from Financial Assets Measured at Fair Value",
        "terseLabel": "Financial assets measured at fair value"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementSignificantConcentrationOfCreditRiskDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAllowanceForDoubtfulAccountsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesFuelPriceStabilizationFunDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets",
        "periodEndLabel": "Closing balance",
        "periodStartLabel": "Opening balance",
        "verboseLabel": "Financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that are: (a) cash; (b) an equity instrument of another entity; (c) a contractual right: (i) to receive cash or another financial asset from another entity; or (ii) to exchange financial assets or financial liabilities with another entity under conditions that are potentially favourable to the entity; or (d) a contract that will, or may be, settled in the entity\u2019s own equity instruments and is: (i) a non-derivative for which the entity is, or may be, obliged to receive a variable number of the entity\u2019s own equity instruments; or (ii) a derivative that will, or may be, settled other than by the exchange of a fixed amount of cash or another financial asset for a fixed number of the entity\u2019s own equity instruments. For this purpose the entity\u2019s own equity instruments do not include puttable financial instruments classified as equity instruments in accordance with paragraphs 16A-16B of IAS 32, instruments that impose on the entity an obligation to deliver to another party a pro rata share of the net assets of the entity only on liquidation and are classified as equity instruments in accordance with paragraphs 16C-16D of IAS 32, or instruments that are contracts for the future receipt or delivery of the entity\u2019s own equity instruments. [Refer: Classes of financial instruments [domain]; Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r219",
      "r223",
      "r224",
      "r227",
      "r396",
      "r398",
      "r400",
      "r523"
     ]
    },
    "ifrs-full_FinancialAssetsAtAmortisedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssetsAtAmortisedCost",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets at amortised cost",
        "terseLabel": "Assets measured at amortized cost"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial assets at amortised cost. The amortised cost is the amount at which financial assets are measured at initial recognition minus principal repayments, plus or minus the cumulative amortisation using the effective interest method of any difference between that initial amount and the maturity amount, and adjusted for any impairment. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r237",
      "r379"
     ]
    },
    "ifrs-full_FinancialAssetsAtAmortisedCostMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssetsAtAmortisedCostMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets at amortised cost, class [member]",
        "verboseLabel": "Assets measured at amortized cost"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the financial assets measured at amortised cost class. [Refer: Financial assets at amortised cost]"
       }
      }
     },
     "auth_ref": [
      "r239",
      "r267",
      "r384"
     ]
    },
    "ifrs-full_FinancialAssetsAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssetsAtFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets, at fair value",
        "terseLabel": "Financial assets at fair value"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value of financial assets. [Refer: At fair value [member]; Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r219"
     ]
    },
    "ifrs-full_FinancialAssetsAtFairValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssetsAtFairValueMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets at fair value, class [member]",
        "terseLabel": "Financial assets at fair value, class"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the financial assets measured at fair value class. [Refer: Financial assets; At fair value [member]]"
       }
      }
     },
     "auth_ref": [
      "r239"
     ]
    },
    "ec_FinancialAssetsAtFairValueThroughAmortizedCostAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FinancialAssetsAtFairValueThroughAmortizedCostAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "N/A",
        "label": "Financial Assets at Fair Value Through Amortized Cost [Abstract]",
        "terseLabel": "Assets measured at amortized cost"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssetsAtFairValueThroughProfitOrLoss",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets at fair value through profit or loss",
        "verboseLabel": "Assets measured at fair value"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial assets that are measured at fair value and for which gains (losses) are recognised in profit or loss. A financial asset shall be measured at fair value through profit or loss unless it is measured at amortised cost or at fair value through other comprehensive income. A gain (loss) on a financial asset measured at fair value shall be recognised in profit or loss unless it is part of a hedging relationship, it is an investment in an equity instrument for which the entity has elected to present gains and losses in other comprehensive income or it is a financial asset measured at fair value through other comprehensive income. [Refer: At fair value [member]; Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r236",
      "r378"
     ]
    },
    "ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssetsAtFairValueThroughProfitOrLossAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets at fair value through profit or loss [abstract]",
        "verboseLabel": "Assets measured at fair value"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FinancialAssetsAtFairValueThroughProfitOrLossAndOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FinancialAssetsAtFairValueThroughProfitOrLossAndOtherComprehensiveIncome",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of financial assets that are measured at fair value and other comprehensive income.",
        "label": "Financial Assets At Fair Value Through Profit or Loss and Other Comprehensive Income",
        "terseLabel": "Assets measured at fair value through other comprehensive income"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeCategoryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeCategoryMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets measured at fair value through other comprehensive income, category [member]",
        "terseLabel": "Assets measured at fair value through other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the financial assets at fair value through other comprehensive income category. [Refer: Financial assets measured at fair value through other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r238",
      "r380"
     ]
    },
    "ec_FinancialCostOfPostemploymentBenefitsAndAbandonmentCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FinancialCostOfPostemploymentBenefitsAndAbandonmentCosts",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the amount of financial cost of post-employment benefits and abandonment costs.",
        "label": "Financial cost of post-employment benefits and abandonment costs",
        "verboseLabel": "Finance cost of post-employment benefits and abandonment costs"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialGuaranteeContractsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialGuaranteeContractsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial guarantee contracts",
        "terseLabel": "Financial guarantee contracts"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for contracts that require the issuer to make specified payments to reimburse the holder for a loss it incurs because a specified debtor fails to make payment when due in accordance with the original or modified terms of a debt instrument."
       }
      }
     },
     "auth_ref": [
      "r227",
      "r241",
      "r397",
      "r400"
     ]
    },
    "ifrs-full_FinancialInstrumentsNotCreditimpairedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialInstrumentsNotCreditimpairedMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementSignificantConcentrationOfCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets past due but not impaired [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for financial instruments that are not credit-impaired. [Refer: Credit impairment of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r223",
      "r227",
      "r396",
      "r400"
     ]
    },
    "ec_FinancialStatementSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FinancialStatementSegmentMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial statement segment [Member]",
        "terseLabel": "Financial statement segment"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FinancialYearAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FinancialYearAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "financial Year [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FinancialYearDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FinancialYearDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "financial Year [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FinancingArrangementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FinancingArrangementsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for financing arrangements",
        "label": "Financing arrangements"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FivePercentVariationInExchangeRateOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FivePercentVariationInExchangeRateOtherComprehensiveIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDenominatedInForeignCurrencyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of change in comprehensive income due to 5% change in exchange rate.",
        "label": "Five Percent variation in exchange rate, other comprehensive income",
        "terseLabel": "Five Percent variations in exchange rate, effect on other comprehensive income"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FivePercentVariationsInExchangeRateEffectOnIncomeBeforeIncomeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FivePercentVariationsInExchangeRateEffectOnIncomeBeforeIncomeTaxes",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDenominatedInForeignCurrencyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of change in income before income taxes due to 5% change in exchange rate.",
        "label": "Five Percent variations in exchange rate, Effect on income before income taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FixedCostsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FixedCostsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for fixed costs.",
        "label": "Fixed costs"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FixedCostsOfSaleGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FixedCostsOfSaleGross",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails": {
       "parentTag": "ifrs-full_CostOfSales",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of fixed cost of sale gross.",
        "label": "Fixed Costs of Sale Gross",
        "verboseLabel": "Total Fixed cost"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FixedInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FixedInterestRateMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsBreakdownByTypeOfInterestRateAndCurrencyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fixed interest rate"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a fixed interest rate. [Refer: Interest rate risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r709"
     ]
    },
    "ifrs-full_FloatingInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FloatingInterestRateMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsBreakdownByTypeOfInterestRateAndCurrencyDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Floating interest rate"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a non-fixed interest rate. [Refer: Interest rate risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r709"
     ]
    },
    "ec_ForcedInvestmentsNaturalResourcesPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForcedInvestmentsNaturalResourcesPercentage",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of forced investments for natural resources.",
        "label": "Forced Investments Natural Resources, Percentage",
        "terseLabel": "Percentage of forced investment"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond eight.",
        "label": "Foreign Currency Bond Eight [Member]",
        "terseLabel": "Foreign Currency Bond Eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondEighteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondEighteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond eighteen.",
        "label": "Foreign Currency Bond Eighteen [Member]",
        "terseLabel": "Foreign Currency Bond Eighteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondElevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondElevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond eleven.",
        "label": "Foreign Currency Bond Eleven [Member]",
        "terseLabel": "Foreign Currency Bond Eleven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondFifteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondFifteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond fifteen.",
        "label": "Foreign Currency Bond Fifteen [Member]",
        "terseLabel": "Foreign Currency Bond Fifteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondFiftyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondFiftyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond fifty.",
        "label": "Foreign Currency Bond Fifty [Member]",
        "terseLabel": "Foreign Currency Bond Fifty"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond five.",
        "label": "Foreign Currency Bond Five [Member]",
        "terseLabel": "Foreign Currency Bond Five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondFortyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondFortyEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond forty-eight.",
        "label": "Foreign Currency Bond Forty-Eight [Member]",
        "terseLabel": "Foreign Currency Bond Forty-Eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondFortyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondFortyFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond forty-five.",
        "label": "Foreign Currency Bond Forty-Five [Member]",
        "terseLabel": "Foreign Currency Bond Forty-Five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondFortyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondFortyFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond forty-four.",
        "label": "Foreign Currency Bond Forty-Four [Member]",
        "terseLabel": "Foreign Currency Bond Forty-Four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondFortyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondFortyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond forty.",
        "label": "Foreign Currency Bond Forty [Member]",
        "terseLabel": "Foreign Currency Bond Forty"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondFortyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondFortyNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond forty-nine.",
        "label": "Foreign Currency Bond Forty-Nine [Member]",
        "terseLabel": "Foreign Currency Bond Forty-Nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondFortyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondFortyOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond forty-one.",
        "label": "Foreign Currency Bond Forty-One [Member]",
        "terseLabel": "Foreign Currency Bond Forty-One"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondFortySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondFortySevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond forty-seven.",
        "label": "Foreign Currency Bond Forty-Seven [Member]",
        "terseLabel": "Foreign Currency Bond Forty-Seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondFortySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondFortySixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond forty-six.",
        "label": "Foreign Currency Bond Forty-Six [Member]",
        "terseLabel": "Foreign Currency Bond Forty-Six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondFortyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondFortyThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond forty-three.",
        "label": "Foreign Currency Bond Forty-Three [Member]",
        "terseLabel": "Foreign Currency Bond Forty-Three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondFortyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondFortyTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond forty-two.",
        "label": "Foreign Currency Bond Forty-Two [Member]",
        "terseLabel": "Foreign Currency Bond Forty-Two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond four.",
        "label": "Foreign Currency Bond Four [Member]",
        "terseLabel": "Foreign Currency Bond Four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondFourteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondFourteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond fourteen.",
        "label": "Foreign Currency Bond Fourteen [Member]",
        "terseLabel": "Foreign Currency Bond Fourteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond nine.",
        "label": "Foreign Currency Bond Nine [Member]",
        "terseLabel": "Foreign Currency Bond Nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondNineteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondNineteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond nineteen.",
        "label": "Foreign Currency Bond Nineteen [Member]",
        "terseLabel": "Foreign Currency Bond Nineteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond one.",
        "label": "Foreign Currency Bond One [Member]",
        "terseLabel": "Foreign Currency Bond One"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondSevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondSevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond seven.",
        "label": "Foreign Currency Bond Seven [Member]",
        "terseLabel": "Foreign Currency Bond Seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondSeventeenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondSeventeenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond seventeen.",
        "label": "Foreign Currency Bond Seventeen [Member]",
        "terseLabel": "Foreign Currency Bond Seventeen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondSixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondSixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond six.",
        "label": "Foreign Currency Bond Six [Member]",
        "terseLabel": "Foreign Currency Bond Six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondSixteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondSixteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond sixteen.",
        "label": "Foreign Currency Bond Sixteen [Member]",
        "terseLabel": "Foreign Currency Bond Sixteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondTenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondTenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond ten.",
        "label": "Foreign Currency Bond Ten [Member]",
        "terseLabel": "Foreign Currency Bond Ten"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondThirteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondThirteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond thirteen.",
        "label": "Foreign Currency Bond Thirteen [Member]",
        "terseLabel": "Foreign Currency Bond Thirteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondThirtyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondThirtyEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond thirty-eight.",
        "label": "Foreign Currency Bond Thirty-Eight [Member]",
        "terseLabel": "Foreign Currency Bond Thirty-Eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondThirtyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondThirtyFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond thirty-five.",
        "label": "Foreign Currency Bond Thirty-Five [Member]",
        "terseLabel": "Foreign Currency Bond Thirty-Five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondThirtyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondThirtyFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond thirty-four.",
        "label": "Foreign Currency Bond Thirty-Four [Member]",
        "terseLabel": "Foreign Currency Bond Thirty-Four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondThirtyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondThirtyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond thirty.",
        "label": "Foreign Currency Bond Thirty [Member]",
        "terseLabel": "Foreign Currency Bond Thirty"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondThirtyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondThirtyNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond thirty-nine.",
        "label": "Foreign Currency Bond Thirty-Nine [Member]",
        "terseLabel": "Foreign Currency Bond Thirty-Nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondThirtyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondThirtyOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond thirty-one.",
        "label": "Foreign Currency Bond Thirty-One [Member]",
        "terseLabel": "Foreign Currency Bond Thirty-One"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondThirtySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondThirtySevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond thirty-seven.",
        "label": "Foreign Currency Bond Thirty-Seven [Member]",
        "terseLabel": "Foreign Currency Bond Thirty-Seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondThirtySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondThirtySixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond thirty-six.",
        "label": "Foreign Currency Bond Thirty-Six [Member]",
        "terseLabel": "Foreign Currency Bond Thirty-Six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondThirtyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondThirtyThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond thirty-three.",
        "label": "Foreign Currency Bond Thirty-Three [Member]",
        "terseLabel": "Foreign Currency Bond Thirty-Three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondThirtyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondThirtyTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond thirty-two.",
        "label": "Foreign Currency Bond Thirty-Two [Member]",
        "terseLabel": "Foreign Currency Bond Thirty-Two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond three.",
        "label": "Foreign Currency Bond Three [Member]",
        "terseLabel": "Foreign Currency Bond Three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondTwelveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondTwelveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond twelve.",
        "label": "Foreign Currency Bond Twelve [Member]",
        "terseLabel": "Foreign Currency Bond Twelve"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondTwentyEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond twenty-eight.",
        "label": "Foreign Currency Bond Twenty-Eight [Member]",
        "terseLabel": "Foreign Currency Bond Twenty-Eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondTwentyFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond twenty-five.",
        "label": "Foreign Currency Bond Twenty-Five [Member]",
        "terseLabel": "Foreign Currency Bond Twenty-Five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondTwentyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondTwentyFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond twenty-four.",
        "label": "Foreign Currency Bond Twenty-Four [Member]",
        "terseLabel": "Foreign Currency Bond Twenty-Four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondTwentyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondTwentyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond twenty.",
        "label": "Foreign Currency Bond Twenty [Member]",
        "terseLabel": "Foreign Currency Bond Twenty"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondTwentyNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond twenty-nine.",
        "label": "Foreign Currency Bond Twenty-Nine [Member]",
        "terseLabel": "Foreign Currency Bond Twenty-Nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondTwentyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondTwentyOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond twenty-one.",
        "label": "Foreign Currency Bond Twenty-One [Member]",
        "terseLabel": "Foreign Currency Bond Twenty-One"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondTwentySevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond twenty-seven.",
        "label": "Foreign Currency Bond Twenty-Seven [Member]",
        "terseLabel": "Foreign Currency Bond Twenty-Seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondTwentySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondTwentySixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond twenty-six.",
        "label": "Foreign Currency Bond Twenty-Six [Member]",
        "terseLabel": "Foreign Currency Bond Twenty-Six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondTwentyThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond twenty-three.",
        "label": "Foreign Currency Bond Twenty-Three [Member]",
        "terseLabel": "Foreign Currency Bond Twenty-Three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondTwentyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondTwentyTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond twenty-two.",
        "label": "Foreign Currency Bond Twenty-Two [Member]",
        "terseLabel": "Foreign Currency Bond Twenty-Two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyBondTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyBondTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency bond two.",
        "label": "Foreign Currency Bond Two [Member]",
        "terseLabel": "Foreign Currency Bond Two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit eight.",
        "label": "Foreign Currency Credit Eight [Member]",
        "terseLabel": "Foreign currency credit eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditEighteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditEighteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit eighteen.",
        "label": "Foreign Currency Credit Eighteen [Member]",
        "terseLabel": "Foreign currency credit eighteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditElevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditElevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit eleven.",
        "label": "Foreign Currency Credit Eleven [Member]",
        "terseLabel": "Foreign currency credit eleven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditFifteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditFifteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit fifteen.",
        "label": "Foreign Currency Credit Fifteen [Member]",
        "terseLabel": "Foreign currency credit fifteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit five.",
        "label": "Foreign Currency Credit Five [Member]",
        "terseLabel": "Foreign currency credit five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit four.",
        "label": "Foreign Currency Credit Four [Member]",
        "terseLabel": "Foreign currency credit four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditFourteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditFourteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit fourteen.",
        "label": "Foreign Currency Credit Fourteen [Member]",
        "terseLabel": "Foreign currency credit fourteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit nine.",
        "label": "Foreign Currency Credit Nine [Member]",
        "terseLabel": "Foreign currency credit nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditNineteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditNineteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit nineteen.",
        "label": "Foreign Currency Credit Nineteen [Member]",
        "terseLabel": "Foreign currency credit nineteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit one.",
        "label": "Foreign Currency Credit One [Member]",
        "terseLabel": "Foreign currency credit one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditSevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditSevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit seven.",
        "label": "Foreign Currency Credit Seven [Member]",
        "terseLabel": "Foreign currency credit seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditSeventeenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditSeventeenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit seventeen.",
        "label": "Foreign Currency Credit Seventeen [Member]",
        "terseLabel": "Foreign currency credit seventeen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditSixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditSixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit six.",
        "label": "Foreign Currency Credit Six [Member]",
        "terseLabel": "Foreign currency credit six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditSixteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditSixteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit sixteen.",
        "label": "Foreign Currency Credit Sixteen [Member]",
        "terseLabel": "Foreign currency credit sixteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditTenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditTenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit ten.",
        "label": "Foreign Currency Credit Ten [Member]",
        "terseLabel": "Foreign currency credit ten"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditThirteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditThirteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit thirteen.",
        "label": "Foreign Currency Credit Thirteen [Member]",
        "terseLabel": "Foreign currency credit thirteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditThirtyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditThirtyFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit thirtyfive.",
        "label": "Foreign Currency Credit Thirty-Five [Member]",
        "terseLabel": "Foreign currency credit thirty-five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditThirtyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditThirtyFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit thirtyfour.",
        "label": "Foreign Currency Credit Thirty-Four [Member]",
        "terseLabel": "Foreign currency credit thirty-four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditThirtyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditThirtyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit thirty.",
        "label": "Foreign Currency Credit Thirty [Member]",
        "terseLabel": "Foreign currency credit thirty"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditThirtyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditThirtyOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit thirtyone.",
        "label": "Foreign Currency Credit Thirty-One [Member]",
        "terseLabel": "Foreign currency credit thirty-one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditThirtyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditThirtyThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit thirtythree.",
        "label": "Foreign Currency Credit Thirty-Three [Member]",
        "terseLabel": "Foreign currency credit thirty-three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditThirtyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditThirtyTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit thirtytwo.",
        "label": "Foreign Currency Credit Thirty-Two [Member]",
        "terseLabel": "Foreign currency credit thirty-two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit three.",
        "label": "Foreign Currency Credit Three [Member]",
        "terseLabel": "Foreign currency credit three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditTwelveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditTwelveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit twelve.",
        "label": "Foreign Currency Credit Twelve [Member]",
        "terseLabel": "Foreign currency credit twelve"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditTwentyEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit twentyeight.",
        "label": "Foreign Currency Credit Twenty-Eight [Member]",
        "terseLabel": "Foreign currency credit twenty-eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditTwentyFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit twentyfive.",
        "label": "Foreign Currency Credit Twenty-Five [Member]",
        "terseLabel": "Foreign currency credit twenty-five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditTwentyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditTwentyFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit twentyfour.",
        "label": "Foreign Currency Credit Twenty-Four [Member]",
        "terseLabel": "Foreign currency credit twenty-four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditTwentyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditTwentyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit twenty.",
        "label": "Foreign Currency Credit Twenty [Member]",
        "terseLabel": "Foreign currency credit twenty"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditTwentyNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit twentynine.",
        "label": "Foreign Currency Credit Twenty-Nine [Member]",
        "terseLabel": "Foreign currency credit twenty-nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditTwentyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditTwentyOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit twentyone.",
        "label": "Foreign Currency Credit Twenty-One [Member]",
        "terseLabel": "Foreign currency credit twenty-one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditTwentySevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit twentyseven.",
        "label": "Foreign Currency Credit Twenty-Seven [Member]",
        "terseLabel": "Foreign currency credit twenty-seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditTwentySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditTwentySixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit twentysix.",
        "label": "Foreign Currency Credit Twenty-Six [Member]",
        "terseLabel": "Foreign currency credit twenty-six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditTwentyThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit twentythree.",
        "label": "Foreign Currency Credit Twenty-Three [Member]",
        "terseLabel": "Foreign currency credit twenty-three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditTwentyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditTwentyTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit twentytwo.",
        "label": "Foreign Currency Credit Twenty-Two [Member]",
        "terseLabel": "Foreign currency credit twenty-two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyCreditTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyCreditTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to foreign currency credit two.",
        "label": "Foreign Currency Credit Two [Member]",
        "terseLabel": "Foreign currency credit two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignCurrencyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignCurrencyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsBreakdownByTypeOfInterestRateAndCurrencyDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "N/A",
        "label": "Foreign currency [member]",
        "terseLabel": "Foreign currency",
        "verboseLabel": "Investment portfolio - Foreign currency"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ForeignSalesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ForeignSalesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for foreign sales.",
        "label": "Foreign sales",
        "terseLabel": "Foreign sales"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Disqualification of Tax Benefits, Amount",
        "terseLabel": "Forgone Recovery due to Disqualification of Tax Benefits, Amount"
       }
      }
     },
     "auth_ref": [
      "r590",
      "r601",
      "r611",
      "r644"
     ]
    },
    "ecd_ForgoneRecoveryDueToExpenseOfEnforcementAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ForgoneRecoveryDueToExpenseOfEnforcementAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Expense of Enforcement, Amount",
        "terseLabel": "Forgone Recovery due to Expense of Enforcement, Amount"
       }
      }
     },
     "auth_ref": [
      "r590",
      "r601",
      "r611",
      "r644"
     ]
    },
    "ecd_ForgoneRecoveryDueToViolationOfHomeCountryLawAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ForgoneRecoveryDueToViolationOfHomeCountryLawAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Violation of Home Country Law, Amount",
        "terseLabel": "Forgone Recovery due to Violation of Home Country Law, Amount"
       }
      }
     },
     "auth_ref": [
      "r590",
      "r601",
      "r611",
      "r644"
     ]
    },
    "ecd_ForgoneRecoveryExplanationOfImpracticabilityTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ForgoneRecoveryExplanationOfImpracticabilityTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery, Explanation of Impracticability [Text Block]",
        "terseLabel": "Forgone Recovery, Explanation of Impracticability"
       }
      }
     },
     "auth_ref": [
      "r590",
      "r601",
      "r611",
      "r644"
     ]
    },
    "ecd_ForgoneRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ForgoneRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r590",
      "r601",
      "r611",
      "r644"
     ]
    },
    "ifrs-full_ForwardContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ForwardContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forward contract [member]",
        "terseLabel": "Non-delivery forward"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a contract between two parties for the purchase or sale of an underlying asset at a specified future date for a settlement price determined in advance."
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ecd_FrValAsOfPrrYrEndOfEqtyAwrdsGrntdInPrrYrsFldVstngCondsDrngCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "FrValAsOfPrrYrEndOfEqtyAwrdsGrntdInPrrYrsFldVstngCondsDrngCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prior Year End Fair Value of Equity Awards Granted in Any Prior Year that Fail to Meet Applicable Vesting Conditions During Covered Year [Member]",
        "terseLabel": "Prior Year End Fair Value of Equity Awards Granted in Any Prior Year that Fail to Meet Applicable Vesting Conditions During Covered Year"
       }
      }
     },
     "auth_ref": [
      "r624"
     ]
    },
    "ec_FreeTradeZoneAreaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FreeTradeZoneAreaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Free Trade Zone Area [Member]",
        "terseLabel": "Free trade zone"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FreeTradeZoneWithLegalStabilityContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FreeTradeZoneWithLegalStabilityContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Free trade zone with legal stability contract [Member]",
        "terseLabel": "Free zone Legal Stability Agreement (LSA)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FreeZoneTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FreeZoneTaxRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of tax rate at free zones.",
        "label": "Free Zone Tax Rate",
        "terseLabel": "Free zone tax rate"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FronteraEnergyColombiaCorpMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FronteraEnergyColombiaCorpMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Frontera Energy Colombia Corp.",
        "label": "Frontera Energy Colombia Corp [Member]",
        "terseLabel": "Frontera Energy Colombia Corp"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FuelExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FuelExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fuel expense",
        "verboseLabel": "Imported products"
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ec_FuelGasServiceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FuelGasServiceMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "n/a",
        "label": "Fuel gas service [Member]",
        "verboseLabel": "Fuel gas service"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FuelGasServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FuelGasServicesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fuel Gas Services",
        "label": "Fuel gas Service"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FuelOilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FuelOilMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fuel oil",
        "verboseLabel": "Fuel oil"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FuelPriceStabilizationFundMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FuelPriceStabilizationFundMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesFuelPriceStabilizationFunDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for fuel Price stabilization fund.",
        "label": "Fuel Price Stabilization Fund [Member]",
        "terseLabel": "Fuel Price stabilization fund"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FuelPriceStabilizationFundReceivablesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FuelPriceStabilizationFundReceivablesCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentReceivables",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of current fuel price stabilization fund receivables from the agency.",
        "label": "Fuel Price Stabilization Fund Receivables Current",
        "verboseLabel": "Fuel Price Stabilization Fund"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FundoDeInvestimentoAssisMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FundoDeInvestimentoAssisMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Fundo de Investimento Assis.",
        "label": "Fundo De Investimento Assis"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FundoDeInvestimentoBarraBonitaRendaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FundoDeInvestimentoBarraBonitaRendaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The information pertaining to Fundo De Investimento Barra Bonita Renda.",
        "label": "Fundo De Investimento Barra Bonita Renda [Member]",
        "terseLabel": "Fundo De Investimento Barra Bonita Renda"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FundoDeInvestimentoReferenciadoDiBandeirantesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FundoDeInvestimentoReferenciadoDiBandeirantesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Fundo de Investimento Referenciado di Bandeirantes.",
        "label": "Fundo De Investimento Referenciado Di Bandeirantes [Member]",
        "terseLabel": "Fundo de Investimento Referenciado di Bandeirantes"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FundoDeInvestimentoXavantesReferenciadoDiMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FundoDeInvestimentoXavantesReferenciadoDiMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Fundo de Investimento Xavantes Referenciado di.",
        "label": "Fundo De Investimento Xavantes Referenciado Di [Member]",
        "terseLabel": "Fundo de Investimento Xavantes Referenciado di"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesIncomeTaxExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesIncomeTaxExpenses",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedFutureNetCashFlowsDetails": {
       "parentTag": "ec_FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesNetCashFlowsTotal",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedFutureNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of estimated future accumulated cash outflow for income tax, based on the future income less future expense derived from production and sale of proved oil and gas reserves.",
        "label": "Future Net Cash Flows Relating to Proved Crude Oil and Gas Reserves, Income Tax Expenses",
        "negatedLabel": "Income taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesNetCashFlowsTotal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesNetCashFlowsTotal",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedFutureNetCashFlowsDetails": {
       "parentTag": "ec_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesTotal",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedFutureNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after future accumulated cash outflow for development and production costs and future income tax, of estimated future accumulated cash inflow from the sale of proved oil and gas reserves.",
        "label": "Future Net Cash Flows Relating to Proved Crude Oil and Gas Reserves, Net Cash Flows, Total",
        "totalLabel": "Future net cash flow"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesNetCashInflows": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesNetCashInflows",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedFutureNetCashFlowsDetails": {
       "parentTag": "ec_FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesNetCashFlowsTotal",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedFutureNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of estimated future accumulated cash inflow from the sale of proved oil and gas reserves.",
        "label": "Future Net Cash Flows Relating to Proved Crude Oil and Gas Reserves, Net Cash Inflows",
        "verboseLabel": "Future cash inflows"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesNetDevelopmentCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesNetDevelopmentCosts",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedFutureNetCashFlowsDetails": {
       "parentTag": "ec_FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesNetCashFlowsTotal",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedFutureNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of estimated future accumulated cash outflow for costs to be incurred in developing proved oil and gas reserves.",
        "label": "Future Net Cash Flows Relating to Proved Crude Oil and Gas Reserves, Net Development Costs",
        "negatedLabel": "Development"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesNetProductionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesNetProductionCosts",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedFutureNetCashFlowsDetails": {
       "parentTag": "ec_FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesNetCashFlowsTotal",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedFutureNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of estimated future accumulated cash outflow for costs to be incurred in producing proved oil and gas reserves.",
        "label": "Future Net Cash Flows Relating to Proved Crude Oil and Gas Reserves, Net Production Costs",
        "negatedLabel": "Production"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesNetProductionCostsEstimatedCostsForAssetRetirementObligations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesNetProductionCostsEstimatedCostsForAssetRetirementObligations",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of estimated future accumulated cash outflow for costs to be incurred in producing proved oil and gas reserves related to asset retirement obligations..",
        "label": "Future Net Cash Flows Relating To Proved Crude Oil And Gas Reserves Net Production Costs, Estimated Costs For Asset Retirement obligations",
        "terseLabel": "Estimated costs related to assets retirement obligations"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfNetCashFlows": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfNetCashFlows",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedFutureNetCashFlowsDetails": {
       "parentTag": "ec_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesTotal",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedFutureNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of discount on future accumulated cash inflow, after deducting future accumulated cash outflow for development and production costs and future income tax, from sale of proved oil and gas reserves, using a discount rate of ten percent a year.",
        "label": "Future Net Cash Flows Relating to Proved Crude Oil and Gas Reserves, Ten Percent Annual Discount for Estimated Timing of Net Cash Flows",
        "negatedLabel": "10% discount factor"
       }
      }
     },
     "auth_ref": []
    },
    "ec_FutureNetCashFlowsRelatingToProvedOilAndGasReservesFutureCostsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "FutureNetCashFlowsRelatingToProvedOilAndGasReservesFutureCostsAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedFutureNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Future Net Cash Flows Relating to Proved Oil and Gas Reserves, Future Costs [Abstract]",
        "verboseLabel": "Future costs"
       }
      }
     },
     "auth_ref": []
    },
    "ec_GainLossFromHedgesForFutureExports": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GainLossFromHedgesForFutureExports",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) from hedges for future exports.",
        "label": "Gain (Loss) From Hedges For Future Exports",
        "terseLabel": "Result of hedges for future exports"
       }
      }
     },
     "auth_ref": []
    },
    "ec_GainLossFromOperationsWithDerivativeFinancialInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GainLossFromOperationsWithDerivativeFinancialInstruments",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) from operations with derivative financial instruments.",
        "label": "Gain (Loss) From Operations With Derivative Financial Instruments",
        "terseLabel": "Result from operations with derivative financial instruments"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GainLossOnHedgeIneffectiveness": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainLossOnHedgeIneffectiveness",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 18.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gain (loss) on hedge ineffectiveness",
        "negatedLabel": "Hedge ineffectiveness"
       }
      },
      "en": {
       "role": {
        "documentation": "The gain (loss) on hedge ineffectiveness. Hedge ineffectiveness is the extent to which the changes in the fair value or the cash flows of the hedging instrument are greater or less than those on the hedged item."
       }
      }
     },
     "auth_ref": [
      "r213",
      "r388"
     ]
    },
    "ifrs-full_GainLossOnHedgeIneffectivenessAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainLossOnHedgeIneffectivenessAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gain (loss) on hedge ineffectiveness [abstract]",
        "terseLabel": "(Loss) gain on hedging instruments:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GainLossOnHedgeIneffectivenessRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainLossOnHedgeIneffectivenessRecognisedInProfitOrLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementCashFlowHedgeForFutureExportsMovementInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gain (loss) on hedge ineffectiveness recognised in profit or loss",
        "terseLabel": "Ineffectiveness reclassified to profit and loss"
       }
      }
     },
     "auth_ref": [
      "r213",
      "r215",
      "r388",
      "r390"
     ]
    },
    "ec_GainLossOnHedgingTransactionsWithDerivatives": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GainLossOnHedgingTransactionsWithDerivatives",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of gain (loss) on hedging transactions with derivatives.",
        "label": "Gain (Loss) On Hedging Transactions With Derivatives",
        "negatedLabel": "(Gain) loss on hedging transactions with derivatives"
       }
      }
     },
     "auth_ref": []
    },
    "ec_GainOnBusinessCombinationAndReversalOfOilFields": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GainOnBusinessCombinationAndReversalOfOilFields",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails": {
       "parentTag": "ifrs-full_OtherOperatingIncomeExpense",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain on business combination and reversal of oil fields.",
        "label": "Gain On Business Combination And Reversal Of Oil Fields",
        "terseLabel": "Profit in business combinations and field reversal"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GainsLossesOnCashFlowHedgesNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainsLossesOnCashFlowHedgesNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gains (losses) on cash flow hedges, net of tax",
        "terseLabel": "Cash flow hedge for future exports"
       }
      },
      "en": {
       "role": {
        "documentation": "The gains (losses) recognised in other comprehensive income on cash flow hedges, net of tax, before reclassification adjustments. [Refer: Cash flow hedges [member]]"
       }
      }
     },
     "auth_ref": [
      "r214",
      "r218",
      "r389",
      "r477"
     ]
    },
    "ifrs-full_GainsLossesOnChangeInFairValueOfDerivatives": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainsLossesOnChangeInFairValueOfDerivatives",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails": {
       "parentTag": "ifrs-full_FinanceIncome",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gains (losses) on change in fair value of derivatives",
        "terseLabel": "Gain on remeasurement of derivatives"
       }
      },
      "en": {
       "role": {
        "documentation": "The gains (losses) resulting from change in the fair value of derivatives recognised in profit or loss. [Refer: Derivatives [member]]"
       }
      }
     },
     "auth_ref": [
      "r724"
     ]
    },
    "ifrs-full_GainsLossesOnDisposalsOfPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainsLossesOnDisposalsOfPropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails": {
       "parentTag": "ifrs-full_OtherOperatingIncomeExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gains (losses) on disposals of property, plant and equipment",
        "terseLabel": "(Loss) gain on sale of assets"
       }
      }
     },
     "auth_ref": [
      "r481"
     ]
    },
    "ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainsLossesOnExchangeDifferencesOnTranslationNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gains (losses) on exchange differences on translation, net of tax",
        "verboseLabel": "Foreign currency translation"
       }
      },
      "en": {
       "role": {
        "documentation": "The gains (losses) recognised in other comprehensive income on exchange differences on the translation of financial statements of foreign operations, net of tax, before reclassification adjustments. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r477"
     ]
    },
    "ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign exchange gain (loss)",
        "terseLabel": "Foreign exchange gain (loss)",
        "verboseLabel": "Foreign exchange (loss) gain"
       }
      },
      "en": {
       "role": {
        "documentation": "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]]"
       }
      }
     },
     "auth_ref": [
      "r45",
      "r331",
      "r432"
     ]
    },
    "ifrs-full_GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gains (losses) on financial assets measured at fair value through other comprehensive income, net of tax",
        "terseLabel": "Financial instruments measured at fair value"
       }
      },
      "en": {
       "role": {
        "documentation": "The gains (losses) recognised in other comprehensive income on financial assets measured at fair value through other comprehensive income applying paragraph 4.1.2A of IFRS 9, net of tax, before reclassification adjustments. [Refer: Financial assets measured at fair value through other comprehensive income; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r477"
     ]
    },
    "ec_GainsLossesOnHedgesOfDerivativeInstrumentsNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GainsLossesOnHedgesOfDerivativeInstrumentsNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The gains (losses) recognised in other comprehensive income on cash flow hedges of derivative instruments, net of tax.",
        "label": "Gains losses on hedges of derivative instruments net of tax",
        "terseLabel": "Cash flow hedge with derivative instruments"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GainsLossesOnHedgesOfNetInvestmentsInForeignOperationsNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainsLossesOnHedgesOfNetInvestmentsInForeignOperationsNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gains (losses) on hedges of net investments in foreign operations, net of tax",
        "terseLabel": "Hedge of a net investment in a foreign operation"
       }
      },
      "en": {
       "role": {
        "documentation": "The gains (losses) recognised in other comprehensive income on hedges of net investments in foreign operations, net of tax, before reclassification adjustments. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r104",
      "r214",
      "r218",
      "r261",
      "r389",
      "r477"
     ]
    },
    "ifrs-full_GainsLossesOnLitigationSettlements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainsLossesOnLitigationSettlements",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails": {
       "parentTag": "ifrs-full_OtherOperatingIncomeExpense",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gains (losses) on litigation settlements",
        "verboseLabel": "Expense for legal provisions"
       }
      }
     },
     "auth_ref": [
      "r482"
     ]
    },
    "ec_GasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GasMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedReserveInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for gas.",
        "label": "Gas [Member]",
        "terseLabel": "Gas"
       }
      }
     },
     "auth_ref": []
    },
    "ec_GasNaturalDelOrienteS.a.E.s.p.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GasNaturalDelOrienteS.a.E.s.p.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Gas Natural del Oriente S.A. E.S.P.",
        "label": "Gas Natural del Oriente S.A. E.S.P. [Member]",
        "terseLabel": "Gas Natural del Oriente S.A. E.S.P."
       }
      }
     },
     "auth_ref": []
    },
    "ec_GasRoyaltiesInCash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GasRoyaltiesInCash",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount from the Gas royalties in cash.",
        "label": "Gas Royalties In Cash",
        "terseLabel": "Gas royalties in cash"
       }
      }
     },
     "auth_ref": []
    },
    "ec_GasesDeLaGuajiraS.a.E.s.p.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GasesDeLaGuajiraS.a.E.s.p.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Gases de la Guajira S.A. E.S.P.",
        "label": "Gases de la Guajira S.A. E.S.P. [Member]",
        "terseLabel": "Gases de la Guajira S.A. E.S.P."
       }
      }
     },
     "auth_ref": []
    },
    "ec_GasesDelCaribeS.a.E.s.p.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GasesDelCaribeS.a.E.s.p.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Gases del Caribe S.A. E.S.P.",
        "label": "Gases del Caribe S.A. E.S.P. [Member]",
        "terseLabel": "Gases del Caribe S.A. E.S.P."
       }
      }
     },
     "auth_ref": []
    },
    "ec_GasesDelCaribeSaEspMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GasesDelCaribeSaEspMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Gases del Caribe S.A E.S.P.",
        "label": "Gases Del Caribe SA ESP [Member]",
        "terseLabel": "Gases del Caribe S.A. E.S.P."
       }
      }
     },
     "auth_ref": []
    },
    "ec_GasesDelOrienteS.a.E.s.p.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GasesDelOrienteS.a.E.s.p.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Gases del Oriente S.A. E.S.P.",
        "label": "Gases del Oriente S.A. E.S.P."
       }
      }
     },
     "auth_ref": []
    },
    "ec_GasolineAndTurboFuelMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GasolineAndTurboFuelMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gasolines",
        "verboseLabel": "Gasoline and turbo fuels"
       }
      }
     },
     "auth_ref": []
    },
    "ec_GasolinesYTurboFuelsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GasolinesYTurboFuelsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "n/a",
        "label": "Gasoline and turbo fuels [Member]",
        "terseLabel": "Gasoline and turbo fuels"
       }
      }
     },
     "auth_ref": []
    },
    "ec_GeneralExpensesAndOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GeneralExpensesAndOther",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of expenses that entity classify as general and other.",
        "label": "General Expenses And Other",
        "verboseLabel": "General expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GeographicalAreasAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GeographicalAreasAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsBreakdownOfOilfieldsImpairmentLossesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical areas [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r258",
      "r489",
      "r512",
      "r516",
      "r544"
     ]
    },
    "ifrs-full_GeographicalAreasDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GeographicalAreasDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsBreakdownOfOilfieldsImpairmentLossesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical areas [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated geographical areas. It also represents the standard value for the 'Geographical areas' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r258",
      "r489",
      "r512",
      "r516",
      "r544"
     ]
    },
    "ec_GeoparkColombiaSasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GeoparkColombiaSasMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Geopark Colombia SAS.",
        "label": "Geopark Colombia SAS [Member]",
        "terseLabel": "Geopark Colombia SAS"
       }
      }
     },
     "auth_ref": []
    },
    "ec_GirasolIS.a.s.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GirasolIS.a.s.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Girasol I S.A.S.",
        "label": "Girasol I S.A.S. [Member]",
        "terseLabel": "Girasol I S.A.S."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Goodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Goodwill",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill.",
        "terseLabel": "Goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets representing the future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognised. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r79",
      "r84",
      "r196",
      "r342",
      "r347",
      "r376",
      "r436"
     ]
    },
    "ec_GoodwillFromAcquisitionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GoodwillFromAcquisitionsAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill From Acquisitions [Abstract]",
        "terseLabel": "Goodwill"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GoodwillMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GoodwillMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill Member",
        "terseLabel": "Goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for goodwill. [Refer: Goodwill]"
       }
      }
     },
     "auth_ref": [
      "r494",
      "r549"
     ]
    },
    "ifrs-full_GoodwillRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GoodwillRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill recognised as of acquisition date",
        "terseLabel": "Goodwill arising from the acquisition (Note 19)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the business combination's acquisition date for goodwill. [Refer: Goodwill; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r519",
      "r520",
      "r551"
     ]
    },
    "ec_GradeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GradeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for A.",
        "label": "A [Member]",
        "verboseLabel": "A"
       }
      }
     },
     "auth_ref": []
    },
    "ec_GrossAccountReceivableClassifiedAsOtherCurrentReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GrossAccountReceivableClassifiedAsOtherCurrentReceivables",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the amount of gross account receivable included in others.",
        "label": "Gross Account Receivable, Classified As Other Current Receivables",
        "terseLabel": "Gross accounts receivable"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GrossCarryingAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GrossCarryingAmountMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails",
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cost",
        "terseLabel": "Cost"
       }
      }
     },
     "auth_ref": [
      "r12",
      "r95",
      "r110",
      "r114",
      "r196",
      "r224",
      "r227",
      "r313",
      "r356",
      "r365",
      "r369",
      "r398",
      "r400",
      "r523"
     ]
    },
    "ifrs-full_GrossFinancialAssetsSetOffAgainstFinancialLiabilitiesSubjectToOffsettingEnforceableMasterNettingArrangementsOrSimilarAgreements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GrossFinancialAssetsSetOffAgainstFinancialLiabilitiesSubjectToOffsettingEnforceableMasterNettingArrangementsOrSimilarAgreements",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gross financial assets set off against financial liabilities subject to offsetting, enforceable master netting arrangements or similar agreements",
        "verboseLabel": "Net liabilities of companies in the group with a different functional currency"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial assets set off against financial liabilities when an entity: (a) currently has a legally enforceable right to set off the recognised amounts; and (b) intends either to settle on a net basis, or to realise the asset and settle the liability simultaneously. [Refer: Financial assets; Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r205",
      "r382"
     ]
    },
    "ifrs-full_GrossFinancialLiabilitiesSubjectToOffsettingEnforceableMasterNettingArrangementsOrSimilarAgreements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GrossFinancialLiabilitiesSubjectToOffsettingEnforceableMasterNettingArrangementsOrSimilarAgreements",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gross financial liabilities subject to offsetting, enforceable master netting arrangements or similar agreements",
        "terseLabel": "Exchange difference valuation of remaining net liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The gross amount of recognised financial liabilities that are subject either to offsetting or to an enforceable master netting arrangement or similar agreement. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r204"
     ]
    },
    "ifrs-full_GrossProfit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GrossProfit",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gross Profit",
        "terseLabel": "Gross profit",
        "totalLabel": "Gross profit"
       }
      }
     },
     "auth_ref": [
      "r557"
     ]
    },
    "ec_Group1PicoBetaSayaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Group1PicoBetaSayaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Group 1 Pico-Beta-Saya.",
        "label": "Group 1 Pico-Beta-Saya [Member]",
        "terseLabel": "Group 1 Pico-Beta-Saya"
       }
      }
     },
     "auth_ref": []
    },
    "ec_GuajiraContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GuajiraContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Guajira Contract [Member]",
        "terseLabel": "Guajira"
       }
      }
     },
     "auth_ref": []
    },
    "ec_GunflintContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "GunflintContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for  Gunflint Contract.",
        "label": "Gunflint Contract [Member]",
        "terseLabel": "Gunflint"
       }
      }
     },
     "auth_ref": []
    },
    "ec_HealthMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "HealthMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Health [Member]",
        "terseLabel": "Health"
       }
      }
     },
     "auth_ref": []
    },
    "ec_HealthcareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "HealthcareMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Health",
        "terseLabel": "Health",
        "verboseLabel": "Health"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_HedgesOfNetInvestmentInForeignOperationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "HedgesOfNetInvestmentInForeignOperationsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementHedgeOfNetInvestmentInForeignOperationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedge of a Net Investment in a Foreign Operation [Member]",
        "terseLabel": "Hedge of a net investment in a foreign operation"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for hedges of the entity's monetary items that are receivable from or payable to a foreign operation, for which settlement is neither planned nor likely to occur in the foreseeable future. A foreign operation is an entity that is a subsidiary, associate, joint venture or branch of a reporting entity, the activities of which are based or conducted in a country or currency other than those of the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r106",
      "r211",
      "r212",
      "r217",
      "r386",
      "r387",
      "r392"
     ]
    },
    "ifrs-full_HedgingInstrumentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "HedgingInstrumentAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementHedgeOfNetInvestmentInForeignOperationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementNonDerivativeHedgingInstrumentDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementScheduleOfDetailedInformationAboutHedgingInstrumentsExplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedging instrument",
        "periodEndLabel": "Closing balance",
        "periodStartLabel": "Opening balance",
        "terseLabel": "Hedging instrument at the end of the period",
        "verboseLabel": "Hedging instrument assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of a hedging instrument, recognised as an asset. [Refer: Hedging instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r210",
      "r385"
     ]
    },
    "ifrs-full_HedgingInstrumentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "HedgingInstrumentLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementHedgeOfNetInvestmentInForeignOperationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementScheduleOfDetailedInformationAboutHedgingInstrumentsExplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedging instrument, liabilities",
        "terseLabel": "Hedging instrument liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of a hedging instrument, recognised as a liability. [Refer: Hedging instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r210",
      "r385"
     ]
    },
    "ec_HedgingInstrumentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "HedgingInstrumentMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for hedging instruments.",
        "label": "Hedging instruments [Member]",
        "verboseLabel": "Hedging instruments"
       }
      }
     },
     "auth_ref": []
    },
    "ec_HedgingInstrumentsRealizedExports": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "HedgingInstrumentsRealizedExports",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementNonDerivativeHedgingInstrumentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the amount of realized exports on hedge instruments.",
        "label": "Hedging Instruments, Realized Exports",
        "verboseLabel": "Realization of exports"
       }
      }
     },
     "auth_ref": []
    },
    "ec_HessMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "HessMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for HESS.",
        "label": "HESS [Member]",
        "terseLabel": "HESS"
       }
      }
     },
     "auth_ref": []
    },
    "ec_HocolPetroleumLimitedHplMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "HocolPetroleumLimitedHplMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This Member stands for Hocol Petroleum Limited - HPL.",
        "label": "Hocol Petroleum Limited."
       }
      }
     },
     "auth_ref": []
    },
    "ec_HocolPetroleumLimitedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "HocolPetroleumLimitedMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Hocol Petroleum.",
        "label": "Hocol Petroleum Ltd",
        "terseLabel": "Hocol Petroleum Ltd"
       }
      }
     },
     "auth_ref": []
    },
    "ec_HocolS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "HocolS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Hocol S.A.",
        "label": "Hocol S.A. [Member]",
        "terseLabel": "Hocol S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_HocolSaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "HocolSaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hocol S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_HubDigitalDeServiciosIsaS.a.sMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "HubDigitalDeServiciosIsaS.a.sMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for HUB Digital de Servicios ISA S.A.S.",
        "label": "HUB Digital de Servicios ISA S.A.S [Member]",
        "terseLabel": "HUB Digital de Servicios ISA S.A.S"
       }
      }
     },
     "auth_ref": []
    },
    "country_IN": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2025",
     "localname": "IN",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "INDIA",
        "terseLabel": "India"
       }
      }
     },
     "auth_ref": []
    },
    "dei_IcfrAuditorAttestationFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "IcfrAuditorAttestationFlag",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ICFR Auditor Attestation Flag"
       }
      }
     },
     "auth_ref": [
      "r569",
      "r570",
      "r593"
     ]
    },
    "ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IdentifiableAssetsAcquiredLiabilitiesAssumed",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Identifiable assets acquired (liabilities assumed)",
        "totalLabel": "Fair value of identifiable net assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for net identifiable assets acquired or liabilities assumed in a business combination. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r518",
      "r520",
      "r550"
     ]
    },
    "ec_IfrsArbitrationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsArbitrationMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for arbitration.",
        "label": "IFRS Arbitration [Member]",
        "terseLabel": "Arbitration"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsAssetAcquisitionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsAssetAcquisitionAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by asset acquisition.",
        "label": "IFRS Asset Acquisition [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsAssetAcquisitionConsiderationTransferred": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsAssetAcquisitionConsiderationTransferred",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of consideration transferred in asset acquisition. Includes, but is not limited to, cash, liability incurred by acquirer, and equity interest issued by acquirer.",
        "label": "IFRS Asset Acquisition, Consideration Transferred",
        "terseLabel": "Acquisition recognized"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsAssetAcquisitionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsAssetAcquisitionDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Asset Acquisition.",
        "label": "IFRS Asset Acquisition [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsBusinessCombinationStepAcquisitionEquityInterestInAcquireeIncludingSubsequentAcquisitionPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsBusinessCombinationStepAcquisitionEquityInterestInAcquireeIncludingSubsequentAcquisitionPercentage",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of voting equity interests acquired in a business combination achieved in stages, including equity interests in the acquiree held by the acquirer immediately before the acquisition date and acquired at the acquisition date.",
        "label": "Ifrs Business Combination, Step Acquisition, Equity Interest in Acquiree, Including Subsequent Acquisition, Percentage",
        "terseLabel": "Percentage of ownership interest including subsequent percentage"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsBusinessCombinationStepAcquisitionEquityInterestInAcquireePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsBusinessCombinationStepAcquisitionEquityInterestInAcquireePercentage",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of equity in the acquiree held by the acquirer immediately before the acquisition date in a business combination.",
        "label": "IFRS Business Combination, Step Acquisition, Equity Interest in Acquiree, Percentage",
        "terseLabel": "Percentage of equity in the acquiree held by the acquirer"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsDebtInstrumentTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsDebtInstrumentTerm",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period of time between issuance and maturity of debt instrument, in PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Ifrs Debt Instrument, Term",
        "terseLabel": "Term of subject to adjustments",
        "verboseLabel": "Maturity period"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsDeferredTaxAssetsOperatingLossCarryforwardsSubjectToExpiration": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsDeferredTaxAssetsOperatingLossCarryforwardsSubjectToExpiration",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards that are subject to expiration dates.",
        "label": "Ifrs Deferred Tax Assets, Operating Loss Carryforwards, Subject to Expiration",
        "terseLabel": "Operating loss carryforwards, subject to expiration"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsIncomeTaxCreditsAndAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsIncomeTaxCreditsAndAdjustments",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A credit or adjustment for government or taxing authority authorized decrease in taxes owed as a result of meeting certain tax policy conditions.",
        "label": "IFRS Income Tax Credits and Adjustments",
        "terseLabel": "Tax discounts and tax credit"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsLegalEntityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsLegalEntityAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This axis represents for legal entity.",
        "label": "Ifrs Legal Entity Axis"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsLegalEntityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsLegalEntityMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for legal entity.",
        "label": "Ifrs Legal Entity Member"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsLenderNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsLenderNameAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The axis of Ifrs Lender Name.",
        "label": "Ifrs Lender Name [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsLenderNameMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsLenderNameMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for all Ifrs Lender Name.",
        "label": "Ifrs Lender Name [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsLitigationSettlementAmountAwardedToOtherParty": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsLitigationSettlementAmountAwardedToOtherParty",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount awarded to other party in judgment or settlement of litigation.",
        "label": "ifrs Litigation Settlement, Amount Awarded to Other Party",
        "terseLabel": "Amount awarded to other party"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsNewProvisionsOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsNewProvisionsOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount recognised for new other provisions. [Refer: Other provisions]",
        "label": "Ifrs New Provisions Other Provisions",
        "terseLabel": "Abandonment cost update"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsNumberOfOperatingSegments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsNumberOfOperatingSegments",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of operating segments. An operating segment is a component of an enterprise: (a) that engages in business activities from which it may earn revenues and incur expenses (including revenues and expenses relating to transactions with other components of the same enterprise), (b) whose operating results are regularly reviewed by the enterprise's chief operating decision maker to make decisions about resources to be allocated to the segment and assess its performance, and (c) for which discrete financial information is available. An operating segment may engage in business activities for which it has yet to earn revenues, for example, start-up operations may be operating segments before earning revenues.",
        "label": "Ifrs Number Of Operating Segments",
        "terseLabel": "Number of business segments"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsOwnershipAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsOwnershipAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of entity in which ownership interest is disclosed. Excludes equity method investee and named security investment.",
        "label": "IFRS Ownership [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsOwnershipDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsOwnershipDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of entity in which ownership interest is disclosed. Excludes equity method investee and named security investment.",
        "label": "IFRS Ownership [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsPaymentsToAcquireBusinessesNetOfCashAcquired": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsPaymentsToAcquireBusinessesNetOfCashAcquired",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate cash outflow associated with the acquisition of a business, net of the cash acquired from the purchase.",
        "label": "Ifrs Payments to Acquire Businesses, Net of Cash Acquired",
        "negatedLabel": "Consideration paid in business combination, net of cash and cash equivalents"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsStatementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsStatementLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "IFRS Statement [Line Items]",
        "verboseLabel": "Cash and cash equivalents"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsStatementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsStatementTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule reflecting a Statement of Income, Statement of Cash Flows, Statement of Financial Position, Statement of Shareholders' Equity and Other Comprehensive Income, or other statement as needed.",
        "label": "IFRS Statement [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsTaxPeriodAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsTaxPeriodAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by period subject to enacted tax law.",
        "label": "Ifrs Tax Period [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IfrsTaxPeriodDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IfrsTaxPeriodDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identified tax period.",
        "label": "Ifrs Tax Period [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Ifrs_pipelinesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Ifrs_pipelinesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to the pipeline member.",
        "label": "IFRS_Pipelines [Member]",
        "verboseLabel": "Pipelines"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ImpairmentExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ImpairmentExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of expense is presented for impairment in office-type containers because of the appraisals made to these and surpluses from the expansion project.",
        "label": "Impairment Expense",
        "terseLabel": "Net impairment loss"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ImpairmentLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment loss",
        "terseLabel": "Impairment loss",
        "totalLabel": "Impairment loss"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as a reduction of the carrying amount of an asset or cash-generating unit to its recoverable amount. [Refer: Carrying amount [member]]"
       }
      }
     },
     "auth_ref": [
      "r73",
      "r74"
     ]
    },
    "ifrs-full_ImpairmentLossImpairmentGainAndReversalOfImpairmentLossDeterminedInAccordanceWithIFRS9": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentLossImpairmentGainAndReversalOfImpairmentLossDeterminedInAccordanceWithIFRS9",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment loss (impairment gain and reversal of impairment loss) determined in accordance with IFRS 9",
        "negatedLabel": "Impairment recovery (loss) of long-term non-monetary assets",
        "negatedTerseLabel": "Impairment (loss) reversal of non-current assets"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": [
      "r472"
     ]
    },
    "ifrs-full_ImpairmentLossRecognisedInProfitOrLossIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentLossRecognisedInProfitOrLossIntangibleAssetsOtherThanGoodwill",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails": {
       "parentTag": "ifrs-full_ImpairmentLoss",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment loss recognised in profit or loss, intangible assets other than goodwill",
        "terseLabel": "Intangibles"
       }
      }
     },
     "auth_ref": [
      "r97",
      "r358"
     ]
    },
    "ifrs-full_ImpairmentLossRecognisedInProfitOrLossInvestmentProperty": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentLossRecognisedInProfitOrLossInvestmentProperty",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment loss recognised in profit or loss, investment property",
        "terseLabel": "Impairment loss refinery property"
       }
      }
     },
     "auth_ref": [
      "r108",
      "r111",
      "r363",
      "r366"
     ]
    },
    "ec_ImpairmentLossRecognisedInProfitOrLossNonCurrentAssetsHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ImpairmentLossRecognisedInProfitOrLossNonCurrentAssetsHeldForSale",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails": {
       "parentTag": "ifrs-full_ImpairmentLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of impairment loss recognised in profit or loss for non-current assets held for sale.",
        "label": "Impairment Loss Recognised In Profit Or Loss Non Current Assets Held For Sale",
        "terseLabel": "Non-current asset held for sale"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails": {
       "parentTag": "ifrs-full_ImpairmentLoss",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment loss recognised in profit or loss, property, plant and equipment",
        "terseLabel": "Property, plant and, equipment"
       }
      }
     },
     "auth_ref": [
      "r16",
      "r316",
      "r480"
     ]
    },
    "ifrs-full_ImpairmentLossRecognisedInProfitOrLossTradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentLossRecognisedInProfitOrLossTradeReceivables",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails": {
       "parentTag": "ifrs-full_OtherOperatingIncomeExpense",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment loss recognised in profit or loss, trade receivables",
        "negatedLabel": "Impairment loss of current assets"
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ec_ImpairmentLossReversalOfImpairmentLossOnInvestmentsInAssociatesAndJointVenture": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ImpairmentLossReversalOfImpairmentLossOnInvestmentsInAssociatesAndJointVenture",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of impairment loss or reversal of impairment loss recognised from investments in associates and joint venture.",
        "label": "Impairment Loss Reversal Of Impairment Loss On Investments In Associates And Joint Venture",
        "verboseLabel": "Impairment recovery"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsBreakdownOfOilfieldsImpairmentLossesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsExplorationAndProductionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment loss (reversal of impairment loss) recognised in profit or loss",
        "terseLabel": "Impairment reversal (loss)",
        "verboseLabel": "Impairment loss - exploration and production segment (reversal of impairment loss) recognized in profit or loss"
       }
      }
     },
     "auth_ref": [
      "r286",
      "r483"
     ]
    },
    "ec_ImpairmentOfLongTermAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ImpairmentOfLongTermAssetsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Impairment of non-financial assets",
        "label": "Impairment of non-financial assets [Line Items]",
        "terseLabel": "Impairment of long-term assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ImpairmentOfLongTermAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ImpairmentOfLongTermAssetsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment of non-financial assets [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ImpairmentOfPropertyPlantAndEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ImpairmentOfPropertyPlantAndEquipmentMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment of Property, Plant and equipment [Member]",
        "terseLabel": "Property, plant, and equipment"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ImpairmentProfitOrLossRecognisedInProfitOrLossRightOfUseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ImpairmentProfitOrLossRecognisedInProfitOrLossRightOfUseAssets",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of impairment profit or loss recognised in profit or loss for right-of-use assets. [Refer: Impairment loss recognised in profit or loss; Right-of-use assets]",
        "label": "Impairment profit or loss recognised in profit or loss, right-of-use assets",
        "terseLabel": "Impairment Loss (Note 18)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ImpairmentsLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ImpairmentsLoss",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsInvestmentsInJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The impairment loss",
        "label": "Impairments Loss",
        "terseLabel": "Investment in associates and joint ventures"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeStatementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeStatementAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated statement of profit or loss",
        "verboseLabel": "Statement of profit or loss"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncomeTaxCreditsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncomeTaxCreditsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for income tax credits.",
        "label": "Income tax credits [Member]",
        "terseLabel": "Income tax credits"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeTaxExpenseContinuingOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeTaxExpenseContinuingOperations",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": -1.0,
       "order": 2.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxExpenseDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxExpenseDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax expense (income), continuing operations",
        "negatedLabel": "Income tax expense",
        "negatedTerseLabel": "Income tax expense",
        "netLabel": "Net income tax of Colombia Group companies",
        "terseLabel": "Income tax",
        "totalLabel": "Income tax expenses"
       }
      }
     },
     "auth_ref": [
      "r2",
      "r4",
      "r5",
      "r59",
      "r154",
      "r248",
      "r304",
      "r306",
      "r307",
      "r474"
     ]
    },
    "ec_IncomeTaxMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncomeTaxMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for income tax.",
        "label": "Income tax"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncomeTaxRelatingToCashFlowHedgesFutureCrudeOilExports": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncomeTaxRelatingToCashFlowHedgesFutureCrudeOilExports",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesFutureCrudeOilExports",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of income tax expense or benefit recognised in other comprehensive income relating to gains or losses on hedging instruments designated in cash flow hedging relationships for forecast future crude oil export transactions.",
        "label": "Income Tax Relating To Cash Flow Hedges Future Crude Oil Exports",
        "negatedLabel": "Cash flow hedging for future crude oil exports, Deferred tax"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeTaxRelatingToCashFlowHedgesOfOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeTaxRelatingToCashFlowHedgesOfOtherComprehensiveIncome",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income tax relating to cash flow hedges of other comprehensive income",
        "negatedLabel": "Hedge with derivative instruments, Deferred tax",
        "terseLabel": "Taxes"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income tax relating to amounts recognised in other comprehensive income in relation to cash flow hedges. [Refer: Cash flow hedges [member]; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r3",
      "r476"
     ]
    },
    "ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeTaxRelatingToComponentsOfOtherComprehensiveIncome",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeOfAfterTax",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredIncomeTaxDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income tax relating to components of other comprehensive income",
        "negatedLabel": "Deferred tax recognized in other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income tax relating to amounts recognised in other comprehensive income. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r3",
      "r305",
      "r476"
     ]
    },
    "ec_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeOfAfterTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeOfAfterTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "It represents the amount of income tax relating to components of other comprehensive income of after tax.",
        "label": "Income Tax Relating To Components Of Other Comprehensive Income Of After Tax",
        "totalLabel": "After tax"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncomeTaxRelatingToExchangeDifferencesOnForeignCurrencyTranslationIncludedInOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncomeTaxRelatingToExchangeDifferencesOnForeignCurrencyTranslationIncludedInOtherComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of other comprehensive income, net of tax, after reclassification adjustments, related to exchange differences when financial statements of foreign currency translation.",
        "label": "Income Tax Relating to Exchange Differences on Foreign Currency Translation Included in Other Comprehensive Income",
        "totalLabel": "Foreign currency translation, After tax"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeTaxRelatingToExchangeDifferencesOnTranslationOfOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeTaxRelatingToExchangeDifferencesOnTranslationOfOtherComprehensiveIncome",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_IncomeTaxRelatingToExchangeDifferencesOnForeignCurrencyTranslationIncludedInOtherComprehensiveIncome",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income tax relating to exchange differences on translation of foreign operations included in other comprehensive income",
        "negatedLabel": "Foreign currency translation, Deferred tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income tax relating to amounts recognised in other comprehensive income in relation to exchange differences on the translation of financial statements of foreign operations. [Refer: Other comprehensive income; Reserve of exchange differences on translation]"
       }
      }
     },
     "auth_ref": [
      "r3",
      "r476"
     ]
    },
    "ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income tax relating to financial assets measured at fair value through other comprehensive income included in other comprehensive income",
        "negatedLabel": "Valuation of financial instruments at fair value, Deferred tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income tax relating to amounts recognised in other comprehensive income in relation to financial assets measured at fair value through other comprehensive income applying paragraph 4.1.2A of IFRS 9. [Refer: Financial assets measured at fair value through other comprehensive income; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r3",
      "r476"
     ]
    },
    "ifrs-full_IncomeTaxRelatingToHedgesOfNetInvestmentsInForeignOperationsOfOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeTaxRelatingToHedgesOfNetInvestmentsInForeignOperationsOfOtherComprehensiveIncome",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeNetOfTaxHedgesOfNetInvestmentsInForeignOperations",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementHedgeOfNetInvestmentInForeignOperationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income tax relating to hedges of net investments in foreign operations of other comprehensive income",
        "negatedLabel": "Hedge of a net investment in a foreign operation, Deferred tax",
        "verboseLabel": "Deferred income tax (Note 10)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income tax relating to amounts recognised in other comprehensive income in relation to hedges of net investments in foreign operations. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r3",
      "r476"
     ]
    },
    "ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income tax relating to remeasurements of defined benefit plans included in other comprehensive income",
        "negatedLabel": "Actuarial valuation gains (losses), Deferred tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income tax relating to amounts recognised in other comprehensive income in relation to remeasurements of defined benefit plans. [Refer: Other comprehensive income; Reserve of remeasurements of defined benefit plans; Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r3",
      "r476"
     ]
    },
    "ec_IncomeTaxTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncomeTaxTypeAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Type [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncomeTaxTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncomeTaxTypeDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Type [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeTaxesPaidRefundClassifiedAsOperatingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income taxes paid (refund), classified as operating activities",
        "negatedLabel": "Income tax paid"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from income taxes paid or refunded, classified as operating activities. [Refer: Income taxes paid (refund)]"
       }
      }
     },
     "auth_ref": [
      "r120",
      "r497"
     ]
    },
    "ec_IncomeThatDoesNotConstituteIncomeOrOccasionalProfitWhichAffectsAccountingOrFinancialProfit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncomeThatDoesNotConstituteIncomeOrOccasionalProfitWhichAffectsAccountingOrFinancialProfit",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of income that does not constitute income or occasional profit, which affects accounting or financial profit.",
        "label": "Income That Does Not Constitute Income or Occasional Profit, Which Affects Accounting or Financial Profit",
        "negatedLabel": "Income that does not constitute income or occasional profit, which affects accounting or financial profit"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseDueToChangesInAccountingPolicyRequiredByIFRSsCumulativeEffectAtDateOfInitialApplicationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseDueToChangesInAccountingPolicyRequiredByIFRSsCumulativeEffectAtDateOfInitialApplicationMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adoption of new standards"
       }
      }
     },
     "auth_ref": [
      "r715"
     ]
    },
    "ec_IncreaseDecreaseDueToRegulatoryAdjustmentConcessionAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseDueToRegulatoryAdjustmentConcessionAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of increase (decrease) in concession assets due to regulatory adjustment.",
        "label": "Increase (Decrease) due to Regulatory Adjustment, Concession Assets",
        "terseLabel": "Regulatory adjustment on remuneration according to Resoluo Homologatria (REH) n 3,466/2025"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseDueToRemunerationAccrualConcessionAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseDueToRemunerationAccrualConcessionAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of increase (decrease) in concession assets due to remuneration accrued.",
        "label": "Increase (Decrease) due to Remuneration Accrual, Concession Assets",
        "terseLabel": "Remuneration of concession assets (accrual)"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseInAccumulatedDeferredTaxRecognisedInOtherComprehensiveIncomeDueToChangeInTaxRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseInAccumulatedDeferredTaxRecognisedInOtherComprehensiveIncomeDueToChangeInTaxRate",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementOfDefinedBenefitPlans",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) in accumulated deferred tax recognised in other comprehensive income due to change in tax rate",
        "negatedLabel": "Deferred tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in accumulated deferred tax recognised in other comprehensive income due to change in the tax rate. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r724"
     ]
    },
    "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseInCashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) in cash and cash equivalents",
        "totalLabel": "Net increase (decrease) in cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in cash and cash equivalents after the effect of exchange rate changes on cash and cash equivalents held in foreign currencies. [Refer: Cash and cash equivalents; Effect of exchange rate changes on cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r123",
      "r299"
     ]
    },
    "ifrs-full_IncreaseDecreaseInDeferredTaxLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseInDeferredTaxLiabilityAsset",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) in deferred tax liability (asset)",
        "terseLabel": "Deferred tax asset (liability)"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in a deferred tax liability (asset). [Refer: Deferred tax liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r680"
     ]
    },
    "ifrs-full_IncreaseDecreaseInDefinedBenefitObligationDueToReasonablyPossibleDecreaseInActuarialAssumption": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseInDefinedBenefitObligationDueToReasonablyPossibleDecreaseInActuarialAssumption",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) in defined benefit obligation due to reasonably possible decrease in actuarial assumption",
        "verboseLabel": "-50 basis points"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in a defined benefit obligation that would have been caused by a decrease in a significant actuarial assumption that was reasonably possible at the end of the reporting period. [Refer: Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r35"
     ]
    },
    "ifrs-full_IncreaseDecreaseInDefinedBenefitObligationDueToReasonablyPossibleIncreaseInActuarialAssumption": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseInDefinedBenefitObligationDueToReasonablyPossibleIncreaseInActuarialAssumption",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) in defined benefit obligation due to reasonably possible increase in actuarial assumption",
        "verboseLabel": "+50 basis points"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in a defined benefit obligation that would have been caused by an increase in a significant actuarial assumption that was reasonably possible at the end of the reporting period. [Refer: Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r35"
     ]
    },
    "ec_IncreaseDecreaseInEffectiveTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseInEffectiveTaxRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of increase (decrease) in effective tax rate.",
        "label": "Increase (Decrease) in Effective Tax Rate",
        "terseLabel": "Effective tax rate"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseInFinancialAssetsExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseInFinancialAssetsExpenses",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementRiskManagementSensitivityInIncomeAndOtherComprehensiveIncomeToVariationsInInterestRateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase or decrease in financial assets expense during the period.",
        "label": "Increase decrease in financial assets expenses",
        "verboseLabel": "Financial assets (Financial expenses)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseInFinancialAssetsIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseInFinancialAssetsIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementRiskManagementSensitivityInIncomeAndOtherComprehensiveIncomeToVariationsInInterestRateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase or decrease in financial assets income during the period.",
        "label": "Increase decrease in financial assets income",
        "verboseLabel": "Financial assets (Financial income)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseInFinancialLiabilitiesExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseInFinancialLiabilitiesExpenses",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementRiskManagementSensitivityInIncomeAndOtherComprehensiveIncomeToVariationsInInterestRateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase or decrease in financial liabilities expenses during the period.",
        "label": "Increase decrease in financial liabilities expenses",
        "verboseLabel": "Financial liabilities (Financial expenses)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseInFinancialLiabilitiesIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseInFinancialLiabilitiesIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementRiskManagementSensitivityInIncomeAndOtherComprehensiveIncomeToVariationsInInterestRateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase or decrease in financial liabilities income during the period.",
        "label": "increase decrease in financial liabilities income",
        "verboseLabel": "Financial liabilities (Financial income)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseInForeignExchangeRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseInForeignExchangeRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of the value of foreign exchange price increased decreased during the period.",
        "label": "The Increase Decrease In Foreign exchange Rate",
        "terseLabel": "Increase decrease in foreign exchange rate"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseInInterestInOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseInInterestInOtherComprehensiveIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementRiskManagementSensitivityInIncomeAndOtherComprehensiveIncomeToVariationsInInterestRateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase or decrease in interest in other comprehensive income during the period.",
        "label": "Increase decrease in interest in other comprehensive income",
        "verboseLabel": "Plan assets (Other comprehensive income)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseInProvisionsAndContingencies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseInProvisionsAndContingencies",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 26.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This represents provisions and contingencies.",
        "label": "Increase (Decrease) in Provisions and Contingencies",
        "terseLabel": "Provisions and contingencies"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseInReversals": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseInReversals",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "It represents the increase decrease In reversals.",
        "label": "Increase Decrease In Reversals",
        "terseLabel": "Additions (recoveries)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseInSalePriceDifferential": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseInSalePriceDifferential",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The price difference arising because of the difference in parity price of that product and regulated price by authority.",
        "label": "Increase decrease in sale price differential",
        "verboseLabel": "Recognition of price differential"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseThroughAbandonmentCostsIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughAbandonmentCostsIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in intangible assets other than goodwill resulting from abandonment costs.",
        "label": "Increase decrease through abandonment costs, intangible assets other than goodwill",
        "terseLabel": "Abandonment cost update (Note 23)"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughAcquisitionOfSubsidiary": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughAcquisitionOfSubsidiary",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through acquisition of subsidiary, equity",
        "terseLabel": "Acquisition of subsidiaries",
        "verboseLabel": "Business combination"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in equity resulting from the acquisition of subsidiaries. [Refer: Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r714"
     ]
    },
    "ec_IncreaseDecreaseThroughAdditionsForInventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughAdditionsForInventories",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesChangesOfAllowancesForLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount for increase (decrease) in additions for inventory.",
        "label": "Increase Decrease Through Additions For Inventories",
        "terseLabel": "Additions"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseThroughAdditionsReversalsNetFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughAdditionsReversalsNetFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAllowanceForDoubtfulAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in financial assets resulting from additions (reversals), net.",
        "label": "Increase (Decrease) Through Additions (Reversals), Net, Financial Assets",
        "terseLabel": "Additions"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseThroughCapitalizationInvestmentInJointVenturesAndAssociates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughCapitalizationInvestmentInJointVenturesAndAssociates",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of increase (decrease) in investments in joint ventures and associates through capitalization.",
        "label": "Increase (Decrease) Through Capitalization, Investment In Joint Ventures And Associates",
        "terseLabel": "Capital contributions"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseThroughCapitalizedInterestIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughCapitalizedInterestIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in intangible assets other than goodwill resulting from capitalized interest.",
        "label": "Increase decrease through capitalized interest, intangible assets other than goodwill",
        "verboseLabel": "Capitalized financial interests"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseThroughCapitalizedInterestPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughCapitalizedInterestPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in property, plant and equipment resulting from capitalized interest.",
        "label": "Increase decrease through capitalized interest, property plant and equipment",
        "verboseLabel": "Capitalized financial interests"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughChangeInDiscountRateOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughChangeInDiscountRateOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through change in discount rate, other provisions",
        "terseLabel": "Financial costs and interest"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in other provisions resulting from a change in discount rate. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r90",
      "r352"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughChangesInForeignExchangeRatesNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughChangesInForeignExchangeRatesNetDefinedBenefitLiabilityAsset",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) in net defined benefit liability (asset) resulting from changes in foreign exchange rates, net defined benefit liability (asset)",
        "terseLabel": "Foreign currency translation"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in the net defined benefit liability (asset) resulting from changes in foreign exchange rates. [Refer: Net defined benefit liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r32"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughChangesInModelsOrRiskParametersFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughChangesInModelsOrRiskParametersFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through changes in models or risk parameters, financial assets",
        "terseLabel": "Fair value valuation of shares"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in financial assets resulting from changes in models or risk parameters. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r521",
      "r533",
      "r552"
     ]
    },
    "ec_IncreaseDecreaseThroughEquityRestitution": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughEquityRestitution",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of increase (decrease) through equity restitution.",
        "label": "Increase (Decrease) Through Equity Restitution",
        "verboseLabel": "Equity restitution"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseThroughEquityRestitutionToMinorityShareholders": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughEquityRestitutionToMinorityShareholders",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of increase (decrease) through equity restitution to minority shareholders.",
        "label": "Increase (Decrease) Through Equity Restitution to Minority Shareholders",
        "negatedLabel": "Equity restitution to minority shareholders"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseThroughFairValueAdjustmentInBusinessCombinationIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughFairValueAdjustmentInBusinessCombinationIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in intangible assets other than goodwill resulting from fair value adjustment in business combination.",
        "label": "Increase (Decrease) Through Fair Value Adjustment in Business Combination, Intangible Assets Other Than Goodwill",
        "terseLabel": "Fair value adjustment in business combination"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseThroughForeignCurrencyTranslationIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughForeignCurrencyTranslationIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in intangible assets other than goodwill resulting from foreign currency translation.",
        "label": "Increase decrease through foreign currency translation, intangible assets other than goodwill",
        "verboseLabel": "Foreign currency translation"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseThroughForeignCurrencyTranslationPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughForeignCurrencyTranslationPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in property, plant and equipment resulting from foreign currency translation.",
        "label": "Increase decrease through foreign currency translation, property plant and equipment",
        "verboseLabel": "Foreign currency translation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughForeignExchangeFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughForeignExchangeFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAllowanceForDoubtfulAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through foreign exchange, financial assets",
        "terseLabel": "Currency translation"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in financial assets resulting from foreign exchange. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r521",
      "r533",
      "r552"
     ]
    },
    "ec_IncreaseDecreaseThroughLegal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughLegal",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in equity resulting from the appropriation of legal.",
        "label": "Increase Decrease Through Legal",
        "terseLabel": "Appropriation of reserves, Legal"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesDeferredTaxLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesDeferredTaxLiabilityAsset",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredIncomeTaxDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through net exchange differences, deferred tax liability (asset)",
        "terseLabel": "Foreign currency translation"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in deferred tax liability (asset) resulting from the net exchange differences arising when the financial statements are translated from the functional currency into a different presentation currency, including the translation of a foreign operation into the presentation currency of the reporting entity. [Refer: Deferred tax liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r680"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through net exchange differences, intangible assets other than goodwill",
        "verboseLabel": "Exchange differences capitalized"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in intangible assets other than goodwill resulting from net exchange differences arising on the translation of the financial statements from the functional currency into a different presentation currency, including the translation of a foreign operation into the presentation currency of the reporting entity. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r100"
     ]
    },
    "ec_IncreaseDecreaseThroughNetExchangeDifferencesLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesLeaseLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in lease liabilities resulting from net exchange differences arising on the translation of the financial statements from the functional currency into a different presentation currency, including the translation of a foreign operation into the presentation currency of the reporting entity.",
        "label": "Increase (Decrease) Through Net Exchange Differences, Lease Liabilities",
        "terseLabel": "Exchange difference"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through net exchange differences, other provisions",
        "negatedLabel": "Foreign currency translation"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in other provisions resulting from foreign currency exchange rate changes on provisions measured in a currency different from the entity's presentation currency. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r692"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through net exchange differences, property, plant and equipment",
        "verboseLabel": "Exchange differences capitalized"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in property, plant and equipment resulting from net exchange differences arising on the translation of the financial statements from the functional currency into a different presentation currency, including the translation of a foreign operation into the presentation currency of the reporting entity. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r19"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesRightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesRightofuseAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) Through Net Exchange Differences, Right of Use Assets",
        "terseLabel": "Exchange difference"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in right-of-use assets resulting from net exchange differences arising on the translation of the financial statements from the functional currency into a different presentation currency, including the translation of a foreign operation into the presentation currency of the reporting entity. [Refer: Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r683"
     ]
    },
    "ec_IncreaseDecreaseThroughNetExchangeDifferencesprovisionsForInventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesprovisionsForInventories",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesChangesOfAllowancesForLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in provisions for inventories resulting from foreign currency exchange rate changes on provisions measured in a currency different from the entity's presentation currency.",
        "label": "Increase Decrease Through Net Exchange Differences, Provisions for Inventories",
        "verboseLabel": "Foreign currency translation"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseThroughOccasional": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughOccasional",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in equity resulting from the appropriation of occasional.",
        "label": "Increase Decrease Through Occasional",
        "terseLabel": "Appropriation of reserves , Occasional"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughOtherChangesPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughOtherChangesPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through other changes, property, plant and equipment",
        "terseLabel": "Abandonment cost update"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in property, plant and equipment resulting from changes that the entity does not separately disclose in the same statement or note. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r15",
      "r319"
     ]
    },
    "ec_IncreaseDecreaseThroughOtherReserves": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughOtherReserves",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in equity resulting from the appropriation of other reserves.",
        "label": "Increase Decrease Through Other Reserves",
        "terseLabel": "Appropriation of reserves, Other reserves"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseThroughReleaseOfReserveEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughReleaseOfReserveEquity",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in equity resulting from the release of reserve.",
        "label": "Increase (Decrease) Through Release of Reserve, Equity",
        "terseLabel": "Release of reserves"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseThroughReversalOfOilFieldsIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughReversalOfOilFieldsIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in intangible assets other than goodwill resulting from reversal of oil fields that does not separately disclose in the same statement or note.",
        "label": "Increase (Decrease) Through Reversal of Oil Fields, Intangible Assets Other Than Goodwill",
        "terseLabel": "Field reversal"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseThroughReversalOfOilFieldsPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughReversalOfOilFieldsPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in property, plant and equipment resulting from reversal of oil fields that does not separately disclose in the same statement or note.",
        "label": "Increase (Decrease) Through Reversal of Oil Fields, Property Plant And Equipment",
        "terseLabel": "Field reversal"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseDecreaseThroughTransferBetweenLegalReserveAndRetainedEarningsEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseDecreaseThroughTransferBetweenLegalReserveAndRetainedEarningsEquity",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityMovementOfEquityReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) in equity resulting from transfers between a legal reserve and retained earnings.",
        "label": "Increase decrease through transfer between legal reserve and retained earnings, equity",
        "verboseLabel": "Appropriation of reserves"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughTransferToStatutoryReserve": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughTransferToStatutoryReserve",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through transfer to statutory reserve, equity",
        "terseLabel": "Appropriation of reserves ,Fiscal and statutory"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in equity resulting from transfers to a statutory reserve. [Refer: Statutory reserve]"
       }
      }
     },
     "auth_ref": [
      "r714"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfers",
        "verboseLabel": "Transfers"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in other provisions resulting from transfers and changes that the entity does not separately disclose in the same statement or note. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r692"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughTransfersIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through transfers, intangible assets other than goodwill",
        "terseLabel": "Transfers/reclassifications",
        "verboseLabel": "Transfers/reclassifications"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in intangible assets other than goodwill resulting from transfers. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r694"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughTransfersPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughTransfersPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through transfers, property, plant and equipment",
        "terseLabel": "Reclassifications/transfers"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in property, plant and equipment resulting from transfers. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r683"
     ]
    },
    "ec_IncreaseInFloatingInterestMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseInFloatingInterestMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementRiskManagementSensitivityInIncomeAndOtherComprehensiveIncomeToVariationsInInterestRateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase in floating interest (+100 basis points)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseThroughMobilizationsAndOthersFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseThroughMobilizationsAndOthersFinancialAssets",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesFuelPriceStabilizationFunDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase in financial assets from adjustments made during the period, possibly due to adjustments affecting the allowance.",
        "label": "Increase Through Mobilizations and Others, Financial Assets",
        "terseLabel": "Mobilizations and others"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IncreaseThroughSettlementsForPeriodFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IncreaseThroughSettlementsForPeriodFinancialAssets",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesFuelPriceStabilizationFunDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase in financial assets from adjustments made during the period, possibly due to settlements of doubtful accounts.",
        "label": "Increase Through Settlements For The Period, Financial Assets",
        "terseLabel": "Settlements for the year (Note 25)"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IndividualAssetsOrCashgeneratingUnitsAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsBreakdownOfOilfieldsImpairmentLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Individual assets or cash-generating units [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r78"
     ]
    },
    "ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IndividualAssetsOrCashgeneratingUnitsDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsBreakdownOfOilfieldsImpairmentLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Individual assets or cash-generating units [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Individual assets or cash-generating units' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r78"
     ]
    },
    "ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash-generating units [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r83",
      "r346"
     ]
    },
    "ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash-generating units [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Cash-generating units' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r83",
      "r85",
      "r346",
      "r348"
     ]
    },
    "ecd_IndividualAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "IndividualAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure",
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure",
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Individual [Axis]",
        "terseLabel": "Individual:"
       }
      }
     },
     "auth_ref": [
      "r590",
      "r601",
      "r611",
      "r635",
      "r644",
      "r648",
      "r656"
     ]
    },
    "ec_IndustryAndCommerceTaxDeductionRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IndustryAndCommerceTaxDeductionRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of deduction rate on industry and commerce tax.",
        "label": "Industry and Commerce Tax Deduction Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IndustryAndCommerceTaxMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IndustryAndCommerceTaxMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for industry and commerce tax.",
        "label": "Industry and commerce Tax [Member]",
        "terseLabel": "Industry and commerce tax"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InformationAboutPricesBasedOnInformationProvidedBySpecializedMarketAnalystsAndManagementAnalysts": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InformationAboutPricesBasedOnInformationProvidedBySpecializedMarketAnalystsAndManagementAnalysts",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Information about prices based on information provided by specialized market analysts and management analysts.",
        "label": "Information about Prices Based on Information Provided by Specialized Market Analysts and Management Analysts",
        "terseLabel": "Information about prices based on information provided by specialized market analysts and management analysts"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_InsiderTradingArrLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "InsiderTradingArrLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Arrangements [Line Items]",
        "terseLabel": "Insider Trading Arrangements:"
       }
      }
     },
     "auth_ref": [
      "r654"
     ]
    },
    "ecd_InsiderTradingPoliciesProcLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "InsiderTradingPoliciesProcLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures [Line Items]",
        "terseLabel": "Insider Trading Policies and Procedures:"
       }
      }
     },
     "auth_ref": [
      "r571",
      "r660"
     ]
    },
    "ecd_InsiderTrdPoliciesProcAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "InsiderTrdPoliciesProcAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures Adopted [Flag]",
        "terseLabel": "Insider Trading Policies and Procedures Adopted"
       }
      }
     },
     "auth_ref": [
      "r571",
      "r660"
     ]
    },
    "ecd_InsiderTrdPoliciesProcNotAdoptedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "InsiderTrdPoliciesProcNotAdoptedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures Not Adopted [Text Block]",
        "terseLabel": "Insider Trading Policies and Procedures Not Adopted"
       }
      }
     },
     "auth_ref": [
      "r571",
      "r660"
     ]
    },
    "ec_InstalledCapacityOfAcquiredPowerPlant": {
     "xbrltype": "powerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InstalledCapacityOfAcquiredPowerPlant",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the installed electricity generation capacity of an individual power plant acquired as part of a business combination, measured in megawatts (MW).",
        "label": "Installed Capacity of Acquired Power Plant",
        "terseLabel": "Installed capacity of acquired plant"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangible assets other than goodwill",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "verboseLabel": "Intangible assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of identifiable non-monetary assets without physical substance. This amount does not include goodwill. [Refer: Goodwill]"
       }
      }
     },
     "auth_ref": [
      "r101",
      "r361",
      "r436"
     ]
    },
    "ifrs-full_IntangibleAssetsOtherThanGoodwillMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IntangibleAssetsOtherThanGoodwillMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangibles Assets Other Than Goodwill [Member]",
        "terseLabel": "Intangibles"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for intangible assets other than goodwill. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r494",
      "r514",
      "r546",
      "r549"
     ]
    },
    "ec_IntangiblesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IntangiblesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangibles [Member]",
        "terseLabel": "Intangibles"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InteiaS.A.S.AntesSistemasInteligentesDeRedS.A.S.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InteiaS.A.S.AntesSistemasInteligentesDeRedS.A.S.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Inteia S. A. S. (antes Sistemas Inteligentes de Red S. A. S.).",
        "label": "Inteia S. A. S. (antes Sistemas Inteligentes de Red S. A. S.) [Member]",
        "terseLabel": "Inteia S. A. S. (antes Sistemas Inteligentes de Red S. A. S.)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InteiaS.A.S.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InteiaS.A.S.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Inteia S.A.S.",
        "label": "Inteia S. A. S. [Member]",
        "terseLabel": "Inteia S.A.S."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterchileS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterchileS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interchile S.A.",
        "label": "Interchile S.A. [Member]",
        "terseLabel": "Interchile S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_IntercolombiaS.aE.s.p.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IntercolombiaS.aE.s.p.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Intercolombia S.A E.S.P.",
        "label": "Intercolombia S.A E.S.P. [Member]",
        "terseLabel": "Intercolombia S.A E.S.P."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterconexinElctricaColombiaPanamS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterconexinElctricaColombiaPanamS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interconexin Elctrica Colombia Panam S.A.",
        "label": "Interconexion Electrica Colombia Panama S.A. [Member]",
        "terseLabel": "Interconexion Electrica Colombia Panama S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterconexinElctricaS.a.EspMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterconexinElctricaS.a.EspMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interconexin Elctrica S.A. ESP.",
        "label": "Interconexion Electrica S.A. E.S.P.",
        "terseLabel": "Interconexion Electrica S.A. E.S.P."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterconexionElectricaS.a.E.s.p.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterconexionElectricaS.a.E.s.p.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interconexin Elctrica S.A. ESP.",
        "label": "Interconexion Electrica S.A. E.S.P. [Member]",
        "terseLabel": "Interconexin Elctrica S.A. ESP"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterconexionElectricaS.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterconexionElectricaS.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityDividendsPaidDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for interconexion electrica S.A.",
        "label": "Interconexion Electrica S.A",
        "terseLabel": "Interconexion Electrica S.A",
        "verboseLabel": "Interconexion Electrica S.A. ESP"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterconexionesDelNorteS.a.EnergyMegaProjectMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterconexionesDelNorteS.a.EnergyMegaProjectMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interconexiones del Norte S.A. energy megaproject.",
        "label": "Interconexiones del Norte S.A. Energy Mega Project [Member]",
        "terseLabel": "Interconexiones del Norte S.A. Energy Mega Project"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterconexionesDelNorteS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterconexionesDelNorteS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interconexiones del Norte S.A..",
        "label": "Interconexiones del Norte S.A.",
        "terseLabel": "Interconexiones del Norte S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterconexionesElctricasQoyllurSpaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterconexionesElctricasQoyllurSpaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interconexiones Elctricas Qoyllur Spa.",
        "label": "Interconexiones Elctricas Qoyllur Spa [Member]",
        "terseLabel": "Interconexiones Elctricas Qoyllur Spa"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterconexionesVialesSpaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterconexionesVialesSpaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interconexiones Viales Spa.",
        "label": "Interconexiones Viales Spa [Member]",
        "terseLabel": "Interconexiones Viales Spa"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterestCostNetOfReturnOnPlanAssetsRecognizedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterestCostNetOfReturnOnPlanAssetsRecognizedInProfitOrLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_BenefitsPlanCostsRecognizedInProfitOrLoss",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest costs, net of return on plan assets of the benefit plans recognized in profit or loss.",
        "label": "Interest Cost Net of Return on Plan Assets Recognized In Profit Or Loss",
        "terseLabel": "Interest expense, net of return on plan assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestCostsCapitalised": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestCostsCapitalised",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest costs capitalised",
        "verboseLabel": "Interest capitalized in natural resources and property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of interest costs that an entity incurs in connection with the borrowing of funds that are directly attributable to the acquisition, construction or production of a qualifying asset and which form part of the cost of that asset."
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ifrs-full_InterestExpenseIncomeNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestExpenseIncomeNetDefinedBenefitLiabilityAsset",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest expense (income), net defined benefit liability (asset)",
        "verboseLabel": "Interest expense"
       }
      }
     },
     "auth_ref": [
      "r28",
      "r325"
     ]
    },
    "ifrs-full_InterestExpenseOnBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestExpenseOnBorrowings",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails": {
       "parentTag": "ifrs-full_FinanceCosts",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest expense on borrowings",
        "negatedLabel": "Interest"
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ifrs-full_InterestExpenseOnOtherFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestExpenseOnOtherFinancialLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails": {
       "parentTag": "ifrs-full_FinanceCosts",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest expense on other financial liabilities",
        "negatedLabel": "Financial cost of other liabilities"
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ifrs-full_InterestPaidClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestPaidClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest paid, classified as financing activities",
        "negatedLabel": "Interest payments",
        "terseLabel": "Interest payments"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for interest paid, classified as financing activities."
       }
      }
     },
     "auth_ref": [
      "r119"
     ]
    },
    "ec_InterestPaymentTerms": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterestPaymentTerms",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The terms for payment of interest.",
        "label": "Interest Payment Terms",
        "verboseLabel": "Interest payment"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestReceivedClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestReceivedClassifiedAsInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest received, classified as investing activities",
        "verboseLabel": "Interests received"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from interest received, classified as investing activities."
       }
      }
     },
     "auth_ref": [
      "r119"
     ]
    },
    "ec_InterligacaoEletricaAguapeiS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaAguapeiS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligao Eltrica Aguape S.A.",
        "label": "Interligacao Eletrica Aguapei S.A. [Member]",
        "terseLabel": "Interligacao Eletrica Aguapei S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaAimoresS.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaAimoresS.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligao Eltrica Aimors S.A.",
        "label": "Interligacao Eletrica Aimores. S.A. [Member]",
        "terseLabel": "Interligao Eltrica Aimors S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaBiguacuS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaBiguacuS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligao Eltrica Biguau S.A.",
        "label": "Interligacao Eletrica Biguacu S.A. [Member]",
        "terseLabel": "Interligacao Eletrica Biguacu S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaDeMinasGeraisS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaDeMinasGeraisS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligacao Eletrica de Minas Gerais S.A.",
        "label": "Interligacao Eletrica de Minas Gerais S.A. [Member]",
        "terseLabel": "Interligacao Eletrica de Minas Gerais S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaEvrecyS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaEvrecyS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The information pertaining to Interligao Eltrica Evrecy S.A.",
        "label": "Interligacao Eletrica Evrecy S.A. [Member]",
        "terseLabel": "Interligacao Eletrica Evrecy S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaGaranhunsS.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaGaranhunsS.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligao Eltrica Garanhuns S.A.",
        "label": "Interligacao Eletrica Garanhuns S.A [Member]",
        "terseLabel": "Interligao Eltrica Garanhuns S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaItapuraS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaItapuraS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The information pertaining to Interligao Eltrica Itapura S.A.",
        "label": "Interligacao Eletrica Itapura S.A. [Member]",
        "terseLabel": "Interligacao Eletrica Itapura S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaItaquereS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaItaquereS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligao Eltrica Itaquer S.A.",
        "label": "Interligacao Eletrica Itaquere S.A. [Member]",
        "terseLabel": "Interligacao Eletrica Itaquere S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaItaunasS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaItaunasS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligao Eltrica Itanas  S.A.",
        "label": "Interligacao Eletrica Itaunas S.A. [Member]",
        "terseLabel": "Interligacao Eletrica Itaunas S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaIvaiS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaIvaiS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligao Eltrica Aimors S.A.",
        "label": "Interligacao Eletrica Ivai S.A.[Member]",
        "terseLabel": "Interligao Eltrica Iva S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaJaguar6S.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaJaguar6S.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The information pertaining to Interligao Eltrica Jaguar 6 S.A.",
        "label": "Interligacao Eletrica JAGUAR 6 S.A. [Member]",
        "terseLabel": "Interligacao Eletrica Jaguar 6 S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaJaguar8S.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaJaguar8S.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligacao Eletrica Jaguar 8 S.A.",
        "label": "Interligacao Eletrica JAGUAR 8 S.A. [Member]",
        "terseLabel": "Interligacao Eletrica Jaguar 8 S.A"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaJaguar9S.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaJaguar9S.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligacao Eletrica Jaguar 9 S.A.",
        "label": "Interligacao Eletrica JAGUAR 9 S.A.[Member]",
        "verboseLabel": "Interligacao Eletrica Jaguar 9 S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaNorteENordesteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaNorteENordesteMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsRestrictionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligao Eltrica Norte E Nordeste.",
        "label": "Interligacao Eletrica Norte E Nordeste [Member]",
        "terseLabel": "Interligacao Eletrica Norte e Nordeste"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaNorteENordesteS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaNorteENordesteS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligao Eltrica Norte E Nordeste S.A.",
        "label": "Interligacao Eletrica Norte E Nordeste S.A. [Member]",
        "terseLabel": "Interligacao Eletrica Norte E Nordeste S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaParaguacuS.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaParaguacuS.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligao Eltrica Paraguau S.A.",
        "label": "Interligacao Eletrica Paraguacu S.A [Member]",
        "terseLabel": "Interligao Eltrica Paraguau S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaPinheirosS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaPinheirosS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligacao Eletrica Pinheiros S.A.",
        "label": "Interligacao Eletrica Pinheiros S.A. [Member]",
        "terseLabel": "Interligacao Eletrica Pinheiros S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaRiachoGrandeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaRiachoGrandeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligao Eltrica Riacho Grande.",
        "label": "Interligacao Eletrica Riacho Grande [Member]",
        "terseLabel": "Interligacao Eletrica Riacho Grande"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaRiachoGrandeS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaRiachoGrandeS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligacao Eletrica Riacho Grande S.A.",
        "label": "Interligacao Eletrica Riacho Grande S.A. [Member]",
        "terseLabel": "Interligacao Eletrica Riacho Grande S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaSerraDoJapiS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaSerraDoJapiS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligacao Eletrica Serra do Japi S.A.",
        "label": "Interligacao Eletrica Serra do Japi S.A. [Member]",
        "terseLabel": "Interligacao Eletrica Serra do Japi S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaSulS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaSulS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The information pertaining to Interligao Eltrica Sul S.A.",
        "label": "Interligacao Eletrica Sul S.A. [Member]",
        "terseLabel": "Interligacao Eletrica Sul S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligacaoEletricaTibagiS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligacaoEletricaTibagiS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligacao Eletrica Tibagi S.A.",
        "label": "Interligacao Eletrica Tibagi S.A. [Member]",
        "terseLabel": "Interligacao Eletrica Tibagi S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligaoEltricaAimorsS.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligaoEltricaAimorsS.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligao Eltrica Aimors S.A.",
        "label": "Interligacao Eletrica Aimores S.A. [Member]",
        "terseLabel": "Interligao Eltrica Aimors S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligaoEltricaDoMadeiraMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligaoEltricaDoMadeiraMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesReconciliationOfEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligao Eltrica do Madeira.",
        "label": "Interligacao Eletrica do Madeira [Member]",
        "verboseLabel": "Interligao Eltrica do Madeira"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligaoEltricaDoMadeiraS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligaoEltricaDoMadeiraS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to Interligao Eltrica do Madeira S.A.",
        "label": "Interligao Eltrica do Madeira S.A.",
        "verboseLabel": "Interligao Eltrica do Madeira S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligaoEltricaDoMadeiraSaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligaoEltricaDoMadeiraSaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The information pertaining to Interligao Eltrica Do Madeira SA.",
        "label": "Interligao Eltrica Do Madeira SA [Member]",
        "terseLabel": "Interligao Eltrica do Madeira S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligaoEltricaGaranhunsS.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligaoEltricaGaranhunsS.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligao Eltrica Garanhuns S.A.",
        "label": "Interligao Eltrica Garanhuns S.A [Member]",
        "terseLabel": "Interligao Eltrica Garanhuns S.A"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligaoEltricaIvaS.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligaoEltricaIvaS.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligao Eltrica Iva S.A.",
        "label": "Interligacao Eletrica Ivai S.A. [Member]",
        "terseLabel": "Interligao Eltrica Iva S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InterligaoEltricaParaguauS.aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InterligaoEltricaParaguauS.aMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Interligao Eltrica Paraguau S.A.",
        "label": "Interligacao Eletrica Paraguacu S.A. [Member]",
        "terseLabel": "Interligao Eltrica Paraguau S.A"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Eight [Member].",
        "label": "International Commercial Loans Eight",
        "terseLabel": "International commercial loans eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansEighteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansEighteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Eighteen [Member].",
        "label": "International Commercial Loans Eighteen",
        "terseLabel": "International commercial loans eighteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansElevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansElevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Eleven [Member].",
        "label": "International Commercial Loans Eleven",
        "terseLabel": "International commercial loans eleven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansFifteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansFifteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Fifteen [Member].",
        "label": "International Commercial Loans Fifteen",
        "terseLabel": "International commercial loans fifteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Five [Member].",
        "label": "International Commercial Loans Five",
        "terseLabel": "International commercial loans five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Four [Member].",
        "label": "International Commercial Loans Four",
        "terseLabel": "International commercial loans four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansFourteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansFourteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Fourteen [Member].",
        "label": "International Commercial Loans Fourteen",
        "terseLabel": "International commercial loans fourteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Nine [Member].",
        "label": "International Commercial Loans Nine",
        "terseLabel": "International commercial loans nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansNineteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansNineteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Nineteen [Member].",
        "label": "International Commercial Loans Nineteen",
        "terseLabel": "International commercial loans nineteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans One [Member].",
        "label": "International Commercial Loans One",
        "terseLabel": "International commercial loans one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansSevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansSevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Seven [Member].",
        "label": "International Commercial Loans Seven",
        "terseLabel": "International commercial loans seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansSeventeenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansSeventeenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Seventeen [Member].",
        "label": "International Commercial Loans Seventeen",
        "terseLabel": "International commercial loans seventeen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansSixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansSixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Six [Member].",
        "label": "International Commercial Loans Six",
        "terseLabel": "International commercial loans six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansSixteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansSixteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Sixteen [Member].",
        "label": "International Commercial Loans Sixteen",
        "terseLabel": "International commercial loans sixteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansTenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansTenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Ten [Member].",
        "label": "International Commercial Loans Ten",
        "terseLabel": "International commercial loans ten"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansThirteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansThirteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Thirteen [Member].",
        "label": "International Commercial Loans Thirteen",
        "terseLabel": "International commercial loans thirteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansThirtyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansThirtyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Thirty [Member].",
        "label": "International Commercial Loans Thirty [Member]",
        "terseLabel": "International commercial loans thirty"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Two [Member].",
        "label": "International Commercial Loans Three",
        "terseLabel": "International commercial loans three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansTwelveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansTwelveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Twelve [Member].",
        "label": "International Commercial Loans Twelve",
        "terseLabel": "International commercial loans twelve"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansTwentyEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Twenty Eight [Member].",
        "label": "International Commercial Loans Twenty Eight",
        "terseLabel": "International commercial loans twenty eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansTwentyFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Twenty Five [Member].",
        "label": "International Commercial Loans Twenty Five",
        "terseLabel": "International commercial loans twenty five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansTwentyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansTwentyFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Twenty Four [Member].",
        "label": "International Commercial Loans Twenty Four",
        "terseLabel": "International commercial loans twenty four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansTwentyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansTwentyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Twenty [Member].",
        "label": "International Commercial Loans Twenty",
        "terseLabel": "International commercial loans twenty"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansTwentyNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Twenty Nine [Member].",
        "label": "International Commercial Loans Twenty Nine",
        "terseLabel": "International commercial loans twenty nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansTwentyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansTwentyOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Twenty One [Member].",
        "label": "International Commercial Loans Twenty One",
        "terseLabel": "International commercial loans twenty one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansTwentySevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Twenty Seven [Member].",
        "label": "International Commercial Loans Twenty Seven",
        "terseLabel": "International commercial loans twenty seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansTwentySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansTwentySixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Twenty Six [Member].",
        "label": "International Commercial Loans Twenty Six",
        "terseLabel": "International commercial loans twenty six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansTwentyThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Twenty Three [Member].",
        "label": "International Commercial Loans Twenty Three",
        "terseLabel": "International commercial loans twenty three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansTwentyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansTwentyTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Twenty Two [Member].",
        "label": "International Commercial Loans Twenty Two",
        "terseLabel": "International commercial loans twenty two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternationalCommercialLoansTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternationalCommercialLoansTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "International Commercial Loans Two [Member].",
        "label": "International Commercial Loans Two",
        "terseLabel": "International commercial loans two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternexaArgentinaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternexaArgentinaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Internexa Argentina.",
        "label": "Internexa Argentina [Member]",
        "terseLabel": "Internexa Argentina"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternexaBrazilOperadoraDeTelecomunicaesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternexaBrazilOperadoraDeTelecomunicaesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Internexa Brazil Operadora de Telecomunicaes.",
        "label": "Internexa Brazil Operadora De Telecomunicaes [Member]",
        "verboseLabel": "Internexa Brasil"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternexaColombiaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternexaColombiaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Internexa Colombia.",
        "label": "Internexa Colombia [Member]",
        "terseLabel": "Internexa Colombia"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternexaPeruMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternexaPeruMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Internexa Peru.",
        "label": "Internexa Peru [Member]",
        "terseLabel": "Internexa Peru"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InternexaS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InternexaS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Internexa S.A.",
        "label": "Internexa S.A. [Member]",
        "terseLabel": "Internexa S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InteroilColombiaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InteroilColombiaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for Interoil Colombia.",
        "label": "Interoil Colombia [Member]",
        "terseLabel": "Interoil Colombia"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IntersegmentSalesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IntersegmentSalesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inter-Segment Sales [Member]",
        "verboseLabel": "Inter-segment sales"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IntervialChileMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IntervialChileMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementScheduleOfDetailedInformationAboutHedgingInstrumentsExplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Intervial Chile [Member].",
        "label": "Intervial Chile [Member]",
        "terseLabel": "Intervial Chile"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IntervialChileS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IntervialChileS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Intervial Chile S.A.",
        "label": "Intervial Chile S.A. [Member]",
        "terseLabel": "Intervial Chile S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_IntervialColombiaS.a.s.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IntervialColombiaS.a.s.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Intervial Colombia S.A.S.",
        "label": "Intervial Colombia S.A.S. [Member]",
        "terseLabel": "Intervial Colombia S.A.S."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Inventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Inventories",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 4.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current inventories",
        "totalLabel": "Inventories, net",
        "verboseLabel": "Inventories"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current inventories. [Refer: Inventories]"
       }
      }
     },
     "auth_ref": [
      "r42",
      "r296",
      "r438",
      "r559"
     ]
    },
    "ec_InventoryAllocationExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InventoryAllocationExpenseIncome",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of expense or income arising through allocation of inventory.",
        "label": "Inventory Allocation Expense Income",
        "verboseLabel": "Others"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InvercolsaSaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InvercolsaSaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityDividendsPaidDetails",
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Invercolsa S.A.",
        "verboseLabel": "Invercolsa S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InversionesDeGasesDeColombiaS.a.InvercolsaS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InversionesDeGasesDeColombiaS.a.InvercolsaS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Inversiones de Gases de Colombia S.A. - Invercolsa S.A.",
        "label": "Inversiones de Gases de Colombia S.A. [Member]",
        "terseLabel": "Inversiones de Gases de Colombia S.A. Invercolsa S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_InvestmentCommitments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InvestmentCommitments",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment commitments.",
        "label": "Investment Commitments",
        "terseLabel": "Investment commitments"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InvestmentInJointVenturesAndAssociatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InvestmentInJointVenturesAndAssociatesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment in associates and joint ventures [Member]",
        "verboseLabel": "Investment in associates and joint ventures"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InvestmentPortfolioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InvestmentPortfolioMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for investment portfolio.",
        "label": "Investment Portfolio [Member]",
        "terseLabel": "Investment portfolio"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InvestmentProperty": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InvestmentProperty",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment property",
        "terseLabel": "Investment property"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of property (land or a building - or part of a building - or both) held (by the owner or by the lessee as a right-of-use asset) to earn rentals or for capital appreciation or both, rather than for: (a) use in the production or supply of goods or services or for administrative purposes; or (b) sale in the ordinary course of business."
       }
      }
     },
     "auth_ref": [
      "r109",
      "r112",
      "r364",
      "r367",
      "r435"
     ]
    },
    "ifrs-full_InvestmentsAccountedForUsingEquityMethodMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InvestmentsAccountedForUsingEquityMethodMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsExplorationAndProductionDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment in joint ventures [Member]",
        "terseLabel": "Investment in joint ventures"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for investments accounted for using the equity method. [Refer: Investments accounted for using equity method]"
       }
      }
     },
     "auth_ref": [
      "r691"
     ]
    },
    "ifrs-full_InvestmentsInAssociates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InvestmentsInAssociates",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetailss": {
       "parentTag": "ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in associates",
        "terseLabel": "Investments in associates"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of investments in associates in an entity's separate financial statements. [Refer: Total for all associates [member]]"
       }
      }
     },
     "auth_ref": [
      "r60"
     ]
    },
    "ec_InvestmentsInAssociatesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InvestmentsInAssociatesAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in associates [Abstract]",
        "terseLabel": "Associates"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InvestmentsInEquitySecuritiesAndTrustFundsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InvestmentsInEquitySecuritiesAndTrustFundsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for equity securities and trust funds.",
        "label": "Investments in Equity Securities and Trust Funds [Member]",
        "terseLabel": "Investments in equity securities and trust funds"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InvestmentsInJointVentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InvestmentsInJointVentures",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetailss": {
       "parentTag": "ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesReconciliationOfEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in joint ventures",
        "terseLabel": "Investments in joint ventures",
        "verboseLabel": "Equity of the joint venture"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of investments in joint ventures in an entity's separate financial statements. [Refer: Total for all joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r60"
     ]
    },
    "ec_InvestmentsInJointVenturesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InvestmentsInJointVenturesAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in joint ventures [Abstract]",
        "terseLabel": "Joint ventures"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InvestmentsInJointVenturesAccountedForUsingEquityMethod",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesReconciliationOfEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in joint ventures accounted for using equity method",
        "verboseLabel": "Carrying amount of the investment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of investments in joint ventures accounted for using the equity method. [Refer: Total for all joint ventures [member]; Investments accounted for using equity method]"
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InvestmentsInSubsidiariesJointVenturesAndAssociates",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetailss": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in subsidiaries, joint ventures and associates",
        "periodEndLabel": "Closing balance",
        "periodStartLabel": "Opening balance",
        "totalLabel": "Total investments in subsidiaries, joint ventures and associates",
        "verboseLabel": "Investment in associates and joint ventures"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of investments in subsidiaries, joint ventures and associates in an entity's separate financial statements. [Refer: Total for all associates [member]; Total for all joint ventures [member]; Total for all subsidiaries [member]; Investments in subsidiaries reported in separate financial statements]"
       }
      }
     },
     "auth_ref": [
      "r60"
     ]
    },
    "ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociatesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InvestmentsInSubsidiariesJointVenturesAndAssociatesAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in subsidiaries, joint ventures and associates [abstract]",
        "terseLabel": "Joint ventures and Associates"
       }
      }
     },
     "auth_ref": []
    },
    "ec_InvestmentsInventoriesAndIntangibleAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "InvestmentsInventoriesAndIntangibleAssetsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Others.",
        "terseLabel": "Other"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaAndItsCompaniesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaAndItsCompaniesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ISA and its Companies.",
        "label": "ISA and Its Companies [Member]",
        "terseLabel": "ISA and its Companies"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaBoliviaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaBoliviaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ISA Bolivia.",
        "label": "ISA Bolivia",
        "terseLabel": "ISA Bolivia"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaBrasilAndSubsidiariesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaBrasilAndSubsidiariesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ISA Brasil and subsidiaries.",
        "label": "ISA Brasil and Subsidiaries [Member]",
        "terseLabel": "ISA Brasil and subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaCapitalDoBrasilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaCapitalDoBrasilMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "na",
        "label": "ISA Capital Do Brasil [Member]",
        "terseLabel": "ISA Capital do Brasil"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaColombiaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaColombiaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementHedgeOfNetInvestmentInForeignOperationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Isa Colombia",
        "label": "Isa Colombia [Member]",
        "terseLabel": "ISA Colombia"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaCtepMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaCtepMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementScheduleOfDetailedInformationAboutHedgingInstrumentsExplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ISA CTEP.",
        "label": "ISA CTEP [Member]",
        "terseLabel": "ISA CTEP"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaEnergaBrazilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaEnergaBrazilMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The information pertaining to ISA Energa Brazil.",
        "label": "ISA Energa Brazil [Member]",
        "terseLabel": "ISA Energa Brazil"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaEnergiaBrasilCivilContingencyCaseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaEnergiaBrasilCivilContingencyCaseMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsLitigationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ISA Energia Brasil civil contingency case.",
        "label": "ISA Energia Brasil, Civil Contingency, Case [Member]",
        "terseLabel": "ISA Energa Brasil"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaEnergiaBrasilS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaEnergiaBrasilS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ISA Energa Brasil S.A.",
        "label": "ISA Energia Brasil S.A. [Member]",
        "verboseLabel": "ISA Energia Brasil S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaInterchileMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaInterchileMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ISA Interchile.",
        "label": "ISA Interchile",
        "terseLabel": "ISA Interchile",
        "verboseLabel": "Isa Interchile"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaIntervialColombiaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaIntervialColombiaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for isa intervial colombia.",
        "label": "ISA Intervial Colombia"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaInversionesChileMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaInversionesChileMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ISA Inversiones Chile.",
        "label": "ISA Inversiones Chile",
        "terseLabel": "ISA Inversiones Chile SpA"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaInversionesChileVasSpaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaInversionesChileVasSpaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ISA Inversiones Chile Vas SpA.",
        "label": "ISA Inversiones Chile Vas SpA",
        "terseLabel": "ISA Inversiones Chile Vias SpA"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaInversionesCosteraChileSpaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaInversionesCosteraChileSpaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ISA Inversiones Costera Chile Spa.",
        "label": "ISA Inversiones Costera Chile Spa [Member]",
        "terseLabel": "ISA Inversiones Costera Chile Spa"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaInversionesToltenLtda.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaInversionesToltenLtda.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ISA Inversiones Tolten Ltda.",
        "label": "ISA Inversiones Tolten Ltda. [Member]",
        "terseLabel": "ISA Inversiones Tolten Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaInvestimentosEParticipaesS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaInvestimentosEParticipaesS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ISA Investimentos e Participaes S.A.",
        "label": "ISA Investimentos e Participaes S.A. [Member]",
        "terseLabel": "ISA Investimentos e Participaes S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsRestrictionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "It represents member of ISA subsidiaries .",
        "label": "ISA",
        "terseLabel": "ISA Group",
        "verboseLabel": "ISA"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaPeruMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaPeruMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ISA Peru.",
        "label": "ISA Peru",
        "terseLabel": "ISA Peru"
       }
      }
     },
     "auth_ref": []
    },
    "ec_IsaPeruS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "IsaPeruS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ISA Per S.A..",
        "label": "ISA Peru S.A. [Member]",
        "terseLabel": "ISA Peru S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IssuedCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IssuedCapital",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Issued capital",
        "verboseLabel": "Subscribed and paid in capital"
       }
      },
      "en": {
       "role": {
        "documentation": "The nominal value of capital issued."
       }
      }
     },
     "auth_ref": [
      "r555",
      "r561"
     ]
    },
    "ifrs-full_IssuedCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IssuedCapitalMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Issued Capital [Member]",
        "terseLabel": "Subscribed and paid-in capital"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing issued capital."
       }
      }
     },
     "auth_ref": [
      "r427"
     ]
    },
    "ifrs-full_JointVenturesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "JointVenturesAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsInvestmentsInJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesReconciliationOfEquityDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Joint ventures [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r63",
      "r66",
      "r156",
      "r404"
     ]
    },
    "ifrs-full_JointVenturesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "JointVenturesDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsInvestmentsInJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesReconciliationOfEquityDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Joint ventures [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Joint ventures' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r63",
      "r66",
      "r156",
      "r404"
     ]
    },
    "ifrs-full_JointVenturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "JointVenturesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Joint Ventures [member]",
        "terseLabel": "Joint ventures"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for joint arrangements whereby the parties that have joint control of the arrangement have rights to the net assets of the arrangement."
       }
      }
     },
     "auth_ref": [
      "r63",
      "r66",
      "r156",
      "r404"
     ]
    },
    "ifrs-full_JointVenturesWhereEntityIsVenturerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "JointVenturesWhereEntityIsVenturerMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Joint ventures where entity is venturer [member]",
        "terseLabel": "Joint Ventures"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for joint ventures in which the entity is a joint venturer. A venturer is a party to a joint venture and has joint control over that joint venture. [Refer: Total for all joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r52",
      "r337"
     ]
    },
    "ec_JpmorganChaseBankN.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "JpmorganChaseBankN.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to JPMorgan Chase Bank, N.A.",
        "label": "JPMorgan Chase Bank, N.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_JudicialDepositsAndAttachments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "JudicialDepositsAndAttachments",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails": {
       "parentTag": "ifrs-full_OtherNoncurrentNonfinancialAssets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of judicial deposits and attachments as at reporting period.",
        "label": "Judicial deposits and attachments",
        "verboseLabel": "Judicial deposits and attachments"
       }
      }
     },
     "auth_ref": []
    },
    "ec_K2ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "K2ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for K2 Contract.",
        "label": "K2 Contract [Member]",
        "terseLabel": "K2"
       }
      }
     },
     "auth_ref": []
    },
    "ec_KalixpanServiciosTecnicosSDeRlDeCvMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "KalixpanServiciosTecnicosSDeRlDeCvMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "this member stands for Kalixpan Servicios Tcnicos S de RL de CV.",
        "label": "Kalixpan Servicios Tecnicos S de RL de CV."
       }
      }
     },
     "auth_ref": []
    },
    "ec_LaCayenaSolarS.a.s.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LaCayenaSolarS.a.s.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for La Cayena Solar S.A.S.",
        "label": "La Cayena Solar S.A.S. [Member]",
        "terseLabel": "La Cayena Solar S.A.S."
       }
      }
     },
     "auth_ref": []
    },
    "ec_LaCiraInfantasContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LaCiraInfantasContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for La Cira Infantas.",
        "label": "La Cira Infantas [Member]",
        "terseLabel": "La Cira Infantas"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LandAndBuildingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LandAndBuildingsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lands and buildings",
        "terseLabel": "Lands and buildings"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing land and depreciable buildings and similar structures for use in operations. [Refer: Buildings; Land; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r486"
     ]
    },
    "ifrs-full_LandMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LandMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lands",
        "terseLabel": "Lands"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing land held by the entity for use in operations. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r485"
     ]
    },
    "ec_LaterThanFiveYearsAndNotLaterThanSixYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LaterThanFiveYearsAndNotLaterThanSixYearsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Later Than Five Years And Not Later Than Six Years [Member]",
        "label": "2026..",
        "verboseLabel": "2031"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LaterThanFiveYearsAndNotLaterThanTenYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanFiveYearsAndNotLaterThanTenYearsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementMaturityOfFinancialLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "From 5 to 10 years",
        "verboseLabel": "From 5 to 10 years"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than five years and not later than ten years."
       }
      }
     },
     "auth_ref": [
      "r527",
      "r536",
      "r717"
     ]
    },
    "ifrs-full_LaterThanFiveYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanFiveYearsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "More than 5 years",
        "terseLabel": "> 5 years"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than five years."
       }
      }
     },
     "auth_ref": [
      "r177",
      "r178",
      "r187",
      "r279",
      "r283",
      "r527",
      "r531",
      "r536"
     ]
    },
    "ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanFourYearsAndNotLaterThanFiveYearsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "2030",
        "terseLabel": "2028"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than four years and not later than five years."
       }
      }
     },
     "auth_ref": [
      "r177",
      "r178",
      "r187",
      "r527",
      "r536",
      "r717"
     ]
    },
    "ec_LaterThanFourYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LaterThanFourYearsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMaturityOfBenefitObligationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for a time band of later than four years.",
        "label": "Later Than Four Years [Member]",
        "terseLabel": "2030 and beyond"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LaterThanOneYearAndNotLaterThanFiveYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanOneYearAndNotLaterThanFiveYearsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementMaturityOfFinancialLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "From 1 to 5 years",
        "verboseLabel": "From 1 to 5 years"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than one year and not later than five years."
       }
      }
     },
     "auth_ref": [
      "r278",
      "r282",
      "r526",
      "r536"
     ]
    },
    "ifrs-full_LaterThanOneYearAndNotLaterThanThreeYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanOneYearAndNotLaterThanThreeYearsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesAccountingForSuspendedExploratoryWellsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Between 1 and 3 years"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than one year and not later than three years."
       }
      }
     },
     "auth_ref": [
      "r527",
      "r530",
      "r536"
     ]
    },
    "ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanOneYearAndNotLaterThanTwoYearsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMaturityDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMaturityOfBenefitObligationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "2023",
        "terseLabel": "2027",
        "verboseLabel": "1 - 2 years"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than one year and not later than two years."
       }
      }
     },
     "auth_ref": [
      "r177",
      "r178",
      "r187",
      "r527",
      "r536",
      "r717"
     ]
    },
    "ec_LaterThanSevenYearsAndNotLaterThanEightYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LaterThanSevenYearsAndNotLaterThanEightYearsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for later than seven years and not later than eight years.",
        "label": "Later Than Seven Years and Not Later Than Eight Years [Member]",
        "terseLabel": "2033"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LaterThanSixMonthMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LaterThanSixMonthMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementSignificantConcentrationOfCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "More than 6 months overdue [member]",
        "terseLabel": "More than 6 months overdue"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LaterThanSixYearsAndNotLaterThanSevenYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LaterThanSixYearsAndNotLaterThanSevenYearsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for later than six years and not later than seven years.",
        "label": "Later Than Six Years and Not Later Than Seven Years [Member]",
        "terseLabel": "2032"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LaterThanTenYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanTenYearsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementMaturityOfFinancialLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "More than 10 years",
        "terseLabel": "More than 10 years"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than ten years."
       }
      }
     },
     "auth_ref": [
      "r527",
      "r536",
      "r717"
     ]
    },
    "ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanThreeMonthsAndNotLaterThanSixMonthsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementSignificantConcentrationOfCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Between 3 and 6 months overdue [member]",
        "terseLabel": "Between 3 and 6 months overdue"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than three months and not later than six months."
       }
      }
     },
     "auth_ref": [
      "r527",
      "r529",
      "r536"
     ]
    },
    "ifrs-full_LaterThanThreeMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanThreeMonthsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementSignificantConcentrationOfCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Less than 3 months overdue [member]",
        "terseLabel": "Less than 3 months overdue"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than three months."
       }
      }
     },
     "auth_ref": [
      "r523",
      "r535"
     ]
    },
    "ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanThreeYearsAndNotLaterThanFourYearsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMaturityOfBenefitObligationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "2029",
        "terseLabel": "2029"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than three years and not later than four years."
       }
      }
     },
     "auth_ref": [
      "r177",
      "r178",
      "r187",
      "r527",
      "r536",
      "r717"
     ]
    },
    "ifrs-full_LaterThanTwoYearsAndNotLaterThanFiveYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanTwoYearsAndNotLaterThanFiveYearsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than two years and not later than five years [member]",
        "terseLabel": "2 - 5 years"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than two years and not later than five years."
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanTwoYearsAndNotLaterThanThreeYearsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMaturityOfBenefitObligationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "2023.",
        "terseLabel": "2028",
        "verboseLabel": "2028"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than two years and not later than three years."
       }
      }
     },
     "auth_ref": [
      "r177",
      "r178",
      "r187",
      "r527",
      "r536",
      "r717"
     ]
    },
    "ifrs-full_LeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LeaseLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liabilities.",
        "periodEndLabel": "Balance at the end",
        "periodStartLabel": "Balance at the beginning"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities related to the entity's leases. Lease is a contract, or part of a contract, that conveys the right to use an underlying asset for a period of time in exchange for consideration."
       }
      }
     },
     "auth_ref": [
      "r170"
     ]
    },
    "ec_LeaseLiabilitiesAndLoansFromRelatedPartiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LeaseLiabilitiesAndLoansFromRelatedPartiesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for lease liabilities and loans from related parties.",
        "label": "Lease Liabilities and Loans from Related Parties [Member]",
        "terseLabel": "Lease liabilities and related parties"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LeaseLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LeaseLiabilitiesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liabilities [Member}",
        "terseLabel": "Lease liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for lease liabilities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r501",
      "r503"
     ]
    },
    "ec_LeaseLiabilitiesRollforwardAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LeaseLiabilitiesRollforwardAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "No definition available.",
        "label": "Lease Liabilities Rollforward [Abstract]",
        "terseLabel": "Lease liabilities rollforward"
       }
      }
     },
     "auth_ref": []
    },
    "dei_LegalEntityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "LegalEntityAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal Entity [Axis]",
        "documentation": "The set of legal entities associated with a report."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LegalProceedingsContingentLiabilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LegalProceedingsContingentLiabilityMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal proceedings contingent liability [member]",
        "terseLabel": "Contingent liability"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a contingent liability for legal proceedings. [Refer: Classes of contingent liabilities [domain]]"
       }
      }
     },
     "auth_ref": [
      "r495"
     ]
    },
    "ec_LegalProceedingsInProcessClaimsMadeValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LegalProceedingsInProcessClaimsMadeValue",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of claims demanded before arbitrage in a legal proceedings that is in process in front of a court of Law.",
        "label": "Legal proceedings in process, claims made, value"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LegalProceedingsInProcessClaimsMadeValueUpdatedIncludingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LegalProceedingsInProcessClaimsMadeValueUpdatedIncludingInterest",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The updated value including interest of contingent asset claim.",
        "label": "Legal Proceedings In Process, Claims Made, Value Updated Including Interest",
        "terseLabel": "Legal proceedings in process, claims made, value updated including interest"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LegalProceedingsInProcessDamagesSoughtValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LegalProceedingsInProcessDamagesSoughtValue",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsLitigationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The value (monetary amount) of the award the plaintiff seeks in the legal matter.",
        "label": "Legal proceedings in process, damages sought, value",
        "terseLabel": "Legal proceedings in process, damages sought, value"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LettersOfCreditsOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LettersOfCreditsOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to letters of credits one.",
        "label": "Letters of Credits One [Member]",
        "terseLabel": "Letters of credits one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LettersOfCreditsTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LettersOfCreditsTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to letters of credits two.",
        "label": "Letters of Credits Two [Member]",
        "terseLabel": "Letters of credits two"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Level1OfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Level1OfFairValueHierarchyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Level 1 of fair value hierarchy [member]",
        "terseLabel": "Fair value level 1",
        "verboseLabel": "Level 1"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a category of the fair value hierarchy where inputs to the valuation techniques are quoted prices (unadjusted) in active markets for identical assets or liabilities that the entity can access at the measurement date."
       }
      }
     },
     "auth_ref": [
      "r34",
      "r76",
      "r81",
      "r161",
      "r344",
      "r407"
     ]
    },
    "ifrs-full_Level2OfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Level2OfFairValueHierarchyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Level 2 of fair value hierarchy [member]",
        "terseLabel": "Fair value level 2",
        "verboseLabel": "Level 2"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a category of the fair value hierarchy where inputs to the valuation techniques are inputs other than quoted prices included within Level 1 that are observable for the asset or liability, either directly or indirectly."
       }
      }
     },
     "auth_ref": [
      "r76",
      "r81",
      "r161",
      "r344",
      "r407"
     ]
    },
    "ifrs-full_Level3OfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Level3OfFairValueHierarchyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMovementOfEquityInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Level 3 of fair value hierarchy [member]",
        "terseLabel": "Level 3"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a category of the fair value hierarchy where inputs to the valuation techniques are unobservable inputs for the asset or liability. Unobservable inputs are inputs for which market data are not available and that are developed using the best information available about the assumptions that the market participants would use when pricing the asset or liability."
       }
      }
     },
     "auth_ref": [
      "r76",
      "r81",
      "r161",
      "r344",
      "r407"
     ]
    },
    "ifrs-full_LevelsOfFairValueHierarchyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LevelsOfFairValueHierarchyAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMovementOfEquityInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Levels of fair value hierarchy [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r34",
      "r161",
      "r407"
     ]
    },
    "ifrs-full_LevelsOfFairValueHierarchyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LevelsOfFairValueHierarchyDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMovementOfEquityInvestmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Levels of fair value hierarchy [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all levels of the fair value hierarchy. It also represents the standard value for the 'Levels of fair value hierarchy' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r34",
      "r161",
      "r407"
     ]
    },
    "ec_LeverageRatioPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LeverageRatioPercentage",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementLeverageRatioDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The leverage ratio of entity which derives from the mixture of owners' equity and debt to finance their operations.",
        "label": "Leverage ratio percentage",
        "verboseLabel": "Leverage (1)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LewisEnergyColombiaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LewisEnergyColombiaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Lewis Energy Colombia.",
        "label": "Lewis Energy Colombia [Member]",
        "terseLabel": "Lewis Energy Colombia"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Liabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Liabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAndLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities",
        "terseLabel": "Total liabilities",
        "totalLabel": "Total liabilities",
        "verboseLabel": "Liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": [
      "r160",
      "r161",
      "r163",
      "r249",
      "r253",
      "r406",
      "r407",
      "r448"
     ]
    },
    "ifrs-full_LiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LiabilitiesAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities [Abstract]",
        "verboseLabel": "Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LiabilitiesOfBenefitPlanAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LiabilitiesOfBenefitPlanAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities of benefit plan [Abstract]",
        "verboseLabel": "Liabilities for employee benefits"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LiabilitiesRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LiabilitiesRecognisedAsOfAcquisitionDate",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for total liabilities assumed in a business combination.",
        "label": "Liabilities Recognised As Of Acquisition Date",
        "totalLabel": "Total liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LiabilityAssetOfDefinedBenefitPlans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LiabilityAssetOfDefinedBenefitPlans",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net defined benefit liability (asset)",
        "terseLabel": "Net post-employment benefits liability"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of deficit or surplus in a defined benefit plan, adjusted for any effect of limiting a net defined benefit asset to the asset ceiling. [Refer: Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r26",
      "r323"
     ]
    },
    "ifrs-full_LicencesAndFranchisesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LicencesAndFranchisesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Licences and software",
        "terseLabel": "Licenses and software"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets representing the right to use certain intangible assets owned by another entity and the right to operate a business using the name, merchandise, services, methodologies, promotional support, marketing and supplies granted by another entity. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r496"
     ]
    },
    "ec_LinearSystemsReLtd.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LinearSystemsReLtd.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Linear Systems Re Ltd.",
        "label": "Linear Systems Re Ltd. [Member]",
        "terseLabel": "Linear Systems Re Ltd."
       }
      }
     },
     "auth_ref": []
    },
    "ec_LitigationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LitigationAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsLitigationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Litigation [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LitigationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LitigationDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsLitigationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Litigation [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LitigationProvisionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LitigationProvisionMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Litigations"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Lla121ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Lla121ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for LLA-121 contract.",
        "label": "LLA-121 Contract [Member]",
        "terseLabel": "LLA-121"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Lla122ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Lla122ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for LLA-122 contract.",
        "label": "LLA-122 Contract [Member]",
        "terseLabel": "LLA-122"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Lla41ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Lla41ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for LLA-4-1 contract.",
        "label": "LLA-4-1 Contract [Member]",
        "terseLabel": "LLA-4-1"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Llanos104ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Llanos104ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for Llanos 104 Contract.",
        "label": "Llanos 104 Contract [Member]",
        "terseLabel": "Llanos 104"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Llanos123ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Llanos123ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Llanos 123 Contract.",
        "label": "Llanos 123 Contract [Member]",
        "terseLabel": "Llanos 123"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Llanos124ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Llanos124ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Llanos 124 Contract.",
        "label": "Llanos 124 Contract [Member]",
        "terseLabel": "Llanos 124"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Llanos86ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Llanos86ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for Llanos 86 Contract.",
        "label": "Llanos 86 Contract [Member]",
        "terseLabel": "Llanos 86"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Llanos87ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Llanos87ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for Llanos 87 Contract.",
        "label": "Llanos 87 Contract [Member]",
        "terseLabel": "Llanos 87"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LoanByMhcpResolutionNo.0652Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LoanByMhcpResolutionNo.0652Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the borrowing arrangement authorized by the Ministry of Finance and Public Credit (MHCP) under Resolution No. 0652 dated March 20, 2024, originally executed to finance the acquisition of Ecopetrol's ownership interest in Interconexin Elctrica S.A. E.S.P.",
        "label": "Loan by MHCP Resolution No. 0652 [Member]",
        "terseLabel": "MHCP under Resolution No. 0652"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LoanByMhcpResolutionNo.0910Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LoanByMhcpResolutionNo.0910Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the borrowing arrangement authorized by the Ministry of Finance and Public Credit (MHCP) under Resolution No. 0910 dated April 25, 2025, related to an external public debt facility partially repaid as part of debt management operations.",
        "label": "Loan by MHCP Resolution No. 0910 [Member]",
        "terseLabel": "MHCP under Resolution No. 0910"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LoansAndAdvancesToCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LoansAndAdvancesToCustomers",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails": {
       "parentTag": "ifrs-full_OtherNoncurrentNonfinancialAssets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans and advances to customers",
        "verboseLabel": "Advanced payments and deposits"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of loans and advances the entity has made to customers."
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ec_LoansAndBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LoansAndBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails": {
       "parentTag": "ifrs-full_NetFinancialLiabilitiesSubjectToOffsettingEnforceableMasterNettingArrangementsOrSimilarAgreementsInStatementOfFinancialPosition",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of outstanding funds (loan and borrowings) that the entity is obligated to repay.",
        "label": "Loans and borrowings.",
        "negatedLabel": "Loans and borrowings"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LoansAndBorrowingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LoansAndBorrowingsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member represents loans and borrowings.",
        "label": "Loans And Borrowings [Member]",
        "verboseLabel": "Loans and borrowings"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LoansFromRelatedPartiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LoansFromRelatedPartiesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for loans from related parties.",
        "label": "Loans from related parties [Member]",
        "terseLabel": "Loans from related parties"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LoansPayableFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LoansPayableFairValue",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of contractual obligation to pay money on demand or on fixed or determinable dates.",
        "label": "Loans Payable Fair Value",
        "terseLabel": "Fair value of loans"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LoansPayableRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LoansPayableRelatedPartyTransactions",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amounts of loans payable, resulting from related party transactions.",
        "label": "Loans Payable, Related Party Transactions",
        "terseLabel": "Loans and borrowings"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LoansToEmployeesNonCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LoansToEmployeesNonCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails": {
       "parentTag": "ifrs-full_OtherNoncurrentNonfinancialAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the carrying amount of loans and advances granted to employees that are not expected to be settled within twelve months after the reporting period. These loans are classified as non-current financial assets and are measured in accordance with IFRS 9 Financial Instruments, typically at amortized cost using the effective interest method, unless designated otherwise. This balance includes principal outstanding plus accrued interest, net of expected credit loss allowances.",
        "label": "Loans to Employees, Non-Current",
        "terseLabel": "Employee loans"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LocalBorrowingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LocalBorrowingsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Local Borrowings [Member]",
        "terseLabel": "Local Borrowings"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LocalCurrencyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LocalCurrencyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsBreakdownByTypeOfInterestRateAndCurrencyDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsFairValueOfLoansDetails",
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "N/A",
        "label": "Local currency [member]",
        "terseLabel": "Investment portfolio - Local currency",
        "verboseLabel": "Local currency"
       }
      }
     },
     "auth_ref": []
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Local Phone Number",
        "documentation": "Local phone number for entity."
       }
      }
     },
     "auth_ref": []
    },
    "ec_LongTermRestrictedFundsHavingSpecificDestinationToInvestmentProjects": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LongTermRestrictedFundsHavingSpecificDestinationToInvestmentProjects",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsRestrictionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term restricted funds having an specific destination to investment projects.",
        "label": "Long-term restricted funds having specific destination to investment projects",
        "terseLabel": "Restricted funds"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LongtermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LongtermBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails": {
       "parentTag": "ifrs-full_Borrowings",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current portion of non-current borrowings",
        "terseLabel": "Loans and borrowings",
        "verboseLabel": "Non-current"
       }
      },
      "en": {
       "role": {
        "documentation": "The non-current portion of non-current borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ec_LossContingencyUnrecordedAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LossContingencyUnrecordedAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of contingent liabilities those are not recorded during the period due to few chances of their occurrence as of the date.",
        "label": "Loss contingency, unrecorded amount",
        "terseLabel": "Amounts involved of contingent liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LossMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LossMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsBreakdownOfOilfieldsImpairmentLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss [Member]",
        "terseLabel": "Loss"
       }
      }
     },
     "auth_ref": []
    },
    "ec_LpgAndPropaneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "LpgAndPropaneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "L.P.G. and propane",
        "terseLabel": "LPG and propane"
       }
      }
     },
     "auth_ref": []
    },
    "ec_MajorBorrowingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MajorBorrowingsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for major borrowings.",
        "label": "Major Borrowings [Member]",
        "terseLabel": "Major borrowings"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ManaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ManaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Mana.",
        "label": "Mana [Member]",
        "terseLabel": "Mana"
       }
      }
     },
     "auth_ref": []
    },
    "ec_MandatoryInvestmentsNaturalResources": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MandatoryInvestmentsNaturalResources",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of investments made during the period, mandatorily on usage of natural resources.",
        "label": "Mandatory investments, natural resources",
        "terseLabel": "Environmental compensation and mandatory investment"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MarketsOfCustomersAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MarketsOfCustomersAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Markets of customers [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r513",
      "r545"
     ]
    },
    "ifrs-full_MarketsOfCustomersDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MarketsOfCustomersDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Markets of customers [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all markets of customers. It also represents the standard value for the 'Markets of customers' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r513",
      "r545"
     ]
    },
    "ifrs-full_MaturityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MaturityAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesAccountingForSuspendedExploratoryWellsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMaturityDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMaturityOfBenefitObligationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementMaturityOfFinancialLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r167",
      "r177",
      "r178",
      "r179",
      "r180",
      "r181",
      "r187",
      "r209",
      "r232",
      "r268",
      "r270",
      "r280",
      "r284",
      "r393",
      "r451",
      "r492",
      "r527"
     ]
    },
    "ifrs-full_MaturityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MaturityDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesAccountingForSuspendedExploratoryWellsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMaturityDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMaturityOfBenefitObligationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementMaturityOfFinancialLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated time bands. It also represents the standard value for the 'Maturity' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r167",
      "r177",
      "r178",
      "r179",
      "r180",
      "r181",
      "r187",
      "r209",
      "r268",
      "r270",
      "r280",
      "r284",
      "r393",
      "r451",
      "r492",
      "r527",
      "r532"
     ]
    },
    "ec_MaximumDeductionRatePerYearOfOrdinaryLiquidIncome": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MaximumDeductionRatePerYearOfOrdinaryLiquidIncome",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of maximum deduction rate allowed per year of ordinary liquid income before deducting the special deductions.",
        "label": "Maximum Deduction Rate Per Year of Ordinary Liquid Income",
        "terseLabel": "Maximum deduction rate per year"
       }
      }
     },
     "auth_ref": []
    },
    "ec_MaximumExposureToCreditRiskOfLoansOrReceivables1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MaximumExposureToCreditRiskOfLoansOrReceivables1",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The maximum exposure to the credit risk of loans or receivables. [Refer: Loans and receivables; Credit risk [member]; Maximum exposure to credit risk]",
        "label": "Maximum Exposure To Credit Risk Of Loans Or Receivables1",
        "verboseLabel": "Maximum credit loan"
       }
      }
     },
     "auth_ref": []
    },
    "ec_MaximumPercentageOfCashInvestmentHeldInPortfolio": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MaximumPercentageOfCashInvestmentHeldInPortfolio",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of maximum investment in terms of cash provided by entity in portfolio.",
        "label": "Maximum percentage of cash investment held in portfolio"
       }
      }
     },
     "auth_ref": []
    },
    "ec_MaximumPercentageOfCashInvestmentHeldInPortfolioCurrent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MaximumPercentageOfCashInvestmentHeldInPortfolioCurrent",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDenominatedInForeignCurrencyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of maximum investment in terms of cash provided by entity in portfolio, current.",
        "label": "Maximum percentage of cash investment held in portfolio, current",
        "verboseLabel": "variation in the exchange rate"
       }
      }
     },
     "auth_ref": []
    },
    "ec_MaximumPercentageOfCashInvestmentHeldInPortfolioNonCurrent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MaximumPercentageOfCashInvestmentHeldInPortfolioNonCurrent",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDenominatedInForeignCurrencyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of maximum investment in terms of cash provided by entity in portfolio, non current.",
        "label": "Maximum percentage of cash investment held in portfolio, non current",
        "terseLabel": "Scenario / variation in the exchange rate"
       }
      }
     },
     "auth_ref": []
    },
    "ec_MaximumPercentageOfValueAddedTaxWithholdingRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MaximumPercentageOfValueAddedTaxWithholdingRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the maximum percentage of value added tax (VAT) withholding rate.",
        "label": "Maximum Percentage of Value-Added Tax Withholding Rate",
        "terseLabel": "Maximum Percentage of Value-Added Tax Withholding Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ec_McdermottInternationalLtdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "McdermottInternationalLtdMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for McDermott International Ltd, a business group.",
        "label": "McDermott International LTD [Member]",
        "terseLabel": "McDermott International Ltd"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MeasureAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "MeasureAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measure [Axis]",
        "terseLabel": "Measure:"
       }
      }
     },
     "auth_ref": [
      "r627"
     ]
    },
    "ecd_MeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "MeasureName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measure Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r627"
     ]
    },
    "ifrs-full_MeasurementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MeasurementAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsCashGeneratingUnitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r113",
      "r160",
      "r368",
      "r406"
     ]
    },
    "ifrs-full_MeasurementDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MeasurementDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsCashGeneratingUnitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all types of measurement. It also represents the standard value for the 'Measurement' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r107",
      "r113",
      "r160",
      "r368",
      "r406"
     ]
    },
    "ec_MeddistillatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MeddistillatesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mid-distillates",
        "verboseLabel": "Mid-distillates"
       }
      }
     },
     "auth_ref": []
    },
    "ec_MetrogasDeColombiaS.aE.s.p.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MetrogasDeColombiaS.aE.s.p.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Metrogas de Colombia S.A E.S.P.",
        "label": "Metrogas de Colombia S.A E.S.P."
       }
      }
     },
     "auth_ref": []
    },
    "ec_MinimumCurrentPlansExecutedForEnvironmentalOffsetting": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MinimumCurrentPlansExecutedForEnvironmentalOffsetting",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of minimum current plans executed for environmental offsetting.",
        "label": "Minimum Current Plans Executed for Environmental Offsetting",
        "terseLabel": "Minimum current plans executed"
       }
      }
     },
     "auth_ref": []
    },
    "ec_MinimumPercentageOfExecutionOfForcedObligation": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MinimumPercentageOfExecutionOfForcedObligation",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minimum percentage of execution of forced obligation for the resources have been invested in protection, conservation and preservation actions through voluntary conservation agreements, purchase of properties intended for conservation, ecological restoration and reforestation and the achievement of the signing of the first agreement with IDEAM.",
        "label": "Minimum Percentage of Execution of Forced Obligation",
        "terseLabel": "Minimum Percentage of Execution of Forced Obligation"
       }
      }
     },
     "auth_ref": []
    },
    "ec_MinimumTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MinimumTaxRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of minimum tax rate and will be the result of dividing the adjusted tax on the debugged net profit.",
        "label": "Minimum Tax Rate",
        "terseLabel": "Income tax rate for future years in free zones"
       }
      }
     },
     "auth_ref": []
    },
    "ec_MinimumTaxRateForForeignLegalEntitiesWithoutResidenceInCountryAndEconomicAndSocialZones": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MinimumTaxRateForForeignLegalEntitiesWithoutResidenceInCountryAndEconomicAndSocialZones",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The minimum tax rate for foreign legal entities without residence in the country and Special Economic and Social Zones.",
        "label": "Minimum Tax Rate for Foreign Legal Entities Without Residence In The Country and Economic and Social Zones",
        "terseLabel": "Percentage of income tax rate for foreign legal entities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_MinimumTaxRateForPublishingCompaniesWithExclusiveCorporatePurposeOfPublishingBooksIndustrialAndMixedEconomyCompaniesInGovernment": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MinimumTaxRateForPublishingCompaniesWithExclusiveCorporatePurposeOfPublishingBooksIndustrialAndMixedEconomyCompaniesInGovernment",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The minimum tax rate for publishing companies with the exclusive corporate purpose of publishing books, industrial and mixed economy companies in the Government.",
        "label": "Minimum Tax Rate for Publishing Companies With The Exclusive Corporate Purpose Of Publishing Books, Industrial And Mixed Economy Companies In The Government",
        "terseLabel": "Percentage of minimum tax rate for publishing companies"
       }
      }
     },
     "auth_ref": []
    },
    "ec_MinimumTaxRateForZomacAndIncomeFromHotelServices": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MinimumTaxRateForZomacAndIncomeFromHotelServices",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The minimum tax rate for ZOMAC and  income from hotel services.",
        "label": "Minimum Tax Rate for ZOMAC and Income from Hotel Services",
        "terseLabel": "Percentage of ZOMAC and income from hotel service"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MiscellaneousCurrentAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MiscellaneousCurrentAssetsAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Miscellaneous current assets [abstract]",
        "terseLabel": "Current"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MiscellaneousNoncurrentAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MiscellaneousNoncurrentAssetsAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Miscellaneous non-current assets [abstract]",
        "verboseLabel": "Non-current"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MiscellaneousOtherOperatingExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MiscellaneousOtherOperatingExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Miscellaneous other operating expense",
        "verboseLabel": "Other"
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ifrs-full_MiscellaneousOtherReservesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MiscellaneousOtherReservesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityEcopetrolBusinessGroupsReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Occasional reserves",
        "terseLabel": "Other reserves"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing miscellaneous reserves that the entity does not separately disclose in the same statement or note. [Refer: Other reserves [member]]"
       }
      }
     },
     "auth_ref": [
      "r716"
     ]
    },
    "ecd_MnpiDiscTimedForCompValFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "MnpiDiscTimedForCompValFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "MNPI Disclosure Timed for Compensation Value [Flag]",
        "terseLabel": "MNPI Disclosure Timed for Compensation Value"
       }
      }
     },
     "auth_ref": [
      "r647"
     ]
    },
    "ec_ModificationsInScheduledRepaymentsAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ModificationsInScheduledRepaymentsAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of installment for which modifications for repayments were made during the period.",
        "label": "Modifications In Scheduled Repayments, Amount",
        "terseLabel": "Financial component of the RBSE payment"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ModificationsInScheduledRepaymentsInstallments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ModificationsInScheduledRepaymentsInstallments",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of installments for which modifications for repayments were made during the period.",
        "label": "Modifications In Scheduled Repayments, Installments",
        "terseLabel": "Number of installments"
       }
      }
     },
     "auth_ref": []
    },
    "ec_MovementInOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MovementInOtherComprehensiveIncome",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementCashFlowHedgeForFutureExportsMovementInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The represents the amount of movement in the other comprehensive income.",
        "label": "Movement in the other comprehensive income",
        "periodEndLabel": "Closing balance",
        "periodStartLabel": "Opening balance"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MtrlTermsOfTrdArrTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "MtrlTermsOfTrdArrTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Terms of Trading Arrangement [Text Block]",
        "terseLabel": "Material Terms of Trading Arrangement"
       }
      }
     },
     "auth_ref": [
      "r655"
     ]
    },
    "ec_MurphyExplorationAndProductionCompanyUsaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "MurphyExplorationAndProductionCompanyUsaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member is stands for Murphy Exploration and Production Company - USA.",
        "label": "Murphy Exploration and Production Company - USA [Member]",
        "terseLabel": "Murphy Exploration and Production Company - USA"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NameOfJointOperation": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NameOfJointOperation",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Name of joint operation",
        "terseLabel": "Contract"
       }
      },
      "en": {
       "role": {
        "documentation": "The name of a joint operation. [Refer: Total for all joint operations [member]]"
       }
      }
     },
     "auth_ref": [
      "r140"
     ]
    },
    "ecd_NamedExecutiveOfficersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NamedExecutiveOfficersFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Named Executive Officers, Footnote [Text Block]",
        "terseLabel": "Named Executive Officers, Footnote"
       }
      }
     },
     "auth_ref": [
      "r628"
     ]
    },
    "ec_NationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsCreditRatingsOfIssuersAndCounterpartiesInAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nation [Member]",
        "terseLabel": "Nation"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond eight.",
        "label": "National Currency Bond Eight [Member]",
        "terseLabel": "National currency bond eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondEighteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondEighteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond eighteen.",
        "label": "National Currency Bond Eighteen [Member]",
        "terseLabel": "National currency bond eighteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondElevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondElevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond eleven.",
        "label": "National Currency Bond Eleven [Member]",
        "terseLabel": "National currency bond eleven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondFifteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondFifteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond fifteen.",
        "label": "National Currency Bond Fifteen [Member]",
        "terseLabel": "National currency bond fifteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond five.",
        "label": "National Currency Bond Five [Member]",
        "terseLabel": "National currency bond five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond four.",
        "label": "National Currency Bond Four [Member]",
        "terseLabel": "National currency bond four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondFourteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondFourteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond fourteen.",
        "label": "National Currency Bond Fourteen [Member]",
        "terseLabel": "National currency bond fourteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond nine.",
        "label": "National Currency Bond Nine [Member]",
        "terseLabel": "National currency bond nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondNineteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondNineteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond nineteen.",
        "label": "National Currency Bond Nineteen [Member]",
        "terseLabel": "National currency bond nineteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond one.",
        "label": "National Currency Bond One [Member]",
        "terseLabel": "National currency bond one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondSevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondSevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond seven.",
        "label": "National Currency Bond Seven [Member]",
        "terseLabel": "National currency bond seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondSeventeenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondSeventeenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond seventeen.",
        "label": "National Currency Bond Seventeen [Member]",
        "terseLabel": "National currency bond seventeen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondSixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondSixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond six.",
        "label": "National Currency Bond Six [Member]",
        "terseLabel": "National currency bond six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondSixteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondSixteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond sixteen.",
        "label": "National Currency Bond Sixteen [Member]",
        "terseLabel": "National currency bond sixteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondTenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondTenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond ten.",
        "label": "National Currency Bond Ten [Member]",
        "terseLabel": "National currency bond ten"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondThirteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondThirteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond thirteen.",
        "label": "National Currency Bond Thirteen [Member]",
        "terseLabel": "National currency bond thirteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond three.",
        "label": "National Currency Bond Three [Member]",
        "terseLabel": "National currency bond three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondTwelveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondTwelveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond twelve.",
        "label": "National Currency Bond Twelve [Member]",
        "terseLabel": "National currency bond twelve"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondTwentyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondTwentyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond twenty.",
        "label": "National Currency Bond Twenty [Member]",
        "terseLabel": "National currency bond twenty"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondTwentyfourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondTwentyfourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond twenty-four.",
        "label": "National Currency Bond TwentyFour [Member]",
        "terseLabel": "National currency bond twenty-four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondTwentyoneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondTwentyoneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond twenty-one.",
        "label": "National Currency Bond TwentyOne [Member]",
        "terseLabel": "National currency bond twenty-one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondTwentythreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondTwentythreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond twenty-three.",
        "label": "National Currency Bond TwentyThree [Member]",
        "terseLabel": "National currency bond twenty-three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondTwentytwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondTwentytwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond twenty-two.",
        "label": "National Currency Bond TwentyTwo [Member]",
        "terseLabel": "National currency bond twenty-two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyBondTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyBondTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents  the information pertaining to national currency bond two.",
        "label": "National Currency Bond Two [Member]",
        "terseLabel": "National currency bond two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit eight.",
        "label": "National Currency Credit Eight [Member]",
        "terseLabel": "National currency credit eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditEighteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditEighteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit eighteen.",
        "label": "National Currency Credit Eighteen [Member]",
        "terseLabel": "National currency credit eighteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditElevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditElevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit eleven.",
        "label": "National Currency Credit Eleven [Member]",
        "terseLabel": "National currency credit eleven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditFifteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditFifteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit fifteen.",
        "label": "National Currency Credit Fifteen [Member]",
        "terseLabel": "National currency credit fifteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit five.",
        "label": "National Currency Credit Five [Member]",
        "terseLabel": "National currency credit five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit four.",
        "label": "National Currency Credit Four [Member]",
        "terseLabel": "National currency credit four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditFourteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditFourteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit fourteen.",
        "label": "National Currency Credit Fourteen [Member]",
        "terseLabel": "National currency credit fourteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditNineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit nine.",
        "label": "National Currency Credit Nine [Member]",
        "terseLabel": "National currency credit nine"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditNineteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditNineteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit nineteen.",
        "label": "National Currency Credit Nineteen [Member]",
        "terseLabel": "National currency credit nineteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit one.",
        "label": "National Currency Credit One [Member]",
        "terseLabel": "National currency credit one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditSevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditSevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit seven.",
        "label": "National Currency Credit Seven [Member]",
        "terseLabel": "National currency credit seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditSeventeenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditSeventeenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit seventeen.",
        "label": "National Currency Credit Seventeen [Member]",
        "terseLabel": "National currency credit seventeen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditSixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditSixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit six.",
        "label": "National Currency Credit Six [Member]",
        "terseLabel": "National currency credit six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditSixteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditSixteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit sixteen.",
        "label": "National Currency Credit Sixteen [Member]",
        "terseLabel": "National currency credit sixteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditTenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditTenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit ten.",
        "label": "National Currency Credit Ten [Member]",
        "terseLabel": "National currency credit ten"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditThirteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditThirteenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit thirteen.",
        "label": "National Currency Credit Thirteen [Member]",
        "terseLabel": "National currency credit thirteen"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit three.",
        "label": "National Currency Credit Three [Member]",
        "terseLabel": "National currency credit three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditTwelveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditTwelveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit twelve.",
        "label": "National Currency Credit Twelve [Member]",
        "terseLabel": "National currency credit twelve"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditTwentyEightMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit twentyeight.",
        "label": "National Currency Credit Twenty-Eight [Member]",
        "terseLabel": "National currency credit twenty-eight"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditTwentyFiveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit twentyfive.",
        "label": "National Currency Credit Twenty-Five [Member]",
        "terseLabel": "National currency credit twenty-five"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditTwentyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditTwentyFourMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit twentyfour.",
        "label": "National Currency Credit Twenty-Four [Member]",
        "terseLabel": "National currency credit twenty-four"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditTwentyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditTwentyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit twenty.",
        "label": "National Currency Credit Twenty [Member]",
        "terseLabel": "National currency credit twenty"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditTwentyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditTwentyOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit twentyone.",
        "label": "National Currency Credit Twenty-One [Member]",
        "terseLabel": "National currency credit twenty-one"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditTwentySevenMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit twentyseven.",
        "label": "National Currency Credit Twenty-Seven [Member]",
        "terseLabel": "National currency credit twenty-seven"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditTwentySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditTwentySixMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit twentysix.",
        "label": "National Currency Credit Twenty-Six [Member]",
        "terseLabel": "National currency credit twenty-six"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditTwentyThreeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit twentythree.",
        "label": "National Currency Credit Twenty-Three [Member]",
        "terseLabel": "National currency credit twenty-three"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditTwentyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditTwentyTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit twentytwo.",
        "label": "National Currency Credit Twenty-Two [Member]",
        "terseLabel": "National currency credit twenty-two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalCurrencyCreditTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalCurrencyCreditTwoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to national currency credit two.",
        "label": "National Currency Credit Two [Member]",
        "terseLabel": "National currency credit two"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalGovernmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalGovernmentMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "National Government Member",
        "verboseLabel": "Bonds issued by the national government"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalHydrocarbonsAgencyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalHydrocarbonsAgencyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for National Hydrocarbons Agency (ANH).",
        "label": "National Hydrocarbons Agency [Member]",
        "terseLabel": "National Hydrocarbons Agency (ANH)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NationalTaxAndSurchargeOnGasolineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NationalTaxAndSurchargeOnGasolineMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for national tax and surcharge on gasoline.",
        "label": "National tax and surcharge on gasoline [Member]",
        "terseLabel": "National tax and surcharge on gasoline"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NaturalAndEnvironmentalPropertiesIncludingAssetRetirementObligations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NaturalAndEnvironmentalPropertiesIncludingAssetRetirementObligations",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of natural and environmental properties, which includes, but is not limited to, natural and environmental properties from asset retirement obligations.",
        "label": "Natural and Environmental Properties, Including Asset Retirement Obligations",
        "terseLabel": "Provisions for asset retirement obligations included in cost capitalized to natural and environmental properties"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NaturalAndEnvironmentalResourcesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NaturalAndEnvironmentalResourcesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Natural And Environmental Resources [Member]",
        "terseLabel": "Natural and environmental resources"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NaturalGassMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NaturalGassMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for natural gas.",
        "label": "Natural gas",
        "terseLabel": "Natural gas",
        "verboseLabel": "Natural gas"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NetAssetsLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NetAssetsLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementLeverageRatioDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets (liabilities)",
        "terseLabel": "Net financial debt"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets less the amount of liabilities."
       }
      }
     },
     "auth_ref": [
      "r504",
      "r717"
     ]
    },
    "ec_NetBookValueAccountsReceivableClassifiedAsOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NetBookValueAccountsReceivableClassifiedAsOther",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the amount of net book value of these accounts receivable after provision.",
        "label": "Net Book Value, Accounts Receivable, Classified As Other",
        "terseLabel": "Net book value of accounts receivable included in others"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NetChangeDueToPurchasesAndSalesOfMineralsInPlace": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NetChangeDueToPurchasesAndSalesOfMineralsInPlace",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails": {
       "parentTag": "ec_AggregateChangeInStandardizedMeasureOfDiscountedFutureNetCashFlows",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in standardized measure of discounted future net cash flow as a result of purchases and sales of minerals in place.",
        "label": "Net Change Due to Purchases and Sales of Minerals in Place",
        "verboseLabel": "Net change due to purchase and sales of minerals in place"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NetChangeDueToRevisionsOfPreviousQuantityEstimates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NetChangeDueToRevisionsOfPreviousQuantityEstimates",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails": {
       "parentTag": "ec_AggregateChangeInStandardizedMeasureOfDiscountedFutureNetCashFlows",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in standardized measure of discounted future net cash flow as a result of revisions of estimated quantity of oil and gas in proved reserves.",
        "label": "Net Change Due to Revisions of Previous Quantity Estimates",
        "verboseLabel": "Net change due to revisions in quantity estimates"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NetChangesInFutureIncomeTaxExpenseEstimatesOnFutureCashFlowsRelatedToProvedOilAndGasReserves": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NetChangesInFutureIncomeTaxExpenseEstimatesOnFutureCashFlowsRelatedToProvedOilAndGasReserves",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails": {
       "parentTag": "ec_AggregateChangeInStandardizedMeasureOfDiscountedFutureNetCashFlows",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in standardized measure of discounted future net cash flow as a result of change in the estimated future income tax on future pretax net cash flows related to the entity's proved oil and gas reserves.",
        "label": "Net Changes in Future Income Tax Expense Estimates on Future Cash Flows Related to Proved Oil and Gas Reserves",
        "verboseLabel": "Net change in income taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NetChangesInOperatingAssetsAndLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NetChangesInOperatingAssetsAndLiabilitiesAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net changes in operating assets and liabilities [Abstract]",
        "verboseLabel": "Net change in operational assets and liabilities:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NetDeferredTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NetDeferredTaxAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredIncomeTaxDetailss": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredIncomeTaxDetailss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net deferred tax assets",
        "totalLabel": "Net deferred income tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of deferred tax assets net of deferred tax liabilities, when the absolute amount of deferred tax assets is greater than the absolute amount of deferred tax liabilities. [Refer: Deferred tax assets; Deferred tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r679"
     ]
    },
    "ifrs-full_NetFinancialLiabilitiesSubjectToOffsettingEnforceableMasterNettingArrangementsOrSimilarAgreementsInStatementOfFinancialPosition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NetFinancialLiabilitiesSubjectToOffsettingEnforceableMasterNettingArrangementsOrSimilarAgreementsInStatementOfFinancialPosition",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net financial liabilities subject to offsetting, enforceable master netting arrangements or similar agreements in statement of financial position",
        "negatedTotalLabel": "Net liability position"
       }
      },
      "en": {
       "role": {
        "documentation": "The net amount of financial liabilities that are subject either to offsetting or to an enforceable master netting arrangement or similar agreement, presented in the statement of financial position. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r206"
     ]
    },
    "us-gaap_NetIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetIncomeLoss",
     "crdr": "credit",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income (Loss)",
        "terseLabel": "Net Income (Loss)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NetIncreaseDecreaseInNetChangeInSalesAndTransferPricesAndInProductionLiftingCostRelatedToFutureProduction": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NetIncreaseDecreaseInNetChangeInSalesAndTransferPricesAndInProductionLiftingCostRelatedToFutureProduction",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails": {
       "parentTag": "ec_AggregateChangeInStandardizedMeasureOfDiscountedFutureNetCashFlows",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in standardized measure of discounted future net cash flow as a result of net change in sales and transfer prices and in production (lifting) cost related to future production.",
        "label": "Net Increase Decrease in Net Change in Sales and Transfer Prices and In Production Lifting Cost Related To Future Production",
        "verboseLabel": "Net change in sales and transfer prices and in production cost (lifting) related to future production"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NetMovementsInRemunerationForConcessionAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NetMovementsInRemunerationForConcessionAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total movements in remuneration for concession assets during the period.",
        "label": "Net Movements In Remuneration for Concession Assets",
        "totalLabel": "Net movement of the year"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NetPositionOfAssetsAndLiabilitiesOfFunctionalCurrency": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NetPositionOfAssetsAndLiabilitiesOfFunctionalCurrency",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount represents net position of assets and liabilities of functional currency.",
        "label": "Net Position of Assets and Liabilities of Functional Currency",
        "terseLabel": "Net position of assets and liabilities different functional currency"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NetworkInfrastructureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NetworkInfrastructureMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pipelines, networks and lines",
        "terseLabel": "Pipelines, networks, and lines"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing network infrastructure. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r681"
     ]
    },
    "ec_NoContractualMaturityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NoContractualMaturityMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial assets that do not have a contractual maturity date, including instruments such as equity or participating securities that are not subject to fixed repayment terms.",
        "label": "No Contractual Maturity [Member]",
        "terseLabel": "Without maturity"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NoRatingAvailableMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NoRatingAvailableMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for assets for which no credit rating is available.",
        "label": "No Rating Available [Member]",
        "terseLabel": "Not available rating"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NonCurrentReceivablesFromEmployeesLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NonCurrentReceivablesFromEmployeesLoans",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": "ifrs-full_NoncurrentReceivables",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of non-current receivables from employee loans.",
        "label": "Non-current receivables from employees loans",
        "terseLabel": "Accounts receivable from employees"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NonCurrentTaxAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NonCurrentTaxAssetsAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "n/a",
        "label": "Non Current Tax Assets [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NonCurrentTaxAssetsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NonCurrentTaxAssetsDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "n/a",
        "label": "Non Current Tax Assets [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NonCurrentTaxLiabilitiesTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NonCurrentTaxLiabilitiesTypeAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "n/a",
        "label": "Non Current Tax Liabilities Type [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NonCurrentTaxLiabilitiesTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NonCurrentTaxLiabilitiesTypeDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "n/a",
        "label": "Non Current Tax Liabilities Type [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NonCurrentTradeAndOtherLoanReceivablesRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NonCurrentTradeAndOtherLoanReceivablesRelatedPartyTransactions",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amounts of trade and other loans receivable, resulting from related party transactions, classified as non-current.",
        "label": "Non Current Trade And Other Loan Receivables, Related Party Transactions",
        "terseLabel": "Trade and other receivables - Loans, Non-current"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NonCurrentTradeAndOtherPayablesRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NonCurrentTradeAndOtherPayablesRelatedPartyTransactions",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amounts of trade and other  payables, resulting from related party transactions, classified as non-current.",
        "label": "Non Current Trade And Other Payables, Related Party Transactions",
        "terseLabel": "Trade and other payables, Non-current"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NonCurrentTradeAndOtherReceivablesRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NonCurrentTradeAndOtherReceivablesRelatedPartyTransactions",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amounts of trade and other receivables, resulting from related party transactions, classified as non-current.",
        "label": "Non Current Trade And Other Receivables, Related Party Transactions",
        "terseLabel": "Trade and other receivables, Non-current"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_NonGaapMeasureDescriptionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonGaapMeasureDescriptionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-GAAP Measure Description [Text Block]",
        "terseLabel": "Non-GAAP Measure Description"
       }
      }
     },
     "auth_ref": [
      "r627"
     ]
    },
    "ecd_NonNeosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonNeosMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-NEOs [Member]",
        "terseLabel": "Non-NEOs"
       }
      }
     },
     "auth_ref": [
      "r590",
      "r601",
      "r611",
      "r635",
      "r644"
     ]
    },
    "ecd_NonPeoNeoAvgCompActuallyPaidAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonPeoNeoAvgCompActuallyPaidAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO Average Compensation Actually Paid Amount",
        "terseLabel": "Non-PEO NEO Average Compensation Actually Paid Amount"
       }
      }
     },
     "auth_ref": [
      "r618"
     ]
    },
    "ecd_NonPeoNeoAvgTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonPeoNeoAvgTotalCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO Average Total Compensation Amount",
        "terseLabel": "Non-PEO NEO Average Total Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r617"
     ]
    },
    "ecd_NonPeoNeoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonPeoNeoMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO [Member]",
        "terseLabel": "Non-PEO NEO"
       }
      }
     },
     "auth_ref": [
      "r635"
     ]
    },
    "ecd_NonRule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonRule10b51ArrAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-Rule 10b5-1 Arrangement Adopted [Flag]",
        "terseLabel": "Non-Rule 10b5-1 Arrangement Adopted"
       }
      }
     },
     "auth_ref": [
      "r655"
     ]
    },
    "ecd_NonRule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonRule10b51ArrTrmntdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-Rule 10b5-1 Arrangement Terminated [Flag]",
        "terseLabel": "Non-Rule 10b5-1 Arrangement Terminated"
       }
      }
     },
     "auth_ref": [
      "r655"
     ]
    },
    "ifrs-full_NonadjustingEventsAfterReportingPeriodAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NonadjustingEventsAfterReportingPeriodAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-adjusting events after reporting period [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r0",
      "r303"
     ]
    },
    "ifrs-full_NonadjustingEventsAfterReportingPeriodDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NonadjustingEventsAfterReportingPeriodDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-adjusting events after reporting period [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for events that occur between the end of the reporting period and the date when the financial statements are authorised for issue and are indicative of conditions that arose after the reporting period. It also represents the standard value for the 'Non-adjusting events after reporting period' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r0",
      "r303"
     ]
    },
    "ifrs-full_NoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_Equity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-controlling interests",
        "terseLabel": "Non controlling interest"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of equity in a subsidiary not attributable, directly or indirectly, to a parent. [Refer: Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r131",
      "r135",
      "r446"
     ]
    },
    "ifrs-full_NoncontrollingInterestsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncontrollingInterestsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non controlling Interests [Member]",
        "terseLabel": "Non-controlling interest"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for equity in a subsidiary not attributable, directly or indirectly, to the parent."
       }
      }
     },
     "auth_ref": [
      "r427"
     ]
    },
    "ifrs-full_NoncurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Lived Assets",
        "totalLabel": "Total non-current assets",
        "verboseLabel": "Non-current assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that do not meet the definition of current assets. [Refer: Current assets]"
       }
      }
     },
     "auth_ref": [
      "r145",
      "r452",
      "r505"
     ]
    },
    "ifrs-full_NoncurrentAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentAssetsAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current assets [abstract]",
        "verboseLabel": "Non-current assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails": {
       "parentTag": "ifrs-full_OtherCurrentNonfinancialAssets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current assets or disposal groups classified as held for sale or as held for distribution to owners",
        "terseLabel": "Non-current assets available for sale"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current assets or disposal groups classified as held for sale or as held for distribution to owners. [Refer: Non-current assets or disposal groups classified as held for distribution to owners; Non-current assets or disposal groups classified as held for sale]"
       }
      }
     },
     "auth_ref": [
      "r441"
     ]
    },
    "ifrs-full_NoncurrentFinancialAssetsAtFairValueThroughOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentFinancialAssetsAtFairValueThroughOtherComprehensiveIncome",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current financial assets at fair value through other comprehensive income",
        "terseLabel": "Assets measured at fair value through other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current financial assets at fair value through other comprehensive income. [Refer: Financial assets at fair value through other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r238",
      "r381"
     ]
    },
    "ifrs-full_NoncurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_Liabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current liabilities",
        "totalLabel": "Total non-current liabilities",
        "verboseLabel": "Non-current liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities that do not meet the definition of current liabilities. [Refer: Current liabilities]"
       }
      }
     },
     "auth_ref": [
      "r147",
      "r453",
      "r505"
     ]
    },
    "ifrs-full_NoncurrentLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentLiabilitiesAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current liabilities [abstract]",
        "terseLabel": "Non-current liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NoncurrentLoansPayableRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NoncurrentLoansPayableRelatedPartyTransactions",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amounts of loans payable, resulting from related party transactions, classified as non-current.",
        "label": "Noncurrent Loans Payable, Related Party Transactions",
        "terseLabel": "Loans and borrowings, Non-current"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NoncurrentProvisionsForEmployeeBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentProvisionsForEmployeeBenefits",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current provisions for employee benefits",
        "terseLabel": "Non-current",
        "verboseLabel": "Provisions for employee benefits"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current provisions for employee benefits. [Refer: Provisions for employee benefits]"
       }
      }
     },
     "auth_ref": [
      "r419",
      "r456"
     ]
    },
    "ifrs-full_NoncurrentReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentReceivables",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other non-current receivables",
        "totalLabel": "Total non-current",
        "verboseLabel": "Trade and other receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current trade receivables and non-current other receivables. [Refer: Non-current trade receivables; Other non-current receivables]"
       }
      }
     },
     "auth_ref": [
      "r418",
      "r439",
      "r455"
     ]
    },
    "ifrs-full_NoncurrentReceivablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentReceivablesAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current",
        "terseLabel": "Non-current"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NoncurrentReceivablesDueFromAssociates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentReceivablesDueFromAssociates",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": "ifrs-full_NoncurrentReceivables",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current receivables due from associates",
        "terseLabel": "Accounts receivable from Sao Paulo State"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current receivables due from associates. [Refer: Total for all associates [member]]"
       }
      }
     },
     "auth_ref": [
      "r720"
     ]
    },
    "ifrs-full_NoncurrentReceivablesDueFromRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentReceivablesDueFromRelatedParties",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": "ifrs-full_NoncurrentReceivables",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current receivables due from related parties",
        "verboseLabel": "Related parties (Note 31)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current receivables due from related parties. [Refer: Total for all related parties [member]]"
       }
      }
     },
     "auth_ref": [
      "r554",
      "r560"
     ]
    },
    "ec_NoncurrentReceivablesFromDomesticCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NoncurrentReceivablesFromDomesticCustomers",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": "ifrs-full_NoncurrentReceivables",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of non-current receivables from domestic customers.",
        "label": "Noncurrent Receivables From Domestic Customers",
        "terseLabel": "Domestic"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NoncurrentReceivablesFromForeignCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NoncurrentReceivablesFromForeignCustomers",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": "ifrs-full_NoncurrentReceivables",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of non-current receivables from foreign customers.",
        "label": "Noncurrent Receivables From Foreign Customers",
        "terseLabel": "Foreign"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NonderivativeFinancialLiabilitiesUndiscountedCashFlows": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NonderivativeFinancialLiabilitiesUndiscountedCashFlows",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementMaturityOfFinancialLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-derivative financial liabilities, undiscounted cash flows",
        "verboseLabel": "Total"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of contractual undiscounted cash flows in relation to non-derivative financial liabilities."
       }
      }
     },
     "auth_ref": [
      "r229",
      "r401"
     ]
    },
    "ifrs-full_NotLaterThanOneYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NotLaterThanOneYearMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsMaturityOfLoansAndBorrowingsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesAccountingForSuspendedExploratoryWellsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMaturityDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMaturityOfBenefitObligationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementMaturityOfFinancialLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Up to 1 year",
        "terseLabel": "2026",
        "verboseLabel": "Up to 1 year"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of not later than one year."
       }
      }
     },
     "auth_ref": [
      "r177",
      "r178",
      "r187",
      "r277",
      "r281",
      "r450",
      "r527",
      "r536"
     ]
    },
    "ifrs-full_NotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NotionalAmount",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit3ConditionsOfMostSignificantDebtDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-term financing",
        "terseLabel": "Short-term financing",
        "verboseLabel": "Amount disbursed"
       }
      },
      "en": {
       "role": {
        "documentation": "The nominal or face amount of a financial instrument, used to calculate payments made on that instrument."
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ec_NumberOfAcquisitionsCompaniesDedicatedToDevelopmentAndOperations": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfAcquisitionsCompaniesDedicatedToDevelopmentAndOperations",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of acquisitions during the period, relating to development and operations.",
        "label": "Number of Acquisitions, Companies Dedicated to Development and Operations",
        "terseLabel": "Number of Acquisitions"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfAcquisitionsSpecialPurposeCompanies": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfAcquisitionsSpecialPurposeCompanies",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of acquisitions during the period, relating to special purpose companies.",
        "label": "Number of Acquisitions, Special Purpose Companies",
        "terseLabel": "Number of acquisitions, special purpose companies"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfAdministrativeSupportCompaniesAcquired": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfAdministrativeSupportCompaniesAcquired",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the number of acquired entities that primarily provide administrative, operational, or support services to the group, rather than directly generating revenue from core energy production activities.",
        "label": "Number of Administrative Support Companies Acquired",
        "terseLabel": "Number of administrative companies acquired"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfCompaniesAcquired": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfCompaniesAcquired",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the total number of legal entities acquired as part of the business combination in which the reporting entity obtained control in accordance with IFRS 3 Business Combinations.",
        "label": "Number of Companies Acquired",
        "terseLabel": "Number of companies acquired"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfDividendInstallmentsMajorityShareholders": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfDividendInstallmentsMajorityShareholders",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of dividend installments to be paid to majority shareholders.",
        "label": "Number of dividend installments, majority shareholders",
        "terseLabel": "Number of dividend installments to majority shareholders"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfDividendInstallmentsMinorityShareholders": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfDividendInstallmentsMinorityShareholders",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of dividend installments to be paid to minority shareholders.",
        "label": "Number of dividend installments, minority shareholders",
        "terseLabel": "Number of equal dividend installments to minority shareholders"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfFormerFinancialVicePresidents": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfFormerFinancialVicePresidents",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of former financial vice-presidents.",
        "label": "Number Of Former Financial Vice Presidents",
        "terseLabel": "Number of former financial vice-presidents"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfFormerOfficials": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfFormerOfficials",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of former officials.",
        "label": "Number Of Former Officials",
        "terseLabel": "Number of former officials"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfFormerOfficialsBeingInvestigated": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfFormerOfficialsBeingInvestigated",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of former officials being investigated.",
        "label": "Number of Former Officials Being Investigated",
        "terseLabel": "Number of former officials being investigated"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfFormerPresidents": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfFormerPresidents",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of former presidents.",
        "label": "Number Of Former Presidents",
        "terseLabel": "Number of former presidents"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfInstallmentsForDebtDisbursement": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfInstallmentsForDebtDisbursement",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of installments in which debt is to be disbursed.",
        "label": "Number of Installments for Debt Disbursement",
        "terseLabel": "Number of installments for debt disbursement"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfLegalProceedingsFiled": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfLegalProceedingsFiled",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total number of legal proceedings, lawsuits, or administrative actions that have been formally initiated and filed by the reporting entity before competent judicial or regulatory authorities during the reporting period.",
        "label": "Number of Legal Proceedings Filed",
        "terseLabel": "Total number of legal proceedings, lawsuits"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfLegalProceedingsRemaining": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfLegalProceedingsRemaining",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of additional legal proceedings that the entity is legally entitled or required to file in future periods but has not yet initiated as of the reporting date.",
        "label": "Number of Legal Proceedings Remaining",
        "terseLabel": "Number of additional legal proceedings"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfOfficialAssessmentsIssued": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfOfficialAssessmentsIssued",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of official assessments issued.",
        "label": "Number of Official Assessments Issued",
        "terseLabel": "Number of official assessments issued"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfProcessesOfContingentAssets": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfProcessesOfContingentAssets",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the number of processes of contingent assets.",
        "label": "Number of Processes Of Contingent Assets",
        "terseLabel": "Number of processes of contingent assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfProcessesOfLegalProceedingsNotRecognised": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfProcessesOfLegalProceedingsNotRecognised",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the number of processes legal proceedings not recognised.",
        "label": "Number of Processes Of Legal Proceedings Not Recognised",
        "terseLabel": "Number of processes of contingent liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfProjectsUnderExploratoryWellsExceedingOneYear": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfProjectsUnderExploratoryWellsExceedingOneYear",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesAccountingForSuspendedExploratoryWellsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of projects under exploratory wells which exceeds one year.",
        "label": "Number of projects under exploratory wells exceeding one year",
        "verboseLabel": "Number of projects exceeding 1 year"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfRenewableEnergyGenerationCompaniesAcquired": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfRenewableEnergyGenerationCompaniesAcquired",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the number of acquired entities whose principal activity is the generation of renewable energy, including solar or wind power generation assets, as part of the business combination.",
        "label": "Number of Renewable Energy Generation Companies Acquired",
        "terseLabel": "Number of renewable energy generation companies acquired"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfRepaymentInstallments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfRepaymentInstallments",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total number of separate payments into which a debt is divided and repaid over time until it is fully settled.",
        "label": "Number of Repayment Installments",
        "terseLabel": "Number of repayment installments"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfSharesAcquired": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfSharesAcquired",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares acquired in business combination.",
        "label": "Number Of Shares Acquired",
        "terseLabel": "Number of shares acquired"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NumberOfSharesAuthorised": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NumberOfSharesAuthorised",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of shares authorised",
        "verboseLabel": "Number of ordinary shares authorised"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of shares authorised."
       }
      }
     },
     "auth_ref": [
      "r288",
      "r409",
      "r458"
     ]
    },
    "ec_NumberOfSharesAvailableForPublicTrade": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfSharesAvailableForPublicTrade",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of shares which is publicly available to trade in stock exchange.",
        "label": "Number of shares available for public trade",
        "terseLabel": "Number of shares available for public trade held privately"
       }
      }
     },
     "auth_ref": []
    },
    "ec_NumberOfSharesHeldByMajorityShareHolders": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfSharesHeldByMajorityShareHolders",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of shares which are held by majority share holders not available for public trade.",
        "label": "Number of shares held by majority share holders",
        "terseLabel": "Number of shares held by majority share holders"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NumberOfSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NumberOfSharesOutstanding",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityEarningsPerShareDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of shares outstanding",
        "terseLabel": "Weighted average number of outstanding ordinary shares",
        "verboseLabel": "Number of outstanding shares"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of shares that have been authorised and issued, reduced by treasury shares held. [Refer: Treasury shares]"
       }
      }
     },
     "auth_ref": [
      "r289",
      "r410",
      "r459"
     ]
    },
    "ec_NumberOfVoluntaryConservationAgreements": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "NumberOfVoluntaryConservationAgreements",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total number of voluntary conservation agreements implemented as part of environmental protection, conservation, and preservation initiatives.",
        "label": "Number Of Voluntary Conservation Agreements",
        "terseLabel": "Number of voluntary conservation agreements"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OccidentalMidlandBasinLlcOxyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OccidentalMidlandBasinLlcOxyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Occidental Midland Basin, LLC (Oxy).",
        "label": "Occidental Midland Basin, LLC (Oxy) [Member]",
        "terseLabel": "Occidental Midland Basin, LLC (Oxy)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OfferPricePremiumPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OfferPricePremiumPercentage",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage by which the offer price per share exceeds the benchmark market price of the target company's shares immediately before the announcement.",
        "label": "Offer Price Premium Percentage",
        "terseLabel": "Volume-weighted average price, percentage"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OfficeEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OfficeEquipmentMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Plant and equipment.",
        "terseLabel": "Plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing equipment used to support office functions, not specifically used in the production process. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r487"
     ]
    },
    "ec_OfficialTaxAssessmentsAndConfirmatoryResolutionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OfficialTaxAssessmentsAndConfirmatoryResolutionsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A classification used to represent contingent liabilities arising from tax authority decisions that determine a taxpayer's obligations (official tax assessments), together with subsequent administrative rulings that confirm, uphold, or partially revise those determinations upon reconsideration or appeal (confirmatory resolutions).",
        "label": "Official Tax Assessments and Confirmatory Resolutions [Member]",
        "terseLabel": "Official tax assessments and their confirmatory resolutions"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OffsettingOfTaxLossesOrExcessesOfPresumptiveIncomeTakenInTaxableYearAndThatDidNotAffectAccountingProfitOfPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OffsettingOfTaxLossesOrExcessesOfPresumptiveIncomeTakenInTaxableYearAndThatDidNotAffectAccountingProfitOfPeriod",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The offsetting of tax losses or excesses of presumptive income taken in the taxable year and that did not affect the accounting profit of the period.",
        "label": "Offsetting of Tax Losses or Excesses of Presumptive Income Taken in the Taxable Year and That Did Not Affect the Accounting Profit of the Period",
        "terseLabel": "Offsetting of tax losses or excesses of presumptive income taken in the taxable year and that did not affect the accounting profit of the year"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OilAndGasInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OilAndGasInvestmentsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oil and gas investments",
        "terseLabel": "Oil and gas investments"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OilFieldsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OilFieldsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsBreakdownOfOilfieldsImpairmentLossesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsExplorationAndProductionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oilfields [Member]",
        "verboseLabel": "Oilfields"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OilsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OilsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedReserveInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for oil.",
        "label": "Oil [Member]",
        "verboseLabel": "Oil"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OjanomContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OjanomContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for OJANOM Contract.",
        "label": "OJANOM Contract [Member]",
        "terseLabel": "OJANOM"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OjaocnContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OjaocnContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for OJAOCN Contract.",
        "label": "OJAOCN Contract [Member]",
        "terseLabel": "OJAOCN"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OjaormContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OjaormContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for OJAORM Contract.",
        "label": "OJAORM Contract [Member]",
        "terseLabel": "OJAORM"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OjasumContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OjasumContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for OJASUM Contract.",
        "label": "OJASUM Contract [Member]",
        "terseLabel": "OJASUM"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OleoductoAltoMagdalenaContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OleoductoAltoMagdalenaContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Oleoducto Alto Magdalena Contract.",
        "label": "Oleoducto Alto Magdalena Contract [Member]",
        "terseLabel": "Oleoducto Alto Magdalena"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OleoductoCentralSAUnitedOcensaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OleoductoCentralSAUnitedOcensaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oleoducto Central S. A. - Ocensa"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OleoductoCentralSaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OleoductoCentralSaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityDividendsPaidDetails",
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Oleoducto Central S.A..",
        "label": "Oleoducto Central S.A.",
        "terseLabel": "Oleoducto Central S.A.",
        "verboseLabel": "Oleoducto Central S.A. - Ocensa"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OleoductoDeColombiaS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OleoductoDeColombiaS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to Oleoducto de Colombia S.A.",
        "label": "Oleoducto de Colombia S.A. [Member]",
        "terseLabel": "Oleoducto de Colombia S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_OleoductoDeColombiaSaOdcMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OleoductoDeColombiaSaOdcMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityDividendsPaidDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Oleoducto de Colombia S.A.",
        "label": "Oleoducto de Colombia S.A. - ODC",
        "verboseLabel": "Oleoducto de Colombia S.A. - ODC"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OleoductoDeLosLlanosOrientalesSAUnitedODLMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OleoductoDeLosLlanosOrientalesSAUnitedODLMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityDividendsPaidDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Oleoducto de los Llanos Orientales S.A.",
        "label": "Oleoducto de los Llanos Orientales S.A",
        "verboseLabel": "Oleoducto de los Llanos Orientales S. A. - ODL"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OnePercentVariationsInExchangeRateEffectOnIncomeBeforeIncomeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OnePercentVariationsInExchangeRateEffectOnIncomeBeforeIncomeTaxes",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDenominatedInForeignCurrencyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of change in income before income taxes due to 1% change in exchange rate.",
        "label": "One Percent variations in exchange rate, Effect on income before income taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OnePercentVariationsInExchangeRateOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OnePercentVariationsInExchangeRateOtherComprehensiveIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDenominatedInForeignCurrencyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of change in comprehensive income due to 1% change in exchange rate.",
        "label": "One Percent variations in exchange rate, other comprehensive income",
        "verboseLabel": "One percent variations in exchange rate, effect on other comprehensive income"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OpeningBalanceAfterAdjustmentCumulativeEffectAtDateOfInitialApplicationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OpeningBalanceAfterAdjustmentCumulativeEffectAtDateOfInitialApplicationMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "After adoption of new standards IFRS"
       }
      }
     },
     "auth_ref": [
      "r715"
     ]
    },
    "ifrs-full_OpeningBalanceBeforeAdjustmentCumulativeEffectAtDateOfInitialApplicationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OpeningBalanceBeforeAdjustmentCumulativeEffectAtDateOfInitialApplicationMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Opening balance before adjustment, cumulative effect at date of initial application [member]"
       }
      }
     },
     "auth_ref": [
      "r715"
     ]
    },
    "ifrs-full_OperatingExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OperatingExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating expense",
        "negatedLabel": "Operations and project expenses",
        "verboseLabel": "Operations and project expenses"
       }
      }
     },
     "auth_ref": [
      "r724"
     ]
    },
    "ifrs-full_OperatingSegmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OperatingSegmentsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating segments [member]",
        "terseLabel": "Operating segments"
       }
      }
     },
     "auth_ref": [
      "r255"
     ]
    },
    "ec_OperationAndProjectExpensesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OperationAndProjectExpensesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for operation and project expenses.",
        "label": "Operations and project expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OperationAndProjectsExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OperationAndProjectsExpenses",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operation and projects expenses.",
        "label": "Operation and projects expenses",
        "verboseLabel": "Operation and projects expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OptionContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OptionContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Option contract [member]",
        "terseLabel": "Option contract"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a derivative financial instrument that gives the holder the right, but not the obligation, to purchase or sell an underlying asset for a specified price determined in advance. [Refer: Derivatives [member]]"
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ec_Orc401Crc200401ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Orc401Crc200401ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for ORC401 CRC-2004-01 Contract.",
        "label": "ORC401 CRC-2004-01 Contract [Member]",
        "terseLabel": "ORC401 CRC-2004-01"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OrdinaryAdministrativeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OrdinaryAdministrativeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ordinary administrative.",
        "label": "Ordinary Administrative [Member]",
        "terseLabel": "Ordinary administrative"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OrdinaryCivilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OrdinaryCivilMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ordinary civil.",
        "label": "Ordinary Civil [Member]",
        "terseLabel": "Civil"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OrdinaryLaborMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OrdinaryLaborMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for ordinary labor.",
        "label": "Ordinary Labor [Member]",
        "terseLabel": "Labor"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OrdinarySharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OrdinarySharesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common shares"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for equity instruments that are subordinate to all other classes of equity instruments."
       }
      }
     },
     "auth_ref": [
      "r722"
     ]
    },
    "ec_OtherAssetsLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherAssetsLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails": {
       "parentTag": "ifrs-full_NetFinancialLiabilitiesSubjectToOffsettingEnforceableMasterNettingArrangementsOrSimilarAgreementsInStatementOfFinancialPosition",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other Assets and Liabilities, net",
        "label": "Other Assets Liabilities",
        "verboseLabel": "Other assets and liabilities, net"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherAssetsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Assets [Member]",
        "terseLabel": "Other Assets",
        "verboseLabel": "Other assets"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for assets that the entity does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r514",
      "r546"
     ]
    },
    "ec_OtherAssetsRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherAssetsRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "ec_AssetsRecognisedAsOfAcquisitionDate",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for other assets acquired in a business combination.",
        "label": "Other Assets Recognised As Of Acquisition Date",
        "terseLabel": "Other assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OtherBenefitMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherBenefitMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other benefits [Member]",
        "terseLabel": "Others"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OtherBenefitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherBenefitsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMaturityOfBenefitObligationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other plans",
        "terseLabel": "Other plans",
        "verboseLabel": "Other benefits"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total comprehensive income for the year, net of tax",
        "totalLabel": "Other comprehensive income for the year, net of tax",
        "verboseLabel": "Other comprehensive results"
       }
      }
     },
     "auth_ref": [
      "r150",
      "r426",
      "r464",
      "r477"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income [abstract]",
        "terseLabel": "Other comprehensive income:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeBeforeTaxCashFlowHedges",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income, before tax, cash flow hedges",
        "terseLabel": "Hedge with derivative instruments, Pre-tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, before tax, after reclassification adjustments, related to cash flow hedges. [Refer: Cash flow hedges [member]; Other comprehensive income, before tax]"
       }
      }
     },
     "auth_ref": [
      "r454",
      "r478"
     ]
    },
    "ec_OtherComprehensiveIncomeBeforeTaxCashFlowHedgesFutureCrudeOilExports": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherComprehensiveIncomeBeforeTaxCashFlowHedgesFutureCrudeOilExports",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesFutureCrudeOilExports",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of other comprehensive income, before tax, arising from gains or losses on hedging instruments designated in cash flow hedging relationships for forecast future crude oil export transactions.",
        "label": "Other Comprehensive Income, Before Tax Cash Flow Hedges, Future Crude Oil Exports",
        "terseLabel": "Cash flow hedging for future crude oil exports, Pre-tax"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_IncomeTaxRelatingToExchangeDifferencesOnForeignCurrencyTranslationIncludedInOtherComprehensiveIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementHedgeOfNetInvestmentInForeignOperationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income, before tax, exchange differences on translation",
        "terseLabel": "Exchange difference",
        "verboseLabel": "Foreign currency translation, Pre-tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, before tax, after reclassification adjustments, related to exchange differences on translation of financial statements of foreign operations. [Refer: Other comprehensive income, before tax]"
       }
      }
     },
     "auth_ref": [
      "r454",
      "r478"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeBeforeTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeBeforeTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income, before tax, financial assets measured at fair value through other comprehensive income",
        "terseLabel": "Valuation of financial instruments at fair value, Pre-tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, before tax, after reclassification adjustments, related to financial assets measured at fair value through other comprehensive income applying paragraph 4.1.2A of IFRS 9. [Refer: Financial assets measured at fair value through other comprehensive income; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r207",
      "r383",
      "r454",
      "r478"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementOfDefinedBenefitPlans",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income, before tax, gains (losses) on remeasurements of defined benefit plans",
        "terseLabel": "Actuarial valuation gains (losses), Pre-tax",
        "verboseLabel": "Recognized in other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, before tax, related to gains (losses) on remeasurements of defined benefit plans, which comprise actuarial gains and losses; the return on plan assets, excluding amounts included in net interest on the net defined benefit liability (asset); and any change in the effect of the asset ceiling, excluding amounts included in net interest on the net defined benefit liability (asset). [Refer: Other comprehensive income; Defined benefit plans [domain]; Plan assets [member]; Net defined benefit liability (asset)] [Contrast: Decrease (increase) in net defined benefit liability (asset) resulting from gain (loss) on remeasurement in other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r454",
      "r478",
      "r684"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeBeforeTaxHedgesOfNetInvestmentsInForeignOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeBeforeTaxHedgesOfNetInvestmentsInForeignOperations",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeNetOfTaxHedgesOfNetInvestmentsInForeignOperations",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income, before tax, hedges of net investments in foreign operations",
        "terseLabel": "Hedge of a net investment in a foreign operation, Pre-tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, before tax, after reclassification adjustments, related to hedges of net investments in foreign operations. [Refer: Other comprehensive income, before tax]"
       }
      }
     },
     "auth_ref": [
      "r104",
      "r261",
      "r478"
     ]
    },
    "ec_OtherComprehensiveIncomeLossNetOfTaxCashFlowHedgeWithDerivativeInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherComprehensiveIncomeLossNetOfTaxCashFlowHedgeWithDerivativeInstruments",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_OtherComprehensiveIncomeNetOfTaxGainsLosses",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of other comprehensive income (loss), net of tax, related to cash flow hedge with derivative instruments.",
        "label": "Other Comprehensive Income Loss Net Of Tax Cash Flow Hedge With Derivative Instruments",
        "terseLabel": "Cash flow hedge with derivative instruments"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OtherComprehensiveIncomeLossNetOfTaxCashFlowHedges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherComprehensiveIncomeLossNetOfTaxCashFlowHedges",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_OtherComprehensiveIncomeNetOfTaxGainsLosses",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of other comprehensive income, net of tax, related to cash flow hedges.",
        "label": "Other Comprehensive Income Loss Net Of Tax Cash Flow Hedges",
        "negatedLabel": "Cash flow hedges for future exports"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeNetOfTaxCashFlowHedges",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income, net of tax, cash flow hedges",
        "totalLabel": "Hedge with derivative instruments, After tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, net of tax, after reclassification adjustments, related to cash flow hedges. [Refer: Cash flow hedges [member]; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r454",
      "r477"
     ]
    },
    "ec_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesFutureCrudeOilExports": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherComprehensiveIncomeNetOfTaxCashFlowHedgesFutureCrudeOilExports",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of other comprehensive income, net of tax, arising from gains or losses on hedging instruments designated in cash flow hedging relationships for forecast future crude oil export transactions.",
        "label": "Other Comprehensive Income, Net of Tax Cash Flow Hedges, Future Crude Oil Exports",
        "totalLabel": "Cash flow hedging for future crude oil exports, After tax"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementCashFlowHedgeForFutureExportsMovementInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income, net of tax, exchange differences on translation",
        "terseLabel": "Exchange difference"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, net of tax, after reclassification adjustments, related to exchange differences when financial statements of foreign operations are translated. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r454",
      "r477"
     ]
    },
    "ec_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslations",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_OtherComprehensiveIncomeNetOfTaxGainsLosses",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of other comprehensive income, net of tax, related to exchange differences when financial statements of foreign operations are translated.",
        "label": "Other Comprehensive Income Net Of Tax Exchange Differences On Translations",
        "verboseLabel": "Accumulated foreign currency translation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income, net of tax, financial assets measured at fair value through other comprehensive income",
        "totalLabel": "Valuation of financial instruments at fair value, After tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, net of tax, after reclassification adjustments, related to financial assets measured at fair value through other comprehensive income applying paragraph 4.1.2A of IFRS 9. [Refer: Financial assets measured at fair value through other comprehensive income; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r454",
      "r477"
     ]
    },
    "ec_OtherComprehensiveIncomeNetOfTaxGainLossOnRemeasurementsOfDefinedBenefitPlans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherComprehensiveIncomeNetOfTaxGainLossOnRemeasurementsOfDefinedBenefitPlans",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_OtherComprehensiveIncomeNetOfTaxGainsLosses",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of other comprehensive income, net of tax, related to gains (losses) on remeasurements of defined benefit plans, which comprise actuarial gains and losses; the return on plan assets, excluding amounts included in net interest on the net defined benefit liability (asset); and any change in the effect of the asset ceiling, excluding amounts included in net interest on the net defined benefit liability (asset).",
        "label": "Other Comprehensive Income Net Of Tax Gain Loss On Remeasurements Of Defined Benefit Plans",
        "negatedLabel": "Accumulated actuarial gain on defined benefit plans"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OtherComprehensiveIncomeNetOfTaxGainsLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherComprehensiveIncomeNetOfTaxGainsLosses",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The gains (losses) recognised in other comprehensive income.",
        "label": "Other comprehensive income, net of tax, gains losses",
        "totalLabel": "Other comprehensive income attributable to owners of parent"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnHedgingInstrumentsThatHedgeInvestmentsInEquityInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeNetOfTaxGainsLossesOnHedgingInstrumentsThatHedgeInvestmentsInEquityInstruments",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income, net of tax, gains (losses) on hedging instruments that hedge investments in equity instruments",
        "terseLabel": "Equity financial instruments measured at fair value"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, net of tax, related to gains (losses) on hedging instruments that hedge investments in equity instruments that the entity has designated at fair value through other comprehensive income. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r454",
      "r477"
     ]
    },
    "ec_OtherComprehensiveIncomeNetOfTaxGainsLossesOnOthers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherComprehensiveIncomeNetOfTaxGainsLossesOnOthers",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_OtherComprehensiveIncomeNetOfTaxGainsLosses",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The gains (losses) recognised in other comprehensive income, which id classified as other.",
        "label": "Other comprehensive income, net of tax, gains losses on others",
        "verboseLabel": "Others"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementOfDefinedBenefitPlans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementOfDefinedBenefitPlans",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of other comprehensive income, net of tax, related to gains (losses) on remeasurements of defined benefit plans, which comprise actuarial gains and losses; the return on plan assets, excluding amounts included in net interest on the net defined benefit liability (asset); and any change in the effect of the asset ceiling, excluding amounts included in net interest on the net defined benefit liability (asset).",
        "label": "Other Comprehensive Income Net Of Tax Gains Losses On Remeasurement Of Defined Benefit Plans",
        "totalLabel": "Other comprehensive income, net of taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income, net of tax, gains (losses) on remeasurements of defined benefit plans",
        "terseLabel": "Actuarial gains",
        "totalLabel": "Actuarial valuation gains (losses), After tax",
        "verboseLabel": "Actuarial gain (loss)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, net of tax, related to gains (losses) on remeasurements of defined benefit plans, which comprise actuarial gains and losses; the return on plan assets, excluding amounts included in net interest on the net defined benefit liability (asset); and any change in the effect of the asset ceiling, excluding amounts included in net interest on the net defined benefit liability (asset). [Refer: Other comprehensive income; Defined benefit plans [domain]; Plan assets [member]; Net defined benefit liability (asset)] [Contrast: Decrease (increase) in net defined benefit liability (asset) resulting from gain (loss) on remeasurement in other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r454",
      "r477",
      "r684"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeNetOfTaxHedgesOfNetInvestmentsInForeignOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeNetOfTaxHedgesOfNetInvestmentsInForeignOperations",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_OtherComprehensiveIncomeNetOfTaxGainsLosses",
       "weight": 1.0,
       "order": 5.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityOtherComprehensiveIncomeDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income, net of tax, hedges of net investments in foreign operations",
        "negatedLabel": "Hedge of a net investment in a foreign operation",
        "totalLabel": "Hedge of a net investment in a foreign operation, After tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, net of tax, after reclassification adjustments, related to hedges of net investments in foreign operations. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r104",
      "r261",
      "r477"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossBeforeTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeOfAfterTax",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income that will be reclassified to profit or loss, before tax",
        "verboseLabel": "Pre-tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income that will be reclassified to profit or loss, before tax. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r723",
      "r725"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncome",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income that will be reclassified to profit or loss, net of tax",
        "totalLabel": "Valuation of financial instruments at fair value, After tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income that will be reclassified to profit or loss, net of tax. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r562",
      "r563"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income that will not be reclassified to profit or loss, net of tax",
        "totalLabel": "Other comprehensive income that will not to be reclassified to profit or loss in subsequent periods -net of taxes"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income that will not be reclassified to profit or loss, net of tax. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r562",
      "r563"
     ]
    },
    "ifrs-full_OtherCurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherCurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails": {
       "parentTag": "ifrs-full_OtherCurrentNonfinancialAssets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other current assets",
        "verboseLabel": "Other assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current assets that the entity does not separately disclose in the same statement or note. [Refer: Current assets]"
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ifrs-full_OtherCurrentFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherCurrentFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other current financial assets",
        "terseLabel": "Other financial assets",
        "verboseLabel": "Current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current financial assets that the entity does not separately disclose in the same statement or note. [Refer: Other financial assets; Current financial assets]"
       }
      }
     },
     "auth_ref": [
      "r437"
     ]
    },
    "ifrs-full_OtherCurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherCurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other current liabilities",
        "terseLabel": "Other liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current liabilities that the entity does not separately disclose in the same statement or note. [Refer: Current liabilities]"
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ifrs-full_OtherCurrentNonfinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherCurrentNonfinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other current non-financial assets",
        "terseLabel": "Other assets",
        "totalLabel": "Total current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current non-financial assets that the entity does not separately disclose in the same statement or note. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ifrs-full_OtherCurrentReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherCurrentReceivables",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentReceivables",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other current receivables",
        "verboseLabel": "Other"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current other receivables. [Refer: Other receivables]"
       }
      }
     },
     "auth_ref": [
      "r554",
      "r560"
     ]
    },
    "ec_OtherCurrentTaxAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherCurrentTaxAssetsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for other taxes, assets.",
        "label": "Other taxes, assets [Member]",
        "terseLabel": "Other taxes, assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OtherCurrentTaxLiabiltiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherCurrentTaxLiabiltiesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other taxes, liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OtherEmployeeBenefitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherEmployeeBenefitsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents other employee benefits.",
        "label": "Other Member [Member]",
        "verboseLabel": "Other"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OtherEmploymentBenefitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherEmploymentBenefitsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "n/a",
        "label": "Other Employment Benefits [Member]",
        "terseLabel": "Other employee benefits"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OtherExternalCreditGradesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherExternalCreditGradesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for other external credit grades.",
        "label": "Other External Credit Grades[Member]",
        "terseLabel": "Not available rating"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherFinanceCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherFinanceCost",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails": {
       "parentTag": "ifrs-full_FinanceCosts",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other finance cost",
        "negatedLabel": "Other financial expenses"
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ifrs-full_OtherFinanceIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherFinanceIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails": {
       "parentTag": "ifrs-full_FinanceIncome",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other finance income",
        "verboseLabel": "Other financial incomes"
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ifrs-full_OtherFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails": {
       "parentTag": "ifrs-full_NetFinancialLiabilitiesSubjectToOffsettingEnforceableMasterNettingArrangementsOrSimilarAgreementsInStatementOfFinancialPosition",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsMaturityDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementLeverageRatioDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other financial assets.",
        "negatedTerseLabel": "Other financial assets (Note 9)",
        "terseLabel": "Other financial assets",
        "verboseLabel": "Other financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial assets that the entity does not separately disclose in the same statement or note. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r437"
     ]
    },
    "ec_OtherFinancialAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherFinancialAssetsLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other financial assets",
        "label": "Other financial assets [Line Items]",
        "terseLabel": "Other financial assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OtherFinancialAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherFinancialAssetsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other financial assets [Member]",
        "terseLabel": "Other financial assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OtherFinancialAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherFinancialAssetsTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other financial assets [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails": {
       "parentTag": "ifrs-full_OtherOperatingIncomeExpense",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other income",
        "verboseLabel": "Other income"
       }
      }
     },
     "auth_ref": [
      "r57",
      "r556",
      "r557"
     ]
    },
    "ifrs-full_OtherIntangibleAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherIntangibleAssetsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other intangibles",
        "terseLabel": "Other intangibles"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets that the entity does not separately disclose in the same statement or note. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r695"
     ]
    },
    "ec_OtherLiabilitiesRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherLiabilitiesRecognisedAsOfAcquisitionDate",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "ec_LiabilitiesRecognisedAsOfAcquisitionDate",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for other liabilities assumed in a business combination.",
        "label": "Other Liabilities Recognised As Of Acquisition Date",
        "terseLabel": "Other liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OtherLiabilitiesRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherLiabilitiesRelatedParties",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of liabilities Related parties that the entity does not separately disclose in the same statement or note. [Refer: Other Liabilities Related parties]",
        "label": "Other Liabilities Related parties",
        "verboseLabel": "Other liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OtherLiabilitiesRelatedPartiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherLiabilitiesRelatedPartiesCurrent",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of current liabilities Related parties that the entity does not separately disclose in the same statement or note. [Refer: Other Liabilities Related parties Current]",
        "label": "Other Liabilities Related parties Current",
        "terseLabel": "Other liabilities, Current"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OtherLiabilitiesRelatedPartiesNonCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherLiabilitiesRelatedPartiesNonCurrent",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of Non current liabilities Related parties that the entity does not separately disclose in the same statement or note. [Refer: Other Liabilities Related parties Non Current]",
        "label": "Other Liabilities Related parties Non Current",
        "terseLabel": "Other liabilities, Non-current"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherLongtermProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherLongtermProvisions",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other non-current provisions",
        "terseLabel": "Non-current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current provisions other than provisions for employee benefits. [Refer: Non-current provisions]"
       }
      }
     },
     "auth_ref": [
      "r419",
      "r456"
     ]
    },
    "ec_OtherNetOperatingIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherNetOperatingIncomeExpense",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net amount of operating income (expense) that the entity does not separately disclose in the same statement or note.",
        "label": "Other Net Operating Income Expense",
        "negatedLabel": "Other operating (expenses) income net"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherNoncurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherNoncurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails": {
       "parentTag": "ifrs-full_OtherNoncurrentNonfinancialAssets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other non-current assets",
        "terseLabel": "Other assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current assets that the entity does not separately disclose in the same statement or note. [Refer: Non-current assets]"
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ifrs-full_OtherNoncurrentFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherNoncurrentFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other non-current financial assets",
        "terseLabel": "Other financial assets",
        "verboseLabel": "Non-current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current financial assets that the entity does not separately disclose in the same statement or note. [Refer: Other financial assets]"
       }
      }
     },
     "auth_ref": [
      "r437"
     ]
    },
    "ifrs-full_OtherNoncurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherNoncurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other non-current liabilities",
        "verboseLabel": "Other liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current liabilities that the entity does not separately disclose in the same statement or note. [Refer: Non-current liabilities]"
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ifrs-full_OtherNoncurrentNonfinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherNoncurrentNonfinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 10.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other non-current non-financial assets",
        "terseLabel": "Other assets",
        "totalLabel": "Total non-current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current non-financial assets that the entity does not separately disclose in the same statement or note. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ifrs-full_OtherNoncurrentReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherNoncurrentReceivables",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": "ifrs-full_NoncurrentReceivables",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other non-current receivables",
        "verboseLabel": "Other"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current other receivables. [Refer: Other receivables]"
       }
      }
     },
     "auth_ref": [
      "r554",
      "r560"
     ]
    },
    "ifrs-full_OtherOperatingIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherOperatingIncomeExpense",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": 1.0,
       "order": 5.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other operating income (expense)",
        "terseLabel": "Other operating (expense) income",
        "totalLabel": "Other operating income (expenses)"
       }
      }
     },
     "auth_ref": [
      "r724"
     ]
    },
    "ifrs-full_OtherPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherPayables",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentPayables",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other payables",
        "verboseLabel": "Various creditors"
       }
      },
      "en": {
       "role": {
        "documentation": "Amounts payable that the entity does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ecd_OtherPerfMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "OtherPerfMeasureAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Performance Measure, Amount",
        "terseLabel": "Other Performance Measure, Amount"
       }
      }
     },
     "auth_ref": [
      "r627"
     ]
    },
    "ec_OtherProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherProductsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other products",
        "terseLabel": "Other products"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherPropertyPlantAndEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherPropertyPlantAndEquipmentMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other",
        "terseLabel": "Other"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing property, plant and equipment that the entity does not separately disclose in the same statement or note. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r681"
     ]
    },
    "ifrs-full_OtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other provisions",
        "periodEndLabel": "Balance End Period",
        "periodStartLabel": "Balance Beginning period"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of provisions other than provisions for employee benefits. [Refer: Provisions]"
       }
      }
     },
     "auth_ref": [
      "r87",
      "r349",
      "r419",
      "r456"
     ]
    },
    "ec_OtherQualificationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherQualificationsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsCreditRatingsOfIssuersAndCounterpartiesInAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other credit ratings [member]",
        "terseLabel": "Other ratings"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherReserves": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherReserves",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityEcopetrolBusinessGroupsReservesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other reserves",
        "terseLabel": "Reserves",
        "verboseLabel": "Equity reserves"
       }
      },
      "en": {
       "role": {
        "documentation": "A component of equity representing reserves within equity, not including retained earnings. [Refer: Retained earnings]"
       }
      }
     },
     "auth_ref": [
      "r555",
      "r561"
     ]
    },
    "ifrs-full_OtherReservesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherReservesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Reserves [Member]",
        "terseLabel": "Reserves"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing reserves within equity, not including retained earnings. [Refer: Retained earnings]"
       }
      }
     },
     "auth_ref": [
      "r292",
      "r427"
     ]
    },
    "ifrs-full_OtherShorttermProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherShorttermProvisions",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other current provisions",
        "terseLabel": "Current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current provisions other than provisions for employee benefits. [Refer: Provisions]"
       }
      }
     },
     "auth_ref": [
      "r419",
      "r456"
     ]
    },
    "ec_OtherSouthAmericaCountriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OtherSouthAmericaCountriesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Other South America countries.",
        "label": "Other South America countries [Member]",
        "terseLabel": "Other South America countries"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other tax effects for reconciliation between accounting profit and tax expense (income)",
        "terseLabel": "Effect of tax reform"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount that represents the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that the entity does not separately disclose in the same statement or note. [Refer: Accounting profit; Applicable tax rate]"
       }
      }
     },
     "auth_ref": [
      "r4",
      "r306"
     ]
    },
    "ec_OthersLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OthersLiabilitiesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for other liabilities.",
        "label": "Others Liabilities [Member]",
        "terseLabel": "Other liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OthersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OthersMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "It represents member of others .",
        "label": "Others [Member]",
        "terseLabel": "Others"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OthersNoncurrentAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OthersNoncurrentAssetsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Others non-current assets [Member]",
        "verboseLabel": "Other non-current assets"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_OutstandingAggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "OutstandingAggtErrCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Aggregate Erroneous Compensation Amount",
        "terseLabel": "Outstanding Aggregate Erroneous Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r588",
      "r599",
      "r609",
      "r642"
     ]
    },
    "ecd_OutstandingRecoveryCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "OutstandingRecoveryCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Recovery Compensation Amount",
        "terseLabel": "Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r591",
      "r602",
      "r612",
      "r645"
     ]
    },
    "ecd_OutstandingRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "OutstandingRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Recovery, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r591",
      "r602",
      "r612",
      "r645"
     ]
    },
    "ec_OwnershipInterestHeldByGovernment": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OwnershipInterestHeldByGovernment",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of entity ownership interest held by government.",
        "label": "Ownership Interest Held By Government",
        "terseLabel": "Ownership interest held by government"
       }
      }
     },
     "auth_ref": []
    },
    "ec_OxyAnadarkoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "OxyAnadarkoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for OXY (Anadarko).",
        "label": "OXY (Anadarko) [Member]",
        "terseLabel": "OXY (Anadarko)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_P1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "P1Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to P-1.",
        "label": "P-1",
        "terseLabel": "P-1"
       }
      }
     },
     "auth_ref": []
    },
    "country_PA": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2025",
     "localname": "PA",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PANAMA",
        "terseLabel": "Panama"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PAaaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PAaaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for P AAA.",
        "label": "P AAA",
        "terseLabel": "P AAA"
       }
      }
     },
     "auth_ref": []
    },
    "country_PE": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2025",
     "localname": "PE",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PERU",
        "terseLabel": "Peru"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PMinusOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PMinusOneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsCreditRatingDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to P-1.",
        "label": "P Minus One [Member]",
        "terseLabel": "P-1"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PaEnergaParaLaPazMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PaEnergaParaLaPazMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for PA Energa para la paz.",
        "label": "PA Energa Para La Paz [Member]",
        "verboseLabel": "PA Energa para la paz"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ParexResourcesColombiaLtdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ParexResourcesColombiaLtdMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Parex Resources Colombia LTD.",
        "label": "Parex Resources Colombia LTD [Member]",
        "terseLabel": "Parex Resources Colombia LTD"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ParexResoursesColombiaLtd.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ParexResoursesColombiaLtd.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Parex Resourses Colombia Ltd.",
        "label": "Parex Resourses Colombia Ltd. [Member]",
        "terseLabel": "Parex Resourses Colombia Ltd."
       }
      }
     },
     "auth_ref": []
    },
    "ec_ParqueSolarPortnDelSolS.a.s.E.s.p.PortnDelSolMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ParqueSolarPortnDelSolS.a.s.E.s.p.PortnDelSolMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Parque Solar Portn del Sol S.A.S. E.S.P. (\"Portn del Sol\").",
        "label": "Parque Solar Portn del Sol S.A.S. E.S.P. (\"Portn del Sol\") [Member]",
        "terseLabel": "Parque Solar Portn del Sol S.A.S y Energuana S.A.S."
       }
      }
     },
     "auth_ref": []
    },
    "ec_ParqueSolarPortonDelSolS.a.sE.s.p.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ParqueSolarPortonDelSolS.a.sE.s.p.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Parque Solar Porton del Sol S.A.S E.S.P.",
        "label": "Parque Solar Porton del Sol S.A.S E.S.P. [Member]",
        "terseLabel": "Parque Solar Porton del Sol S.A.S E.S.P."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PastDueStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PastDueStatusAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementSignificantConcentrationOfCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Past due status [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r523"
     ]
    },
    "ifrs-full_PastDueStatusDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PastDueStatusDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementSignificantConcentrationOfCreditRiskDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Past due status [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all past-due statuses. It also represents the standard value for the 'Past due status' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r523"
     ]
    },
    "ifrs-full_PastServiceCostNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PastServiceCostNetDefinedBenefitLiabilityAsset",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Past service cost, net defined benefit liability (asset)",
        "verboseLabel": "Past service cost"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in the net defined benefit liability (asset) resulting from past service cost. Past service cost is the change in the present value of the defined benefit obligation for employee service in prior periods, resulting from a plan amendment (the introduction or withdrawal of, or changes to, a defined benefit plan) or a curtailment (a significant reduction by the entity in the number of employees covered by a plan). [Refer: Net defined benefit liability (asset); Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r31",
      "r327"
     ]
    },
    "ec_PastServiceCostRecognizedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PastServiceCostRecognizedInProfitOrLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails": {
       "parentTag": "ec_BenefitsPlanCostsRecognizedInProfitOrLoss",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Past service costs of the benefit plans recognized in profit or loss.",
        "label": "Past service cost recognized in profit or loss",
        "verboseLabel": "Past service cost"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PauBrasilContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PauBrasilContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for Pau Brasil  Contract.",
        "label": "Pau Brasil Contract [Member]",
        "terseLabel": "Pau Brasil"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PayVsPerformanceDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PayVsPerformanceDisclosureLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance Disclosure [Line Items]",
        "terseLabel": "Pay vs Performance Disclosure"
       }
      }
     },
     "auth_ref": [
      "r616"
     ]
    },
    "ec_PayableUnderTransportContract": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PayableUnderTransportContract",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentPayables",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of payment due under transport contract.",
        "label": "payable under transport contract",
        "verboseLabel": "Agreements in transport contracts"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PayablesOnSocialSecurityAndTaxesOtherThanIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PayablesOnSocialSecurityAndTaxesOtherThanIncomeTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentPayables",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payables on social security and taxes other than income tax",
        "verboseLabel": "Withholding tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of payment due on social security and taxes other than income tax. Income taxes include all domestic and foreign taxes that are based on taxable profits. Income taxes also include taxes, such as withholding taxes, that are payable by a subsidiary, associate or joint arrangement on distributions to the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r721"
     ]
    },
    "ec_PaymentOfInterestsLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PaymentOfInterestsLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of repayment of borrowings and interests to lease liabilities.",
        "label": "Payment of Interests, Lease Liabilities",
        "negatedLabel": "Payment of interests"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PaymentOfKeyManagementPersonnelCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PaymentOfKeyManagementPersonnelCompensation",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow for payment of key management personnel compensation.",
        "label": "Payment Of Key Management Personnel Compensation",
        "terseLabel": "Payment of key management personnel compensation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PaymentsFromPlanNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PaymentsFromPlanNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments from plan, net defined benefit liability (asset)",
        "negatedLabel": "Benefits paid"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in the net defined benefit liability (asset) resulting from payments from the plan. [Refer: Net defined benefit liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r33",
      "r328"
     ]
    },
    "ec_PaymentsToAcquireProductiveAssetsInBusinessCombination": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PaymentsToAcquireProductiveAssetsInBusinessCombination",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow for purchases of and capital improvements on property, plant and equipment (capital expenditures), software, and other intangible assets in a business combination.",
        "label": "Payments to Acquire Productive Assets in Business Combination",
        "negatedLabel": "Consideration paid for the acquisition of assets",
        "terseLabel": "Consideration paid for the acquisition of assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PcCarigaliMexicoOperationSaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PcCarigaliMexicoOperationSaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for PC Carigali Mexico Operation SA.",
        "label": "PC Carigali Mexico Operation SA [Member]",
        "terseLabel": "PC Carigali Mexico Operation SA"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PeerGroupIssuersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeerGroupIssuersFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Peer Group Issuers, Footnote [Text Block]",
        "terseLabel": "Peer Group Issuers, Footnote"
       }
      }
     },
     "auth_ref": [
      "r626"
     ]
    },
    "ecd_PeerGroupTotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeerGroupTotalShareholderRtnAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Peer Group Total Shareholder Return Amount",
        "terseLabel": "Peer Group Total Shareholder Return Amount"
       }
      }
     },
     "auth_ref": [
      "r626"
     ]
    },
    "ec_PenalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PenalMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetailsOfContingentLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for penal.",
        "label": "Penal [Member]",
        "terseLabel": "Penal"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PensionAndPensionBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PensionAndPensionBondsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMaturityOfBenefitObligationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension and bonds",
        "verboseLabel": "Pension and bonds"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PensionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PensionMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsSensitivityAnalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension",
        "terseLabel": "Pension"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PensionTrustMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PensionTrustMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Trust [Member]",
        "terseLabel": "Pension trust"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PeoActuallyPaidCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeoActuallyPaidCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Actually Paid Compensation Amount",
        "terseLabel": "PEO Actually Paid Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r618"
     ]
    },
    "ecd_PeoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeoMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO [Member]",
        "terseLabel": "PEO"
       }
      }
     },
     "auth_ref": [
      "r635"
     ]
    },
    "ecd_PeoName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeoName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Name",
        "terseLabel": "PEO Name"
       }
      }
     },
     "auth_ref": [
      "r628"
     ]
    },
    "ecd_PeoTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeoTotalCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Total Compensation Amount",
        "terseLabel": "PEO Total Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r617"
     ]
    },
    "ec_PercentOfIncreaseInTariffForCrudeOilTransportation": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentOfIncreaseInTariffForCrudeOilTransportation",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage increase in tariff for crude oil transportation.",
        "label": "Percent of Increase in Tariff for Crude Oil Transportation",
        "terseLabel": "Percentage of increase in cost of crude oil transportation"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfCrudeOilAndGasProductionBasedOnValue": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfCrudeOilAndGasProductionBasedOnValue",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "It represents the percentage rate of crude oil and gas production based on value which transferred during the reporting period.",
        "label": "Percentage of crude oil and gas production based on value",
        "terseLabel": "Percentage of transferred crude oil and gas production based on value to intercompany units"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfCrudeOilAndGasProductionBasedOnVolume": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfCrudeOilAndGasProductionBasedOnVolume",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "It represents the percentage rate of crude oil and gas production based on volume which transferred during the reporting period.",
        "label": "Percentage of crude oil and gas production based on volume",
        "terseLabel": "Percentage of transferred crude oil and gas production based on volume to intercompany units"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfEbitdaMargin": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfEbitdaMargin",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of EBITDA margin.",
        "label": "Percentage of EBITDA Margin",
        "terseLabel": "Percentage of EBITDA margin"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PercentageOfEntitysRevenue": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PercentageOfEntitysRevenue",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage of entity's revenue",
        "verboseLabel": "Percentage of entitys revenue"
       }
      }
     },
     "auth_ref": [
      "r711"
     ]
    },
    "ec_PercentageOfIndustryAndCommerceTaxDiscount": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfIndustryAndCommerceTaxDiscount",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of industry and commerce tax discount.",
        "label": "Percentage Of Industry And Commerce Tax Discount"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfInstalledCapacityAimedToTotalCapacity": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfInstalledCapacityAimedToTotalCapacity",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the percentage of installed capacity aimed to be maintained for the the total capacity of the group.",
        "label": "Percentage of Installed Capacity Aimed To The Total Capacity",
        "terseLabel": "Renewable energy installed capacity"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfInterestRateOnAccumulatedSeveranceAmount": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfInterestRateOnAccumulatedSeveranceAmount",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of Interest Rate On Accumulated Severance Amount.",
        "label": "Percentage of Interest Rate On Accumulated Severance Amount",
        "terseLabel": "Percentage of interest rate on accumulated severance amount"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfOwnershipInterestInJointVentureBasic": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfOwnershipInterestInJointVentureBasic",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of ownership interest in joint venture basic.",
        "label": "Percentage of Ownership Interest In Joint Venture Basic",
        "terseLabel": "% participation, basic"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfOwnershipInterestInJointVentureInAdditionToHighPricesOfOil": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfOwnershipInterestInJointVentureInAdditionToHighPricesOfOil",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of ownership interest in joint venture in addition to High prices of oil.",
        "label": "Percentage Of Ownership Interest In Joint Venture In Addition To High Prices of Oil",
        "terseLabel": "% participation in addition to High Prices of Oil"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfOwnershipInterestInJointVentureInAdditionToPap": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfOwnershipInterestInJointVentureInAdditionToPap",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of ownership interest in joint venture in addition to PAP.",
        "label": "Percentage of Ownership Interest In Joint Venture In addition to PAP",
        "terseLabel": "% participation in addition to PAP"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfOwnershipInterestInJointVentureInAdditionToProductionFactor": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfOwnershipInterestInJointVentureInAdditionToProductionFactor",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of ownership interest in joint venture in addition to Production Factor.",
        "label": "Percentage Of Ownership Interest In Joint Venture In Addition To Production Factor",
        "terseLabel": "% participation in addition to Production Factor"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfOwnershipInterestInJointVentureIncremental": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfOwnershipInterestInJointVentureIncremental",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of ownership interest in joint venture incremental.",
        "label": "Percentage of Ownership Interest In Joint Venture Incremental",
        "terseLabel": "% participation, incremental"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfOwnershipInterestToBeSecured": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfOwnershipInterestToBeSecured",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The target proportion of total equity ownership that an acquiring party intends to obtain in a company through a transaction (such as a share purchase or tender offer), in order to achieve a specific objective-typically control.",
        "label": "Percentage Of Ownership Interest to be Secured",
        "terseLabel": "Ownership percentage of an equity interest rate secured"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfPlanAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfPlanAssets",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of plan assets in total assets.",
        "label": "Percentage of plan assets",
        "terseLabel": "Percentage of plan assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfProgressObtainedForFunctionalUnit3": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfProgressObtainedForFunctionalUnit3",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of progress obtained for functional unit 3.",
        "label": "Percentage Of Progress Obtained For Functional Unit 3",
        "terseLabel": "Percentage Of Progress Obtained For Functional Unit 3"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfProjectsAwarded": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfProjectsAwarded",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of projects awarded.",
        "label": "Percentage of Projects Awarded",
        "terseLabel": "Percentage of projects awarded"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfReceivablesImpaired": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfReceivablesImpaired",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of receivables impaired during the period.",
        "label": "Percentage of Receivables Impaired",
        "terseLabel": "Percentage of Receivables Impaired"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfRightOfUseAssetsRecognizedInJointVenture": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfRightOfUseAssetsRecognizedInJointVenture",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of right of use assets recognized in joint venture agreement.",
        "label": "Percentage of Right of Use Assets Recognized in Joint Venture",
        "terseLabel": "Percentage of right of use assets recognized in joint venture"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PercentageOfRightToDiscountOfValueInvestedInTaxProjects": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PercentageOfRightToDiscountOfValueInvestedInTaxProjects",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the percentage of right to discount of value invested in specified tax projects provide by National Council of Tax Benefits in Science and Technology.",
        "label": "Percentage of Right to Discount of the Value Invested in Tax Projects",
        "terseLabel": "Percentage of right to discount"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PercentageOfVotingEquityInterestsAcquired": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PercentageOfVotingEquityInterestsAcquired",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherOperatingIncomeExpensesDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage of voting equity interests acquired",
        "terseLabel": "Percentage of ownership interest acquired",
        "verboseLabel": "Percentage of interest acquired"
       }
      },
      "en": {
       "role": {
        "documentation": "The percentage of voting equity interests acquired in a business combination. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r191",
      "r373"
     ]
    },
    "ec_PerdicesContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PerdicesContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Perdices contract.",
        "label": "Perdices Contract [Member]",
        "terseLabel": "Perdices"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PerencoOilAndGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PerencoOilAndGasMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Perenco Oil And Gas.",
        "label": "Perenco Oil And Gas [Member]",
        "terseLabel": "Perenco Oil And Gas"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PerencoOilGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PerencoOilGasMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Perenco Oil &amp; Gas.",
        "label": "Perenco Oil &amp; Gas [Member]",
        "terseLabel": "Perenco Oil &amp; Gas"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PermanentDifferencesEnshrinedInLawAndThatIncreaseNetIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PermanentDifferencesEnshrinedInLawAndThatIncreaseNetIncome",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of permanent differences enshrined in law and that increase net income.",
        "label": "Permanent Differences Enshrined In Law And That Increase Net Income",
        "terseLabel": "Permanent differences enshrined in law and that increase net income"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PesoPortfolioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PesoPortfolioMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit risk in Peso portfolio"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PetrobrasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PetrobrasMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for pertrobras.",
        "label": "Petrobras [Member]",
        "terseLabel": "Petrobras"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PlanAssetsAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PlanAssetsAtFairValue",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsCreditRatingsOfIssuersAndCounterpartiesInAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Plan Assets At Fair Value",
        "terseLabel": "Plan assets, at fair value"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value of defined benefit plan assets. Plan assets comprise assets held by a long-term employee benefit fund and qualifying insurance policies. [Refer: At fair value [member]]"
       }
      }
     },
     "auth_ref": [
      "r687"
     ]
    },
    "ec_PlantaSolarSahagunS.a.s.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PlantaSolarSahagunS.a.s.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Planta Solar Sahagun S.A.S.",
        "label": "Planta Solar Sahagun S.A.S. [Member]",
        "terseLabel": "Planta Solar Sahagun S.A.S."
       }
      }
     },
     "auth_ref": []
    },
    "ec_PlasticAndRubberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PlasticAndRubberMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Plastic and rubber",
        "terseLabel": "Plastic and rubber"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PlusMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PlusMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsCreditQualityOfBanksInEcopetrolBusinessGroupHasDepositsAndCheckAccountsAndIssuersOfInvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for A+.",
        "label": "A+ [member]",
        "verboseLabel": "A+"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PnsnAdjsPrrSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PnsnAdjsPrrSvcCstMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Adjustments Prior Service Cost [Member]",
        "terseLabel": "Pension Adjustments Prior Service Cost"
       }
      }
     },
     "auth_ref": [
      "r619"
     ]
    },
    "ecd_PnsnAdjsSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PnsnAdjsSvcCstMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Adjustments Service Cost [Member]",
        "terseLabel": "Pension Adjustments Service Cost"
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "ecd_PnsnBnftsAdjFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PnsnBnftsAdjFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Benefits Adjustments, Footnote [Text Block]",
        "terseLabel": "Pension Benefits Adjustments, Footnote"
       }
      }
     },
     "auth_ref": [
      "r618"
     ]
    },
    "ec_PolyethyleneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PolyethyleneMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Polyethylene",
        "verboseLabel": "Polyethylene"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PostEmploymentAndTerminationBenefitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PostEmploymentAndTerminationBenefitsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Post employment and termination benefits",
        "terseLabel": "Post employment and termination benefits"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PostEmploymentsBenefitsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PostEmploymentsBenefitsAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "No definition.",
        "label": "Post Employments Benefits [Abstract]",
        "terseLabel": "Post-employment benefits"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PowerTransmissionAndRoadMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PowerTransmissionAndRoadMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "N/A",
        "label": "Power Transmission And Road [Member]",
        "verboseLabel": "Energy Transmission and Toll Roads Concessions"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PowerTransmissionAndRoadsSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PowerTransmissionAndRoadsSegmentMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Power transmission and roads segment.",
        "label": "Electric power transmission and toll roads concessions [Member]",
        "terseLabel": "Electric power transmission and toll roads concessions"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PresumptiveIncomePercentageOnBeginningEquity": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PresumptiveIncomePercentageOnBeginningEquity",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The presumptive income percentage on the amount of equity on beginning period.",
        "label": "Presumptive income, percentage on beginning equity"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PresumtiveIncomeTax": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PresumtiveIncomeTax",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of presumptive income tax.",
        "label": "Presumptive income tax"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PrincipalPlaceOfBusinessOfAssociate": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PrincipalPlaceOfBusinessOfAssociate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Principal place of business of associate",
        "verboseLabel": "Geographic area of operations, associate"
       }
      },
      "en": {
       "role": {
        "documentation": "The principal place of business of an associate. [Refer: Principal place of business; Total for all associates [member]]"
       }
      }
     },
     "auth_ref": [
      "r61",
      "r64",
      "r141"
     ]
    },
    "ifrs-full_PrincipalPlaceOfBusinessOfJointOperation": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PrincipalPlaceOfBusinessOfJointOperation",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Principal place of business of joint operation",
        "terseLabel": "Geographic area of operations",
        "verboseLabel": "Geographic area of operations"
       }
      },
      "en": {
       "role": {
        "documentation": "The principal place of business of a joint operation. [Refer: Total for all joint operations [member]; Principal place of business]"
       }
      }
     },
     "auth_ref": [
      "r141"
     ]
    },
    "ifrs-full_PrincipalPlaceOfBusinessOfJointVenture": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PrincipalPlaceOfBusinessOfJointVenture",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Principal place of business of joint venture",
        "verboseLabel": "Geographic area of operations, joint venture"
       }
      },
      "en": {
       "role": {
        "documentation": "The principal place of business of a joint venture. [Refer: Principal place of business; Total for all joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r61",
      "r64",
      "r141"
     ]
    },
    "ifrs-full_PrincipalPlaceOfBusinessOfSubsidiary": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PrincipalPlaceOfBusinessOfSubsidiary",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Principal place of business of subsidiary",
        "verboseLabel": "Geographic area of operations"
       }
      },
      "en": {
       "role": {
        "documentation": "The principal place of business of a subsidiary. [Refer: Principal place of business; Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r61",
      "r64",
      "r133",
      "r136"
     ]
    },
    "ec_PrivateEntitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PrivateEntitiesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Private Entities Member",
        "terseLabel": "Bonds of private entities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProceedsFromBorrowingsClassifiedAsFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from borrowings, classified as financing activities",
        "verboseLabel": "Proceeds from loans and borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from borrowings obtained. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r499"
     ]
    },
    "ifrs-full_ProceedsFromDisposalOfNoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleAndDiscontinuedOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProceedsFromDisposalOfNoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleAndDiscontinuedOperations",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from disposal of non-current assets or disposal groups classified as held for sale and discontinued operations",
        "verboseLabel": "Proceeds from sales of assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from the disposal of non-current assets or disposal groups classified as held for sale and discontinued operations. [Refer: Discontinued operations [member]; Disposal groups classified as held for sale [member]; Non-current assets or disposal groups classified as held for sale]"
       }
      }
     },
     "auth_ref": [
      "r699"
     ]
    },
    "ifrs-full_ProceedsFromGovernmentGrantsClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProceedsFromGovernmentGrantsClassifiedAsInvestingActivities",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from government grants, classified as investing activities",
        "verboseLabel": "Payment made by the ministry of finance"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from government grants, classified as investing activities. [Refer: Government [member]; Government grants]"
       }
      }
     },
     "auth_ref": [
      "r690"
     ]
    },
    "ec_ProceedsFromInvestmentsAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProceedsFromInvestmentsAccountedForUsingEquityMethod",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of proceeds from investment in joint ventures.",
        "label": "Proceeds from investments accounted for using equity method",
        "terseLabel": "Investment in joint ventures"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProceedsFromNoncurrentBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProceedsFromNoncurrentBorrowings",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from non-current borrowings",
        "verboseLabel": "Proceeds obtained from loans and borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from non-current borrowings obtained. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r700"
     ]
    },
    "ec_ProceedsFromPaymentForSaleOrPurchaseOfOtherFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProceedsFromPaymentForSaleOrPurchaseOfOtherFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow or (outflow) from sale or purchase of other financial assets.",
        "label": "Proceeds From payment for sale or purchase of other financial assets",
        "verboseLabel": "Proceeds from sales of other financial assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProceedsFromSaleOfBusiness": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProceedsFromSaleOfBusiness",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from sale of business.",
        "label": "Proceeds from Sale of Business",
        "terseLabel": "Proceeds from sale of business"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProcessingMaterials": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProcessingMaterials",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of expenses relating to processing of materials.",
        "label": "Processing materials",
        "verboseLabel": "Processing materials"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProductsAndServicesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProductsAndServicesAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Products and services [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r256",
      "r511",
      "r543"
     ]
    },
    "ifrs-full_ProductsAndServicesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProductsAndServicesDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Products and services [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the entity's products and services. It also represents the standard value for the 'Products and services' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r256",
      "r511",
      "r543"
     ]
    },
    "ec_ProfitDistributionProjectReserve": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProfitDistributionProjectReserve",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount reserve established to support the financial sustainability of the Company and flexibility in the development of your strategy.",
        "label": "Profit Distribution Project Reserve",
        "terseLabel": "Profit distribution project reserve"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProfitLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLossCalc2": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit (loss)",
        "netLabel": "Financial year results",
        "terseLabel": "Net profit for the year",
        "totalLabel": "Net profit for the year",
        "verboseLabel": "Net profit"
       }
      },
      "en": {
       "role": {
        "documentation": "The total of income less expenses from continuing and discontinued operations, excluding the components of other comprehensive income. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r128",
      "r130",
      "r249",
      "r251",
      "r340",
      "r371",
      "r425",
      "r463",
      "r505",
      "r515"
     ]
    },
    "ifrs-full_ProfitLossAttributableToAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLossAttributableToAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit (loss), attributable to [abstract]",
        "terseLabel": "Net profit (loss) for the year attributable to:",
        "verboseLabel": "Net profit for the year attributable to:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProfitLossAttributableToNoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLossAttributableToNoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLossCalc2": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit (loss), attributable to non-controlling interests",
        "terseLabel": "Non-controlling interest",
        "verboseLabel": "Non-controlling interest"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) from continuing and discontinued operations attributable to non-controlling interests. [Refer: Profit (loss); Non-controlling interests]"
       }
      }
     },
     "auth_ref": [
      "r134",
      "r466"
     ]
    },
    "ifrs-full_ProfitLossAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLossAttributableToOwnersOfParent",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLossCalc2": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityEarningsPerShareDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit (loss), attributable to owners of parent",
        "terseLabel": "Owners of parent",
        "verboseLabel": "Profit attributable to Ecopetrol's ordinary shareholders"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) from continuing and discontinued operations attributable to owners of the parent. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r467"
     ]
    },
    "ifrs-full_ProfitLossBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLossBeforeTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit (loss) before tax",
        "netLabel": "Profit before income tax expense of Colombia Group companies",
        "terseLabel": "Profit before income tax expense",
        "totalLabel": "Profit before income tax expense",
        "verboseLabel": "Profit before income tax expense"
       }
      }
     },
     "auth_ref": [
      "r200",
      "r539",
      "r540",
      "r556",
      "r557"
     ]
    },
    "ifrs-full_ProfitLossFromOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLossFromOperatingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit (loss) from operating activities",
        "totalLabel": "Operating income",
        "verboseLabel": "Operating income"
       }
      }
     },
     "auth_ref": [
      "r493",
      "r724"
     ]
    },
    "ec_ProjectConexinKimalLagunasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProjectConexinKimalLagunasMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Project Conexin Kimal Lagunas.",
        "label": "Project Conexin Kimal Lagunas [Member]",
        "terseLabel": "Project Conexin Kimal Lagunas"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProjectionOfInvestmentsRelatedToMaintenanceAndOptimizationPlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProjectionOfInvestmentsRelatedToMaintenanceAndOptimizationPlan",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of projection of investments related to maintenance and optimization plan.",
        "label": "Projection of Investments Related to Maintenance and Optimization Plan",
        "terseLabel": "Maintenance and optimization plan"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProjectionOfInvestmentsRelatedToTechnologicalDevelopmentsAndHeadquartersConservation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProjectionOfInvestmentsRelatedToTechnologicalDevelopmentsAndHeadquartersConservation",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of projection of investments related to technological developments and headquarters conservation.",
        "label": "Projection of Investments Related to Technological Developments and Headquarters Conservation",
        "terseLabel": "Technological developments and headquarters conservation"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProjectsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProjectsAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table.",
        "label": "Projects [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProjectsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProjectsDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for projects.",
        "label": "Projects [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PromotoraDeGasesDelSurS.a.E.s.p.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PromotoraDeGasesDelSurS.a.E.s.p.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Promotora de Gases del Sur S.A. E.S.P.",
        "label": "Promotora de Gases del Sur S.A. E.S.P."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PropertyPlantAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, plant and equipment.",
        "periodEndLabel": "Ending Balance",
        "periodStartLabel": "Beginning Balance",
        "terseLabel": "Property, plant, and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of tangible assets that: (a) are held for use in the production or supply of goods or services, for rental to others, or for administrative purposes; and (b) are expected to be used during more than one period. Note that right-of-use assets are not included. [Contrast: Property, plant and equipment including right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r20",
      "r320",
      "r434"
     ]
    },
    "ifrs-full_PropertyPlantAndEquipmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PropertyPlantAndEquipmentAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, plant, and equipment"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PropertyPlantAndEquipmentAndNaturalAndEnvironmentalResourcesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PropertyPlantAndEquipmentAndNaturalAndEnvironmentalResourcesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property plant and equipment and Natural and environmental resources"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PropertyPlantAndEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PropertyPlantAndEquipmentMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Plant and equipments",
        "terseLabel": "Plant and equipment",
        "verboseLabel": "Property, plant, and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r21",
      "r321",
      "r494",
      "r514",
      "r546",
      "r549"
     ]
    },
    "ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "ec_AssetsRecognisedAsOfAcquisitionDate",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, plant and equipment recognised as of acquisition date",
        "terseLabel": "Property, plant, and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for plant, property and equipment acquired in a business combination. [Refer: Property, plant and equipment; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r518",
      "r520",
      "r550"
     ]
    },
    "ifrs-full_ProportionOfOwnershipInterestInAssociate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProportionOfOwnershipInterestInAssociate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proportion of ownership interest in associate",
        "terseLabel": "Ownership interest, associate"
       }
      },
      "en": {
       "role": {
        "documentation": "The proportion of ownership interest in an associate attributable to the entity. [Refer: Total for all associates [member]]"
       }
      }
     },
     "auth_ref": [
      "r62",
      "r65",
      "r142"
     ]
    },
    "ifrs-full_ProportionOfOwnershipInterestInJointOperation": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProportionOfOwnershipInterestInJointOperation",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proportion of ownership interest in joint operation",
        "verboseLabel": "% Participation"
       }
      },
      "en": {
       "role": {
        "documentation": "The proportion of ownership interest in a joint operation attributable to the entity. [Refer: Total for all joint operations [member]]"
       }
      }
     },
     "auth_ref": [
      "r142"
     ]
    },
    "ifrs-full_ProportionOfOwnershipInterestInJointVenture": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProportionOfOwnershipInterestInJointVenture",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesReconciliationOfEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proportion of ownership interest in joint venture",
        "terseLabel": "Ownership interest, joint venture",
        "verboseLabel": "% of Ecopetrol's ownership"
       }
      },
      "en": {
       "role": {
        "documentation": "The proportion of ownership interest in a joint venture attributable to the entity. [Refer: Total for all joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r62",
      "r65",
      "r142"
     ]
    },
    "ifrs-full_ProportionOfOwnershipInterestInSubsidiary": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProportionOfOwnershipInterestInSubsidiary",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proportion of ownership interest in subsidiary",
        "terseLabel": "Percentage of direct ownership of capital shares",
        "verboseLabel": "Ownership interest"
       }
      },
      "en": {
       "role": {
        "documentation": "The proportion of ownership interest in a subsidiary attributable to the entity. [Refer: Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r62",
      "r65",
      "r137"
     ]
    },
    "ec_ProportionOfOwnershipInterestsHeld": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProportionOfOwnershipInterestsHeld",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The proportion of the voting rights held by the entity.",
        "label": "Proportion of Ownership Interests Held",
        "terseLabel": "Percentage of ownership interest held"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProportionOfSharesAvailableForPublicTrade": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProportionOfSharesAvailableForPublicTrade",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureReportingEntityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of shares which is publicly available to trade in stock exchange.",
        "label": "Proportion Of Shares Available For Public Trade",
        "terseLabel": "Proportion of shares available for public trade held privately"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProportionOfSharesHeldByMajorityShareHolders": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProportionOfSharesHeldByMajorityShareHolders",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureReportingEntityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of shares which are held by majority share holders not available for public trade.",
        "label": "Proportion Of Shares Held By Majority Share Holders",
        "terseLabel": "Proportion of shares held by majority share holders"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProportionOfVotingRightsHeldInJointVenture": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProportionOfVotingRightsHeldInJointVenture",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proportion of voting rights held in joint venture"
       }
      },
      "en": {
       "role": {
        "documentation": "The proportion of the voting rights in a joint venture held by the entity. [Refer: Total for all joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r62",
      "r65",
      "r142"
     ]
    },
    "ec_ProvedDevelopedReserves": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProvedDevelopedReserves",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedReserveInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net quantities of an enterprise's interests in proved developed reserves of either crude oil (including condensate and natural gas liquids), natural gas, synthetic oil and gas, or other nonrenewable natural resource that is intended to be upgraded into synthetic oil and gas as of the beginning and the end of the year. \"Net\" quantities of reserves include those relating to the enterprise's operating and nonoperating interests in properties. Quantities of reserves relating to royalty interests owned are included in \"net\" quantities if the necessary information is available to the enterprise. \"Net\" quantities does not include reserves relating to interests of others in properties owned by the enterprise. The unit of measure for reserve quantities is defined as \"barrels\" for oil and synthetic oil reserves or \"cubic feet\" or \"cubic meters\" for natural gas and synthetic gas reserves.",
        "label": "Proved Developed Reserves",
        "periodEndLabel": "Proved developed reserves: Closing balance",
        "periodStartLabel": "Proved developed reserves: Opening balance"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProvedOilAndGasReserves": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProvedOilAndGasReserves",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "1P reserves are the oil and gas we are almost certain can be produced profitably with current technology and prices.",
        "label": "Proved Oil and Gas Reserves",
        "terseLabel": "1P reserves are the oil and gas"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProvedOilAndGasReservesNet": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProvedOilAndGasReservesNet",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedReserveInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net quantity of proved reserves as of the balance sheet date. Proved oil reserves are the estimated quantities of crude oil and natural gas liquids which geological and engineering data demonstrate with reasonable certainty to be recoverable.",
        "label": "Proved Oil and Gas Reserves, Net",
        "periodEndLabel": "Closing balance",
        "periodStartLabel": "Opening balance"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProvedReservesExtensionsDiscoveriesAndAdditions": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProvedReservesExtensionsDiscoveriesAndAdditions",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedReserveInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Additions to proved reserves that result from (1) extension of the proved acreage of previously discovered (old) reservoirs through additional drilling in periods after discovery and (2) discovery of new fields with proved reserves or of new reservoirs of proved reserves in old fields.",
        "label": "Proved Reserves, Extensions, Discoveries, and Additions",
        "terseLabel": "Proved reserves, Extensions and discoveries"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProvedReservesImprovedRecovery": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProvedReservesImprovedRecovery",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedReserveInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Changes in proved reserve estimates resulting from application of improved recovery techniques.",
        "label": "Proved Reserves, Improved Recovery",
        "terseLabel": "Proved reserves, Improved recovery"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProvedReservesProduction": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProvedReservesProduction",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedReserveInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Production of proved reserves.",
        "label": "Proved Reserves, Production",
        "negatedLabel": "Proved reserves, Production"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProvedReservesPurchases": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProvedReservesPurchases",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedReserveInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Purchases of proved reserves.",
        "label": "Proved Reserves Purchases",
        "terseLabel": "Proved reserves, Purchases"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProvedReservesRevisionsOfPreviousEstimates": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProvedReservesRevisionsOfPreviousEstimates",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedReserveInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Revisions represent changes in previous estimates of proved reserves, either upward or downward, resulting from new information (except for an increase in proved acreage) normally obtained from development drilling and production history or resulting from change in economic factors.",
        "label": "Proved Reserves, Revisions of Previous Estimates",
        "terseLabel": "Proved reserves, Revisions of previous estimates"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProvedReservesSales": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProvedReservesSales",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedReserveInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sales of proved reserves.",
        "label": "Proved Reserves Sales",
        "terseLabel": "Proved reserves, Sales"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProvedUndevelopedReserve": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProvedUndevelopedReserve",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedReserveInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net quantities of an enterprise's interests in proved undeveloped reserves of either crude oil (including condensate and natural gas liquids), natural gas, synthetic oil and gas, or other renewable natural resource that is intended to be upgraded into synthetic oil and gas as of the beginning and the end of the year. \"Net\" quantities of reserves include those relating to the enterprise's operating and nonoperating interests in properties. Quantities of reserves relating to royalty interests owned are included in \"net\" quantities if the necessary information is available to the enterprise. \"Net\" quantities does not include reserves relating to interests of others in properties owned by the enterprise. The unit of measure for reserve quantities is defined as \"barrels\" for oil and synthetic oil reserves or \"cubic feet\" or \"cubic meters\" for natural gas and synthetic gas reserves.",
        "label": "Proved Undeveloped Reserve",
        "periodEndLabel": "Proved undeveloped reserves: Closing balance",
        "periodStartLabel": "Proved undeveloped reserves: Opening balance"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProvisionForExpectedLossesIncludedInProvisionLineForExpectedCreditLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProvisionForExpectedLossesIncludedInProvisionLineForExpectedCreditLosses",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the amount of provision for expected losses which is included in provision line for expected credit losses.",
        "label": "Provision For Expected Losses, Included In Provision Line For Expected Credit Losses",
        "terseLabel": "Provision for expected losses, included in provision line for expected credit losses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProvisionUsedOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProvisionUsedOtherProvisions",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision used, other provisions",
        "negatedLabel": "Uses"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount used (ie incurred and charged against the provision) for other provisions. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r88",
      "r350"
     ]
    },
    "ec_ProvisionUsedProvisionsForInventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProvisionUsedProvisionsForInventories",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesChangesOfAllowancesForLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount used for provisions for inventories.",
        "label": "Provision Used Provisions for Inventories",
        "negatedTerseLabel": "Other"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Provisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Provisions",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provisions",
        "verboseLabel": "Accrued liabilities and provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities of uncertain timing or amount, including provisions for employee benefits."
       }
      }
     },
     "auth_ref": [
      "r443"
     ]
    },
    "ec_ProvisionsAndContingenciesInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProvisionsAndContingenciesInOperatingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 20.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This represents provisions and contingencies adjustment to operating activities.",
        "label": "Provisions and Contingencies in Operating Activities",
        "terseLabel": "Movements in provisions"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProvisionsForEmployeeBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProvisionsForEmployeeBenefits",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provisions for employee benefits",
        "terseLabel": "Post-employment benefits"
       }
      }
     },
     "auth_ref": [
      "r419",
      "r456"
     ]
    },
    "ec_ProvisionsForInventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProvisionsForInventories",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInventoriesChangesOfAllowancesForLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount provisions for inventories.",
        "label": "Provisions for Inventories",
        "periodEndLabel": "Closing balance",
        "periodStartLabel": "Opening balance"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProvisionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProvisionsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provisions [Member]",
        "terseLabel": "Provisions"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ProyectosDeInfraestructuraDelPerS.a.c.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ProyectosDeInfraestructuraDelPerS.a.c.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Proyectos de Infraestructura del Per S.A.C.",
        "label": "Proyectos de Infraestructura del Per S.A.C. [Member]",
        "terseLabel": "Proyectos de Infraestructura del Per S.A.C."
       }
      }
     },
     "auth_ref": []
    },
    "ec_PublicEntitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PublicEntitiesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Entities Member",
        "verboseLabel": "Other public bonds"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PurchaseOfExplorationAndEvaluationAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PurchaseOfExplorationAndEvaluationAssets",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase of exploration and evaluation assets",
        "negatedLabel": "Investment in natural and environmental resources"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for the purchase of exploration and evaluation assets. [Refer: Exploration and evaluation assets [member]]"
       }
      }
     },
     "auth_ref": [
      "r699"
     ]
    },
    "ifrs-full_PurchaseOfIntangibleAssetsClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PurchaseOfIntangibleAssetsClassifiedAsInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase of intangible assets, classified as investing activities",
        "negatedLabel": "Acquisitions of intangibles"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for the purchases of intangible assets, classified as investing activities. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r498"
     ]
    },
    "ifrs-full_PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase of property, plant and equipment, classified as investing activities",
        "negatedLabel": "Investment in property, plant, and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for the purchases of property, plant and equipment, classified as investing activities. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r498"
     ]
    },
    "ec_PurchasesAndOtherAssetsRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PurchasesAndOtherAssetsRelatedPartyTransactions",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of purchase and other transactions made by the entity in related party transactions.",
        "label": "Purchases And Other Assets Related Party Transactions",
        "verboseLabel": "Cost of sales - Purchases and others"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PurchasesOfCrude": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PurchasesOfCrude",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of expenses incurred for purchase of crude.",
        "label": "Purchases Of Crude",
        "terseLabel": "Purchases Of Crude"
       }
      }
     },
     "auth_ref": []
    },
    "ec_PurchasesOfOtherProductsAndGas": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "PurchasesOfOtherProductsAndGas",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of expenses incurred for purchase of other products and gas.",
        "label": "Purchases of other products and gas"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PvpTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PvpTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance Disclosure [Table]",
        "terseLabel": "Pay vs Performance Disclosure"
       }
      }
     },
     "auth_ref": [
      "r616"
     ]
    },
    "ecd_PvpTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PvpTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance [Table Text Block]",
        "terseLabel": "Pay vs Performance Disclosure, Table"
       }
      }
     },
     "auth_ref": [
      "r616"
     ]
    },
    "ec_QuarterNorthEnergyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "QuarterNorthEnergyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Quarter North Energy.",
        "label": "Quarter North Energy [Member]",
        "terseLabel": "Quarter North Energy"
       }
      }
     },
     "auth_ref": []
    },
    "ec_QuifaContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "QuifaContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Quifa Contract [Member]",
        "terseLabel": "Quifa"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RangeAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Range [Axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r122",
      "r165",
      "r181",
      "r189",
      "r298",
      "r508",
      "r510",
      "r710"
     ]
    },
    "ifrs-full_RangeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RangeDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Range [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregate ranges. It also represents the standard value for the 'Range' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r122",
      "r165",
      "r181",
      "r189",
      "r298",
      "r508",
      "r510",
      "r710"
     ]
    },
    "ifrs-full_RawMaterialsAndConsumablesUsed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RawMaterialsAndConsumablesUsed",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Raw materials and consumables used",
        "verboseLabel": "Materials and operating supplies"
       }
      }
     },
     "auth_ref": [
      "r483",
      "r556"
     ]
    },
    "ec_ReassignmentOfHedgingInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ReassignmentOfHedgingInstruments",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementNonDerivativeHedgingInstrumentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the amount of reassignment to hedge instruments.",
        "label": "Reassignment Of Hedging Instruments",
        "verboseLabel": "Reassignment of hedging instruments"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassification adjustments on cash flow hedges, before tax",
        "terseLabel": "Before taxes"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of reclassification adjustments related to cash flow hedges, before tax. Reclassification adjustments are amounts reclassified to profit (loss) in the current period that were recognised in other comprehensive income in the current or previous periods. [Refer: Cash flow hedges [member]; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r479"
     ]
    },
    "ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReclassificationAdjustmentsOnCashFlowHedgesNetOfTax",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementCashFlowHedgeForFutureExportsMovementInOtherComprehensiveIncomeDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassification adjustments on cash flow hedges, net of tax",
        "terseLabel": "After taxes",
        "verboseLabel": "Realized exports (Note 25)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of reclassification adjustments related to cash flow hedges, net of tax. Reclassification adjustments are amounts reclassified to profit (loss) in the current period that were recognised in other comprehensive income in the current or previous periods. [Refer: Cash flow hedges [member]; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r216",
      "r218",
      "r391",
      "r479"
     ]
    },
    "ec_ReclassificationsOrTransfersOfLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ReclassificationsOrTransfersOfLeaseLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of Reclassifications or transfers Of lease liabilities.",
        "label": "Reclassifications Or Transfers Of Lease Liabilities",
        "negatedLabel": "Transfers"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RecognisedAssetsDefinedBenefitPlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RecognisedAssetsDefinedBenefitPlan",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net defined benefit asset",
        "periodEndLabel": "Closing balance",
        "periodStartLabel": "Opening balance"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of surplus in a defined benefit plan, adjusted for any effect of limiting a net defined benefit asset to the asset ceiling. [Refer: Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ifrs-full_RecognisedLiabilitiesDefinedBenefitPlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RecognisedLiabilitiesDefinedBenefitPlan",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net defined benefit liability",
        "periodEndLabel": "Closing balance",
        "periodStartLabel": "Opening balance"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of deficit in a defined benefit plan. [Refer: Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ec_RecognizedThroughOtherComprehensiveIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RecognizedThroughOtherComprehensiveIncomeAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recognized through other comprehensive income [Abstract]",
        "verboseLabel": "Other comprehensive income"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RecognizedThroughProfitOfLossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RecognizedThroughProfitOfLossAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsMovementInProfitAndLossAndInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recognized through profit of loss [Abstract]",
        "verboseLabel": "Profit or loss"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ReconciliationForChangesInConcessionAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ReconciliationForChangesInConcessionAssetsTableTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure for changes in concession assets during the period.",
        "label": "Reconciliation for Changes in Concession Assets [Table Text Block]",
        "terseLabel": "Schedule of movements of ISA ENERGA's contractual asset in Brazil, associated with the RBSE"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reconciliation of accounting profit multiplied by applicable tax rates [abstract]",
        "verboseLabel": "Effective tax rate reconciliation items:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RecoverableAmountOfAssetOrCashgeneratingUnit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RecoverableAmountOfAssetOrCashgeneratingUnit",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsBreakdownOfOilfieldsImpairmentLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recoverable amount of asset or cash-generating unit",
        "terseLabel": "Recoverable amount"
       }
      },
      "en": {
       "role": {
        "documentation": "The higher of an asset\u2019s (or cash-generating unit\u2019s) fair value less costs of disposal and its value in use. [Refer: Total for all cash-generating units [member]]"
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "ecd_RecoveryOfErrCompDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "RecoveryOfErrCompDisclosureLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Recovery of Erroneously Awarded Compensation Disclosure [Line Items]",
        "terseLabel": "Recovery of Erroneously Awarded Compensation Disclosure"
       }
      }
     },
     "auth_ref": [
      "r583",
      "r594",
      "r604",
      "r637"
     ]
    },
    "ec_RedDeEnergiaDelPeruMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RedDeEnergiaDelPeruMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Red De Energia Del Peru [Member].",
        "label": "Red De Energia Del Peru [Member]",
        "terseLabel": "Red de Energa del Per"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RedDeEnergiaDelPeruS.a.IsaRepMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RedDeEnergiaDelPeruS.a.IsaRepMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Red de Energa del Per S.A. - ISA REP.",
        "label": "Red de Energia del Peru S.A. - ISA REP [Member]",
        "terseLabel": "Red de Energia del Peru S.A. - ISA REP"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ReductionOfConcessionAssetsDueToPayment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ReductionOfConcessionAssetsDueToPayment",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails": {
       "parentTag": "ec_NetMovementsInRemunerationForConcessionAssets",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of payments in concession assets.",
        "label": "Reduction of Concession Assets Due to Payment",
        "negatedLabel": "Payments for concession assets, net of taxes (cash)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RefineriaDeBarrancabermejaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RefineriaDeBarrancabermejaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Refineria de Barrancabermeja (projects) [Member]",
        "terseLabel": "Refineria de Barrancabermeja",
        "verboseLabel": "Refinera de Barrancabermeja"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RefineriaDeCartagenaSASMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RefineriaDeCartagenaSASMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Refineria de Cartagena",
        "verboseLabel": "Refineria de Cartagena S.A.S."
       }
      }
     },
     "auth_ref": []
    },
    "ec_RefineriaDeCartegenaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RefineriaDeCartegenaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsCashGeneratingUnitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Refineria De Cartagana [Member]",
        "terseLabel": "Refineria de Cartagena S.A.S",
        "verboseLabel": "Refineria de Cartagena"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RefineryCguMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RefineryCguMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands fro Refinery Cash generating unit.",
        "label": "Refinery CGU [Member]",
        "terseLabel": "Refinery CGU"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RefineryProcessingCapacity": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RefineryProcessingCapacity",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maximum processing capacity of a refinery unit expressed in barrels of crude oil per day.",
        "label": "Refinery processing capacity",
        "terseLabel": "Refinery processing capacity"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RefiningAndPetrochemicalSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RefiningAndPetrochemicalSegmentMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsCashGeneratingUnitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Refining and Petrochemical segment [Member]",
        "terseLabel": "Refining and Petrochemical segment"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RefiningAndPetrochemicalsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RefiningAndPetrochemicalsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Refining and petrochemicals [Member]",
        "terseLabel": "Refining and petrochemicals",
        "verboseLabel": "Refining and Petrochemicals"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RegulatoryContingencyCaseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RegulatoryContingencyCaseMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsLitigationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for regulatory contingency.",
        "label": "Regulatory Contingency, Case [Member]",
        "terseLabel": "Regulatory Contingency"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RegulatoryUpdateTariffIncreaseForTransportationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RegulatoryUpdateTariffIncreaseForTransportationMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for regulatory update tariff increase for transportation.",
        "label": "Regulatory Update, Tariff Increase for Transportation [Member]",
        "terseLabel": "Regulatory update effects in Ecuador"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ReleaseOfReserves": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ReleaseOfReserves",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityMovementOfEquityReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of reserves released.",
        "label": "Release of reserves",
        "terseLabel": "Release of reserves"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RemeasurementOfLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RemeasurementOfLeaseLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of remeasurement of lease liabilities.",
        "label": "Remeasurement of Lease Liabilities",
        "terseLabel": "Remeasurements (1)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RemediatingForDamagesAssociatedWithHydrocarbonSpillCaseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RemediatingForDamagesAssociatedWithHydrocarbonSpillCaseMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsLitigationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for unfavorable first instance ruling for Ecopetrol in the process of remediating the damages associated with the hydrocarbon spill that occurred in Guaduas, Vereda Raizal and Cajn, in the property called \"La Floresta\" in May 2004.",
        "label": "Remediating for Damages Associated With Hydrocarbon Spill Case [Member]",
        "terseLabel": "Remediating the damages associated with the hydrocarbon spill"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RemunerationAccrualConcessionAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RemunerationAccrualConcessionAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails": {
       "parentTag": "ec_NetMovementsInRemunerationForConcessionAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of remuneration accrued in concession assets.",
        "label": "Remuneration Accrual, Concession Assets",
        "terseLabel": "Remuneration of concession assets, net of taxes (accrual)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RemunerationAccrualConcessionAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RemunerationAccrualConcessionAssetsAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "No definition available.",
        "label": "Remuneration Accrual, Concession Assets [Abstract]",
        "terseLabel": "Movements, less PIS/Confins taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RenewableEnergyGenerationCapacityAcquired": {
     "xbrltype": "powerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RenewableEnergyGenerationCapacityAcquired",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the total installed or expected electricity generation capacity attributable to renewable energy assets acquired as part of a business combination, measured in gigawatts (GW), over which the reporting entity obtained control.",
        "label": "Renewable Energy Generation Capacity Acquired",
        "terseLabel": "Energy generation capacity acquired"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RenewableEnergyGenerationCompaniesAcquisitionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RenewableEnergyGenerationCompaniesAcquisitionMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails",
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the business combination involving the acquisition of a group of renewable energy generation and related service companies, through which the reporting entity obtained control and recognized the transaction in accordance with IFRS 3 Business Combinations.",
        "label": "Renewable Energy Generation Companies Acquisition [Member]",
        "terseLabel": "Acquisition of a group of renewable energy generation companies in Colombia"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RepairsAndMaintenanceExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RepairsAndMaintenanceExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repairs and maintenance expense",
        "verboseLabel": "Maintenance"
       }
      }
     },
     "auth_ref": [
      "r724"
     ]
    },
    "ec_RepaymentOfBorrowingsAndInterestsOnLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RepaymentOfBorrowingsAndInterestsOnLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of repayment of borrowings and interests of lease liabilities.",
        "label": "Repayment of Borrowings and Interests on Lease Liabilities",
        "negatedLabel": "Repayment of borrowings (capital)"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RepaymentsOfBorrowingsClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repayments of borrowings, classified as financing activities",
        "negatedLabel": "Repayment of loans and borrowings",
        "terseLabel": "Repayment of loans and borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow to settle borrowings, classified as financing activities. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r500"
     ]
    },
    "ec_RepsolDuctosDeColombiaRdcMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RepsolDuctosDeColombiaRdcMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Repsol Ductos de Colombia.",
        "label": "Repsol Ductos de Colombia (RDC) [Member]",
        "terseLabel": "Repsol Ductos de Colombia"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RepsolExploracionColombiaSaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RepsolExploracionColombiaSaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Repsol Exploracion Colombia S.A.",
        "label": "Repsol Exploracion Colombia S.A. [Member]",
        "terseLabel": "Repsol Exploracion Colombia S.A."
       }
      }
     },
     "auth_ref": []
    },
    "srt_RepurchaseAgreementCounterpartyNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "RepurchaseAgreementCounterpartyNameDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementHedgeOfNetInvestmentInForeignOperationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementScheduleOfDetailedInformationAboutHedgingInstrumentsExplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Counterparty Name [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ReserveQuantitiesProvedDevelopedAndUndevelopedOilAndGasReserveQuantitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ReserveQuantitiesProvedDevelopedAndUndevelopedOilAndGasReserveQuantitiesLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedReserveInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Reserve Quantities Proved Developed and Undeveloped Oil and Gas Reserve Quantities [Line Items]",
        "terseLabel": "Supplemental information on oil and gas producing activities (unaudited)"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_RestatementDateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "RestatementDateAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Determination Date [Axis]",
        "terseLabel": "Restatement Determination Date:"
       }
      }
     },
     "auth_ref": [
      "r584",
      "r595",
      "r605",
      "r638"
     ]
    },
    "ecd_RestatementDeterminationDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "RestatementDeterminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Determination Date",
        "terseLabel": "Restatement Determination Date"
       }
      }
     },
     "auth_ref": [
      "r585",
      "r596",
      "r606",
      "r639"
     ]
    },
    "ecd_RestatementDoesNotRequireRecoveryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "RestatementDoesNotRequireRecoveryTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Does Not Require Recovery [Text Block]",
        "terseLabel": "Restatement does not require Recovery"
       }
      }
     },
     "auth_ref": [
      "r592",
      "r603",
      "r613",
      "r646"
     ]
    },
    "ec_RestitutionOfCapitalToMinorityShareholders": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RestitutionOfCapitalToMinorityShareholders",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of restitution of capital to minority shareholders.",
        "label": "Restitution of Capital to Minority Shareholders",
        "negatedLabel": "Payment of restitution of equity to minority shareholders"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RestrictedCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RestrictedCashAndCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted Cash and Cash Equivalents",
        "terseLabel": "Restricted cash"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash and cash equivalents whose use or withdrawal is restricted. [Refer: Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ec_ResultsOfOperationsDepreciationDepletionAndAmortization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ResultsOfOperationsDepreciationDepletionAndAmortization",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": "ec_ResultsOfOperationsExpenseFromOilAndGasProducingActivitiesTotal",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of Depreciation, depletion and amortization expenses related to oil and gas producing activities.",
        "label": "Results of operations, depreciation, depletion and amortization",
        "verboseLabel": "Depreciation, depletion, and amortization"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ResultsOfOperationsExpenseFromOilAndGasProducingActivitiesTotal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ResultsOfOperationsExpenseFromOilAndGasProducingActivitiesTotal",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of expenses related to oil and gas producing activities.",
        "label": "Results of operations, expense from oil and gas producing activities, total",
        "totalLabel": "Total"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ResultsOfOperationsIncomeBeforeIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ResultsOfOperationsIncomeBeforeIncomeTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": "ec_ResultsOfOperationsOilAndGasExplorationAndProducingActivitiesNetIncomeloss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of income before income tax for oil and gas producing activities.",
        "label": "Results of operations, income before income tax",
        "terseLabel": "Income before income tax expense"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ResultsOfOperationsIncomeTaxExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ResultsOfOperationsIncomeTaxExpenses",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": "ec_ResultsOfOperationsOilAndGasExplorationAndProducingActivitiesNetIncomeloss",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of income tax expense for oil and gas producing activities.",
        "label": "Results of operations, income tax expenses",
        "negatedLabel": "Income tax expense"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ResultsOfOperationsNetRevenueFromOilAndGasExplorationAndProductionActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ResultsOfOperationsNetRevenueFromOilAndGasExplorationAndProductionActivitiesAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Results of operations, net revenue from oil and gas exploration and production activities [Abstract]",
        "verboseLabel": "Net revenues"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ResultsOfOperationsOilAndGasExplorationAndProducingActivitiesNetIncomeloss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ResultsOfOperationsOilAndGasExplorationAndProducingActivitiesNetIncomeloss",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of results of operations for oil and gas producing activities.",
        "label": "Results of operations, oil and gas exploration and producing activities net incomeloss",
        "totalLabel": "Results of operations for exploration and production activities"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ResultsOfOperationsOtherExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ResultsOfOperationsOtherExpenses",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": "ec_ResultsOfOperationsExpenseFromOilAndGasProducingActivitiesTotal",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of other costs for oil and gas producing activities.",
        "label": "Results of operations, other Expenses",
        "verboseLabel": "Other expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ResultsOfOperationsOtherProductionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ResultsOfOperationsOtherProductionCosts",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": "ec_ResultsOfOperationsExpenseFromOilAndGasProducingActivitiesTotal",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of other production costs for oil and gas producing activities.",
        "label": "Results of operations, other production costs",
        "verboseLabel": "Other production costs"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ResultsOfOperationsProductionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ResultsOfOperationsProductionCosts",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": "ec_ResultsOfOperationsExpenseFromOilAndGasProducingActivitiesTotal",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Production (lifting) costs from oil and gas producing activities, including but not limited to lease operating expense, production and ad valorem taxes, and transportation expense.",
        "label": "Results of operations, production costs",
        "verboseLabel": "Production costs"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ResultsOfOperationsRevenueFromOilAndGasExplorationAndProductionActivitiesTotal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ResultsOfOperationsRevenueFromOilAndGasExplorationAndProductionActivitiesTotal",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of total revenues from oil and gas producing activities.",
        "label": "Results of operations, revenue from oil and gas exploration and production activities, total",
        "totalLabel": "Total"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ResultsOfOperationsSalesRevenue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ResultsOfOperationsSalesRevenue",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": "ec_ResultsOfOperationsRevenueFromOilAndGasExplorationAndProductionActivitiesTotal",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of sales revenue from oil and gas producing activities.",
        "label": "Results of operations, sales revenue",
        "verboseLabel": "Sales"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ResultsOfOperationsTransfersToEntitysOtherOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ResultsOfOperationsTransfersToEntitysOtherOperations",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails": {
       "parentTag": "ec_ResultsOfOperationsRevenueFromOilAndGasExplorationAndProductionActivitiesTotal",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsForOilAndGasExplorationAndProductionActivitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of sales or transfers to the enterprises other operations from oil and gas producing activities.",
        "label": "Results of operations, transfers to entity's other operations",
        "verboseLabel": "Transfers"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RetainedEarnings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RetainedEarnings",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retained earnings",
        "terseLabel": "Retained earnings"
       }
      },
      "en": {
       "role": {
        "documentation": "A component of equity representing the entity's cumulative undistributed earnings or deficit."
       }
      }
     },
     "auth_ref": [
      "r555",
      "r561",
      "r563"
     ]
    },
    "ifrs-full_RetainedEarningsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RetainedEarningsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retained Earnings [Member]",
        "terseLabel": "Retained earnings"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing an entity's cumulative undistributed earnings or deficit."
       }
      }
     },
     "auth_ref": [
      "r427",
      "r558"
     ]
    },
    "ifrs-full_RetentionPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RetentionPayables",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentPayables",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retention payables",
        "verboseLabel": "Deposits received from third parties"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of payment that is withheld by the entity, pending the fulfilment of a condition."
       }
      }
     },
     "auth_ref": [
      "r721"
     ]
    },
    "ifrs-full_RetirementsIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RetirementsIntangibleAssetsOtherThanGoodwill",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirements, intangible assets other than goodwill",
        "negatedLabel": "Write off exploratory assets and dry wells"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease in intangible assets other than goodwill resulting from retirements. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r694"
     ]
    },
    "ifrs-full_ReturnOnPlanAssetsNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReturnOnPlanAssetsNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsNetOfPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Return on plan assets, net defined benefit liability (asset)",
        "verboseLabel": "Return on assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in the net defined benefit liability (asset) resulting from the return on plan assets, excluding amounts included in interest income or expense. The return on plan assets is interest, dividends and other revenue derived from the plan assets, together with realised and unrealised gains or losses on the plan assets, less any costs of managing plan assets and less any tax payable by the plan itself, other than tax included in the actuarial assumptions used to measure the present value of the defined benefit obligation. [Refer: Plan assets [member]; Net defined benefit liability (asset); Actuarial assumptions [domain]; Increase (decrease) in net defined benefit liability (asset) resulting from interest expense (income)]"
       }
      }
     },
     "auth_ref": [
      "r29",
      "r326"
     ]
    },
    "ifrs-full_Revenue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Revenue",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss": {
       "parentTag": "ifrs-full_GrossProfit",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue",
        "terseLabel": "Sales",
        "verboseLabel": "Sales revenue"
       }
      }
     },
     "auth_ref": [
      "r149",
      "r200",
      "r244",
      "r250",
      "r256",
      "r257",
      "r259",
      "r470",
      "r505",
      "r556",
      "r557"
     ]
    },
    "ifrs-full_RevenueAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from contracts with customers"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RevenueFromConcession": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RevenueFromConcession",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of revenue recognised when construction services are exchanged in service concession arrangements. [Refer: Service concession arrangements [domain]; Revenue from contracts with customers]",
        "label": "Revenue From Concession",
        "totalLabel": "Total concessions, revenue"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RevenueFromInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueFromInterest",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails": {
       "parentTag": "ifrs-full_FinanceIncome",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureFinancialResultDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest income",
        "terseLabel": "Yields and interests"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income arising from interest."
       }
      }
     },
     "auth_ref": [
      "r153",
      "r245",
      "r254",
      "r717"
     ]
    },
    "ec_RevenueOfGrowth": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RevenueOfGrowth",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of revenue of growth.",
        "label": "Revenue Of Growth",
        "terseLabel": "Growth of revenue"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RevenueRecognisedOnExchangingConstructionServicesForContractualAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RevenueRecognisedOnExchangingConstructionServicesForContractualAsset",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails": {
       "parentTag": "ec_RevenueFromConcession",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of revenue recognised when construction services are exchanged for contractual assets in service concession arrangements. [Refer: Service concession arrangements [domain]; Revenue from contracts with customers]",
        "label": "Revenue Recognised on Exchanging Construction Services for Contractual Asset",
        "terseLabel": "Revenue, contractual asset"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RevenueRecognisedOnExchangingConstructionServicesForFinancialAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueRecognisedOnExchangingConstructionServicesForFinancialAsset",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails": {
       "parentTag": "ec_RevenueFromConcession",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue recognised on exchanging construction services for financial asset",
        "terseLabel": "Revenue, financial asset"
       }
      }
     },
     "auth_ref": [
      "r265"
     ]
    },
    "ifrs-full_RevenueRecognisedOnExchangingConstructionServicesForIntangibleAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueRecognisedOnExchangingConstructionServicesForIntangibleAsset",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails": {
       "parentTag": "ec_RevenueFromConcession",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue recognised on exchanging construction services for intangible asset",
        "terseLabel": "Revenue, intangible asset"
       }
      }
     },
     "auth_ref": [
      "r265"
     ]
    },
    "ec_RevenuesFromSaleOfGoods": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RevenuesFromSaleOfGoods",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of revenue arising from the sale of goods. [Refer: Revenue].",
        "label": "Revenues from sale of goods",
        "terseLabel": "Revenue from sale of goods",
        "verboseLabel": "Sales by product"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ReversalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ReversalMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsBreakdownOfOilfieldsImpairmentLossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reversal [Member]",
        "terseLabel": "Reversal"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ReversalOfImpairmentLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReversalOfImpairmentLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesReconciliationOfEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reversal of impairment loss",
        "negatedLabel": "Impairment",
        "terseLabel": "Recovery of impairment loss"
       }
      }
     },
     "auth_ref": [
      "r73",
      "r74"
     ]
    },
    "ifrs-full_ReversalOfImpairmentLossRecognisedInProfitOrLossBiologicalAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReversalOfImpairmentLossRecognisedInProfitOrLossBiologicalAssets",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reversal Of Impairment Loss Recognised In Profit Or Loss Biological Assets",
        "terseLabel": "Reversal of impairment loss recognised in profit or loss, biological assets"
       }
      }
     },
     "auth_ref": [
      "r115"
     ]
    },
    "ifrs-full_ReversalOfImpairmentLossRecognisedInProfitOrLossIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReversalOfImpairmentLossRecognisedInProfitOrLossIntangibleAssetsOtherThanGoodwill",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureIntangibleAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureNaturalAndEnvironmentalResourcesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reversal of impairment loss recognised in profit or loss, intangible assets other than goodwill",
        "terseLabel": "Impairment (loss) recovery",
        "verboseLabel": "(Loss) recovery of impairment (Note 18)"
       }
      }
     },
     "auth_ref": [
      "r98",
      "r359"
     ]
    },
    "ifrs-full_ReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reversal of impairment loss recognised in profit or loss, property, plant and equipment",
        "negatedTerseLabel": "Recovery (loss) impairment"
       }
      }
     },
     "auth_ref": [
      "r17",
      "r317",
      "r480"
     ]
    },
    "ec_RightOfUseAssetsRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RightOfUseAssetsRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "ec_AssetsRecognisedAsOfAcquisitionDate",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for right-of-use assets acquired in a business combination.",
        "label": "Right of use Assets Recognised As Of Acquisition Date",
        "terseLabel": "Right of use assets"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RightOfUseAssetsRollforwardAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RightOfUseAssetsRollforwardAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "No definition available.",
        "label": "Right of Use Assets Rollforward [Abstract]",
        "terseLabel": "Right-of-use assets rollforward"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RightofuseAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-use assets 1",
        "periodEndLabel": "Balance at the end",
        "periodStartLabel": "Balance at the beginning",
        "verboseLabel": "Right-of-use assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that represent a lessee's right to use an underlying asset for the lease term that do not meet the definition of investment property. Underlying asset is an asset that is the subject of a lease, for which the right to use that asset has been provided by a lessor to a lessee."
       }
      }
     },
     "auth_ref": [
      "r169",
      "r174",
      "r274"
     ]
    },
    "ifrs-full_RightofuseAssetsIncreaseDecreaseInRevaluationSurplus": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RightofuseAssetsIncreaseDecreaseInRevaluationSurplus",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-use assets, increase (decrease) in revaluation surplus",
        "terseLabel": "Remeasurements"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in the revaluation surplus that relates to right-of-use assets. [Refer: Revaluation surplus; Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r176",
      "r276"
     ]
    },
    "ifrs-full_RightofuseAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RightofuseAssetsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-use assets",
        "terseLabel": "Right-of-use assets"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for right-of-use assets. [Refer: Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r168"
     ]
    },
    "ec_RioOpiaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RioOpiaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Rio Opia.",
        "label": "Rio Opia [Member]",
        "terseLabel": "Rio Opia"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RiskExposureAssociatedWithInstrumentsSharingCharacteristic": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RiskExposureAssociatedWithInstrumentsSharingCharacteristic",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk exposure associated with instruments sharing characteristic",
        "verboseLabel": "Total net asset (liability) position in swaps"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of risk exposure associated with financial instruments with a shared characteristic that identifies a concentration of risks. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r240"
     ]
    },
    "ec_RoPaezMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RoPaezMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ro Paez.",
        "label": "Ro Paez [Member]",
        "terseLabel": "Ro Paez"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RoadConcessionServiceContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RoadConcessionServiceContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This  member stands for road concession service contract.",
        "label": "Road Concession Service Contract [Member]",
        "terseLabel": "Roads"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RoadsAndConstructionServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RoadsAndConstructionServicesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Roads and construction Services",
        "label": "Roads and construction service",
        "verboseLabel": "Roads and construction services"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RodeoMidlandBasinContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RodeoMidlandBasinContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for Rodeo Midland Basin  Contract.",
        "label": "Rodeo Midland Basin Contract [Member]",
        "terseLabel": "Rodeo Midland Basin"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RondonContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RondonContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for  Rondon Contract.",
        "label": "Rondon Contract [Member]",
        "terseLabel": "Rondon"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RoyaltyExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RoyaltyExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Royalty Expense",
        "verboseLabel": "Purchases of hydrocarbons - ANH"
       }
      }
     },
     "auth_ref": [
      "r724"
     ]
    },
    "ecd_Rule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "Rule10b51ArrAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rule 10b5-1 Arrangement Adopted [Flag]",
        "terseLabel": "Rule 10b5-1 Arrangement Adopted"
       }
      }
     },
     "auth_ref": [
      "r655"
     ]
    },
    "ecd_Rule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "Rule10b51ArrTrmntdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rule 10b5-1 Arrangement Terminated [Flag]",
        "terseLabel": "Rule 10b5-1 Arrangement Terminated"
       }
      }
     },
     "auth_ref": [
      "r655"
     ]
    },
    "ec_RutaCosteraMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RutaCosteraMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ruta Costera.",
        "label": "Ruta Costera"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RutaDeLaAraucanaAndTransamericanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RutaDeLaAraucanaAndTransamericanMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ruta de la Araucana and Transamerican.",
        "label": "Ruta de la Araucana and Transamerican [Member]",
        "terseLabel": "Ruta de la Araucana and Transamerican"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RutaDeLaAraucaniaSociedadConcesionariaS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RutaDeLaAraucaniaSociedadConcesionariaS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ruta de la Araucana Sociedad Concesionaria S.A.",
        "label": "Ruta de la Araucania Sociedad Concesionaria S.A. [Member]",
        "terseLabel": "Ruta de la Araucania Sociedad Concesionaria S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_RutaDeLosRiosSociedadConcesionariaS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RutaDeLosRiosSociedadConcesionariaS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ruta de los Ros Sociedad Concesionaria S.A.",
        "label": "Ruta de los Rios Sociedad Concesionaria S.A. [Member]",
        "terseLabel": "Ruta de los Rios Sociedad Concesionaria S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_RutaDelBosqueChileMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RutaDelBosqueChileMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesNotRecognizedInSubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "n/a",
        "label": "Ruta Del Bosque (Chile) [Member]",
        "terseLabel": "Ruta del Bosque (Chile)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RutaDelBosqueSociedadConcesionariaS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RutaDelBosqueSociedadConcesionariaS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ruta del Bosque Sociedad Concesionaria S.A.",
        "label": "Ruta del Bosque Sociedad Concesionaria S.A. [Member]",
        "terseLabel": "Ruta del Bosque Sociedad Concesionaria S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_RutaDelEsteSociedadConcesionariaSaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RutaDelEsteSociedadConcesionariaSaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ruta del Este Sociedad Concesionaria S.A.",
        "label": "Ruta del Este Sociedad Concesionaria S.A. [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RutaDelEsteSociedadConcessionariaS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RutaDelEsteSociedadConcessionariaS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ruta del Este Sociedad Concessionaria S.A.",
        "label": "Ruta del Este Sociedad Concessionaria S.A. [Member]",
        "terseLabel": "Ruta del Este Sociedad Concessionaria S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_RutaDelLoaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RutaDelLoaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ruta Del Loa.",
        "label": "Ruta del Loa"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RutaDelLoaSociedadConcesionariaS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RutaDelLoaSociedadConcesionariaS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ruta del Loa Sociedad Concesionaria S.A.",
        "label": "Ruta del Loa Sociedad Concesionaria S.A. [Member]",
        "terseLabel": "Ruta del Loa Sociedad Concesionaria S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_RutaDelMaipoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RutaDelMaipoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ruta del Maipo [Member].",
        "label": "Ruta del Maipo"
       }
      }
     },
     "auth_ref": []
    },
    "ec_RutaDelMaipoSociedadConcesionariaS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RutaDelMaipoSociedadConcesionariaS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ruta del Maipo Sociedad Concesionaria S.A.",
        "label": "Ruta del Maipo Sociedad Concesionaria S.A. [Member]",
        "terseLabel": "Ruta del Maipo Sociedad Concesionaria S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_RutaOrbitalSurSociedadConcesionariaS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "RutaOrbitalSurSociedadConcesionariaS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Ruta Orbital Sur Sociedad Concesionaria S.A.",
        "label": "Ruta Orbital Sur Sociedad Concesionaria S.A. [Member]",
        "terseLabel": "Ruta Orbital Sur Sociedad Concesionaria S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_SM1599ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SM1599ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for S-M-1599 contract.",
        "label": "S-M-1599 Contract [Member]",
        "terseLabel": "S-M-1599"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SM1601ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SM1601ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for S-M-1601 contract.",
        "label": "S-M-1601 Contract [Member]",
        "terseLabel": "S-M-1601"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SM1707ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SM1707ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for S-M-1707 contract.",
        "label": "S-M-1707 Contract [Member]",
        "terseLabel": "S-M-1707"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SM1709ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SM1709ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for S-M-1709 contract.",
        "label": "S-M-1709 Contract [Member]",
        "terseLabel": "S-M-1709"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SM1713ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SM1713ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for S-M-1713 contract.",
        "label": "S-M-1713 Contract [Member]",
        "terseLabel": "S-M-1713"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SM1715ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SM1715ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for S-M-1715 contract.",
        "label": "S-M-1715 Contract [Member]",
        "terseLabel": "S-M-1715"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SM1717ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SM1717ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for S-M-1717 contract.",
        "label": "S-M-1717 Contract [Member]",
        "terseLabel": "S-M-1717"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SM1719ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SM1719ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for S-M-1719 contract.",
        "label": "S-M-1719 Contract [Member]",
        "terseLabel": "S-M-1719"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SM1817ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SM1817ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for S-M-1817 contract.",
        "label": "S-M-1817 Contract [Member]",
        "terseLabel": "S-M-1817"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SM1908ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SM1908ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for S-M-1908 contract.",
        "label": "S-M-1908 Contract [Member]",
        "terseLabel": "S-M-1908"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SM1910ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SM1910ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for S-M-1910 contract.",
        "label": "S-M-1910 Contract [Member]",
        "terseLabel": "S-M-1910"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SalesAndTransferOfCrudeOilAndGasProduced": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SalesAndTransferOfCrudeOilAndGasProduced",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails": {
       "parentTag": "ec_AggregateChangeInStandardizedMeasureOfDiscountedFutureNetCashFlows",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of (increase) decrease in standardized measure of discounted future net cash flow as a result of sales and transfers of oil and gas produced.",
        "label": "Sales and Transfer of Crude Oil and Gas Produced",
        "negatedLabel": "Sales and transfer of oil and gas produced net of production costs"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SalesByTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SalesByTypeAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales By Type [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SalesByTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SalesByTypeDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales By Type [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SalesRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SalesRelatedPartyTransactions",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of revenue arising from sales in related party transactions.",
        "label": "Sales, Related Party Transactions",
        "terseLabel": "Sales"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SanJacintoContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SanJacintoContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for San Jacinto Contract.",
        "label": "San Jacinto Contract [Member]",
        "terseLabel": "San Jacinto"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SanJacintoMandatoContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SanJacintoMandatoContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for San Jacinto (Mandato) Contract.",
        "label": "San Jacinto (Mandato) Contract [Member]",
        "terseLabel": "San Jacinto (Mandato)"
       }
      }
     },
     "auth_ref": []
    },
    "srt_ScenarioForecastMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ScenarioForecastMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forecast [Member]",
        "terseLabel": "Forecast"
       }
      }
     },
     "auth_ref": []
    },
    "srt_ScenarioUnspecifiedDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ScenarioUnspecifiedDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Scenario [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ScheduleOfImpairmentLossAllocatedToClassesOfAssetsOfCashGeneratingUnitsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ScheduleOfImpairmentLossAllocatedToClassesOfAssetsOfCashGeneratingUnitsTextBlock",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tabular disclosure of information pertaining to impairment loss allocated to balance sheet items.",
        "label": "Schedule Of Impairment Loss Allocated To Classes Of Assets Of Cash Generating Units [Text Block]",
        "terseLabel": "Schedule of energy transmission and roads"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ScheduleOfProvedDevelopedAndUndevelopedOilAndGasReserveQuantitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ScheduleOfProvedDevelopedAndUndevelopedOilAndGasReserveQuantitiesTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedReserveInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Proved Developed and Undeveloped Oil and Gas Reserve Quantities [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_Security12bTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "Security12bTitle",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of 12(b) Security",
        "documentation": "Title of a 12(b) registered security."
       }
      }
     },
     "auth_ref": [
      "r565"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Exchange Name",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r567"
     ]
    },
    "ifrs-full_SegmentConsolidationItemsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SegmentConsolidationItemsAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment consolidation items [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r249"
     ]
    },
    "ifrs-full_SegmentConsolidationItemsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SegmentConsolidationItemsDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment consolidation items [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Segment consolidation items' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r255"
     ]
    },
    "srt_SegmentGeographicalDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "SegmentGeographicalDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SegmentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SegmentsAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsCashGeneratingUnitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsTables",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segments [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r74",
      "r166",
      "r249",
      "r269",
      "r490",
      "r517"
     ]
    },
    "ifrs-full_SegmentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SegmentsDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsCashGeneratingUnitsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsTables",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segments [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all segments of an entity. It also represents the standard value for the 'Segments' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r74",
      "r166",
      "r255",
      "r269",
      "r490",
      "r517"
     ]
    },
    "ec_SelfGenerationCapacityInRenewableEnergies": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SelfGenerationCapacityInRenewableEnergies",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the self-generation capacity with renewable energies.",
        "label": "Self Generation Capacity in Renewable Energies",
        "terseLabel": "Self generation capacity in renewable energies (in mmcfpd)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SelfGenerationExpansionCapacityInRenewableEnergies": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SelfGenerationExpansionCapacityInRenewableEnergies",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the self-generation expansion capacity with renewable energies.",
        "label": "Self-Generation, Expansion Capacity in Renewable Energies",
        "terseLabel": "Maximum expansion capacity in renewable energies (in mmcfpd)"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SellingGeneralAndAdministrativeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SellingGeneralAndAdministrativeExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Selling, General and Administrative Expense",
        "verboseLabel": "General costs"
       }
      }
     },
     "auth_ref": [
      "r724"
     ]
    },
    "ifrs-full_SellingGeneralAndAdministrativeExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SellingGeneralAndAdministrativeExpenseAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Administrative, operative, and project expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SensitivityAnalysisForEachTypeOfMarketRisk": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SensitivityAnalysisForEachTypeOfMarketRisk",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sensitivity analysis for types of market risk [text block]",
        "verboseLabel": "Schedule of sensitivity analysis for exchange rate risk"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the sensitivity analysis for types of market risk to which the entity is exposed, showing how profit or loss and equity would have been affected by changes in the relevant risk variable that were reasonably possible at that date. [Refer: Market risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r231"
     ]
    },
    "ec_SeriesBNonVotingPreferredStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SeriesBNonVotingPreferredStockMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsFairValueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Series B non voting preferred stock.",
        "label": "Series B Non Voting Preferred Stock [Member]",
        "terseLabel": "Series B Non voting preferred stock"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ServiceConcessionArrangementsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ServiceConcessionArrangementsAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Service concession arrangements [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r264"
     ]
    },
    "ifrs-full_ServiceConcessionArrangementsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ServiceConcessionArrangementsDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Service concession arrangements [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for arrangements in which an entity (the operator) may enter into an arrangement with another entity (the grantor) to provide services that give the public access to major economic and social facilities. The grantor may be a public or private sector entity, including a governmental body. Examples of service concession arrangements involve water treatment and supply facilities, motorways, car parks, tunnels, bridges, airports and telecommunication networks. Examples of arrangements that are not service concession arrangements include an entity outsourcing the operation of its internal services (for example, employee cafeteria, building maintenance, and accounting or information technology functions). It also represents the standard value for the 'Service concession arrangements' axis if no other member is used. [Refer: Government [member]]"
       }
      }
     },
     "auth_ref": [
      "r264"
     ]
    },
    "ec_ServicesContractedInAssociations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ServicesContractedInAssociations",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of expense arising from services contracted in association.",
        "label": "Services contracted in associations",
        "terseLabel": "Services contracted in association"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ServicesExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ServicesExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Services expense",
        "verboseLabel": "Services contracted"
       }
      }
     },
     "auth_ref": [
      "r724"
     ]
    },
    "ec_ServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ServicesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersNationalAndForeignSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Services",
        "terseLabel": "Services"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ServiportSaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ServiportSaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Serviport S.A.",
        "label": "Serviport S.A. [Member]",
        "terseLabel": "Serviport S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_SettlementOfCrudeOilInvoicesThroughSharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SettlementOfCrudeOilInvoicesThroughSharesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for settlement of crude oil invoices through shares.",
        "label": "Settlement of Crude Oil Invoices Through Shares [Member]",
        "terseLabel": "Settlement of crude oil invoices through refinery shares"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Award Types",
        "terseLabel": "All Award Types"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ShareBasedPaymentArrangementsInSecondRoundMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ShareBasedPaymentArrangementsInSecondRoundMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for surplus over nominal value arising from the sale of shares awarded in the second round.",
        "label": "Surplus over nominal value arising from the sale of shares awarded in the second round"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossNetOfTax",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share of other comprehensive income of associates and joint ventures accounted for using equity method that will not be reclassified to profit or loss, net of tax",
        "verboseLabel": "Other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "Share of the other comprehensive income of associates and joint ventures accounted for using the equity method that will not be reclassified to profit or loss, net of tax."
       }
      }
     },
     "auth_ref": [
      "r475"
     ]
    },
    "ec_ShareOfOwnershipInterestInJointVenture": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ShareOfOwnershipInterestInJointVenture",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesReconciliationOfEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The portion of entity's ownership interest in joint venture's equity.",
        "label": "Share of ownership interest in joint venture",
        "verboseLabel": "Ecopetrol's ownership"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesMinimumTaxRateColombiaTaxLawDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfCashFlows",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfProfitOrLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share of profit (loss) of associates and joint ventures accounted for using equity method",
        "negatedLabel": "Share of profit of associates and joint ventures",
        "negatedNetLabel": "Share of profits of associates and joint ventures of the respective taxable year of Colombia companies",
        "terseLabel": "Profit or loss",
        "verboseLabel": "Share of profits of associates and joint ventures"
       }
      }
     },
     "auth_ref": [
      "r247",
      "r254",
      "r473"
     ]
    },
    "ifrs-full_SharesInEntityHeldByEntityOrByItsSubsidiariesOrAssociates": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SharesInEntityHeldByEntityOrByItsSubsidiariesOrAssociates",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of shares in entity held by entity or by its subsidiaries or associates",
        "terseLabel": "Treasury shares"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of shares in the entity held by the entity or by its subsidiaries or associates. [Refer: Total for all associates [member]; Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r290",
      "r411",
      "r460"
     ]
    },
    "ec_SharesSettlementForCrudeOilSupplyAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SharesSettlementForCrudeOilSupplyAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The value of shares settled for crude oil supply.",
        "label": "Shares Settlement for Crude Oil Supply, Amount",
        "terseLabel": "Issuance of share for supply of crude oil"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ShellMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ShellMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for shell.",
        "label": "Shell [Member]",
        "terseLabel": "Shell"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShorttermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ShorttermBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails": {
       "parentTag": "ifrs-full_Borrowings",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-term Debt",
        "verboseLabel": "Current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r719"
     ]
    },
    "ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ShorttermInvestmentsClassifiedAsCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsDetails": {
       "parentTag": "ifrs-full_CashAndCashEquivalents",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCashAndCashEquivalentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-term investments, classified as cash equivalents",
        "verboseLabel": "Short-term investments"
       }
      },
      "en": {
       "role": {
        "documentation": "A classification of cash equivalents representing short-term investments. [Refer: Cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r705"
     ]
    },
    "ec_SierracolEnergyAraucaLlcMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SierracolEnergyAraucaLlcMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for SierraCol Energy Arauca, LLC.",
        "label": "SierraCol Energy Arauca, LLC [Member]",
        "terseLabel": "SierraCol Energy Arauca, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SignificantInvestmentsInAssociatesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SignificantInvestmentsInAssociatesAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Associates [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r63",
      "r66",
      "r158",
      "r405"
     ]
    },
    "ifrs-full_SignificantInvestmentsInAssociatesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SignificantInvestmentsInAssociatesDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesMovementOfInvestmentsInAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesTransactionsWithRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Associates [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Associates' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r63",
      "r66",
      "r158",
      "r405"
     ]
    },
    "ifrs-full_SignificantInvestmentsInSubsidiariesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SignificantInvestmentsInSubsidiariesAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityDividendsPaidDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsRestrictionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesNotRecognizedInSubsidiariesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsidiaries [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r63",
      "r66",
      "r155",
      "r403"
     ]
    },
    "ifrs-full_SignificantInvestmentsInSubsidiariesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SignificantInvestmentsInSubsidiariesDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureEquityDividendsPaidDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit4QuantitativeInformationOfConcessionServicesContractsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureGoodwillDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsEnergyTransmissionAndRoadsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsRestrictionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails",
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesNotRecognizedInSubsidiariesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesMovementOfContractualAssetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsidiaries [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Subsidiaries' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r63",
      "r66",
      "r155",
      "r403"
     ]
    },
    "ifrs-full_SignificantUnobservableInputAssets": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SignificantUnobservableInputAssets",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Significant unobservable input, assets",
        "terseLabel": "Weighted average cost of capital, significant unobservable inputs, assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The value of significant unobservable input used in the measurement of the fair value of assets."
       }
      }
     },
     "auth_ref": [
      "r162"
     ]
    },
    "ec_SingaporeAndOtherAsianCountriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SingaporeAndOtherAsianCountriesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the information pertaining to Singapore and other Asian countries.",
        "label": "Singapore and Other Asian Countries [Member]",
        "terseLabel": "Singapore and other Asian countries"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SocialBenefitsAndSalariesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SocialBenefitsAndSalariesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Social benefits and salaries",
        "terseLabel": "Social benefits and salaries"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SociedadPortuariaOlefinasYDerivadosS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SociedadPortuariaOlefinasYDerivadosS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Sociedad Portuaria Olefinas y Derivados S.A.",
        "label": "Sociedad Portuaria Olefinas y Derivados S.A. [Member]",
        "terseLabel": "Sociedad Portuaria Olefinas y Derivados S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_SociedadPortuariaOlefinasYDerivadosSaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SociedadPortuariaOlefinasYDerivadosSaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sociedad Portuaria Olefinas y Derivados S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_SpecialTaxFiscalStabilityRate": {
     "xbrltype": "pureItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SpecialTaxFiscalStabilityRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Statutory tax rate applicable to the special tax for fiscal stability levied on the first sale within or from the national territory and on exports, as established by Colombian emergency tax regulations.",
        "label": "Special Tax, Fiscal Stability Rate",
        "terseLabel": "Special tax fiscal stability rate"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SpecialTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SpecialTaxRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of statutory tax rate applicable to the first sale or export of hydrocarbons and coal under Decree 0175 of February 2025 in Colombia.",
        "label": "Special Tax Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Ssjn1ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Ssjn1ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The member stands for SSJN1 Contract.",
        "label": "SSJN1 Contract [Member]",
        "terseLabel": "SSJN1"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Ssjn31ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Ssjn31ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for SSJN3-1 contract.",
        "label": "SSJN3-1 Contract [Member]",
        "terseLabel": "SSJN3-1"
       }
      }
     },
     "auth_ref": []
    },
    "ec_StampTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "StampTaxRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of stamp tax rate applicable to qualifying public or private documents under Colombian tax law.",
        "label": "Stamp Tax Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ec_StampTaxThresholdAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "StampTaxThresholdAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Monetary equivalent of the stamp tax threshold expressed in Colombian pesos for the reporting period.",
        "label": "Stamp Tax Threshold Amount"
       }
      }
     },
     "auth_ref": []
    },
    "ec_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedCrudeOilAndGasReservesTimingAndOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedCrudeOilAndGasReservesTimingAndOther",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails": {
       "parentTag": "ec_AggregateChangeInStandardizedMeasureOfDiscountedFutureNetCashFlows",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in standardized measure of discounted future net cash flow as a result of changes from timing and other sources.",
        "label": "Standardized Measure of Discounted Future Net Cash Flow of Proved Crude Oil and Gas Reserves, Timing and Other",
        "verboseLabel": "Timing and other"
       }
      }
     },
     "auth_ref": []
    },
    "ec_StandardizedMeasureOfDiscountedFutureNetCashFlowRelatingToProvedCrudeOilAndGasReservesAccretionOfDiscounts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "StandardizedMeasureOfDiscountedFutureNetCashFlowRelatingToProvedCrudeOilAndGasReservesAccretionOfDiscounts",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails": {
       "parentTag": "ec_AggregateChangeInStandardizedMeasureOfDiscountedFutureNetCashFlows",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accretion of discount for the standardized measure of discounted future net cash flow related to proved oil and gas reserves.",
        "label": "Standardized Measure of Discounted Future Net Cash Flow Relating to Proved Crude Oil and Gas Reserves, Accretion of Discounts",
        "negatedLabel": "Accretion of discount"
       }
      }
     },
     "auth_ref": []
    },
    "ec_StandardizedMeasureOfDiscountedFutureNetCashFlowRelatingToProvedCrudeOilAndGasReservesChangesInEstimatedFutureDevelopmentCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "StandardizedMeasureOfDiscountedFutureNetCashFlowRelatingToProvedCrudeOilAndGasReservesChangesInEstimatedFutureDevelopmentCosts",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails": {
       "parentTag": "ec_AggregateChangeInStandardizedMeasureOfDiscountedFutureNetCashFlows",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in standardized measure of discounted future net cash flow as a result of change in estimated future development costs.",
        "label": "Standardized Measure of Discounted Future Net Cash Flow Relating to Proved Crude Oil and Gas Reserves, Changes in Estimated Future Development Costs",
        "verboseLabel": "Changes in estimated future development costs"
       }
      }
     },
     "auth_ref": []
    },
    "ec_StandardizedMeasureOfDiscountedFutureNetCashFlowRelatingToProvedCrudeOilAndGasReservesPreviouslyEstimatedDevelopmentCostsIncurred": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "StandardizedMeasureOfDiscountedFutureNetCashFlowRelatingToProvedCrudeOilAndGasReservesPreviouslyEstimatedDevelopmentCostsIncurred",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails": {
       "parentTag": "ec_AggregateChangeInStandardizedMeasureOfDiscountedFutureNetCashFlows",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedDiscountedNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in standardized measure of discounted future net cash flow as a result of previously estimated development costs incurred.",
        "label": "Standardized Measure of Discounted Future Net Cash Flow Relating to Proved Crude Oil and Gas Reserves, Previously Estimated Development Costs Incurred",
        "verboseLabel": "Previously estimated development costs incurred during the year"
       }
      }
     },
     "auth_ref": []
    },
    "ec_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesTotal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedCrudeOilAndGasReservesTotal",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedFutureNetCashFlowsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSupplementalInformationOnOilAndGasProducingActivitiesUnauditedFutureNetCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of discounted future accumulated cash inflow relating to proved oil and gas reserves.",
        "label": "Standardized Measure of Discounted Future Net Cash Flows Relating to Proved Crude Oil and Gas Reserves, Total",
        "totalLabel": "Standardized measure of discounted net cash flows"
       }
      }
     },
     "auth_ref": []
    },
    "srt_StatementGeographicalAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "StatementGeographicalAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatementOfCashFlowsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatementOfCashFlowsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated statement of cash flows"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatementOfChangesInEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatementOfChangesInEquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated statement of changes in equity"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatementOfChangesInEquityLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatementOfChangesInEquityLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of changes in equity [line items]",
        "terseLabel": "Consolidated statement of changes in equity"
       }
      },
      "en": {
       "role": {
        "documentation": "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."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatementOfChangesInEquityTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatementOfChangesInEquityTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfChangesInEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of changes in equity [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to changes in equity."
       }
      }
     },
     "auth_ref": [
      "r427"
     ]
    },
    "ifrs-full_StatementOfComprehensiveIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatementOfComprehensiveIncomeAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated statement of comprehensive income"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatementOfFinancialPositionAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatementOfFinancialPositionAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated statement of financial position",
        "verboseLabel": "Statement of financial position"
       }
      }
     },
     "auth_ref": []
    },
    "srt_StatementScenarioAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "StatementScenarioAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementExpectedReclassificationOfCumulativeExchangeDifferenceFromOtherComprehensiveIncomeToProfitOrLossDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Scenario [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatutoryReserveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatutoryReserveMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityEcopetrolBusinessGroupsReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal reserve",
        "terseLabel": "Legal reserve"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing reserves created based on legal requirements."
       }
      }
     },
     "auth_ref": [
      "r716"
     ]
    },
    "ecd_StkPrcOrTsrEstimationMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "StkPrcOrTsrEstimationMethodTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Price or TSR Estimation Method [Text Block]",
        "terseLabel": "Stock Price or TSR Estimation Method"
       }
      }
     },
     "auth_ref": [
      "r587",
      "r598",
      "r608",
      "r641"
     ]
    },
    "us-gaap_StockAppreciationRightsSARSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockAppreciationRightsSARSMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Appreciation Rights (SARs) [Member]",
        "terseLabel": "Stock Appreciation Rights (SARs)"
       }
      }
     },
     "auth_ref": []
    },
    "ec_StockIssuedDuringPeriodSharesRestructuring": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "StockIssuedDuringPeriodSharesRestructuring",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares issued as a plan of restructuring during the period.",
        "label": "Stock Issued During Period, Shares, Restructuring",
        "terseLabel": "Number of shares issued as a plan of restructuring"
       }
      }
     },
     "auth_ref": []
    },
    "ec_StrategicRegasificationAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "StrategicRegasificationAgreementMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for strategic regasification agreement.",
        "label": "Strategic Regasification Agreement [Member]",
        "terseLabel": "Strategic regasification agreement"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SulDeGatoDoMatoContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SulDeGatoDoMatoContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Sul de Gato do Mato.",
        "label": "Sul de Gato do Mato Contract [Member]",
        "terseLabel": "Sul de Gato do Mato"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SupplementaryInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SupplementaryInformationAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplementary information [Abstract]",
        "verboseLabel": "Supplementary information"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SurchargeTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SurchargeTaxRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of surcharge tax rate.",
        "label": "Surcharge Tax Rate",
        "terseLabel": "Tax surcharge rate"
       }
      }
     },
     "auth_ref": []
    },
    "ec_SyndicatedTermLoanFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "SyndicatedTermLoanFacilityMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Syndicated term loan facility.",
        "label": "Syndicated Term Loan Facility [Member]",
        "terseLabel": "Syndicated term loan facility"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TabularListTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TabularListTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tabular List [Table Text Block]",
        "terseLabel": "Tabular List, Table"
       }
      }
     },
     "auth_ref": [
      "r634"
     ]
    },
    "ec_TariffForCrudeOilTransportation": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TariffForCrudeOilTransportation",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tariff for crude oil transportation.",
        "label": "Tariff for Crude Oil Transportation",
        "terseLabel": "Increase in crude oil transportation cost per barrel"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TaxEffectFromChangeInTaxRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TaxEffectFromChangeInTaxRate",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax effect from change in tax rate",
        "terseLabel": "Rate differential adjustment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount that represents the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that relates to changes in the tax rate. [Refer: Accounting profit]"
       }
      }
     },
     "auth_ref": [
      "r4",
      "r306"
     ]
    },
    "ec_TaxEffectFromChangeInTaxRateActuarialCalculationProvisionsAcquisitionsAndProjectedSurcharges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TaxEffectFromChangeInTaxRateActuarialCalculationProvisionsAcquisitionsAndProjectedSurcharges",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount that represents the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that relates to changes in the tax rate, actuarial calculation, provisions, acquisitions and projected surcharges.",
        "label": "Tax Effect From Change In Tax Rate, Actuarial Calculation, Provisions, Acquisitions and Projected Surcharges",
        "terseLabel": "Projected Surcharges"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TaxEffectFromVariationInEquityAccountingMethodInAcquiree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TaxEffectFromVariationInEquityAccountingMethodInAcquiree",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount representing the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that relates to variation in equity accounting method in acquiree.",
        "label": "Tax Effect From Variation In Equity Accounting Method In Acquiree",
        "terseLabel": "Others"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TaxEffectOfExpenseNotDeductibleInDeterminingTaxableProfitTaxLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TaxEffectOfExpenseNotDeductibleInDeterminingTaxableProfitTaxLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax effect of expense not deductible in determining taxable profit (tax loss)",
        "terseLabel": "Non-deductible expenses"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount that represents the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that relates to expenses not deductible in determining taxable profit (tax loss). [Refer: Accounting profit]"
       }
      }
     },
     "auth_ref": [
      "r4",
      "r306"
     ]
    },
    "ifrs-full_TaxEffectOfForeignTaxRates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TaxEffectOfForeignTaxRates",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax effect of foreign tax rates",
        "verboseLabel": "Foreign currency translation and exchange difference"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount that represents the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that relates to foreign tax rates. [Refer: Accounting profit]"
       }
      }
     },
     "auth_ref": [
      "r4",
      "r306"
     ]
    },
    "ec_TaxEffectOfPriorYearsCurrentAndDeferredTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TaxEffectOfPriorYearsCurrentAndDeferredTax",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tax rate effect on the reconciliation between the average effective tax rate and the applicable tax rate resulting from adjustments for the current tax and deferred tax of prior periods. [Refer: Average effective tax rate; Applicable tax rate; Adjustments for current tax of prior periods]",
        "label": "Tax Effect of Prior Years Current and Deferred Tax",
        "verboseLabel": "Prior years' taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TaxEffectOfRecognitionOfShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TaxEffectOfRecognitionOfShares",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount that represents the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that relates to effect of recognition of shares.",
        "label": "Tax Effect of Recognition of Shares",
        "terseLabel": "Effect of recognition of shares of McDermott International, Ltd."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TaxEffectOfRevenuesExemptFromTaxation2011": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TaxEffectOfRevenuesExemptFromTaxation2011",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax effect of revenues exempt from taxation",
        "negatedLabel": "Non-taxable income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount that represents the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that relates to revenues that are exempt from taxation. [Refer: Accounting profit]"
       }
      }
     },
     "auth_ref": [
      "r4",
      "r306"
     ]
    },
    "ifrs-full_TaxExpenseIncomeAtApplicableTaxRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TaxExpenseIncomeAtApplicableTaxRate",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesReconciliationOfIncomeTaxExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax expense (income) at applicable tax rate",
        "verboseLabel": "Income tax at statutory rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The product of the accounting profit multiplied by the applicable tax rate(s). [Refer: Accounting profit; Applicable tax rate]"
       }
      }
     },
     "auth_ref": [
      "r4",
      "r306"
     ]
    },
    "ifrs-full_TaxExpenseOtherThanIncomeTaxExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TaxExpenseOtherThanIncomeTaxExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax expense other than income tax expense",
        "verboseLabel": "Taxes other than taxes on income"
       }
      }
     },
     "auth_ref": [
      "r724"
     ]
    },
    "ec_TaxPeriodsBetween2022And2024Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TaxPeriodsBetween2022And2024Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for tax periods between 2022 and 2024.",
        "label": "Tax Periods Between 2022 and 2024 [Member]",
        "terseLabel": "Tax Periods Between 2022 and 2024"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TaxSurchargeRate0Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TaxSurchargeRate0Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for tax surcharge rate of 0%.",
        "label": "Tax Surcharge Rate 0% [Member]",
        "terseLabel": "Tax Surcharge Rate 0%"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TaxSurchargeRate10Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TaxSurchargeRate10Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for tax surcharge rate of 10%.",
        "label": "Tax Surcharge Rate 10% [Member]",
        "terseLabel": "Tax Surcharge Rate 10%"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TaxSurchargeRate15Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TaxSurchargeRate15Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for tax surcharge rate of 15%.",
        "label": "Tax Surcharge Rate 15% [Member]",
        "terseLabel": "Tax Surcharge Rate 15%"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TaxSurchargeRate5Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TaxSurchargeRate5Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for tax surcharge rate of 5%.",
        "label": "Tax Surcharge Rate 5% [Member]",
        "terseLabel": "Tax Surcharge Rate 5%"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TaxesAndContributions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TaxesAndContributions",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of tax contributions.",
        "label": "Taxes And Contributions",
        "terseLabel": "Taxes and contributions"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TecaContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TecaContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Teca Contract.",
        "label": "Teca Contract [Member]",
        "terseLabel": "Teca"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TelecommunicationsBusinessDevelopmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TelecommunicationsBusinessDevelopmentMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for telecommunications business development.",
        "label": "Telecommunications Business Development [Member]",
        "terseLabel": "Telecommunications Business Development"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Temporary difference, unused tax losses and unused tax credits [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r8",
      "r310"
     ]
    },
    "ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Temporary difference, unused tax losses and unused tax credits [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for temporary differences, unused tax losses and unused tax credits. It also represents the standard value for the 'Temporary difference, unused tax losses and unused tax credits' axis if no other member is used. [Refer: Temporary differences [member]; Unused tax credits [member]; Unused tax losses [member]]"
       }
      }
     },
     "auth_ref": [
      "r8",
      "r310"
     ]
    },
    "ec_TenderOfferPricePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TenderOfferPricePerShare",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Per share price of saleable stock paid or offered to be paid by acquirer in the transaction.",
        "label": "Tender Offer, Price Per Share",
        "terseLabel": "Per share price of saleable stock paid or offered to be paid by acquirer"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TerminationBenefitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TerminationBenefitsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Termination benefits - Voluntary retirement plan",
        "terseLabel": "Termination benefits - Voluntary retirement plan"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TerpelMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TerpelMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "It represents member of Terpel .",
        "label": "Terpel [Member]",
        "terseLabel": "Terpel"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ThirdPartySalesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ThirdPartySalesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Third Party Sales [Member]",
        "terseLabel": "Third party sales"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ThresholdForLevyingStampTax": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ThresholdForLevyingStampTax",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minimum value threshold established under Colombian tax regulations above which the stamp tax becomes applicable, based on the amount specified in Tax Value Units (UVT) or its monetary equivalent for the reporting period.",
        "label": "Threshold for Levying Stamp Tax"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TopOfRangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TopOfRangeMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsActuarialAssumptionsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Top of range",
        "verboseLabel": "Top of range"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for top of a range."
       }
      }
     },
     "auth_ref": [
      "r122",
      "r165",
      "r181",
      "r189",
      "r298",
      "r508",
      "r510",
      "r710"
     ]
    },
    "ecd_TotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TotalShareholderRtnAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Shareholder Return Amount",
        "terseLabel": "Total Shareholder Return Amount"
       }
      }
     },
     "auth_ref": [
      "r626"
     ]
    },
    "ecd_TotalShareholderRtnVsPeerGroupTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TotalShareholderRtnVsPeerGroupTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Shareholder Return Vs Peer Group [Text Block]",
        "terseLabel": "Total Shareholder Return Vs Peer Group"
       }
      }
     },
     "auth_ref": [
      "r633"
     ]
    },
    "ifrs-full_TradeAndOtherCurrentPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherCurrentPayables",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other current payables",
        "totalLabel": "Total trade and other current payables",
        "verboseLabel": "Trade and other payables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current trade payables and current other payables. [Refer: Current trade payables; Other current payables]"
       }
      }
     },
     "auth_ref": [
      "r442"
     ]
    },
    "ifrs-full_TradeAndOtherCurrentReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherCurrentReceivables",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 5.0
      },
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails",
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other current receivables",
        "totalLabel": "Total current",
        "verboseLabel": "Trade and other receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current trade receivables and current other receivables. [Refer: Current trade receivables; Other current receivables]"
       }
      }
     },
     "auth_ref": [
      "r418",
      "r439",
      "r455"
     ]
    },
    "ifrs-full_TradeAndOtherCurrentReceivablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherCurrentReceivablesAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other current receivables [abstract]",
        "verboseLabel": "Current"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TradeAndOtherCurrentReceivablesDueFromRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherCurrentReceivablesDueFromRelatedParties",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentReceivables",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current receivables due from related parties",
        "verboseLabel": "Related parties (Note 31)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current receivables due from related parties. [Refer: Total for all related parties [member]]"
       }
      }
     },
     "auth_ref": [
      "r554",
      "r560"
     ]
    },
    "ec_TradeAndOtherLoanReceivablesRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TradeAndOtherLoanReceivablesRelatedPartyTransactions",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amounts of trade and other loans receivable, resulting from related party transactions.",
        "label": "Trade And Other Loan Receivables, Related Party Transactions",
        "terseLabel": "Trade and other receivables - Loans"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TradeAndOtherPayablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherPayablesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other payables"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherPayablesRecognisedAsOfAcquisitionDate",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "ec_LiabilitiesRecognisedAsOfAcquisitionDate",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other payables recognised as of acquisition date",
        "terseLabel": "Trade and other payables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for trade and other payables assumed in a business combination. [Refer: Trade and other payables; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r708"
     ]
    },
    "ec_TradeAndOtherPayablesRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TradeAndOtherPayablesRelatedPartyTransactions",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amounts of trade and other payables, resulting from related party transactions.",
        "label": "Trade And Other Payables, Related Party Transactions",
        "terseLabel": "Trade and other payables"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TradeAndOtherPayablesToTradeSuppliers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherPayablesToTradeSuppliers",
     "crdr": "credit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentPayables",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherPayablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade payables",
        "verboseLabel": "Suppliers"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of payment due to suppliers for goods and services used in the entity's business."
       }
      }
     },
     "auth_ref": [
      "r721"
     ]
    },
    "ifrs-full_TradeAndOtherPayablesUndiscountedCashFlows": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherPayablesUndiscountedCashFlows",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementMaturityOfFinancialLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other payables, undiscounted cash flows",
        "verboseLabel": "Trade and other payables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of contractual undiscounted cash flows in relation to trade and other payables. [Refer: Trade and other payables]"
       }
      }
     },
     "auth_ref": [
      "r528",
      "r536"
     ]
    },
    "ifrs-full_TradeAndOtherReceivablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherReceivablesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other receivables"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TradeAndOtherReceivablesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TradeAndOtherReceivablesLineItems",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "No definition available.",
        "label": "Trade And Other Receivables [Line Items]",
        "terseLabel": "Trade and other receivables"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TradeAndOtherReceivablesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TradeAndOtherReceivablesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementSignificantConcentrationOfCreditRiskDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAllowanceForDoubtfulAccountsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for trade and other receivables.",
        "label": "Trade And Other Receivables [Member]",
        "terseLabel": "Accounts receivable"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TradeAndOtherReceivablesRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TradeAndOtherReceivablesRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails": {
       "parentTag": "ec_AssetsRecognisedAsOfAcquisitionDate",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessCombinationIdentifiableAssetsAcquiredAndLiabilitiesAssumedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for trade and other receivables acquired in a business combination.",
        "label": "Trade And Other Receivables Recognised As Of Acquisition Date",
        "terseLabel": "Trade and other receivables"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TradeAndOtherReceivablesRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TradeAndOtherReceivablesRelatedPartyTransactions",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amounts of trade and other receivables, resulting from related party transactions.",
        "label": "Trade And Other Receivables, Related Party Transactions",
        "terseLabel": "Trade and other receivables"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TradeAndOtherReceivablesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TradeAndOtherReceivablesTable",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule reflecting trade and other receivables.",
        "label": "Trade and Other Receivables [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TradeReceivablesAndPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TradeReceivablesAndPayables",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails": {
       "parentTag": "ifrs-full_NetFinancialLiabilitiesSubjectToOffsettingEnforceableMasterNettingArrangementsOrSimilarAgreementsInStatementOfFinancialPosition",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of trade receivables and payables",
        "label": "Trade Receivables And Payables",
        "terseLabel": "Trade receivables and payables, net"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TradeReceivablesDueFromCustomerAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TradeReceivablesDueFromCustomerAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade receivables due from customer [Abstract]",
        "terseLabel": "Customers"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TradeReceivablesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeReceivablesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTradeAndOtherReceivablesFuelPriceStabilizationFunDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade receivables [member]",
        "terseLabel": "Trade receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for trade receivables. [Refer: Trade receivables]"
       }
      }
     },
     "auth_ref": [
      "r222",
      "r226",
      "r395",
      "r399",
      "r523",
      "r717"
     ]
    },
    "ecd_TradingArrAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TradingArrAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement [Axis]",
        "terseLabel": "Trading Arrangement:"
       }
      }
     },
     "auth_ref": [
      "r654"
     ]
    },
    "ecd_TradingArrByIndTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TradingArrByIndTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangements, by Individual [Table]",
        "terseLabel": "Trading Arrangements, by Individual"
       }
      }
     },
     "auth_ref": [
      "r656"
     ]
    },
    "ec_TradingDaysLookBackPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TradingDaysLookBackPeriod",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureSubsequentAndRelevantEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of past trading days used to compute a reference price (like VWAP) for valuation or premium calculation.",
        "label": "Trading Days Look-back Period",
        "terseLabel": "Number of past trading days"
       }
      }
     },
     "auth_ref": []
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "TradingSymbol",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DocumentDocumentAndEntityInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Symbol",
        "documentation": "Trading symbol of an instrument as listed on an exchange."
       }
      }
     },
     "auth_ref": []
    },
    "ec_Transelca.RegulatoryContingencyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Transelca.RegulatoryContingencyMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsLitigationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Transelca. Regulatory Contingency [Member]",
        "label": "Transelca. Regulatory Contingency [Member]",
        "terseLabel": "Transelca. Regulatory contingency"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TranselcaS.a.E.s.p.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TranselcaS.a.E.s.p.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Transelca S.A. E.S.P.",
        "label": "Transelca S.A. E.S.P. [Member]",
        "terseLabel": "Transelca S.A. E.S.P."
       }
      }
     },
     "auth_ref": []
    },
    "ec_TransmissoraAlianaDeEnergiaEletricaS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TransmissoraAlianaDeEnergiaEletricaS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to Transmissora Aliana de Energia Eltrica S.A.",
        "label": "Transmissora Alianca De Energia Eletrica S.A [Member]",
        "terseLabel": "Transmissora Aliana de Energia Eltrica S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_TransmissoraAlianaDeEnergiaEltricaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TransmissoraAlianaDeEnergiaEltricaMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesAdditionalInformationAboutAssociatesAndJointVenturesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesReconciliationOfEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Transmissora Aliana de Energia Eltrica [Member].",
        "label": "Transmissora Aliana de Energia Eltrica",
        "verboseLabel": "Transmissora Aliana de Energia Eltrica"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TransmissoraAlianaDeEnergiaEltricaS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TransmissoraAlianaDeEnergiaEltricaS.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRelatedPartiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to Transmissora Aliana de Energia Eltrica S.A.",
        "label": "Transmissora Alianca de Energia Eltrica S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_TransnexaS.a.E.m.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TransnexaS.a.E.m.a.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesCompositionAndMovementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for transnexa S.A. E.M.A.",
        "label": "Transnexa S.A. E.M.A. [Member]",
        "terseLabel": "Transnexa S.A. E.M.A."
       }
      }
     },
     "auth_ref": []
    },
    "ec_TransportationAndLogisticsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TransportationAndLogisticsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationSalesByProductDetails",
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transport and logistics [Member]",
        "terseLabel": "Transport and logistics",
        "verboseLabel": "Transportation and Logistics"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TransportationAndLogisticsSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TransportationAndLogisticsSegmentMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transportation and logistics segment [Member]",
        "terseLabel": "Transportation and logistics segment"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TransportationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TransportationExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transportation expense",
        "verboseLabel": "Hydrocarbon transportation services"
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ecd_TrdArrAdoptionDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrAdoptionDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Adoption Date",
        "terseLabel": "Adoption Date"
       }
      }
     },
     "auth_ref": [
      "r657"
     ]
    },
    "ecd_TrdArrDuration": {
     "xbrltype": "durationItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrDuration",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Duration",
        "terseLabel": "Arrangement Duration"
       }
      }
     },
     "auth_ref": [
      "r658"
     ]
    },
    "ecd_TrdArrExpirationDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrExpirationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Expiration Date",
        "terseLabel": "Expiration Date"
       }
      }
     },
     "auth_ref": [
      "r658"
     ]
    },
    "ecd_TrdArrIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r656"
     ]
    },
    "ecd_TrdArrIndTitle": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrIndTitle",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Individual Title",
        "terseLabel": "Title"
       }
      }
     },
     "auth_ref": [
      "r656"
     ]
    },
    "ecd_TrdArrSecuritiesAggAvailAmt": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrSecuritiesAggAvailAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Securities Aggregate Available Amount",
        "terseLabel": "Aggregate Available"
       }
      }
     },
     "auth_ref": [
      "r659"
     ]
    },
    "ecd_TrdArrTerminationDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrTerminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Termination Date",
        "terseLabel": "Termination Date"
       }
      }
     },
     "auth_ref": [
      "r657"
     ]
    },
    "ifrs-full_TreasuryShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TreasuryShares",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury shares",
        "terseLabel": "Treasury shares amount"
       }
      },
      "en": {
       "role": {
        "documentation": "An entity\u2019s own equity instruments, held by the entity or other members of the consolidated group."
       }
      }
     },
     "auth_ref": [
      "r67",
      "r555",
      "r561"
     ]
    },
    "ec_TrmCollarsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TrmCollarsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for TRM collars.",
        "label": "TRM Collars [Member]",
        "terseLabel": "TRM Collars"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TrustAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TrustAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trust [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TrustDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TrustDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trust [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TrustFundsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TrustFundsCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails": {
       "parentTag": "ifrs-full_OtherCurrentNonfinancialAssets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the amount of trust funds classified as current.",
        "label": "Trust Funds, Current",
        "terseLabel": "Trust funds"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TrustFundsNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TrustFundsNoncurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails": {
       "parentTag": "ifrs-full_OtherNoncurrentNonfinancialAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the amount of trust funds classified as noncurrent.",
        "label": "Trust Funds Noncurrent",
        "terseLabel": "Trust funds"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TwoThousandTwentyTwoAfterMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TwoThousandTwentyTwoAfterMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "2022 [Member]",
        "terseLabel": "2022"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TypeOfContract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TypeOfContract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails",
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the type of contract.",
        "label": "Type Of Contract",
        "terseLabel": "Type"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TypeOfCostAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TypeOfCostAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Type Of Cost [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ec_TypeOfCostDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "TypeOfCostDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Type Of Cost [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TypesOfHedgesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfHedgesAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementHedgeOfNetInvestmentInForeignOperationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementNonDerivativeHedgingInstrumentDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementTables",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of hedges [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r211",
      "r212",
      "r217",
      "r386",
      "r387",
      "r392"
     ]
    },
    "ifrs-full_TypesOfHedgesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfHedgesDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementHedgeOfNetInvestmentInForeignOperationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementNonDerivativeHedgingInstrumentDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementTables",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxRecordedInOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of hedges [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all types of hedges. It also represents the standard value for the 'Types of hedges' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r211",
      "r212",
      "r217",
      "r386",
      "r387",
      "r392"
     ]
    },
    "ifrs-full_TypesOfInterestRatesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfInterestRatesAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsBreakdownByTypeOfInterestRateAndCurrencyDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementRiskManagementSensitivityInIncomeAndOtherComprehensiveIncomeToVariationsInInterestRateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of interest rates [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r709"
     ]
    },
    "ifrs-full_TypesOfInterestRatesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfInterestRatesDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsBreakdownByTypeOfInterestRateAndCurrencyDetails",
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsPlanAssetsOfPensionAndPensionBondsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementRiskManagementSensitivityInIncomeAndOtherComprehensiveIncomeToVariationsInInterestRateDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of interest rates [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all types of interest rates. It also represents the standard value for the 'Types of interest rates' axis if no other member is used. [Refer: Interest rate risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r709"
     ]
    },
    "ifrs-full_TypesOfInvestmentPropertyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfInvestmentPropertyAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of investment property [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ifrs-full_TypesOfInvestmentPropertyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfInvestmentPropertyDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBusinessSegmentInformationCapitalExpendituresBySegmentsDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of investment property [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Types of investment property' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r717"
     ]
    },
    "ifrs-full_TypesOfRisksAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfRisksAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDenominatedInForeignCurrencyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of risks [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r48",
      "r182",
      "r183",
      "r184",
      "r186",
      "r208",
      "r220",
      "r221",
      "r333"
     ]
    },
    "ifrs-full_TypesOfRisksDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfRisksDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureOtherFinancialAssetsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDenominatedInForeignCurrencyDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of risks [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all types of risks. It also represents the standard value for the 'Types of risks' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r48",
      "r182",
      "r183",
      "r184",
      "r186",
      "r208",
      "r220",
      "r221",
      "r333"
     ]
    },
    "ifrs-full_TypesOfSharebasedPaymentArrangementsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfSharebasedPaymentArrangementsAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of share-based payment arrangements [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r190",
      "r372"
     ]
    },
    "ifrs-full_TypesOfSharebasedPaymentArrangementsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfSharebasedPaymentArrangementsDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureEquityAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of share-based payment arrangements [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for an agreement between the entity or another group entity or any shareholder of the group entity and another party (including an employee) that entitles the other party to receive (a) cash or other assets of the entity for amounts that are based on the price (or value) of equity instruments (including shares or share options) of the entity or another group entity; or (b) equity instruments (including shares or share options) of the entity or another group entity, provided that the specified vesting conditions, if any, are met. It also represents the standard value for the 'Types of share-based payment arrangements' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r190",
      "r372"
     ]
    },
    "ec_U111ExpansionProjectMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "U111ExpansionProjectMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for U-111 expansion project.",
        "label": "U-111 Expansion Project [Member]",
        "terseLabel": "U-111 Expansion Project"
       }
      }
     },
     "auth_ref": []
    },
    "country_US": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2025",
     "localname": "US",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRevenueFromContractsWithCustomersSalesByGeographicAreaDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesIncomeTaxAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "United States Of America Country [Member]",
        "terseLabel": "USA",
        "verboseLabel": "United States"
       }
      }
     },
     "auth_ref": []
    },
    "currency_USD": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "USD",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureLoansAndBorrowingsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDenominatedInForeignCurrencyDetails",
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementFinancialAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Us Dollar [Member]",
        "terseLabel": "USD$ Million",
        "verboseLabel": "US Dollar"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_UndrlygSecurityMktPriceChngPct": {
     "xbrltype": "pureItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "UndrlygSecurityMktPriceChngPct",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Underlying Security Market Price Change, Percent",
        "terseLabel": "Underlying Security Market Price Change"
       }
      }
     },
     "auth_ref": [
      "r653"
     ]
    },
    "ec_UnidentifiedExpensesForSpecifiedPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "UnidentifiedExpensesForSpecifiedPeriod",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unidentified expenses for specified period.",
        "label": "Unidentified Expenses for Specified Period",
        "terseLabel": "Unidentified expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ec_UnidentifiedProjectCostWhenEntered": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "UnidentifiedProjectCostWhenEntered",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unidentified project cost when entered.",
        "label": "Unidentified Project Cost When Entered",
        "terseLabel": "Unidentified project cost"
       }
      }
     },
     "auth_ref": []
    },
    "ec_UnionTemporalIsmocolJoshiParkoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "UnionTemporalIsmocolJoshiParkoMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Union Temporal Ismocol Joshi Parko.",
        "label": "Union Temporal Ismocol Joshi Parko [Member]",
        "terseLabel": "Union Temporal Ismocol Joshi Parko"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_UnobservableInputsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "UnobservableInputsAxis",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unobservable inputs [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r162",
      "r707"
     ]
    },
    "ifrs-full_UnobservableInputsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "UnobservableInputsDomain",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unobservable inputs [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all the unobservable inputs. It also represents the standard value for the 'Unobservable inputs' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r162",
      "r707"
     ]
    },
    "ec_UnratedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "UnratedMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureProvisionsForEmployeesBenefitsCreditRatingsOfIssuersAndCounterpartiesInAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Not available ratings [member]",
        "terseLabel": "Rating not available"
       }
      }
     },
     "auth_ref": []
    },
    "ec_UnrealizedGainLossOnHedgesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "UnrealizedGainLossOnHedgesAbstract",
     "presentation": [
      "http://www.ecopetrol.com.co/role/StatementConsolidatedStatementOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "no definition available.",
        "label": "Unrealized gain loss on hedges [Abstract]",
        "verboseLabel": "Unrealized (loss) gain on hedges:"
       }
      }
     },
     "auth_ref": []
    },
    "ec_UnrealizedGainOnInvestmentInJointVenture": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "UnrealizedGainOnInvestmentInJointVenture",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureInvestmentsInAssociatesAndJointVenturesReconciliationOfEquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of unrealized gain in joint venture.",
        "label": "Unrealized Gain On Investment In Joint Venture",
        "terseLabel": "Unrealized gain"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_UnusedProvisionReversedOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "UnusedProvisionReversedOtherProvisions",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unused provision reversed, other provisions",
        "verboseLabel": "Reversal of fields"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount reversed for unused other provisions. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r89",
      "r351"
     ]
    },
    "ifrs-full_UnusedTaxLossesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "UnusedTaxLossesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesDeferredTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss carry forwards"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for tax losses that have been incurred and are carried forward for use against future taxable profit."
       }
      }
     },
     "auth_ref": [
      "r8",
      "r310"
     ]
    },
    "ec_UsDollorPortfolioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "UsDollorPortfolioMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRiskManagementAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for us dollar portfolio.",
        "label": "Us Dollor Portfolio [Member]",
        "terseLabel": "Us Dollar Portfolio"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment": {
     "xbrltype": "durationItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccountingPoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Useful life measured as period of time, property, plant and equipment",
        "terseLabel": "Estimated, useful life"
       }
      },
      "en": {
       "role": {
        "documentation": "The useful life, measured as period of time, used for property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r11",
      "r312"
     ]
    },
    "ec_ValueAddedTaxAssessmentsInterestAccrued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ValueAddedTaxAssessmentsInterestAccrued",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of interest accrued from VAT assessments.",
        "label": "Value Added Tax Assessments, Interest Accrued",
        "terseLabel": "Value added tax assessments, Interest accrued"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ValueAddedTaxAssessmentsTaxAndPenalties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ValueAddedTaxAssessmentsTaxAndPenalties",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of value added tax and penalties arising from VAT assessments.",
        "label": "Value Added Tax Assessments, Tax and Penalties",
        "terseLabel": "Value added tax assessments"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ValueAddedTaxMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ValueAddedTaxMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Value added tax"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ValueAddedTaxPayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ValueAddedTaxPayments",
     "crdr": "credit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of payments made for value added tax.",
        "label": "Value Added Tax Payments",
        "terseLabel": "Value added tax payments"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ValueAddedTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ValueAddedTaxRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of value added tax rate.",
        "label": "Value Added Tax Rate",
        "terseLabel": "Vat rate"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ValueAddedTaxRecoverableCreditsAndRefund": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ValueAddedTaxRecoverableCreditsAndRefund",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of value added tax recoverable from credits and refund.",
        "label": "Value Added Tax, Recoverable, Credits and Refund",
        "terseLabel": "Value added tax, Recoverable, Credits and refund"
       }
      }
     },
     "auth_ref": []
    },
    "ec_ValueAddedTaxRefundMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "ValueAddedTaxRefundMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesCurrentAndNonCurrentTaxAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Value added tax refund.",
        "label": "Value Added Tax Refund [Member]",
        "terseLabel": "VAT refund"
       }
      }
     },
     "auth_ref": []
    },
    "ec_VariableCostsGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "VariableCostsGross",
     "crdr": "debit",
     "calculation": {
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails": {
       "parentTag": "ifrs-full_CostOfSales",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of gross variable cost of sale.",
        "label": "Variable Costs Gross",
        "verboseLabel": "Total Costs Variables"
       }
      }
     },
     "auth_ref": []
    },
    "ec_VariableCostsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "VariableCostsMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for variable costs.",
        "label": "Variable Costs"
       }
      }
     },
     "auth_ref": []
    },
    "ec_VatAssessmentContingencyProbabilityOfSuccess": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "VatAssessmentContingencyProbabilityOfSuccess",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The probability of success based on opinion of external advisors on VAT assessment contingencies.",
        "label": "VAT Assessment, Contingency, Probability of Success",
        "terseLabel": "VAT assessment, Contingency, Probability of success"
       }
      }
     },
     "auth_ref": []
    },
    "ec_VatOnImportsOfGasolineAndDieselFuelMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "VatOnImportsOfGasolineAndDieselFuelMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAccruedLiabilitiesAndProvisionsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for contingencies related to VAT on imports of gasoline and diesel fuel.",
        "label": "VAT on Imports of Gasoline and Diesel Fuel [Member]",
        "terseLabel": "VAT on Imports of Gasoline and Diesel Fuel"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_VehiclesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "VehiclesMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureRightOfUseAssetsAndLeaseLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Vehicles",
        "terseLabel": "Vehicles"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing vehicles used in the entity's operations, specifically to include aircraft, motor vehicles and ships. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r681"
     ]
    },
    "ec_Vim42ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Vim42ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsNotOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for VIM-42 contract.",
        "label": "VIM-42 Contract [Member]",
        "terseLabel": "VIM-42"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Vmm29ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Vmm29ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for VMM29 Contract.",
        "label": "VMM29 Contract [Member]",
        "terseLabel": "VMM29"
       }
      }
     },
     "auth_ref": []
    },
    "ec_Vmm32ContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "Vmm32ContractMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureJointOperationsContractsInWhichEcopetrolIsOperatorDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for VMM32 Contract.",
        "label": "VMM32 Contract [Member]",
        "terseLabel": "VMM32"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_VstngDtFrValOfEqtyAwrdsGrntdAndVstdInCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "VstngDtFrValOfEqtyAwrdsGrntdAndVstdInCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Vesting Date Fair Value of Equity Awards Granted and Vested in Covered Year [Member]",
        "terseLabel": "Vesting Date Fair Value of Equity Awards Granted and Vested in Covered Year"
       }
      }
     },
     "auth_ref": [
      "r622"
     ]
    },
    "ifrs-full_WagesAndSalaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "WagesAndSalaries",
     "crdr": "debit",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureAdministrativeOperativeAndProjectExpensesDetails",
      "http://www.ecopetrol.com.co/role/DisclosureCostOfSalesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Wages and salaries",
        "terseLabel": "Labor costs",
        "verboseLabel": "Labor expenses"
       }
      }
     },
     "auth_ref": [
      "r688"
     ]
    },
    "ifrs-full_WeightedAverageCostOfCapitalMeasurementInputMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "WeightedAverageCostOfCapitalMeasurementInputMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureImpairmentOfLongTermAssetsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average cost of capital, measurement input [member]",
        "terseLabel": "Weighted average cost of capital, measurement input"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the weighted average cost of capital used as a measurement input."
       }
      }
     },
     "auth_ref": [
      "r506",
      "r510"
     ]
    },
    "ec_WindAutogeneracinS.a.s.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "WindAutogeneracinS.a.s.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureBasisForPreparationDetails",
      "http://www.ecopetrol.com.co/role/DisclosureExhibit1ConsolidatedSubsidiariesAssociatesAndJointVenturesConsolidatedSubsidiaryCompaniesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Wind Autogeneracin S.A.S.",
        "label": "Wind Autogeneracin S.A.S. [Member]",
        "terseLabel": "Wind Autogeneracin S.A.S"
       }
      }
     },
     "auth_ref": []
    },
    "ec_WindpeshiWindProjectInLaGuajiraMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "WindpeshiWindProjectInLaGuajiraMember",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosurePropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for Windpeshi wind project in La Guajira.",
        "label": "Windpeshi wind project in La Guajira [Member]",
        "terseLabel": "Windpeshi wind project in La Guajira"
       }
      }
     },
     "auth_ref": []
    },
    "ec_WithholdingDividendTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "WithholdingDividendTaxRate",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Withholding dividend tax rate",
        "label": "Withholding Dividend Tax Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ec_WithholdingDividendTaxRateOnIncome": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "WithholdingDividendTaxRateOnIncome",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureTaxesOtherTaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of dividend tax rate as withholding tax on income",
        "label": "Withholding Dividend Tax Rate on Income",
        "terseLabel": "Percentage of dividend tax rate as withholding tax on income"
       }
      }
     },
     "auth_ref": []
    },
    "ec_XmCompaaDeExpertosEnMercadosS.a.E.s.p.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ecopetrol.com.co/20251231",
     "localname": "XmCompaaDeExpertosEnMercadosS.a.E.s.p.Member",
     "presentation": [
      "http://www.ecopetrol.com.co/role/DisclosureExhibit2ConsolidatedSubsidiariesAssociatesAndJointVenturesInInterconexionElectricaSaEspDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member stands for XM Compaa de Expertos en Mercados S.A. E.S.P.",
        "label": "XM Compaa de Expertos en Mercados S.A. E.S.P. [Member]",
        "terseLabel": "XM Compaa de Expertos en Mercados S.A. E.S.P."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_YrEndFrValOfEqtyAwrdsGrntdInCvrdYrOutsdngAndUnvstdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "YrEndFrValOfEqtyAwrdsGrntdInCvrdYrOutsdngAndUnvstdMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Year-end Fair Value of Equity Awards Granted in Covered Year that are Outstanding and Unvested [Member]",
        "terseLabel": "Year-end Fair Value of Equity Awards Granted in Covered Year that are Outstanding and Unvested"
       }
      }
     },
     "auth_ref": [
      "r620"
     ]
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "10",
   "IssueDate": "2025-01-01",
   "Paragraph": "21",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=10&code=ifrs-tx-2025-en-r&anchor=para_21&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r1": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "10",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=10&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS10_g17-22_TI",
   "URIDate": "2025-03-27"
  },
  "r2": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_79&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r3": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "81",
   "Subparagraph": "ab",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_81_ab&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r4": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "81",
   "Subparagraph": "c",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_81_c_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r5": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "81",
   "Subparagraph": "c",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_81_c_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r6": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_81_g_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r7": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_81_g_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r8": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_81_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r9": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "88B",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_88B&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r10": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS12_g79-88_TI",
   "URIDate": "2025-03-27"
  },
  "r11": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r12": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r13": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r14": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r15": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "ix",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e_ix&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r16": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e_v&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r17": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e_vi&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r18": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "vii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e_vii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r19": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e_viii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r20": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r21": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r22": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "75",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_75_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r23": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "75",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_75_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r24": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS16_g73-79_TI",
   "URIDate": "2025-03-27"
  },
  "r25": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "138",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_138&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r26": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "140",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_140_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r27": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r28": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r29": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "c",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_c_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r30": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "c",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_c_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r31": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r32": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r33": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r34": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "142",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_142&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r35": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "145",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_145_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r36": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "145",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_145&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r37": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "147",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_147_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r38": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "147",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_147_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r39": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "148",
   "Subparagraph": "d",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_148_d_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r40": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Section": "Scope",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS19_g2-7_TI",
   "URIDate": "2025-03-27"
  },
  "r41": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "36",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=2&code=ifrs-tx-2025-en-r&anchor=para_36_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r42": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "36",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=2&code=ifrs-tx-2025-en-r&anchor=para_36_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r43": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "36",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=2&code=ifrs-tx-2025-en-r&anchor=para_36_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r44": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=2&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS02_g36-39_TI",
   "URIDate": "2025-03-27"
  },
  "r45": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "21",
   "IssueDate": "2025-01-01",
   "Paragraph": "52",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2025-en-r&anchor=para_52_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r46": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "21",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2025-en-r&anchor=para_53&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r47": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "21",
   "IssueDate": "2025-01-01",
   "Paragraph": "57",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2025-en-r&anchor=para_57_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r48": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "21",
   "IssueDate": "2025-01-01",
   "Paragraph": "A19",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2025-en-r&anchor=para_A19_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r49": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "18",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_18_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r50": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "18",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_18&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r51": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "19",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_19_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r52": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "19",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_19_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r53": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "19",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_19&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r54": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "20",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_20&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r55": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Section": "Disclosures",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS24_g13-24_TI",
   "URIDate": "2025-03-27"
  },
  "r56": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "26",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2025-en-r&anchor=para_35_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r57": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "26",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "Subparagraph": "b",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2025-en-r&anchor=para_35_b_iv&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r58": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "26",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "Subparagraph": "b",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2025-en-r&anchor=para_35_b_vi&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r59": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "26",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "Subparagraph": "b",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2025-en-r&anchor=para_35_b_viii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r60": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Paragraph": "10",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&anchor=para_10&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r61": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Paragraph": "16",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&anchor=para_16_b_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r62": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Paragraph": "16",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&anchor=para_16_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r63": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Paragraph": "16",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&anchor=para_16_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r64": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&anchor=para_17_b_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r65": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&anchor=para_17_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r66": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&anchor=para_17_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r67": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "32",
   "IssueDate": "2025-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=32&code=ifrs-tx-2025-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r68": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2025-01-01",
   "Paragraph": "66",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2025-en-r&anchor=para_66&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r69": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2025-01-01",
   "Paragraph": "67",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2025-en-r&anchor=para_67&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r70": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2025-01-01",
   "Paragraph": "70",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2025-en-r&anchor=para_70_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r71": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS33_g70-73A_TI",
   "URIDate": "2025-03-27"
  },
  "r72": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "126",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_126&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r73": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "130",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_130_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r74": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "130",
   "Subparagraph": "d",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_130_d_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r75": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "130",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_130_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r76": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "130",
   "Subparagraph": "f",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_130_f_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r77": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "130",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_130_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r78": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "130",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_130&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r79": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "134",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_134_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r80": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "134",
   "Subparagraph": "d",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_134_d_v&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r81": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "134",
   "Subparagraph": "e",
   "Clause": "iiA",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_134_e_iiA&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r82": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "134",
   "Subparagraph": "e",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_134_e_v&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r83": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "134",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_134&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r84": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "135",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_135_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r85": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "135",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_135&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r86": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS36_g126-137_TI",
   "URIDate": "2025-03-27"
  },
  "r87": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2025-01-01",
   "Paragraph": "84",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2025-en-r&anchor=para_84_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r88": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2025-01-01",
   "Paragraph": "84",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2025-en-r&anchor=para_84_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r89": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2025-01-01",
   "Paragraph": "84",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2025-en-r&anchor=para_84_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r90": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2025-01-01",
   "Paragraph": "84",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2025-en-r&anchor=para_84_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r91": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2025-01-01",
   "Paragraph": "84",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2025-en-r&anchor=para_84&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r92": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2025-01-01",
   "Paragraph": "86",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2025-en-r&anchor=para_86&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r93": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2025-01-01",
   "Paragraph": "88",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2025-en-r&anchor=para_88&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r94": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2025-01-01",
   "Paragraph": "89",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2025-en-r&anchor=para_89&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r95": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r96": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_e_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r97": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_e_iv&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r98": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_e_v&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r99": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_e_vi&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r100": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "vii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_e_vii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r101": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r102": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r103": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS38_g118-128_TI",
   "URIDate": "2025-03-27"
  },
  "r104": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "39",
   "IssueDate": "2025-01-01",
   "Paragraph": "102",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=39&code=ifrs-tx-2025-en-r&anchor=para_102_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r105": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "39",
   "IssueDate": "2025-01-01",
   "Paragraph": "86",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=39&code=ifrs-tx-2025-en-r&anchor=para_86_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r106": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "39",
   "IssueDate": "2025-01-01",
   "Paragraph": "86",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=39&code=ifrs-tx-2025-en-r&anchor=para_86_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r107": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2025-01-01",
   "Paragraph": "32A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2025-en-r&anchor=para_32A&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r108": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2025-01-01",
   "Paragraph": "76",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2025-en-r&anchor=para_76_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r109": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2025-01-01",
   "Paragraph": "76",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2025-en-r&anchor=para_76&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r110": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2025-en-r&anchor=para_79_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r111": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "Subparagraph": "d",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2025-en-r&anchor=para_79_d_v&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r112": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2025-en-r&anchor=para_79_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r113": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2025-01-01",
   "Paragraph": "50",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2025-en-r&anchor=para_50&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r114": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2025-en-r&anchor=para_54_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r115": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2025-01-01",
   "Paragraph": "55",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2025-en-r&anchor=para_55_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r116": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "10",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_10&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r117": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "25",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_25&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r118": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_28&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r119": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "31",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_31&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r120": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r121": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "39",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_39&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r122": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "44H",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_44H_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r123": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "45",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_45&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r124": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "46",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_46&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r125": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "50",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_50_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r126": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "30",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=8&code=ifrs-tx-2025-en-r&anchor=para_30_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r127": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "24",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2025-en-r&anchor=para_24_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r128": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "24",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2025-en-r&anchor=para_24_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r129": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "32",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2025-en-r&anchor=para_32_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r130": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "32",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2025-en-r&anchor=para_32_a_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r131": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "10",
   "IssueDate": "2025-01-01",
   "Paragraph": "22",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=10&code=ifrs-tx-2025-en-r&anchor=para_22&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r132": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "1",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_1&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r133": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "12",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_12_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r134": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "12",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_12_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r135": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "12",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_12_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r136": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "19B",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_19B_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r137": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "19B",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_19B_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r138": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "2",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_2_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r139": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "2",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_2_b_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r140": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "21",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_21_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r141": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "21",
   "Subparagraph": "a",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_21_a_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r142": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "21",
   "Subparagraph": "a",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_21_a_iv&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r143": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B12_a&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r144": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B12_b_i&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r145": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B12_b_ii&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r146": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B12_b_iii&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r147": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B12_b_iv&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r148": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "ix",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B12_b_ix&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r149": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B12_b_v&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r150": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B12_b_viii&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r151": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B13",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B13_a&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r152": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B13",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B13_d&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r153": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B13",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B13_e&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r154": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B13",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B13_g&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r155": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B4",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B4_a&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r156": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B4",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B4_b&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r157": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B4",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B4_c&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r158": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B4",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B4_d&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r159": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Section": "Investment entity status",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS12_g9A-9B_TI",
   "URIDate": "2025-03-27"
  },
  "r160": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "93",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_93_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r161": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "93",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_93_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r162": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "93",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_93_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r163": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "93",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_93_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r164": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "93",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_93&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r165": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "14",
   "IssueDate": "2025-01-01",
   "Paragraph": "33",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=14&code=ifrs-tx-2025-en-r&anchor=para_33_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r166": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "115",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_115&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r167": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "120",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_120_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r168": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_33&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r169": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "47",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_47_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r170": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "47",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_47_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r171": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_53_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r172": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_53_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r173": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_53_h&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r174": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "Subparagraph": "j",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_53_j&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r175": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_53&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r176": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "57",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_57&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r177": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "94",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_94&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r178": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "97",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_97&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r179": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "109",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_109&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r180": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "109A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_109A&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r181": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "120",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_120&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r182": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "124",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_124&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r183": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "125",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_125&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r184": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "127",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_127&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r185": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "128",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_128_a_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r186": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "128",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_128_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r187": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "132",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_132_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r188": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "C32",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_C32&doctype=Appendix&subtype=C",
   "URIDate": "2025-03-27"
  },
  "r189": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "45",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2025-en-r&anchor=para_45_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r190": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "45",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2025-en-r&anchor=para_45&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r191": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B64",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B64_c&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r192": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B64",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B64_f&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r193": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B64",
   "Subparagraph": "m",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B64_m&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r194": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B64",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B64&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r195": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B67",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B67_c&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r196": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B67",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B67_d&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r197": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B67",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B67&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r198": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Section": "Disclosures",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS03_g59-63_TI",
   "URIDate": "2025-03-27"
  },
  "r199": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Section": "Disclosures application of paragraphs 59 and 61",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&doctype=Appendix&subtype=B&dita_xref=IFRS03_gB64-B67_TI",
   "URIDate": "2025-03-27"
  },
  "r200": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "5",
   "IssueDate": "2025-01-01",
   "Paragraph": "33",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2025-en-r&anchor=para_33_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r201": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "6",
   "IssueDate": "2025-01-01",
   "Paragraph": "24",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=6&code=ifrs-tx-2025-en-r&anchor=para_24_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r202": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "6",
   "IssueDate": "2025-01-01",
   "Paragraph": "24",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=6&code=ifrs-tx-2025-en-r&anchor=para_24_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r203": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "6",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=6&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS06_g23-25_TI",
   "URIDate": "2025-03-27"
  },
  "r204": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "13C",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_13C_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r205": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "13C",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_13C_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r206": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "13C",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_13C_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r207": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "20",
   "Subparagraph": "a",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_20_a_viii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r208": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "21C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_21C&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r209": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "23B",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_23B_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r210": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "24A",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_24A_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r211": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "24A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_24A&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r212": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "24B",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_24B&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r213": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "24C",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_24C_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r214": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "24C",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_24C_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r215": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "24C",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_24C_b_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r216": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "24C",
   "Subparagraph": "b",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_24C_b_iv&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r217": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "24C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_24C&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r218": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "24E",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_24E_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r219": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "25",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_25&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r220": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_33&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r221": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r222": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35H",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35H_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r223": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35H",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35H&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r224": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35I",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35I&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r225": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35K",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35K&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r226": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35M",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35M_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r227": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35M",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35M&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r228": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "36",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_36&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r229": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "39",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_39_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r230": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "39",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_39_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r231": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "40",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_40_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r232": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "42E",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_42E_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r233": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "42I",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_42I&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r234": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_6&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r235": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "7",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_7&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r236": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "8",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_8_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r237": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "8",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_8_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r238": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "8",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_8_h&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r239": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B2",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B2_a&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r240": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B8",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B8_c&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r241": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B8E",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B8E&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r242": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Section": "Credit risk",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS07_g35A-38_TI",
   "URIDate": "2025-03-27"
  },
  "r243": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Section": "Defined terms",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&doctype=Appendix&subtype=A&dita_xref=IFRS07_APPA_TI",
   "URIDate": "2025-03-27"
  },
  "r244": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "23",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_23_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r245": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "23",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_23_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r246": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "23",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_23_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r247": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "23",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_23_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r248": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "23",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_23_h&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r249": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "23",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_23&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r250": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r251": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r252": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r253": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r254": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r255": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r256": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "32",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_32&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r257": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "33",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_33_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r258": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_33&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r259": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r260": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS08_g20-24_TI",
   "URIDate": "2025-03-27"
  },
  "r261": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "9",
   "IssueDate": "2025-01-01",
   "Paragraph": "6.5.13",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=9&code=ifrs-tx-2025-en-r&anchor=para_6.5.13_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r262": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "9",
   "IssueDate": "2025-01-01",
   "Paragraph": "7.2.34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=9&code=ifrs-tx-2025-en-r&anchor=para_7.2.34&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r263": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "9",
   "IssueDate": "2025-01-01",
   "Paragraph": "7.2.42",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=9&code=ifrs-tx-2025-en-r&anchor=para_7.2.42&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r264": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "SIC",
   "Number": "29",
   "IssueDate": "2025-01-01",
   "Paragraph": "6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=SIC&num=29&code=ifrs-tx-2025-en-r&anchor=para_6&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r265": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "SIC",
   "Number": "29",
   "IssueDate": "2025-01-01",
   "Paragraph": "6A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=SIC&num=29&code=ifrs-tx-2025-en-r&anchor=para_6A&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r266": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "SIC",
   "Number": "29",
   "IssueDate": "2025-01-01",
   "Section": "Consensus",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=SIC&num=29&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=SIC29_g6-7_TI",
   "URIDate": "2025-03-27"
  },
  "r267": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2026-01-01",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "20B",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_20B&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r268": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2026-01-01",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "30A",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_30A_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r269": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "104",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_104&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r270": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "108",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_108_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r271": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "115",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_115_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r272": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "115",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_115_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r273": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "115",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_115_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r274": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "115",
   "Subparagraph": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_115_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r275": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "115",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_115&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r276": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_118&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r277": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "122",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_122_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r278": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "122",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_122_a_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r279": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "122",
   "Subparagraph": "a",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_122_a_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r280": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "122",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_122_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r281": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "124",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_124_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r282": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "124",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_124_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r283": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "124",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_124_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r284": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "124",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_124&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r285": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "129",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_129&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r286": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "133",
   "Subparagraph": "a",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_133_a_iv&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r287": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "138",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_138&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r288": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "160",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_160_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r289": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "160",
   "Subparagraph": "a",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_160_a_iv&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r290": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "160",
   "Subparagraph": "a",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_160_a_vi&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r291": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "160",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_160_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r292": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "160",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_160_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r293": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "160",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_160&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r294": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "162",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_162_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r295": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "164",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_164_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r296": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "164",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_164_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r297": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "164",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_164_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r298": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "168",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_168_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r299": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "169",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_169&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r300": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "170",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_170&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r301": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "176",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_176&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r302": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "180",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_180_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r303": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "190",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_190&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r304": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "192",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_192&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r305": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "194",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_194_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r306": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "194",
   "Subparagraph": "c",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_194_c_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r307": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "194",
   "Subparagraph": "c",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_194_c_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r308": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "194",
   "Subparagraph": "f",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_194_f_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r309": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "194",
   "Subparagraph": "f",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_194_f_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r310": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "194",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_194_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r311": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "197",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_197&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r312": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r313": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r314": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_e_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r315": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "Subparagraph": "e",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_e_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r316": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "Subparagraph": "e",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_e_v&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r317": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "Subparagraph": "e",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_e_vi&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r318": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "Subparagraph": "e",
   "Clause": "vii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_e_vii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r319": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "Subparagraph": "e",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_e_viii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r320": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r321": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r322": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "204",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_204&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r323": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "206",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_206_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r324": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "207",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_207_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r325": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "207",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_207_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r326": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "207",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_207_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r327": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "207",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_207_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r328": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "207",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_207_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r329": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "208",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_208&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r330": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "211",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_211_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r331": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "218",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_218_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r332": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "219",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_219&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r333": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "223",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_223_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r334": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "230",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_230_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r335": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "230",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_230&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r336": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "231",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_231_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r337": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "231",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_231_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r338": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "231",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_231&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r339": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "24",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_24_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r340": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "24",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_24_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r341": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "250",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_250&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r342": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "254",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_254_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r343": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "254",
   "Subparagraph": "d",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_254_d_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r344": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "254",
   "Subparagraph": "e",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_254_e_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r345": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "254",
   "Subparagraph": "f",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_254_f_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r346": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "254",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_254&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r347": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "255",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_255_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r348": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "255",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_255&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r349": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "257",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_257_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r350": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "257",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_257_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r351": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "257",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_257_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r352": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "257",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_257_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r353": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "257",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_257&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r354": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "259",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_259&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r355": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "260",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_260&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r356": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "263",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_263_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r357": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "263",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_263_e_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r358": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "263",
   "Subparagraph": "e",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_263_e_iv&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r359": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "263",
   "Subparagraph": "e",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_263_e_v&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r360": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "263",
   "Subparagraph": "e",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_263_e_vi&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r361": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "263",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_263_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r362": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "263",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_263&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r363": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "269",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_269_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r364": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "269",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_269&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r365": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "271",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_271_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r366": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "271",
   "Subparagraph": "d",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_271_d_v&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r367": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "271",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_271_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r368": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "273",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_273&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r369": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "274",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_274_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r370": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_28_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r371": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_28_a_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r372": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "31",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_31&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r373": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_35_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r374": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_35_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r375": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_35&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r376": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "37",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_37&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r377": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "43",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_43&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r378": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "44",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_44_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r379": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "44",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_44_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r380": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "44",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_44_e_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r381": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "44",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_44_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r382": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "49",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_49&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r383": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "56",
   "Subparagraph": "a",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_56_a_v&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r384": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "56A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_56A&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r385": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "60",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_60_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r386": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "60",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_60&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r387": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "61",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_61&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r388": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "62",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_62_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r389": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "62",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_62_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r390": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "62",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_62_b_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r391": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "62",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_62_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r392": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "62",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_62&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r393": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "64A",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_64A_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r394": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "64B",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_64B&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r395": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "66",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_66_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r396": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "66",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_66&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r397": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "67",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_67&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r398": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "70",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_70&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r399": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "71",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_71_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r400": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "71",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_71&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r401": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "72",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_72_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r402": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "72",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_72_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r403": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "75",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_75_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r404": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "75",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_75_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r405": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "75",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_75_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r406": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "95",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_95_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r407": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "95",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_95_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r408": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "95",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_95&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r409": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B10",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B10_a_i&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r410": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B10",
   "Subparagraph": "a",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B10_a_iv&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r411": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B10",
   "Subparagraph": "a",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B10_a_vi&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r412": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B10",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B10_a&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r413": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B10",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B10&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r414": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B12&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r415": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B13",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B13&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r416": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B17",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B17_a&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r417": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B6&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r418": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B9",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B9_b&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r419": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B9",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B9_e&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r420": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B9",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B9_f&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r421": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2026-01-01",
   "Name": "IFRS",
   "Number": "9",
   "IssueDate": "2025-01-01",
   "Paragraph": "7.2.49",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=9&code=ifrs-tx-2025-en-r&anchor=para_7.2.49&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r422": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "103",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_103&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r423": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "104",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_104&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r424": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "106",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_106_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r425": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_106_d_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r426": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_106_d_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r427": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "106",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_106&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r428": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "106A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_106A&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r429": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "107",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_107&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r430": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "117",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_117&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r431": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "137",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_137_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r432": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_35&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r433": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "41",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_41&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r434": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r435": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r436": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r437": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r438": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r439": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_h&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r440": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r441": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "j",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_j&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r442": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "k",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_k&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r443": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "l",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_l&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r444": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "n",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_n&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r445": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "o",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_o&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r446": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "q",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_q&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r447": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "r",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_r&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r448": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "55",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_55&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r449": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "56",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_56&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r450": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "61",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_61_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r451": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "61",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_61&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r452": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "66",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_66&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r453": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "69",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_69&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r454": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "7",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_7&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r455": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "78",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_78_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r456": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "78",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_78_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r457": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "78",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_78_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r458": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_79_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r459": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_79_a_iv&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r460": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_79_a_vi&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r461": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_79_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r462": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_79&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r463": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "81A",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_81A_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r464": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "81A",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_81A_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r465": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "81A",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_81A_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r466": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "81B",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_81B_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r467": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "81B",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_81B_a_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r468": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "81B",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_81B_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r469": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "81B",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_81B_b_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r470": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "82",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_82_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r471": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "82",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_82_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r472": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "82",
   "Subparagraph": "ba",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_82_ba&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r473": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "82",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_82_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r474": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "82",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_82_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r475": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "82A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_82A&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r476": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "90",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_90&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r477": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "91",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_91_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r478": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "91",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_91_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r479": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "92",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_92&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r480": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "98",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_98_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r481": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "98",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_98_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r482": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "98",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_98_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r483": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "99",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_99&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r484": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "80",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_80_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r485": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "37",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_37_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r486": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "37",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_37_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r487": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "37",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_37_h&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r488": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "137",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_137&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r489": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "138",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_138_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r490": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "138",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_138_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r491": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "142",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_142_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r492": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "147",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_147_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r493": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "32",
   "IssueDate": "2025-01-01",
   "Paragraph": "IE33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=32&code=ifrs-tx-2025-en-r&anchor=para_IE33&doctype=Illustrative%20Examples",
   "URIDate": "2025-03-27"
  },
  "r494": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "127",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_127&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r495": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2025-01-01",
   "Paragraph": "88",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2025-en-r&anchor=para_88&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r496": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "119",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_119_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r497": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "14",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_14_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r498": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "16",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_16_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r499": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_17_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r500": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_17_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r501": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "44C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_44C&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r502": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Section": "A Statement of cash flows for an entity other than a financial institution",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&doctype=Illustrative%20Examples&dita_xref=IAS07_IE_A_TI",
   "URIDate": "2025-03-27"
  },
  "r503": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Section": "C Reconciliation of liabilities arising from financing activities",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&doctype=Illustrative%20Examples&dita_xref=IAS07_IE_C_TI",
   "URIDate": "2025-03-27"
  },
  "r504": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG63",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2025-en-r&anchor=para_IG63&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r505": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B10",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B10_b&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r506": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "93",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_93_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r507": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "94",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_94&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r508": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "B6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_B6&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r509": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "IE60",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_IE60&doctype=Illustrative%20Examples",
   "URIDate": "2025-03-27"
  },
  "r510": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "IE63",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_IE63&doctype=Illustrative%20Examples",
   "URIDate": "2025-03-27"
  },
  "r511": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "B89",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_B89_a&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r512": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "B89",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_B89_b&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r513": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "B89",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_B89_c&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r514": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_53&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r515": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "113",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_113_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r516": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "96",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_96_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r517": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "96",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_96_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r518": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B64",
   "Subparagraph": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B64_i&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r519": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B64",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B64&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r520": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "IE72",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_IE72&doctype=Illustrative%20Examples",
   "URIDate": "2025-03-27"
  },
  "r521": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35H",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35H&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r522": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35M",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35M&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r523": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35N",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35N&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r524": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "40",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_40_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r525": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_6&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r526": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B11",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B11_d&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r527": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B11",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B11&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r528": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B11D",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B11D&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r529": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B35",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B35_c&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r530": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B35",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B35_e&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r531": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B35",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B35_g&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r532": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B35&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r533": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG20B",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_IG20B&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r534": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG20C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_IG20C&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r535": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG20D",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_IG20D&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r536": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG31A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_IG31A&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r537": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG32",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_IG32&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r538": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG40B",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_IG40B&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r539": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "23",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_23&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r540": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r541": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r542": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG4",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_IG4&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r543": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "103",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_103_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r544": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "103",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_103_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r545": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "103",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_103_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r546": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "115",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_115&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r547": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "193",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_193_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r548": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "208",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_208_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r549": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "251",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_251&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r550": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_35_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r551": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_35&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r552": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "66",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_66&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r553": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "71",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_71&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r554": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B9",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B9_b&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r555": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B9",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B9_f&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r556": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "102",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_102&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r557": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "103",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_103&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r558": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "108",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_108&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r559": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "68",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_68&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r560": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "78",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_78_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r561": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "78",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_78_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r562": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "82A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_82A&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r563": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_IG6&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r564": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12"
  },
  "r565": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b"
  },
  "r566": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r567": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r568": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "15",
   "Subsection": "d-3"
  },
  "r569": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-K",
   "Number": "249",
   "Section": "310"
  },
  "r570": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Number": "249",
   "Section": "220",
   "Subsection": "f"
  },
  "r571": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16",
   "Subsection": "J",
   "Paragraph": "a"
  },
  "r572": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K"
  },
  "r573": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r574": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r575": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r576": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r577": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "2"
  },
  "r578": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "1"
  },
  "r579": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "2"
  },
  "r580": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "i"
  },
  "r581": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r582": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r583": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1"
  },
  "r584": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r585": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r586": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r587": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r588": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r589": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r590": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r591": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r592": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "2"
  },
  "r593": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Number": "249",
   "Section": "240",
   "Subsection": "f"
  },
  "r594": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a"
  },
  "r595": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r596": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r597": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r598": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r599": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r600": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r601": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r602": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r603": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "b"
  },
  "r604": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a"
  },
  "r605": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r606": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r607": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r608": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r609": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r610": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r611": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r612": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r613": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "b"
  },
  "r614": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Section": "13",
   "Subsection": "a-1"
  },
  "r615": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v"
  },
  "r616": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "1"
  },
  "r617": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r618": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r619": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "B",
   "Clause": "1",
   "Subclause": "ii"
  },
  "r620": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "i"
  },
  "r621": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "ii"
  },
  "r622": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "iii"
  },
  "r623": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "iv"
  },
  "r624": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "v"
  },
  "r625": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "vi"
  },
  "r626": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iv"
  },
  "r627": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "vi"
  },
  "r628": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "3"
  },
  "r629": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "4"
  },
  "r630": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "i"
  },
  "r631": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "ii"
  },
  "r632": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iii"
  },
  "r633": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iv"
  },
  "r634": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6"
  },
  "r635": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6",
   "Subparagraph": "i"
  },
  "r636": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w"
  },
  "r637": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1"
  },
  "r638": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r639": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r640": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r641": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r642": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r643": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r644": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r645": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r646": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "2"
  },
  "r647": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "1"
  },
  "r648": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2"
  },
  "r649": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "A"
  },
  "r650": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "C"
  },
  "r651": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "D"
  },
  "r652": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "E"
  },
  "r653": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "F"
  },
  "r654": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a"
  },
  "r655": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "1"
  },
  "r656": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "A"
  },
  "r657": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "B"
  },
  "r658": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "C"
  },
  "r659": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "D"
  },
  "r660": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r661": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106"
  },
  "r662": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r663": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r664": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r665": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r666": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "2"
  },
  "r667": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "1"
  },
  "r668": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "2"
  },
  "r669": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "i"
  },
  "r670": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r671": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r672": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Number": "229",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1"
  },
  "r673": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "A",
   "Number": "229"
  },
  "r674": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "B",
   "Clause": "1",
   "Number": "229"
  },
  "r675": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "B",
   "Clause": "1",
   "Subclause": "i",
   "Number": "229"
  },
  "r676": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r677": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "405"
  },
  "r678": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "80",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_80&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r679": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_81_g_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r680": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "81",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_81&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r681": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "37",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_37&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r682": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r683": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r684": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "135",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_135_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r685": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "144",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_144&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r686": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "145",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_145&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r687": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "57",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_57_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r688": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "9",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_9&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r689": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "37",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=2&code=ifrs-tx-2025-en-r&anchor=para_37&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r690": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "20",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=20&code=ifrs-tx-2025-en-r&anchor=para_28&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r691": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "127",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_127&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r692": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2025-01-01",
   "Paragraph": "84",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2025-en-r&anchor=para_84&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r693": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r694": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r695": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "119",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_119&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r696": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2025-en-r&anchor=para_79_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r697": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2025-en-r&anchor=para_54_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r698": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "14",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_14&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r699": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "16",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_16&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r700": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_17&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r701": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "20",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_20_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r702": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "20",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_20_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r703": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "20",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_20_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r704": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "20",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_20&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r705": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "45",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_45&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r706": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "93",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_93_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r707": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "93",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_93_h&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r708": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B64",
   "Subparagraph": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B64_i&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r709": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "39",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_39&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r710": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "7",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_7&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r711": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r712": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "10",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_10_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r713": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "104",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_104&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r714": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_106_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r715": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "106",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_106&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r716": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "108",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_108&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r717": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "112",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_112_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r718": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "117",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_117&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r719": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "55",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_55&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r720": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "78",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_78_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r721": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "78",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_78&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r722": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_79_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r723": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "82A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_82A&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r724": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "85",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_85&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r725": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_IG6&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  }
 }
}
