XML 210 R102.htm IDEA: XBRL DOCUMENT v3.25.1
Taxes - Income tax - Additional Information (Details)
12 Months Ended
Jan. 01, 2022
Dec. 31, 2024
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Disclosure of detailed information about income tax [Line Items]          
Statutory tax rate   35.00% 35.00% 35.00%  
Presumptive income tax         0.00%
Applicable tax rate for fixed assets 35        
Description of tax losses carry forward   12 taxable years      
Ecopetrol S.A. and Hocol          
Disclosure of detailed information about income tax [Line Items]          
Applicable tax rate for fixed assets   35      
Ecopetrol Group          
Disclosure of detailed information about income tax [Line Items]          
Statutory tax rate   35.00% 35.00%    
Ecopetrol Group | Free trade zone          
Disclosure of detailed information about income tax [Line Items]          
Presumptive income, percentage on beginning equity   20.00% 15.00%    
Free trade zone          
Disclosure of detailed information about income tax [Line Items]          
Statutory tax rate   20.00%      
Free zone Legal Stability Agreement (LSA) | Ecopetrol Group          
Disclosure of detailed information about income tax [Line Items]          
Statutory tax rate   15.00%      
Brazil | Ecopetrol Group          
Disclosure of detailed information about income tax [Line Items]          
Statutory tax rate   34.00%      
Chile | Ecopetrol Group          
Disclosure of detailed information about income tax [Line Items]          
Statutory tax rate   27.00%      
Peru country | Ecopetrol Group          
Disclosure of detailed information about income tax [Line Items]          
Statutory tax rate   29.50%      
USA | Ecopetrol Group          
Disclosure of detailed information about income tax [Line Items]          
Statutory tax rate   21.00%      
2022 | Colombia          
Disclosure of detailed information about income tax [Line Items]          
Statutory tax rate     35.00%