{
 "version": "2.2",
 "instance": {
  "pbrfs2q24usd_6ka.htm": {
   "nsprefix": "pbr",
   "nsuri": "http://petrobras.com/20240630",
   "dts": {
    "schema": {
     "local": [
      "pbr-20240630.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/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/dtr/type/2020-01-21/types.xsd",
      "https://www.xbrl.org/dtr/type/2022-03-31/types.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-roles-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-types-2023.xsd",
      "https://xbrl.ifrs.org/taxonomy/2023-03-23/full_ifrs/full_ifrs-cor_2023-03-23.xsd",
      "https://xbrl.sec.gov/country/2023/country-2023.xsd",
      "https://xbrl.sec.gov/currency/2023/currency-2023.xsd",
      "https://xbrl.sec.gov/dei/2023/dei-2023.xsd"
     ]
    },
    "calculationLink": {
     "local": [
      "pbr-20240630_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "pbr-20240630_def.xml"
     ]
    },
    "labelLink": {
     "local": [
      "pbr-20240630_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "pbr-20240630_pre.xml"
     ]
    },
    "inline": {
     "local": [
      "pbrfs2q24usd_6ka.htm"
     ]
    }
   },
   "keyStandard": 259,
   "keyCustom": 450,
   "axisStandard": 46,
   "axisCustom": 5,
   "memberStandard": 56,
   "memberCustom": 260,
   "hidden": {
    "total": 287,
    "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full": 135,
    "http://petrobras.com/20240630": 145,
    "http://xbrl.sec.gov/dei/2023": 7
   },
   "contextCount": 1149,
   "entityCount": 1,
   "segmentCount": 336,
   "elementCount": 1247,
   "unitCount": 10,
   "baseTaxonomies": {
    "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full": 1973,
    "http://xbrl.sec.gov/dei/2023": 14
   },
   "report": {
    "R1": {
     "role": "http://petrobras.com/role/Cover",
     "longName": "00000001 - Document - Cover",
     "shortName": "Cover",
     "isDefault": "true",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "b",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "b",
       "p",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R2": {
     "role": "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition",
     "longName": "00000002 - Statement - Unaudited Condensed Consolidated Statements of Financial Position",
     "shortName": "Unaudited Condensed Consolidated Statements of Financial Position",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "2",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:CashAndCashEquivalents",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:Inventories",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R3": {
     "role": "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome",
     "longName": "00000003 - Statement - Unaudited Condensed Consolidated Statements of Income",
     "shortName": "Unaudited Condensed Consolidated Statements of Income",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "3",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:Revenue",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:TaxExpenseOtherThanIncomeTaxExpense",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R4": {
     "role": "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome",
     "longName": "00000004 - Statement - Unaudited Condensed Consolidated Statements of Comprehensive Income",
     "shortName": "Unaudited Condensed Consolidated Statements of Comprehensive Income",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "4",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:ProfitLoss",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "pbr:ActuarialOtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans2",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R5": {
     "role": "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows",
     "longName": "00000005 - Statement - Unaudited Condensed Consolidated Statements of Cash Flows",
     "shortName": "Unaudited Condensed Consolidated Statements of Cash Flows",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "5",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:ProfitLoss",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:AdjustmentForPensionAndMedicalBenefitActuarialExpenses",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R6": {
     "role": "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity",
     "longName": "00000006 - Statement - Unaudited Condensed Consolidated Statements of Changes in Shareholders' Equity",
     "shortName": "Unaudited Condensed Consolidated Statements of Changes in Shareholders' Equity",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "6",
     "firstAnchor": {
      "contextRef": "AsOf2022-12-31_custom_IssuedCapitalGrossMember",
      "name": "ifrs-full:Equity",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2022-12-31_custom_IssuedCapitalGrossMember",
      "name": "ifrs-full:Equity",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R7": {
     "role": "http://petrobras.com/role/BasisOfPreparation",
     "longName": "00000007 - Disclosure - Basis of preparation",
     "shortName": "Basis of preparation",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "7",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R8": {
     "role": "http://petrobras.com/role/MaterialAccountingPolicies",
     "longName": "00000008 - Disclosure - Material accounting policies",
     "shortName": "Material accounting policies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "8",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfSummaryOfSignificantAccountingPoliciesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfSummaryOfSignificantAccountingPoliciesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R9": {
     "role": "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecurities",
     "longName": "00000009 - Disclosure - Cash and cash equivalents and marketable securities",
     "shortName": "Cash and cash equivalents and marketable securities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "9",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfCashAndCashEquivalentsAndMarketableSecuritiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfCashAndCashEquivalentsAndMarketableSecuritiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R10": {
     "role": "http://petrobras.com/role/SalesRevenues",
     "longName": "00000010 - Disclosure - Sales revenues",
     "shortName": "Sales revenues",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "10",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfRevenueExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfRevenueExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R11": {
     "role": "http://petrobras.com/role/CostsAndExpensesByNature",
     "longName": "00000011 - Disclosure - Costs and expenses by nature",
     "shortName": "Costs and expenses by nature",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "11",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R12": {
     "role": "http://petrobras.com/role/OtherIncomeAndExpensesNet",
     "longName": "00000012 - Disclosure - Other income and expenses, net",
     "shortName": "Other income and expenses, net",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "12",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R13": {
     "role": "http://petrobras.com/role/NetFinanceIncomeExpense",
     "longName": "00000013 - Disclosure - Net finance income (expense)",
     "shortName": "Net finance income (expense)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "13",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R14": {
     "role": "http://petrobras.com/role/InformationByOperatingSegment",
     "longName": "00000014 - Disclosure - Information by operating segment",
     "shortName": "Information by operating segment",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "14",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R15": {
     "role": "http://petrobras.com/role/TradeAndOtherReceivables",
     "longName": "00000015 - Disclosure - Trade and other receivables",
     "shortName": "Trade and other receivables",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "15",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfTradeReceivablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfTradeReceivablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R16": {
     "role": "http://petrobras.com/role/Inventories",
     "longName": "00000016 - Disclosure - Inventories",
     "shortName": "Inventories",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "16",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfInventoriesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfInventoriesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R17": {
     "role": "http://petrobras.com/role/TradePayables",
     "longName": "00000017 - Disclosure - Trade payables",
     "shortName": "Trade payables",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "17",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfTradePayablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfTradePayablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R18": {
     "role": "http://petrobras.com/role/Taxes",
     "longName": "00000018 - Disclosure - Taxes",
     "shortName": "Taxes",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "18",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R19": {
     "role": "http://petrobras.com/role/EmployeeBenefits",
     "longName": "00000019 - Disclosure - Employee benefits",
     "shortName": "Employee benefits",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "19",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfEmployeeBenefitExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfEmployeeBenefitExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R20": {
     "role": "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilities",
     "longName": "00000020 - Disclosure - Provisions for legal proceedings, judicial deposits and contingent liabilities",
     "shortName": "Provisions for legal proceedings, judicial deposits and contingent liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "20",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R21": {
     "role": "http://petrobras.com/role/ProvisionForDecommissioningCosts",
     "longName": "00000021 - Disclosure - Provision for decommissioning costs",
     "shortName": "Provision for decommissioning costs",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "21",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfProvisionForDecommissioningCostExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfProvisionForDecommissioningCostExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R22": {
     "role": "http://petrobras.com/role/OtherAssetsAndLiabilities",
     "longName": "00000022 - Disclosure - Other assets and liabilities",
     "shortName": "Other assets and liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "22",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfOtherAssetsAndLiabilitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfOtherAssetsAndLiabilitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R23": {
     "role": "http://petrobras.com/role/PropertyPlantAndEquipment",
     "longName": "00000023 - Disclosure - Property, plant and equipment",
     "shortName": "Property, plant and equipment",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "23",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfPropertyPlantAndEquipmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfPropertyPlantAndEquipmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R24": {
     "role": "http://petrobras.com/role/IntangibleAssets",
     "longName": "00000024 - Disclosure - Intangible assets",
     "shortName": "Intangible assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "24",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R25": {
     "role": "http://petrobras.com/role/Impairment",
     "longName": "00000025 - Disclosure - Impairment",
     "shortName": "Impairment",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "25",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfImpairmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfImpairmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R26": {
     "role": "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReserves",
     "longName": "00000026 - Disclosure - Exploration and evaluation of oil and gas reserves",
     "shortName": "Exploration and evaluation of oil and gas reserves",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "26",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R27": {
     "role": "http://petrobras.com/role/CollateralForCrudeOilExplorationConcessionAgreements",
     "longName": "00000027 - Disclosure - Collateral for crude oil exploration concession agreements",
     "shortName": "Collateral for crude oil exploration concession agreements",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "27",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfCollateralForCrudeOilExplorationConcessionAgreementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfCollateralForCrudeOilExplorationConcessionAgreementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R28": {
     "role": "http://petrobras.com/role/Investments",
     "longName": "00000028 - Disclosure - Investments",
     "shortName": "Investments",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "28",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfInvestmentsFinancialStatementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfInvestmentsFinancialStatementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R29": {
     "role": "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactions",
     "longName": "00000029 - Disclosure - Disposal of assets and other transactions",
     "shortName": "Disposal of assets and other transactions",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "29",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfNoncurrentAssetHeldForSaleAndDiscontinuedOperationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfNoncurrentAssetHeldForSaleAndDiscontinuedOperationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R30": {
     "role": "http://petrobras.com/role/FinanceDebt",
     "longName": "00000030 - Disclosure - Finance debt",
     "shortName": "Finance debt",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "30",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfDebtSecurityExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfDebtSecurityExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R31": {
     "role": "http://petrobras.com/role/LeaseLiability",
     "longName": "00000031 - Disclosure - Lease liability",
     "shortName": "Lease liability",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "31",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfLeasesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfLeasesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R32": {
     "role": "http://petrobras.com/role/Equity",
     "longName": "00000032 - Disclosure - Equity",
     "shortName": "Equity",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "32",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R33": {
     "role": "http://petrobras.com/role/FinancialRiskManagement",
     "longName": "00000033 - Disclosure - Financial risk management",
     "shortName": "Financial risk management",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "33",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R34": {
     "role": "http://petrobras.com/role/RelatedPartyTransactions",
     "longName": "00000034 - Disclosure - Related party transactions",
     "shortName": "Related party transactions",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "34",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfRelatedPartyExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfRelatedPartyExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R35": {
     "role": "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlows",
     "longName": "00000035 - Disclosure - Supplemental information on statement of cash flows",
     "shortName": "Supplemental information on statement of cash flows",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "35",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfDetailedInformationOfSupplementalCashFlowInformationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfDetailedInformationOfSupplementalCashFlowInformationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R36": {
     "role": "http://petrobras.com/role/SubsequentEvents",
     "longName": "00000036 - Disclosure - Subsequent events",
     "shortName": "Subsequent events",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "36",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R37": {
     "role": "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesTables",
     "longName": "00000037 - Disclosure - Cash and cash equivalents and marketable securities (Tables)",
     "shortName": "Cash and cash equivalents and marketable securities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "37",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfCashAndCashEquivalentsAndMarketableSecuritiesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfCashAndCashEquivalentsAndMarketableSecuritiesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R38": {
     "role": "http://petrobras.com/role/SalesRevenuesTables",
     "longName": "00000038 - Disclosure - Sales revenues (Tables)",
     "shortName": "Sales revenues (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "38",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfSalesRevenuesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfSalesRevenuesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R39": {
     "role": "http://petrobras.com/role/CostsAndExpensesByNatureTables",
     "longName": "00000039 - Disclosure - Costs and expenses by nature (Tables)",
     "shortName": "Costs and expenses by nature (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "39",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfCostOfSalesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfCostOfSalesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R40": {
     "role": "http://petrobras.com/role/OtherIncomeAndExpensesNetTables",
     "longName": "00000040 - Disclosure - Other income and expenses, net (Tables)",
     "shortName": "Other income and expenses, net (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "40",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfDetailedInformationAboutOtherIncomeAndExpensesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfDetailedInformationAboutOtherIncomeAndExpensesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R41": {
     "role": "http://petrobras.com/role/NetFinanceIncomeExpenseTables",
     "longName": "00000041 - Disclosure - Net finance income (expense) (Tables)",
     "shortName": "Net finance income (expense) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "41",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfDetailedInformationAboutFinanceIncomeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfDetailedInformationAboutFinanceIncomeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R42": {
     "role": "http://petrobras.com/role/InformationByOperatingSegmentTables",
     "longName": "00000042 - Disclosure - Information by operating segment (Tables)",
     "shortName": "Information by operating segment (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "42",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfOperatingSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfOperatingSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R43": {
     "role": "http://petrobras.com/role/TradeAndOtherReceivablesTables",
     "longName": "00000043 - Disclosure - Trade and other receivables (Tables)",
     "shortName": "Trade and other receivables (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "43",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfTradeAndOtherReceivablesNetExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfTradeReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfTradeAndOtherReceivablesNetExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfTradeReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R44": {
     "role": "http://petrobras.com/role/InventoriesTables",
     "longName": "00000044 - Disclosure - Inventories (Tables)",
     "shortName": "Inventories (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "44",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfDetailedInformationAboutInventoriesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfDetailedInformationAboutInventoriesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R45": {
     "role": "http://petrobras.com/role/TradePayablesTables",
     "longName": "00000045 - Disclosure - Trade payables (Tables)",
     "shortName": "Trade payables (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "45",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfTradePayablesExplanatoryTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfTradePayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfTradePayablesExplanatoryTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfTradePayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R46": {
     "role": "http://petrobras.com/role/TaxesTables",
     "longName": "00000046 - Disclosure - Taxes (Tables)",
     "shortName": "Taxes (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "46",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfIncomeTaxExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfIncomeTaxExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R47": {
     "role": "http://petrobras.com/role/EmployeeBenefitsTables",
     "longName": "00000047 - Disclosure - Employee benefits (Tables)",
     "shortName": "Employee benefits (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "47",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfBenefitsIncludeSalariesPostEmploymentBenefitsTerminationBenefitsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfBenefitsIncludeSalariesPostEmploymentBenefitsTerminationBenefitsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R48": {
     "role": "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesTables",
     "longName": "00000048 - Disclosure - Provisions for legal proceedings, judicial deposits and contingent liabilities (Tables)",
     "shortName": "Provisions for legal proceedings, judicial deposits and contingent liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "48",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfDetailedInformationRelatingToProvisionForLegalProceedingsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfDetailedInformationRelatingToProvisionForLegalProceedingsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R49": {
     "role": "http://petrobras.com/role/ProvisionForDecommissioningCostsTables",
     "longName": "00000049 - Disclosure - Provision for decommissioning costs (Tables)",
     "shortName": "Provision for decommissioning costs (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "49",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DescriptionOfProvisionForDecommissioningProductionAreaExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfProvisionForDecommissioningCostExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DescriptionOfProvisionForDecommissioningProductionAreaExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfProvisionForDecommissioningCostExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R50": {
     "role": "http://petrobras.com/role/OtherAssetsAndLiabilitiesTables",
     "longName": "00000050 - Disclosure - Other assets and liabilities (Tables)",
     "shortName": "Other assets and liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "50",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:SchedueOfOtherAssetsAndLiabilitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfOtherAssetsAndLiabilitiesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:SchedueOfOtherAssetsAndLiabilitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfOtherAssetsAndLiabilitiesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R51": {
     "role": "http://petrobras.com/role/PropertyPlantAndEquipmentTables",
     "longName": "00000051 - Disclosure - Property, plant and equipment (Tables)",
     "shortName": "Property, plant and equipment (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "51",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfPropertyPlantAndEquipmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfPropertyPlantAndEquipmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R52": {
     "role": "http://petrobras.com/role/IntangibleAssetsTables",
     "longName": "00000052 - Disclosure - Intangible assets (Tables)",
     "shortName": "Intangible assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "52",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R53": {
     "role": "http://petrobras.com/role/ImpairmentTables",
     "longName": "00000053 - Disclosure - Impairment (Tables)",
     "shortName": "Impairment (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "53",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfImpairmentLossesReversalsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfImpairmentExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfImpairmentLossesReversalsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfImpairmentExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R54": {
     "role": "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesTables",
     "longName": "00000054 - Disclosure - Exploration and evaluation of oil and gas reserves (Tables)",
     "shortName": "Exploration and evaluation of oil and gas reserves (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "54",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfDetailedInformationOfExplorationAndEvaluationOfOilAndGasExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfDetailedInformationOfExplorationAndEvaluationOfOilAndGasExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R55": {
     "role": "http://petrobras.com/role/InvestmentsTables",
     "longName": "00000055 - Disclosure - Investments (Tables)",
     "shortName": "Investments (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "55",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfInvestmentsAccountedForUsingEquityMethodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfInvestmentsFinancialStatementsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfInvestmentsAccountedForUsingEquityMethodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfInvestmentsFinancialStatementsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R56": {
     "role": "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsTables",
     "longName": "00000056 - Disclosure - Disposal of assets and other transactions (Tables)",
     "shortName": "Disposal of assets and other transactions (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "56",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfAssetsAndLiabilitiesOfDisposalGroupsClassifiedAsHeldForSaleExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfNoncurrentAssetHeldForSaleAndDiscontinuedOperationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DisclosureOfAssetsAndLiabilitiesOfDisposalGroupsClassifiedAsHeldForSaleExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfNoncurrentAssetHeldForSaleAndDiscontinuedOperationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R57": {
     "role": "http://petrobras.com/role/FinanceDebtTables",
     "longName": "00000057 - Disclosure - Finance debt (Tables)",
     "shortName": "Finance debt (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "57",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfBorrowingsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DisclosureOfBorrowingsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R58": {
     "role": "http://petrobras.com/role/LeaseLiabilityTables",
     "longName": "00000058 - Disclosure - Lease liability (Tables)",
     "shortName": "Lease liability (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "58",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfChangesInTheBalanceOfLeaseLiabilitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfChangesInTheBalanceOfLeaseLiabilitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R59": {
     "role": "http://petrobras.com/role/EquityTables",
     "longName": "00000059 - Disclosure - Equity (Tables)",
     "shortName": "Equity (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "59",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfProftReservesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfProftReservesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R60": {
     "role": "http://petrobras.com/role/FinancialRiskManagementTables",
     "longName": "00000060 - Disclosure - Financial risk management (Tables)",
     "shortName": "Financial risk management (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "60",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfAssetsAndLiabilitiesStatementOfFinancialPositionTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfAssetsAndLiabilitiesStatementOfFinancialPositionTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R61": {
     "role": "http://petrobras.com/role/RelatedPartyTransactionsTables",
     "longName": "00000061 - Disclosure - Related party transactions (Tables)",
     "shortName": "Related party transactions (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "61",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfTransactionsBetweenRelatedPartyTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfTransactionsBetweenRelatedPartyTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R62": {
     "role": "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsTables",
     "longName": "00000062 - Disclosure - Supplemental information on statement of cash flows (Tables)",
     "shortName": "Supplemental information on statement of cash flows (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "62",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfDetailedInformationAboutInSupplementalInformationOnStatementOfCashFlowsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfDetailedInformationOfSupplementalCashFlowInformationExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfDetailedInformationAboutInSupplementalInformationOnStatementOfCashFlowsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "pbr:DisclosureOfDetailedInformationOfSupplementalCashFlowInformationExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R63": {
     "role": "http://petrobras.com/role/SubsequentEventsTables",
     "longName": "00000063 - Disclosure - Subsequent events (Tables)",
     "shortName": "Subsequent events (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "63",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfDistributionRemunerationShareholdersTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ScheduleOfDistributionRemunerationShareholdersTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R64": {
     "role": "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails",
     "longName": "00000064 - Disclosure - Cash and cash equivalents and Marketable securities (Details)",
     "shortName": "Cash and cash equivalents and Marketable securities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "64",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:Cash",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
       "pbr:DisclosureOfCashAndCashEquivalentsAndMarketableSecuritiesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:Cash",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
       "pbr:DisclosureOfCashAndCashEquivalentsAndMarketableSecuritiesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R65": {
     "role": "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails1",
     "longName": "00000065 - Disclosure - Cash and cash equivalents and Marketable securities (Details 1)",
     "shortName": "Cash and cash equivalents and Marketable securities (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "65",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:FinancialAssetsAtFairValueThroughProfitOrLoss",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfMarketableSecuritiesExplanatory",
       "pbr:DisclosureOfCashAndCashEquivalentsAndMarketableSecuritiesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:FinancialAssetsAtFairValueThroughProfitOrLoss",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfMarketableSecuritiesExplanatory",
       "pbr:DisclosureOfCashAndCashEquivalentsAndMarketableSecuritiesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R66": {
     "role": "http://petrobras.com/role/SalesRevenuesDetails",
     "longName": "00000066 - Disclosure - Sales revenues (Details)",
     "shortName": "Sales revenues (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "66",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:Revenue",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30_custom_DomesticMarketMember",
      "name": "ifrs-full:Revenue",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfSalesRevenuesExplanatory",
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R67": {
     "role": "http://petrobras.com/role/CostsAndExpensesByNatureDetails",
     "longName": "00000067 - Disclosure - Costs and expenses by nature (Details)",
     "shortName": "Costs and expenses by nature (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "67",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30_custom_CostOfSaleMember",
      "name": "pbr:MaterialsThirdPartyServicesFreightRentAndOtherRelatedCosts",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfCostOfSalesExplanatory",
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30_custom_CostOfSaleMember",
      "name": "pbr:MaterialsThirdPartyServicesFreightRentAndOtherRelatedCosts",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfCostOfSalesExplanatory",
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R68": {
     "role": "http://petrobras.com/role/CostsAndExpensesByNatureDetails1",
     "longName": "00000068 - Disclosure - Costs and expenses by nature (Details 1)",
     "shortName": "Costs and expenses by nature (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "68",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30_custom_SellingExpensesMember",
      "name": "pbr:MaterialsThirdPartyServicesFreightRentAndOtherRelatedCosts",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationAboutInSellingExpensesExplanatory",
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30_custom_SellingExpensesMember",
      "name": "pbr:MaterialsThirdPartyServicesFreightRentAndOtherRelatedCosts",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationAboutInSellingExpensesExplanatory",
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R69": {
     "role": "http://petrobras.com/role/CostsAndExpensesByNatureDetails2",
     "longName": "00000069 - Disclosure - Costs and expenses by nature (Details 2)",
     "shortName": "Costs and expenses by nature (Details 2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "69",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30_custom_GeneralAndAdministrativeExpensesMember",
      "name": "ifrs-full:ExpenseFromSharebasedPaymentTransactionsWithEmployees",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfGeneralAndAdministrativeExpenseExplanatory",
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30_custom_GeneralAndAdministrativeExpensesMember",
      "name": "ifrs-full:ExpenseFromSharebasedPaymentTransactionsWithEmployees",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfGeneralAndAdministrativeExpenseExplanatory",
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R70": {
     "role": "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails",
     "longName": "00000070 - Disclosure - Other income and expenses, net (Details)",
     "shortName": "Other income and expenses, net (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "70",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:PostemploymentBenefitExpenseDefinedBenefitPlans",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationAboutOtherIncomeAndExpensesExplanatory",
       "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:PostemploymentBenefitExpenseDefinedBenefitPlans",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationAboutOtherIncomeAndExpensesExplanatory",
       "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R71": {
     "role": "http://petrobras.com/role/NetFinanceIncomeExpenseDetails",
     "longName": "00000071 - Disclosure - Net finance income (expense) (Details)",
     "shortName": "Net finance income (expense) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "71",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:FinanceIncome",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "pbr:IncomeFromInvestmentsAndMarketableSecurities",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationAboutFinanceIncomeExpenseExplanatory",
       "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R72": {
     "role": "http://petrobras.com/role/InformationByOperatingSegmentDetails",
     "longName": "00000072 - Disclosure - Information by operating segment (Details)",
     "shortName": "Information by operating segment (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "72",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:Revenue",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "pbr:ThirdParties",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfOperatingSegmentsExplanatory",
       "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R73": {
     "role": "http://petrobras.com/role/InformationByOperatingSegmentDetails1",
     "longName": "00000073 - Disclosure - Information by operating segment (Details 1)",
     "shortName": "Information by operating segment (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "73",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:AdjustmentsForDepreciationAndAmortisationExpense",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfOperatingSegmentsExplanatory1",
       "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30_ifrs-full_OperatingSegmentsMember_custom_ExplorationAndProductionMember",
      "name": "ifrs-full:AdjustmentsForDepreciationAndAmortisationExpense",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfOperatingSegmentsExplanatory1",
       "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R74": {
     "role": "http://petrobras.com/role/InformationByOperatingSegmentDetails3",
     "longName": "00000074 - Disclosure - Information by operating segment (Details 3)",
     "shortName": "Information by operating segment (Details 3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "74",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:CurrentAssets",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:NoncurrentReceivables",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfAssetsOperatingSegmentsExplanatory",
       "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R75": {
     "role": "http://petrobras.com/role/TradeAndOtherReceivablesDetails",
     "longName": "00000075 - Disclosure - Trade and other receivables (Details)",
     "shortName": "Trade and other receivables (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "75",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:TradeAndOtherReceivables",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfTradeAndOtherReceivablesNetExplanatory",
       "pbr:DisclosureOfTradeReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:TradeAndOtherReceivables",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfTradeAndOtherReceivablesNetExplanatory",
       "pbr:DisclosureOfTradeReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R76": {
     "role": "http://petrobras.com/role/TradeAndOtherReceivablesDetails1",
     "longName": "00000076 - Disclosure - Trade and other receivables (Details 1)",
     "shortName": "Trade and other receivables (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "76",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:TradeReceivables",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfTradeReceivablesOverdueThirdPartieExplanatory",
       "pbr:DisclosureOfTradeReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:ExpectedCreditLosses",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfTradeReceivablesOverdueThirdPartieExplanatory",
       "pbr:DisclosureOfTradeReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R77": {
     "role": "http://petrobras.com/role/TradeAndOtherReceivablesDetails2",
     "longName": "00000077 - Disclosure - Trade and other receivables (Details 2)",
     "shortName": "Trade and other receivables (Details 2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "77",
     "firstAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:AllowanceForImpairmentOfTradesAndOtherReceivable",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfChangesInAllowanceForImpairmentOfTradeAndOtherReceivableExplanatory",
       "pbr:DisclosureOfTradeReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:AllowanceForImpairmentOfTradesAndOtherReceivable",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfChangesInAllowanceForImpairmentOfTradeAndOtherReceivableExplanatory",
       "pbr:DisclosureOfTradeReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R78": {
     "role": "http://petrobras.com/role/TradeAndOtherReceivablesDetailsNarrative",
     "longName": "00000078 - Disclosure - Trade and other receivables (Details Narrative)",
     "shortName": "Trade and other receivables (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "78",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:TradeReceivables",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfTradeReceivablesOverdueThirdPartieExplanatory",
       "pbr:DisclosureOfTradeReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30_custom_AtapuAndSepiafieldsMember",
      "name": "ifrs-full:TradeReceivables",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "pbr:DisclosureOfTradeReceivablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R79": {
     "role": "http://petrobras.com/role/InventoriesDetails",
     "longName": "00000079 - Disclosure - Inventories (Details)",
     "shortName": "Inventories (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "79",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:CurrentCrudeOil",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInventoriesExplanatory",
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:CurrentCrudeOil",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInventoriesExplanatory",
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R80": {
     "role": "http://petrobras.com/role/InventoriesDetailsNarrative",
     "longName": "00000080 - Disclosure - Inventories (Details Narrative)",
     "shortName": "Inventories (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "80",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:ReversalOfInventoryWritedown",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "span",
       "p",
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:ReversalOfInventoryWritedown",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "span",
       "p",
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R81": {
     "role": "http://petrobras.com/role/TradePayablesDetails",
     "longName": "00000081 - Disclosure - Trade payables (Details)",
     "shortName": "Trade payables (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "81",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:TradeAndOtherCurrentPayables",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30_custom_ThirdPartiesInCountryOfBrazilMember",
      "name": "ifrs-full:TradeAndOtherCurrentPayables",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfTradePayablesExplanatoryTableTextBlock",
       "pbr:DisclosureOfTradePayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R82": {
     "role": "http://petrobras.com/role/TradePayablesDetailsNarrative",
     "longName": "00000082 - Disclosure - Trade payables (Details Narrative)",
     "shortName": "Trade payables (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "82",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:TradeAndOtherPayablesToRelatedParties",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "pbr:DisclosureOfTradePayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:TradeAndOtherPayablesToRelatedParties",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "pbr:DisclosureOfTradePayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R83": {
     "role": "http://petrobras.com/role/TaxesDetails",
     "longName": "00000083 - Disclosure - Taxes (Details)",
     "shortName": "Taxes (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "83",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:CurrentTaxAssetsCurrent",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:CurrentTaxAssetsCurrent",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R84": {
     "role": "http://petrobras.com/role/TaxesDetails1",
     "longName": "00000084 - Disclosure - Taxes (Details 1)",
     "shortName": "Taxes (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "84",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:ProfitLossBeforeTax",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "pbr:NominalIncomeTaxesAmount",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfReconciliationBetweenStatutoryIncomeTaxRateAndEffectiveIncomeTaxRateExplanatory",
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R85": {
     "role": "http://petrobras.com/role/TaxesDetails2",
     "longName": "00000085 - Disclosure - Taxes (Details 2)",
     "shortName": "Taxes (Details 2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "85",
     "firstAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:DeferredIncomeTax",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDeferredTaxesExplanatory",
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:DeferredIncomeTax",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDeferredTaxesExplanatory",
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R86": {
     "role": "http://petrobras.com/role/TaxesDetails3",
     "longName": "00000086 - Disclosure - Taxes (Details 3)",
     "shortName": "Taxes (Details 3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "86",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DeferredTaxExpenseIncome",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfCompositionOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DeferredTaxExpenseIncome",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfCompositionOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R87": {
     "role": "http://petrobras.com/role/TaxesDetails4",
     "longName": "00000087 - Disclosure - Taxes (Details 4)",
     "shortName": "Taxes (Details 4)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "87",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:OtherTaxesCurrentAssets",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfOtherTaxesExplanatory",
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:OtherTaxesCurrentAssets",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfOtherTaxesExplanatory",
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R88": {
     "role": "http://petrobras.com/role/TaxesDetails5",
     "longName": "00000088 - Disclosure - Taxes (Details 5)",
     "shortName": "Taxes (Details 5)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "88",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:EnrollmentToProgram",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfLiabilityRelatedToTheTransactionExplanatory",
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:EnrollmentToProgram",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfLiabilityRelatedToTheTransactionExplanatory",
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R89": {
     "role": "http://petrobras.com/role/TaxesDetails6",
     "longName": "00000089 - Disclosure - Taxes (Details 6)",
     "shortName": "Taxes (Details 6)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "89",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:IncomeFromFinesAndPenalties",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfEffectsOrTaxTransactionInStatementOfIncomeExplanatory",
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:IncomeFromFinesAndPenalties",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfEffectsOrTaxTransactionInStatementOfIncomeExplanatory",
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R90": {
     "role": "http://petrobras.com/role/TaxesDetailsNarrative",
     "longName": "00000090 - Disclosure - Taxes (Details Narrative)",
     "shortName": "Taxes (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "90",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:CurrentTaxExpenseIncome",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfReconciliationBetweenStatutoryIncomeTaxRateAndEffectiveIncomeTaxRateExplanatory",
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DutchTaxAuthority",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "pbr:DisclosureOfTaxesReceivablesAndPayablesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R91": {
     "role": "http://petrobras.com/role/EmployeeBenefitsDetails",
     "longName": "00000091 - Disclosure - Employee benefits (Details)",
     "shortName": "Employee benefits (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "91",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:ShorttermEmployeeBenefitsAccruals",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfBenefitsIncludeSalariesPostEmploymentBenefitsTerminationBenefitsExplanatory",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:TerminationBenefits",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfBenefitsIncludeSalariesPostEmploymentBenefitsTerminationBenefitsExplanatory",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R92": {
     "role": "http://petrobras.com/role/EmployeeBenefitsDetails1",
     "longName": "00000092 - Disclosure - Employee benefits (Details 1)",
     "shortName": "Employee benefits (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "92",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:ShorttermEmployeeBenefitsAccruals",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfBenefitsIncludeSalariesPostEmploymentBenefitsTerminationBenefitsExplanatory",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:ShorttermEmployeeBenefitsAccrualsCurrent",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfNetDefinedBenefitLiabilityAssetExplanatory",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R93": {
     "role": "http://petrobras.com/role/EmployeeBenefitsDetails2",
     "longName": "00000093 - Disclosure - Employee benefits (Details 2)",
     "shortName": "Employee benefits (Details 2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "93",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:EmployeeBenefitsExpense",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfRecognizedTheStatementOfIncomeExplanatory",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:EmployeeBenefitsExpense",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfRecognizedTheStatementOfIncomeExplanatory",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R94": {
     "role": "http://petrobras.com/role/EmployeeBenefitsDetails3",
     "longName": "00000094 - Disclosure - Employee benefits (Details 3)",
     "shortName": "Employee benefits (Details 3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "94",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:PostemploymentBenefits",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfBenefitsIncludeSalariesPostEmploymentBenefitsTerminationBenefitsExplanatory",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:PostemploymentBenefitsCurrent",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfPstEmploymentBenefitsTableTextBlock",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R95": {
     "role": "http://petrobras.com/role/EmployeeBenefitsDetails4",
     "longName": "00000095 - Disclosure - Employee benefits (Details 4)",
     "shortName": "Employee benefits (Details 4)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "95",
     "firstAnchor": {
      "contextRef": "From2024-01-012024-06-30_ifrs-full_ActuarialAssumptionOfDiscountRatesMember_custom_MedicalBenefitsMember_custom_IncreaseInBasisPointsMember",
      "name": "pbr:ActuarialAssumptionOfPensionObligationIncreaseDecreaseBasisPoints",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfChangesInDiscountRateExplanatory",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-012024-06-30_ifrs-full_ActuarialAssumptionOfDiscountRatesMember_custom_MedicalBenefitsMember_custom_IncreaseInBasisPointsMember",
      "name": "pbr:ActuarialAssumptionOfPensionObligationIncreaseDecreaseBasisPoints",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfChangesInDiscountRateExplanatory",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R96": {
     "role": "http://petrobras.com/role/EmployeeBenefitsDetails5",
     "longName": "00000096 - Disclosure - Employee benefits (Details 5)",
     "shortName": "Employee benefits (Details 5)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "96",
     "firstAnchor": {
      "contextRef": "From2024-01-012024-06-30_custom_PPSPRMember",
      "name": "pbr:DeficitRegisteredByPetros",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfReconciliationOfDeficitExplanatory",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-012024-06-30_custom_PPSPRMember",
      "name": "pbr:DeficitRegisteredByPetros",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfReconciliationOfDeficitExplanatory",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R97": {
     "role": "http://petrobras.com/role/EmployeeBenefitsDetails6",
     "longName": "00000097 - Disclosure - Employee benefits (Details 6)",
     "shortName": "Employee benefits (Details 6)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "97",
     "firstAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:ActuarialLiability",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfChangesInTheActuarialLiabilitiesFairValueOfAssetsAndAmountsRecognizedInStatementOfFinancialPositionExplanatory",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:ActuarialLiability",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfChangesInTheActuarialLiabilitiesFairValueOfAssetsAndAmountsRecognizedInStatementOfFinancialPositionExplanatory",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R98": {
     "role": "http://petrobras.com/role/EmployeeBenefitsDetails7",
     "longName": "00000098 - Disclosure - Employee benefits (Details 7)",
     "shortName": "Employee benefits (Details 7)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "98",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "pbr:DefinedBenefitObligationCostAndExpenses",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfNetExpensesRelatingToBeenfitPlanExplanatory",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "pbr:DefinedBenefitObligationCostAndExpenses",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfNetExpensesRelatingToBeenfitPlanExplanatory",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R99": {
     "role": "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative",
     "longName": "00000099 - Disclosure - Employee benefits (Details Narrative)",
     "shortName": "Employee benefits (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "99",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:PaymentRelatedToPppProvisioned",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:PaymentRelatedToPppProvisioned",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfEmployeeBenefitExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R100": {
     "role": "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails",
     "longName": "00000100 - Disclosure - Provisions for legal proceedings, judicial deposits and contingent liabilities (Details)",
     "shortName": "Provisions for legal proceedings, judicial deposits and contingent liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "100",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:LegalProceedingsProvision",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationRelatingToProvisionForLegalProceedingsExplanatory",
       "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30_custom_LaborRelatedContingentLiabilityMember",
      "name": "ifrs-full:LegalProceedingsProvision",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationRelatingToProvisionForLegalProceedingsExplanatory",
       "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R101": {
     "role": "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails1",
     "longName": "00000101 - Disclosure - Provisions for legal proceedings, judicial deposits and contingent liabilities (Details 1)",
     "shortName": "Provisions for legal proceedings, judicial deposits and contingent liabilities (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "101",
     "firstAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "ifrs-full:LegalProceedingsProvision",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationRelatingToProvisionForLegalProceedingsExplanatory",
       "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:AdditionalProvisionsOtherProvisions",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfProvisionForLegalProceedingsTableTextBlock",
       "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R102": {
     "role": "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails2",
     "longName": "00000102 - Disclosure - Provisions for legal proceedings, judicial deposits and contingent liabilities (Details 2)",
     "shortName": "Provisions for legal proceedings, judicial deposits and contingent liabilities (Details 2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "102",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:NonCurrentTaxRelatedDeposits",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationAboutJudicialDepositExplanatory",
       "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:NonCurrentTaxRelatedDeposits",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationAboutJudicialDepositExplanatory",
       "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R103": {
     "role": "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails3",
     "longName": "00000103 - Disclosure - Provisions for legal proceedings, judicial deposits and contingent liabilities (Details 3)",
     "shortName": "Provisions for legal proceedings, judicial deposits and contingent liabilities (Details 3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "103",
     "firstAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:JudicialDeposits",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:JudicialDepositsAdditions",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationRelatingToProvisionForJudicialDepositExplanatory",
       "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R104": {
     "role": "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails4",
     "longName": "00000104 - Disclosure - Provisions for legal proceedings, judicial deposits and contingent liabilities (Details 4)",
     "shortName": "Provisions for legal proceedings, judicial deposits and contingent liabilities (Details 4)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "104",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:ContingentLiabilitiesForLegalProceedings",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfContingentLiabilitiesExplanatory",
       "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:ContingentLiabilitiesForLegalProceedings",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfContingentLiabilitiesExplanatory",
       "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R105": {
     "role": "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetailsNarrative",
     "longName": "00000105 - Disclosure - Provisions for legal proceedings, judicial deposits and contingent liabilities (Details Narrative)",
     "shortName": "Provisions for legal proceedings, judicial deposits and contingent liabilities (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "105",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DepositsRelatedToFederalTax",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DepositsRelatedToFederalTax",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R106": {
     "role": "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails",
     "longName": "00000106 - Disclosure - Provision for decommissioning costs (Details)",
     "shortName": "Provision for decommissioning costs (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "106",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:OtherProvision",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DescriptionOfProvisionForDecommissioningProductionAreaExplanatory",
       "pbr:DisclosureOfProvisionForDecommissioningCostExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:OtherProvision",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DescriptionOfProvisionForDecommissioningProductionAreaExplanatory",
       "pbr:DisclosureOfProvisionForDecommissioningCostExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R107": {
     "role": "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails1",
     "longName": "00000107 - Disclosure - Provision for decommissioning costs (Details 1)",
     "shortName": "Provision for decommissioning costs (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "107",
     "firstAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "ifrs-full:OtherProvisions",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DescriptionOfProvisionForDecommissioningCostsExplanatory",
       "pbr:DisclosureOfProvisionForDecommissioningCostExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "ifrs-full:OtherProvisions",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DescriptionOfProvisionForDecommissioningCostsExplanatory",
       "pbr:DisclosureOfProvisionForDecommissioningCostExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R108": {
     "role": "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails",
     "longName": "00000108 - Disclosure - Other assets and liabilities (Details)",
     "shortName": "Other assets and liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "108",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:OtherAssets",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:SchedueOfOtherAssetsAndLiabilitiesTableTextBlock",
       "pbr:DisclosureOfOtherAssetsAndLiabilitiesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:OtherAssets",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:SchedueOfOtherAssetsAndLiabilitiesTableTextBlock",
       "pbr:DisclosureOfOtherAssetsAndLiabilitiesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R109": {
     "role": "http://petrobras.com/role/PropertyPlantAndEquipmentDetails",
     "longName": "00000109 - Disclosure - Property, plant and equipment (Details)",
     "shortName": "Property, plant and equipment (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "109",
     "firstAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "ifrs-full:PropertyPlantAndEquipment",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:PropertyPlantAndEquipmentCost",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
       "pbr:DisclosureOfPropertyPlantAndEquipmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R110": {
     "role": "http://petrobras.com/role/PropertyPlantAndEquipmentDetails1",
     "longName": "00000110 - Disclosure - Property, plant and equipment (Details 1)",
     "shortName": "Property, plant and equipment (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "110",
     "firstAnchor": {
      "contextRef": "From2024-01-012024-06-30_custom_BuildingsAndImprovementsMember",
      "name": "ifrs-full:UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationAboutWeightedAverageUsefulLifeOfPropertyPlantAndEquipmentExplanatory",
       "pbr:DisclosureOfPropertyPlantAndEquipmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-012024-06-30_custom_BuildingsAndImprovementsMember",
      "name": "ifrs-full:UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationAboutWeightedAverageUsefulLifeOfPropertyPlantAndEquipmentExplanatory",
       "pbr:DisclosureOfPropertyPlantAndEquipmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R111": {
     "role": "http://petrobras.com/role/PropertyPlantAndEquipmentDetails2",
     "longName": "00000111 - Disclosure - Property, plant and equipment (Details 2)",
     "shortName": "Property, plant and equipment (Details 2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "111",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:RightofuseAsset",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfInformationAboutRightOfUseAssetsExplanatoryTableTextBlock",
       "pbr:DisclosureOfPropertyPlantAndEquipmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30_ifrs-full_GrossCarryingAmountMember",
      "name": "pbr:RightofuseAsset",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfInformationAboutRightOfUseAssetsExplanatoryTableTextBlock",
       "pbr:DisclosureOfPropertyPlantAndEquipmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R112": {
     "role": "http://petrobras.com/role/PropertyPlantAndEquipmentDetails3",
     "longName": "00000112 - Disclosure - Property, plant and equipment (Details 3)",
     "shortName": "Property, plant and equipment (Details 3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "112",
     "firstAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:ProvisionForCostEqualizationCurrent",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfChangesOnReimbursementsPayableTableTextBlock",
       "pbr:DisclosureOfPropertyPlantAndEquipmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:ProvisionForCostEqualizationCurrent",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfChangesOnReimbursementsPayableTableTextBlock",
       "pbr:DisclosureOfPropertyPlantAndEquipmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R113": {
     "role": "http://petrobras.com/role/PropertyPlantAndEquipmentDetailsNarrative",
     "longName": "00000113 - Disclosure - Property, plant and equipment (Details Narrative)",
     "shortName": "Property, plant and equipment (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "113",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:PaymentAdjustmentAgreement",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "pbr:DisclosureOfPropertyPlantAndEquipmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:PaymentAdjustmentAgreement",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "pbr:DisclosureOfPropertyPlantAndEquipmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R114": {
     "role": "http://petrobras.com/role/IntangibleAssetsDetails",
     "longName": "00000114 - Disclosure - Intangible assets (Details)",
     "shortName": "Intangible assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "114",
     "firstAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "ifrs-full:OtherIntangibleAssets",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory",
       "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "ifrs-full:OtherIntangibleAssets",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory",
       "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R115": {
     "role": "http://petrobras.com/role/ImpairmentDetails",
     "longName": "00000115 - Disclosure - Impairment (Details)",
     "shortName": "Impairment (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "115",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:ProfitsLossesOnDisposalOfInvestmentsAndChangesInValueOfInvestments",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfImpairmentLossesReversalsTableTextBlock",
       "pbr:DisclosureOfImpairmentExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R116": {
     "role": "http://petrobras.com/role/ImpairmentDetails1",
     "longName": "00000116 - Disclosure - Impairment (Details 1)",
     "shortName": "Impairment (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "116",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:ImpairmentLossRecognisedInProfitOrLoss",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfImpairmentLossesReversalsFinancialStatementTableTextBlock",
       "pbr:DisclosureOfImpairmentExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R117": {
     "role": "http://petrobras.com/role/ImpairmentDetailsNarrative",
     "longName": "00000117 - Disclosure - Impairment (Details Narrative)",
     "shortName": "Impairment (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "117",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:NetImpairmentReversals",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "pbr:DisclosureOfImpairmentExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:NetImpairmentReversals",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "pbr:DisclosureOfImpairmentExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R118": {
     "role": "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails",
     "longName": "00000118 - Disclosure - Exploration and evaluation of oil and gas reserves (Details)",
     "shortName": "Exploration and evaluation of oil and gas reserves (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "118",
     "firstAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "ifrs-full:PropertyPlantAndEquipment",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ExploratoryWellCostsOrAcquisitionCostsCapitalised",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationOfExplorationAndEvaluationOfOilAndGasExplanatory",
       "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R119": {
     "role": "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails1",
     "longName": "00000119 - Disclosure - Exploration and evaluation of oil and gas reserves (Details 1)",
     "shortName": "Exploration and evaluation of oil and gas reserves (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "119",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "pbr:ExpenseArisingFromExplorationOfGeologicalAndGeophysicalCosts",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationOfExplorationCostsOfOilAndGasAndEvaluationActivitiesExplanatory",
       "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "pbr:ExpenseArisingFromExplorationOfGeologicalAndGeophysicalCosts",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationOfExplorationCostsOfOilAndGasAndEvaluationActivitiesExplanatory",
       "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R120": {
     "role": "http://petrobras.com/role/CollateralForCrudeOilExplorationConcessionAgreementsDetailsNarrative",
     "longName": "00000120 - Disclosure - Collateral for crude oil exploration concession agreements (Details Narrative)",
     "shortName": "Collateral for crude oil exploration concession agreements (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "120",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:CollateralAgreementAmountGross",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "pbr:DisclosureOfCollateralForCrudeOilExplorationConcessionAgreementsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:CollateralAgreementAmountGross",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "pbr:DisclosureOfCollateralForCrudeOilExplorationConcessionAgreementsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R121": {
     "role": "http://petrobras.com/role/InvestmentsDetails",
     "longName": "00000121 - Disclosure - Investments (Details)",
     "shortName": "Investments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "121",
     "firstAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "ifrs-full:InvestmentsInSubsidiariesJointVenturesAndAssociates",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInvestmentsAccountedForUsingEquityMethodExplanatory",
       "pbr:DisclosureOfInvestmentsFinancialStatementsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "ifrs-full:InvestmentsInSubsidiariesJointVenturesAndAssociates",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInvestmentsAccountedForUsingEquityMethodExplanatory",
       "pbr:DisclosureOfInvestmentsFinancialStatementsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R122": {
     "role": "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails",
     "longName": "00000122 - Disclosure - Disposal of assets and other transactions (Details)",
     "shortName": "Disposal of assets and other transactions (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "122",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:AssetsOrDisposalGroupsClassifiedAsHeldForSaleInvestments",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfAssetsAndLiabilitiesOfDisposalGroupsClassifiedAsHeldForSaleExplanatory",
       "pbr:DisclosureOfNoncurrentAssetHeldForSaleAndDiscontinuedOperationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:AssetsOrDisposalGroupsClassifiedAsHeldForSaleInvestments",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfAssetsAndLiabilitiesOfDisposalGroupsClassifiedAsHeldForSaleExplanatory",
       "pbr:DisclosureOfNoncurrentAssetHeldForSaleAndDiscontinuedOperationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R123": {
     "role": "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1",
     "longName": "00000123 - Disclosure - Disposal of assets and other transactions (Details 1)",
     "shortName": "Disposal of assets and other transactions (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "123",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ContingentAssetsAtClosingDate",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfContingentAssetFromDisposalInvestmentsTableTextBlock",
       "pbr:DisclosureOfNoncurrentAssetHeldForSaleAndDiscontinuedOperationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ContingentAssetsAtClosingDate",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfContingentAssetFromDisposalInvestmentsTableTextBlock",
       "pbr:DisclosureOfNoncurrentAssetHeldForSaleAndDiscontinuedOperationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R124": {
     "role": "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetailsNarrative",
     "longName": "00000124 - Disclosure - Disposal of assets and other transactions (Details Narrative)",
     "shortName": "Disposal of assets and other transactions (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "124",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DescriptionTransactionAmountReceived",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "pbr:DisclosureOfNoncurrentAssetHeldForSaleAndDiscontinuedOperationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DescriptionTransactionAmountReceived",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "pbr:DisclosureOfNoncurrentAssetHeldForSaleAndDiscontinuedOperationsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R125": {
     "role": "http://petrobras.com/role/FinanceDebtDetails",
     "longName": "00000125 - Disclosure - Finance debt (Details)",
     "shortName": "Finance debt (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "125",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:Borrowings",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfBorrowingsExplanatory",
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30_custom_CountryOfBrazilMember119399812",
      "name": "ifrs-full:Borrowings",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfBorrowingsExplanatory",
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R126": {
     "role": "http://petrobras.com/role/FinanceDebtDetails1",
     "longName": "00000126 - Disclosure - Finance debt (Details 1)",
     "shortName": "Finance debt (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "126",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:ShorttermBorrowings",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInCurrentFinanceDebtTabletTextBlock",
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:ShorttermBorrowings",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInCurrentFinanceDebtTabletTextBlock",
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R127": {
     "role": "http://petrobras.com/role/FinanceDebtDetails2",
     "longName": "00000127 - Disclosure - Finance debt (Details 2)",
     "shortName": "Finance debt (Details 2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "127",
     "firstAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:OpeningBalance",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfChangesInFinancialDebtTabletextBlock",
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:OpeningBalance",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfChangesInFinancialDebtTabletextBlock",
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R128": {
     "role": "http://petrobras.com/role/FinanceDebtDetails3",
     "longName": "00000128 - Disclosure - Finance debt (Details 3)",
     "shortName": "Finance debt (Details 3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "128",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:ProceedsFromFinanceDebt",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfChangesInFinancialDebtTabletextBlock",
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-012024-06-30_custom_NetCashUsedInFinancingActivitiesMember",
      "name": "pbr:ProceedsFromFinanceDebt",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfCashFlowsReconciliationTableTextBlock",
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R129": {
     "role": "http://petrobras.com/role/FinanceDebtDetails4",
     "longName": "00000129 - Disclosure - Finance debt (Details 4)",
     "shortName": "Finance debt (Details 4)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "129",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:Borrowings",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfBorrowingsExplanatory",
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30_ifrs-full_NotLaterThanOneYearMember",
      "name": "ifrs-full:Borrowings",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R130": {
     "role": "http://petrobras.com/role/FinanceDebtDetails5",
     "longName": "00000130 - Disclosure - Finance debt (Details 5)",
     "shortName": "Finance debt (Details 5)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "130",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:Principal",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInMaturityOfFinanceDebtTableTextBlock",
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:Principal",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInMaturityOfFinanceDebtTableTextBlock",
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R131": {
     "role": "http://petrobras.com/role/FinanceDebtDetails6",
     "longName": "00000131 - Disclosure - Finance debt (Details 6)",
     "shortName": "Finance debt (Details 6)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "131",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30_ifrs-full_ForeignCountriesMember",
      "name": "pbr:LineOfCreditFacilityAmount",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfLineOfCreditFacilityTableTextBlock",
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30_ifrs-full_ForeignCountriesMember",
      "name": "pbr:LineOfCreditFacilityAmount",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfLineOfCreditFacilityTableTextBlock",
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R132": {
     "role": "http://petrobras.com/role/FinanceDebtDetailsNarrative",
     "longName": "00000132 - Disclosure - Finance debt (Details Narrative)",
     "shortName": "Finance debt (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "132",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:CapitalMarketBalances",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:CapitalMarketBalances",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "pbr:DisclosureOfDebtSecurityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R133": {
     "role": "http://petrobras.com/role/LeaseLiabilityDetails",
     "longName": "00000133 - Disclosure - Lease liability (Details)",
     "shortName": "Lease liability (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "133",
     "firstAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:BalanceAtOpening",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfChangesInTheBalanceOfLeaseLiabilitiesTableTextBlock",
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:BalanceAtOpening",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfChangesInTheBalanceOfLeaseLiabilitiesTableTextBlock",
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R134": {
     "role": "http://petrobras.com/role/LeaseLiabilityDetails1",
     "longName": "00000134 - Disclosure - Lease liability (Details 1)",
     "shortName": "Lease liability (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "134",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:NominalFutureLeasePayments",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfMainInformationByClassOfUnderlyingAssetsTableTextBlock",
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:NominalFutureLeasePayments",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfMainInformationByClassOfUnderlyingAssetsTableTextBlock",
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R135": {
     "role": "http://petrobras.com/role/LeaseLiabilityDetails2",
     "longName": "00000135 - Disclosure -  Lease liability (Details 2)",
     "shortName": "Lease liability (Details 2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "135",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfVariablePaymentsTableTextBlock",
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfVariablePaymentsTableTextBlock",
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R136": {
     "role": "http://petrobras.com/role/LeaseLiabilityDetailsNarrative",
     "longName": "00000136 - Disclosure - Lease liability (Details Narrative)",
     "shortName": "Lease liability (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "136",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:RightofuseAsset",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfInformationAboutRightOfUseAssetsExplanatoryTableTextBlock",
       "pbr:DisclosureOfPropertyPlantAndEquipmentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30_ifrs-full_ConstructionInProgressMember",
      "name": "pbr:RightofuseAsset",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "p",
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R137": {
     "role": "http://petrobras.com/role/EquityDetails",
     "longName": "00000137 - Disclosure - Equity (Details)",
     "shortName": "Equity (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "137",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:LegalReserve",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfProftReservesTableTextBlock",
       "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:LegalReserve",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfProftReservesTableTextBlock",
       "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R138": {
     "role": "http://petrobras.com/role/EquityDetails1",
     "longName": "00000138 - Disclosure - Equity (Details 1)",
     "shortName": "Equity (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "138",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DividendsPaidOrdinarySharesPerShare",
      "unitRef": "USDPShares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleofAnticipationDividendsTableTextBlock",
       "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-012024-06-30_custom_AnticipatedDividendsMember",
      "name": "ifrs-full:DividendsPaidOrdinarySharesPerShare",
      "unitRef": "USDPShares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleofAnticipationDividendsTableTextBlock",
       "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R139": {
     "role": "http://petrobras.com/role/EquityDetails2",
     "longName": "00000139 - Disclosure - Equity (Details 2)",
     "shortName": "Equity (Details 2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "139",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "ifrs-full:DividendsPaidOrdinarySharesPerShare",
      "unitRef": "USDPShares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleofAnticipationDividendsTableTextBlock",
       "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-012024-06-30_custom_InterimDividendsMember",
      "name": "pbr:DateOfBoardOfDirectorsApproval",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDividendsExplanatory",
       "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R140": {
     "role": "http://petrobras.com/role/EquityDetails3",
     "longName": "00000140 - Disclosure - Equity (Details 3)",
     "shortName": "Equity (Details 3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "140",
     "firstAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:ConsolidatedOpeningBalanceOfDividendsPayable",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDividendPayableTableTextBlock",
       "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:ConsolidatedOpeningBalanceOfDividendsPayable",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDividendPayableTableTextBlock",
       "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R141": {
     "role": "http://petrobras.com/role/EquityDetails4",
     "longName": "00000141 - Disclosure - Equity (Details 4)",
     "shortName": "Equity (Details 4)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "141",
     "firstAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:UnclaimedDividend",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfUnclaimedDividendsTableTextBlock",
       "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:UnclaimedDividend",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfUnclaimedDividendsTableTextBlock",
       "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R142": {
     "role": "http://petrobras.com/role/EquityDetails6",
     "longName": "00000142 - Disclosure - Equity (Details 6)",
     "shortName": "Equity (Details 6)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "142",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:ProfitLossAttributableToOwnersOfParent",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "pbr:WeightedAverageNumberOfCommonAndPreferredSharesOutstanding",
      "unitRef": "Shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ifrs-full:EarningsPerShareExplanatory",
       "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R143": {
     "role": "http://petrobras.com/role/EquityDetailsNarrative",
     "longName": "00000143 - Disclosure - Equity (Details Narrative)",
     "shortName": "Equity (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "143",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:ShareCapital",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "span",
       "p",
       "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2023-08-03",
      "name": "pbr:PreferredSharesIssued",
      "unitRef": "Shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "pbr:DisclosureOfShareCapitalReservesAndEquityExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R144": {
     "role": "http://petrobras.com/role/FinancialRiskManagementDetails",
     "longName": "00000144 - Disclosure - Financial risk management (Details)",
     "shortName": "Financial risk management (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "144",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:OpenDerivativesTransactions",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfAssetsAndLiabilitiesStatementOfFinancialPositionTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:OpenDerivativesTransactions",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfAssetsAndLiabilitiesStatementOfFinancialPositionTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R145": {
     "role": "http://petrobras.com/role/FinancialRiskManagementDetails1",
     "longName": "00000145 - Disclosure - Financial risk management (Details 1)",
     "shortName": "Financial risk management (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "145",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:NotionalValue",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInStatementOfIncomeOfCumulativeLossesRecognizedTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:FairValueOfDerivativeFinancialAssetsLiability",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInStatementOfFinancialPositionTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R146": {
     "role": "http://petrobras.com/role/FinancialRiskManagementDetails2",
     "longName": "00000146 - Disclosure - Financial risk management (Details 2)",
     "shortName": "Financial risk management (Details 2)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "146",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30_ifrs-full_FairValueHedgesMember",
      "name": "ifrs-full:GainLossOnHedgeIneffectivenessRecognisedInProfitOrLoss",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationAboutFinancialInstrumentsTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30_ifrs-full_FairValueHedgesMember",
      "name": "ifrs-full:GainLossOnHedgeIneffectivenessRecognisedInProfitOrLoss",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationAboutFinancialInstrumentsTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R147": {
     "role": "http://petrobras.com/role/FinancialRiskManagementDetails3",
     "longName": "00000147 - Disclosure - Financial risk management (Details 3)",
     "shortName": "Financial risk management (Details 3)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "147",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30_ifrs-full_CashFlowHedgesMember",
      "name": "pbr:GainLossOnHedgeIneffectivenessRecognisedInCashflow",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutComprehensiveIncomeTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30_ifrs-full_CashFlowHedgesMember",
      "name": "pbr:GainLossOnHedgeIneffectivenessRecognisedInCashflow",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutComprehensiveIncomeTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R148": {
     "role": "http://petrobras.com/role/FinancialRiskManagementDetails4",
     "longName": "00000148 - Disclosure - Financial risk management (Details 4)",
     "shortName": "Financial risk management (Details 4)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "148",
     "firstAnchor": {
      "contextRef": "From2024-01-012024-06-30_custom_CommodityDerivativesMember",
      "name": "pbr:GuaranteesGivenAsCollateral",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInGuaranteesGivenAsCollateralTableTextBlock",
       "pbr:ScheduleOfDetailedInformationAboutComprehensiveIncomeTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-012024-06-30_custom_CommodityDerivativesMember",
      "name": "pbr:GuaranteesGivenAsCollateral",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInGuaranteesGivenAsCollateralTableTextBlock",
       "pbr:ScheduleOfDetailedInformationAboutComprehensiveIncomeTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R149": {
     "role": "http://petrobras.com/role/FinancialRiskManagementDetails5",
     "longName": "00000149 - Disclosure - Financial risk management (Details 5)",
     "shortName": "Financial risk management (Details 5)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "149",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30_custom_ReasonablyPossibleScenarioMember_ifrs-full_DerivativesMember",
      "name": "pbr:IncreaseDecreaseInRiskExposureAssociatedWithInstrumentsSharingCharacteristics",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInSensitivityAnalysisOfDerivativeFinancialInstrumentsTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30_custom_ReasonablyPossibleScenarioMember_ifrs-full_DerivativesMember",
      "name": "pbr:IncreaseDecreaseInRiskExposureAssociatedWithInstrumentsSharingCharacteristics",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInSensitivityAnalysisOfDerivativeFinancialInstrumentsTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R150": {
     "role": "http://petrobras.com/role/FinancialRiskManagementDetails6",
     "longName": "00000150 - Disclosure - Financial risk management (Details 6)",
     "shortName": "Financial risk management (Details 6)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "150",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "pbr:NotionalValue",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInStatementOfIncomeOfCumulativeLossesRecognizedTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30_currency_BRL",
      "name": "pbr:NotionalValue",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInStatementOfIncomeOfCumulativeLossesRecognizedTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R151": {
     "role": "http://petrobras.com/role/FinancialRiskManagementDetails7",
     "longName": "00000151 - Disclosure - Financial risk management (Details 7)",
     "shortName": "Financial risk management (Details 7)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "151",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "ifrs-full:GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:DisclosureOfDetailedInformationAboutFinanceIncomeExpenseExplanatory",
       "ifrs-full:DisclosureOfFinanceIncomeExpenseExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2023-12-31_custom_NonDerivativeFinancialInstrumentsMember",
      "name": "pbr:FinancialInstrumentsDesignatedAsHedgingInstrumentAtFairValue",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInHedgingInstrumentNotionalValueTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R152": {
     "role": "http://petrobras.com/role/FinancialRiskManagementDetails8",
     "longName": "00000152 - Disclosure - Financial risk management (Details 8)",
     "shortName": "Financial risk management (Details 8)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "152",
     "firstAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:Equities",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInCumulativeForeignExchangeLossesRecognizedTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2023-12-31",
      "name": "pbr:Equities",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInCumulativeForeignExchangeLossesRecognizedTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R153": {
     "role": "http://petrobras.com/role/FinancialRiskManagementDetails9",
     "longName": "00000153 - Disclosure - Financial risk management (Details 9)",
     "shortName": "Financial risk management (Details 9)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "153",
     "firstAnchor": {
      "contextRef": "From2024-01-012024-06-30_ifrs-full_LaterThanOneYearMember",
      "name": "pbr:ExpectedReclassificationOfCumulativeForeignExchangeLossesRecognizedInOtherComprehensiveIncome",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInReclassificationOfCumulativeForeignExchangeLossesRecognizedTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-012024-06-30_ifrs-full_LaterThanOneYearMember",
      "name": "pbr:ExpectedReclassificationOfCumulativeForeignExchangeLossesRecognizedInOtherComprehensiveIncome",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInReclassificationOfCumulativeForeignExchangeLossesRecognizedTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R154": {
     "role": "http://petrobras.com/role/FinancialRiskManagementDetails10",
     "longName": "00000154 - Disclosure - Financial risk management (Details 10)",
     "shortName": "Financial risk management (Details 10)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "154",
     "firstAnchor": {
      "contextRef": "From2024-01-012024-06-30_custom_ReasonablyPossibleScenarioMember",
      "name": "pbr:SensitivityAnalysis",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfSensitivityAnalysisTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-012024-06-30_custom_ReasonablyPossibleScenarioMember",
      "name": "pbr:SensitivityAnalysis",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfSensitivityAnalysisTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R155": {
     "role": "http://petrobras.com/role/FinancialRiskManagementDetails11",
     "longName": "00000155 - Disclosure - Financial risk management (Details 11)",
     "shortName": "Financial risk management (Details 11)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "155",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30_custom_DollarPerRealMember",
      "name": "pbr:AdjustmentInRiskExposureAssociatedWithInstrumentsSharingCharacteristic",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInSensitivityAnalysisForForeignExchangeRiskOnFinancialInstrumentsTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30_custom_DollarPerRealMember",
      "name": "pbr:AdjustmentInRiskExposureAssociatedWithInstrumentsSharingCharacteristic",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInSensitivityAnalysisForForeignExchangeRiskOnFinancialInstrumentsTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R156": {
     "role": "http://petrobras.com/role/FinancialRiskManagementDetails12",
     "longName": "00000156 - Disclosure - Financial risk management (Details 12)",
     "shortName": "Financial risk management (Details 12)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "156",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30_custom_ProbableScenarioTwelveMember",
      "name": "pbr:IncreaseDecreaseInRiskExposureAssociatedWithInterstRateManagement",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInInterestRatesRiskManagementTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30_custom_ProbableScenarioTwelveMember",
      "name": "pbr:IncreaseDecreaseInRiskExposureAssociatedWithInterstRateManagement",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInInterestRatesRiskManagementTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R157": {
     "role": "http://petrobras.com/role/FinancialRiskManagementDetails13",
     "longName": "00000157 - Disclosure - Financial risk management (Details 13)",
     "shortName": "Financial risk management (Details 13)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "157",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:FinancialAssetsAtFairValue",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfFairValueMeasurementOfAssetsAndLiabilitiesTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:FinancialAssetsAtFairValue",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfFairValueMeasurementOfAssetsAndLiabilitiesTableTextBlock",
       "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R158": {
     "role": "http://petrobras.com/role/RelatedPartyTransactionsDetails",
     "longName": "00000158 - Disclosure - Related party transactions (Details)",
     "shortName": "Related party transactions (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "158",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:Assets",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "pbr:IncomeExpense",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "b",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfTransactionsBetweenRelatedPartyTableTextBlock",
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R159": {
     "role": "http://petrobras.com/role/RelatedPartyTransactionsDetails1",
     "longName": "00000159 - Disclosure - Related party transactions (Details 1)",
     "shortName": "Related party transactions (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "159",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:KeyManagementPersonnelCompensationWagesAndShortTermBenefits",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfInformationAboutKeyManagementPersonnelTableTextBlock",
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:KeyManagementPersonnelCompensationWagesAndShortTermBenefits",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfInformationAboutKeyManagementPersonnelTableTextBlock",
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R160": {
     "role": "http://petrobras.com/role/RelatedPartyTransactionsDetailsNarrative",
     "longName": "00000160 - Disclosure - Related party transactions (Details Narrative)",
     "shortName": "Related party transactions (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "160",
     "firstAnchor": {
      "contextRef": "From2024-04-242024-04-25_custom_BoardMember",
      "name": "pbr:EmployeeCompensationPayable",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-242024-04-25_custom_BoardMember",
      "name": "pbr:EmployeeCompensationPayable",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "span",
       "p",
       "ifrs-full:DisclosureOfRelatedPartyExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R161": {
     "role": "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsDetails",
     "longName": "00000161 - Disclosure - Supplemental information on statement of cash flows (Details)",
     "shortName": "Supplemental information on statement of cash flows (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "161",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:WithholdingIncomeTaxPaidOnBehalfOfThirdParties",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInSupplementalInformationOnStatementOfCashFlowsTableTextBlock",
       "pbr:DisclosureOfDetailedInformationOfSupplementalCashFlowInformationExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:WithholdingIncomeTaxPaidOnBehalfOfThirdParties",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDetailedInformationAboutInSupplementalInformationOnStatementOfCashFlowsTableTextBlock",
       "pbr:DisclosureOfDetailedInformationOfSupplementalCashFlowInformationExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R162": {
     "role": "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsDetails1",
     "longName": "00000162 - Disclosure - Supplemental information on statement of cash flows (Details 1)",
     "shortName": "Supplemental information on statement of cash flows (Details 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "162",
     "firstAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DepreciationOfPropertyPlantAndEquipment",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfReconciliationOfDepreciationDepletionAndAmortizationWithStatementsOfCashFlowsTableTextBlock",
       "pbr:DisclosureOfDetailedInformationOfSupplementalCashFlowInformationExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-01to2024-06-30",
      "name": "pbr:DepreciationOfPropertyPlantAndEquipment",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfReconciliationOfDepreciationDepletionAndAmortizationWithStatementsOfCashFlowsTableTextBlock",
       "pbr:DisclosureOfDetailedInformationOfSupplementalCashFlowInformationExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    },
    "R163": {
     "role": "http://petrobras.com/role/SubsequentEventsDetails",
     "longName": "00000163 - Disclosure - Subsequent events (Details)",
     "shortName": "Subsequent events (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "163",
     "firstAnchor": {
      "contextRef": "AsOf2024-06-30",
      "name": "ifrs-full:DividendsPayable",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-01-012024-06-30_custom_InterimDividendsMember",
      "name": "pbr:DateOfApproval",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "span",
       "td",
       "tr",
       "table",
       "pbr:ScheduleOfDistributionRemunerationShareholdersTableTextBlock",
       "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "unique": true
     }
    },
    "R164": {
     "role": "http://petrobras.com/role/SubsequentEventsDetailsNarrative",
     "longName": "00000164 - Disclosure - Subsequent events (Details Narrative)",
     "shortName": "Subsequent events (Details Narrative)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "164",
     "firstAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "pbr:DescriptionOfDistributionRemuneration",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2024-04-012024-06-30",
      "name": "pbr:DescriptionOfDistributionRemuneration",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "p",
       "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "pbrfs2q24usd_6ka.htm",
      "first": true,
      "unique": true
     }
    }
   },
   "tag": {
    "pbr_ANSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ANSAMember",
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "A N S A [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AccruedInterestOnShortAndLongtermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AccruedInterestOnShortAndLongtermDebt",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued interest on short and long-term debt"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AccruedInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AccruedInterests",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued interest (**)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AccruedVacationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AccruedVacationMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued Vacation [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AccumulatedAmortizationAndImpairment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AccumulatedAmortizationAndImpairment",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated amortization and impairment"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AccumulatedDepreciationAndAmortisationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AccumulatedDepreciationAndAmortisationMember",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated depreciation and amortisation [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for accumulated depreciation and amortisation. [Refer: Depreciation and amortisation expense]"
       }
      }
     },
     "auth_ref": [
      "r70",
      "r342",
      "r351",
      "r356",
      "r357"
     ]
    },
    "pbr_AccumulatedDepreciationAndImpairment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AccumulatedDepreciationAndImpairment",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated depreciation and impairment"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AccumulatedImpairmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AccumulatedImpairmentMember",
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated impairment [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for accumulated impairment. [Refer: Impairment loss]"
       }
      }
     },
     "auth_ref": [
      "r205",
      "r228",
      "r299",
      "r342",
      "r351",
      "r356",
      "r357"
     ]
    },
    "ifrs-full_AccumulatedOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AccumulatedOtherComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated other comprehensive deficit"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of accumulated items of income and expense (including reclassification adjustments) that are not recognised in profit or loss as required or permitted by other IFRSs. [Refer: IFRSs [member]; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "pbr_AcquisitionOfEquityInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AcquisitionOfEquityInterests",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Acquisition of equity interests",
        "label": "AcquisitionOfEquityInterests"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ActuarialAssumptionOfCurrentServiceCostAndInterestCostIncreaseDecreaseBasisPoints": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ActuarialAssumptionOfCurrentServiceCostAndInterestCostIncreaseDecreaseBasisPoints",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Service cost and interest cost"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ActuarialAssumptionOfDiscountRatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ActuarialAssumptionOfDiscountRatesMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Actuarial assumption of discount rates [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the discount rates used as actuarial assumptions. [Refer: Actuarial assumptions [member]]"
       }
      }
     },
     "auth_ref": [
      "r345"
     ]
    },
    "ifrs-full_ActuarialAssumptionOfMedicalCostTrendRatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ActuarialAssumptionOfMedicalCostTrendRatesMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Actuarial assumption of medical cost trend rates [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the medical cost trend rates used as actuarial assumptions. [Refer: Actuarial assumptions [member]]"
       }
      }
     },
     "auth_ref": [
      "r345"
     ]
    },
    "pbr_ActuarialAssumptionOfPensionObligationIncreaseDecreaseBasisPoints": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ActuarialAssumptionOfPensionObligationIncreaseDecreaseBasisPoints",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Obligation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ActuarialAssumptionsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ActuarialAssumptionsAxis",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails4"
     ],
     "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": [
      "r77"
     ]
    },
    "ifrs-full_ActuarialAssumptionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ActuarialAssumptionsMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails4"
     ],
     "lang": {
      "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": [
      "r77"
     ]
    },
    "pbr_ActuarialGainsLossesOnDefinedBenefitPensionPlansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ActuarialGainsLossesOnDefinedBenefitPensionPlansMember",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Actuarial Gains Losses On Defined Benefit Pension Plans [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ActuarialGainsLossesOnPostemploymentDefinedBenefitPlansAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ActuarialGainsLossesOnPostemploymentDefinedBenefitPlansAbstract",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Actuarial gains (losses) on post-employment defined benefit plans",
        "documentation": "The element represents actuarial gains losses on postemployment defined benefit plans abstract."
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ActuarialLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ActuarialLiability",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Balance at December 31, 2022",
        "periodEndLabel": "Balance at June 30, 2023",
        "label": "ActuarialLiability"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ActuarialLiabilityOthers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ActuarialLiabilityOthers",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Others",
        "label": "ActuarialLiabilityOthers"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ActuarialOtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans2": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ActuarialOtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans2",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Recognized in equity",
        "label": "ActuarialOtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans2"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AdditionalDividendsProposed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdditionalDividendsProposed",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional dividends proposed"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AdditionalHedgingRelationshipsDesignationRevokedAndHedgingInstrumentsRedesignated": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdditionalHedgingRelationshipsDesignationRevokedAndHedgingInstrumentsRedesignated",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional hedging relationships designated, designations revoked and hedging instruments re-designated"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AdditionalInformationByGeographiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdditionalInformationByGeographiesAxis",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Information By Geographies [Axis]",
        "verboseLabel": "AdditionalInformationByGeographiesAxis [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AdditionalInformationByGeographiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdditionalInformationByGeographiesDomain",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "auth_ref": []
    },
    "ifrs-full_AdditionalLiabilitiesContingentLiabilitiesRecognisedInBusinessCombination": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdditionalLiabilitiesContingentLiabilitiesRecognisedInBusinessCombination",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contingent liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additional contingent liabilities recognised in business combinations. [Refer: Contingent liabilities recognised in business combination; Business combinations [member]; Contingent liabilities [member]]"
       }
      }
     },
     "auth_ref": [
      "r204"
     ]
    },
    "ifrs-full_AdditionalProvisionsOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdditionalProvisionsOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions, net of reversals"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additional other provisions made. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r110"
     ]
    },
    "pbr_AdditionsFromAllowanceForImpairmentOfTradeAndOtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdditionsFromAllowanceForImpairmentOfTradeAndOtherReceivables",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdditionsOtherThanThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdditionsOtherThanThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Addition"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additions to intangible assets other than goodwill, other than those acquired through business combinations. [Refer: Business combinations [member]; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r119"
     ]
    },
    "ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Additions",
        "label": "Additions other than through business combinations, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additions to property, plant and equipment other than those acquired through business combinations. [Refer: Business combinations [member]; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r63"
     ]
    },
    "pbr_AdditionsRelatingToAnticipatedDividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdditionsRelatingToAnticipatedDividends",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions relating to anticipated dividends"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AdditionsRelatingToComplementaryDividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdditionsRelatingToComplementaryDividends",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions relating to complementary dividends"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AdditionsToIntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdditionsToIntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Additions",
        "label": "AdditionsToIntangibleAssetsAndGoodwill"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AdditionsToReviewOfEstimatesOfDecommissioningCostsOfPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdditionsToReviewOfEstimatesOfDecommissioningCostsOfPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decommissioning costs - Additions to / review of estimates"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AdjustmentForIncreaseDecreaseInProvisionForDecommisssioingCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdjustmentForIncreaseDecreaseInProvisionForDecommisssioingCost",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 25.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Provision for decommissioning costs",
        "label": "AdjustmentForIncreaseDecreaseInProvisionForDecommisssioingCost"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AdjustmentForPensionAndMedicalBenefitActuarialExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdjustmentForPensionAndMedicalBenefitActuarialExpenses",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension and medical benefits"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AdjustmentForPensionAndMedicalBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdjustmentForPensionAndMedicalBenefits",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 22.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Pension and medical benefits",
        "label": "AdjustmentForPensionAndMedicalBenefits"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AdjustmentInRiskExposureAssociatedWithInstrumentsSharingCharacteristic": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdjustmentInRiskExposureAssociatedWithInstrumentsSharingCharacteristic",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment in risk exposure associated with instruments sharing characteristic"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AdjustmentsForDecreaseIncreaseInAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdjustmentsForDecreaseIncreaseInAssetsAbstract",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decrease (Increase) in assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInInventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInInventories",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Inventories",
        "label": "Adjustments for decrease (increase) in inventories"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for decrease (increase) in inventories to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Inventories; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r360"
     ]
    },
    "pbr_AdjustmentsForDecreaseIncreaseInJudicialDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdjustmentsForDecreaseIncreaseInJudicialDeposits",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 18.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Judicial deposits",
        "label": "AdjustmentsForDecreaseIncreaseInJudicialDeposits"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInOtherAssets",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 19.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other assets"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for decrease (increase) in other assets to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Other assets; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r362"
     ]
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAndOtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInTradeAndOtherReceivables",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trade and other receivables",
        "label": "Adjustments for decrease (increase) in 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": [
      "r362"
     ]
    },
    "ifrs-full_AdjustmentsForDeferredTaxOfPriorPeriods": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForDeferredTaxOfPriorPeriods",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Uncertain tax treatments"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments of tax expense (income) recognised in the period for the deferred tax of prior periods."
       }
      }
     },
     "auth_ref": [
      "r340"
     ]
    },
    "ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForDepreciationAndAmortisationExpense",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails1",
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsDetails1",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation, depletion and amortization",
        "verboseLabel": "Amount of depreciation, depletion and amortization",
        "terseLabel": "Depreciation, depletion and amortization in the Statements of Cash Flows"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for depreciation and amortisation expense to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Depreciation and amortisation expense; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r361"
     ]
    },
    "pbr_AdjustmentsForForeignExchangeIndexationAndFinanceCharge": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdjustmentsForForeignExchangeIndexationAndFinanceCharge",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign exchange, indexation and finance charges"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForIncomeTaxExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForIncomeTaxExpense",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income taxes"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for income tax expense to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r138"
     ]
    },
    "pbr_AdjustmentsForIncreaseDecreaseInCurrentLegalProceedingsProvision": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdjustmentsForIncreaseDecreaseInCurrentLegalProceedingsProvision",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 23.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Provisions for legal proceedings",
        "label": "AdjustmentsForIncreaseDecreaseInCurrentLegalProceedingsProvision"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AdjustmentsForIncreaseDecreaseInLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdjustmentsForIncreaseDecreaseInLiabilitiesAbstract",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (Decrease) in liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AdjustmentsForIncreaseDecreaseInOtherEmployeeBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdjustmentsForIncreaseDecreaseInOtherEmployeeBenefits",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 24.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Other employee benefits",
        "label": "AdjustmentsForIncreaseDecreaseInOtherEmployeeBenefits"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInOtherLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 26.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for increase (decrease) in other liabilities to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Other liabilities; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r362"
     ]
    },
    "pbr_AdjustmentsForIncreaseDecreaseInOtherTaxesPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdjustmentsForIncreaseDecreaseInOtherTaxesPayable",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 21.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other taxes payable",
        "label": "AdjustmentsForIncreaseDecreaseInOtherTaxesPayable"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInTradeAccountPayable",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 20.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trade payables",
        "label": "Adjustments for increase (decrease) in trade accounts payable"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for increase (decrease) in trade accounts payable to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r360"
     ]
    },
    "ifrs-full_AdjustmentsForProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForProvisions",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Adjustment to provision",
        "label": "Adjustments for provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for provisions to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Provisions; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r361"
     ]
    },
    "ifrs-full_AdjustmentsForReconcileProfitLossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForReconcileProfitLossAbstract",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForUndistributedProfitsOfInvestmentsAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForUndistributedProfitsOfInvestmentsAccountedForUsingEquityMethod",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Results of equity-accounted investments",
        "label": "Adjustments for undistributed profits of investments accounted for using equity method"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for undistributed profits of investments accounted for using the equity method to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Investments accounted for using equity method; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r362"
     ]
    },
    "pbr_AdjustmentsToArriveAtEffectiveTaxRateAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdjustmentsToArriveAtEffectiveTaxRateAbstract",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments to arrive at the effective tax rate:"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AdvancesFromCustomersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdvancesFromCustomersMember",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Advances From Customers [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AdvancesToSuppliersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AdvancesToSuppliersMember",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Advances To Suppliers [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AggregatedMeasurementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AggregatedMeasurementMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails13"
     ],
     "lang": {
      "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": [
      "r126",
      "r131",
      "r168"
     ]
    },
    "ifrs-full_AggregatedTimeBandsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AggregatedTimeBandsMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4",
      "http://petrobras.com/role/FinanceDebtDetails5",
      "http://petrobras.com/role/FinancialRiskManagementDetails9",
      "http://petrobras.com/role/LeaseLiabilityDetails1"
     ],
     "lang": {
      "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": [
      "r25",
      "r179",
      "r184",
      "r185",
      "r188",
      "r189",
      "r190",
      "r196",
      "r214",
      "r275",
      "r301",
      "r305"
     ]
    },
    "currency_AllCurrenciesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2023",
     "localname": "AllCurrenciesDomain",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4",
      "http://petrobras.com/role/FinancialRiskManagementDetails6",
      "http://petrobras.com/role/FinancialRiskManagementDetails7"
     ],
     "auth_ref": []
    },
    "ifrs-full_AllLevelsOfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AllLevelsOfFairValueHierarchyMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetailsNarrative",
      "http://petrobras.com/role/FinancialRiskManagementDetails13"
     ],
     "lang": {
      "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": [
      "r76",
      "r169"
     ]
    },
    "pbr_AllowanceForImpairmentOfTradeAndOtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AllowanceForImpairmentOfTradeAndOtherReceivables",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expected credit losses"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AllowanceForImpairmentOfTradeAndOtherReceivablesNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AllowanceForImpairmentOfTradeAndOtherReceivablesNoncurrent",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Non-current",
        "label": "AllowanceForImpairmentOfTradeAndOtherReceivablesNoncurrent"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AllowanceForImpairmentOfTradeAndOthersReceivablesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AllowanceForImpairmentOfTradeAndOthersReceivablesCurrent",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AllowanceForImpairmentOfTradesAndOtherReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AllowanceForImpairmentOfTradesAndOtherReceivable",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Opening balance",
        "periodEndLabel": "Opening balance",
        "label": "AllowanceForImpairmentOfTradesAndOtherReceivable"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AllowanceReversalsForCreditLossOnTradeAndOtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AllowanceReversalsForCreditLossOnTradeAndOtherReceivables",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Allowance for credit loss on trade and other receivables, net"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AmendmentDescription",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Description",
        "documentation": "Description of changes contained within amended document."
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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": []
    },
    "pbr_AmericaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AmericaMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "America [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AmortisationIntangibleAssetsOtherThanGoodwill",
     "presentation": [
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Amortization",
        "label": "Amortisation, intangible assets other than goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of amortisation of intangible assets other than goodwill. [Refer: Depreciation and amortisation expense; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r120"
     ]
    },
    "pbr_AmortizationImpairmentReversalsWriteOffsAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AmortizationImpairmentReversalsWriteOffsAssetsMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortization Impairment Reversals Write Offs Assets [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AmortizationOfIntangibleAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AmortizationOfIntangibleAsset",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortization of Intangible assets"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AmortizedCostBankDepositCertificatesAndTimeDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AmortizedCostBankDepositCertificatesAndTimeDeposits",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortized cost - Bank Deposit Certificates and time deposits"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AmountsPaidreceivedDuringPeriodAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AmountsPaidreceivedDuringPeriodAbstract",
     "presentation": [
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amounts paid/received during the period:"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AmountsRecoveredFromLavaJatoInvestigation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AmountsRecoveredFromLavaJatoInvestigation",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amounts recovered from Lava Jato investigation (2)"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AnnualInformationForm": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AnnualInformationForm",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual Information Form",
        "documentation": "Boolean flag with value true on a form if it is an annual report containing an annual information form."
       }
      }
     },
     "auth_ref": [
      "r327"
     ]
    },
    "pbr_AnticipatedDividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AnticipatedDividendsMember",
     "presentation": [
      "http://petrobras.com/role/EquityDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Anticipated Dividends [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AppropriationOfTheConsiderationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AppropriationOfTheConsiderationsMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Appropriation Of The Considerations [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AppropriationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AppropriationsAbstract",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Appropriations:"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AsianMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AsianMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asian [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Assets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Assets",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3",
      "http://petrobras.com/role/RelatedPartyTransactionsDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total assets",
        "label": "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": [
      "r21",
      "r168",
      "r169",
      "r170",
      "r246",
      "r250"
     ]
    },
    "ifrs-full_AssetsAndLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AssetsAndLiabilitiesAxis",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets and 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": [
      "r7"
     ]
    },
    "ifrs-full_AssetsAndLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AssetsAndLiabilitiesMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for assets and liabilities. It also represents the standard value for the 'Assets and liabilities' axis if no other member is used. [Refer: Assets; Liabilities]"
       }
      }
     },
     "auth_ref": [
      "r7"
     ]
    },
    "pbr_AssetsOfDisposalGroupClassifiedAsHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AssetsOfDisposalGroupClassifiedAsHeldForSale",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "AssetsOfDisposalGroupClassifiedAsHeldForSale"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AssetsOrDisposalGroupsClassifiedAsHeldForSaleInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AssetsOrDisposalGroupsClassifiedAsHeldForSaleInvestments",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Investments",
        "label": "AssetsOrDisposalGroupsClassifiedAsHeldForSaleInvestments"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AssetsOrDisposalGroupsClassifiedAsHeldForSalePropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AssetsOrDisposalGroupsClassifiedAsHeldForSalePropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Property, plant and equipment",
        "label": "AssetsOrDisposalGroupsClassifiedAsHeldForSalePropertyPlantAndEquipment"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AssetsPledgedAsCollateral": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AssetsPledgedAsCollateral",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/CollateralForCrudeOilExplorationConcessionAgreementsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets pledged as collateral"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AssetsRecognized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AssetsRecognized",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets recognized"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AssetsRecognizedInPreviousPeriods": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AssetsRecognizedInPreviousPeriods",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets recognized in previous periods"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AssetsRelatedToEAndPPartnershipsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AssetsRelatedToEAndPPartnershipsMember",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets Related To E And P Partnerships [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AssetsUnderConstructionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AssetsUnderConstructionMember",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets Under Construction [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AssociatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AssociatesMember",
     "presentation": [
      "http://petrobras.com/role/InvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Associates [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the entities over which the investor has significant influence."
       }
      }
     },
     "auth_ref": [
      "r89",
      "r97",
      "r98",
      "r167"
     ]
    },
    "ifrs-full_AtFairValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AtFairValueMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "At fair value [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for measurement based on fair value. Fair value is the price that would be received to sell an asset or paid to transfer a liability in an orderly transaction between market participants at the measurement date."
       }
      }
     },
     "auth_ref": [
      "r126",
      "r131",
      "r168"
     ]
    },
    "pbr_AtapuAndSepiafieldsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AtapuAndSepiafieldsMember",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Atapu And Sepiafields [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AuditedAnnualFinancialStatements": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditedAnnualFinancialStatements",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Audited Annual Financial Statements",
        "documentation": "Boolean flag with value true on a form if it is an annual report containing audited financial statements."
       }
      }
     },
     "auth_ref": [
      "r327"
     ]
    },
    "pbr_AutomaticInvestingAccountsAndInterestCheckingAccountsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AutomaticInvestingAccountsAndInterestCheckingAccountsMember",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Automatic Investing Accounts And Interest Checking Accounts [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AverageEffectiveTaxRates": {
     "xbrltype": "percentItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AverageEffectiveTaxRates",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effective tax rate of income taxes"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AverageInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AverageInterestRate",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average interest rate"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_AverageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AverageMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails9"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AverageNumberOfEmployees": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AverageNumberOfEmployees",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average number of members in the period"
       }
      },
      "en": {
       "role": {
        "documentation": "The average number of personnel employed by the entity during a period."
       }
      }
     },
     "auth_ref": [
      "r335"
     ]
    },
    "pbr_AverageNumberOfPaidEmployees": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "AverageNumberOfPaidEmployees",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average number of paid members in the period"
       }
      }
     },
     "auth_ref": []
    },
    "currency_BRL": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2023",
     "localname": "BRL",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4",
      "http://petrobras.com/role/FinancialRiskManagementDetails6",
      "http://petrobras.com/role/FinancialRiskManagementDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Brazil, Brazil Real"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_BRLMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "BRLMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "B R L [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_BalanceAtEnding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "BalanceAtEnding",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Balance at Ending",
        "label": "BalanceAtEnding"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_BalanceAtOpening": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "BalanceAtOpening",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Balance at Opening",
        "label": "BalanceAtOpening"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_BancoDoBrasilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "BancoDoBrasilMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banco Do Brasil [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_BankingMarketMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "BankingMarketMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking Market [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_BanksControlledByTheBrazilianGovernmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "BanksControlledByTheBrazilianGovernmentMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banks Controlled By The Brazilian Government [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_BasicEarningsLossPerPerADSEquivalent": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "BasicEarningsLossPerPerADSEquivalent",
     "presentation": [
      "http://petrobras.com/role/EquityDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basic and diluted earnings per share"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BasicEarningsLossPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BasicEarningsLossPerShare",
     "presentation": [
      "http://petrobras.com/role/EquityDetails6",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basic earnings (losses) per common and preferred share",
        "verboseLabel": "Basic earnings per share"
       }
      },
      "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": [
      "r101",
      "r102"
     ]
    },
    "pbr_Biofuels": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "Biofuels",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InventoriesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Biofuels"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_BoardMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "BoardMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Board [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_BoardMembersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "BoardMembersMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Board Members [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BorrowingCostsCapitalised": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BorrowingCostsCapitalised",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Capitalized borrowing costs",
        "label": "Borrowing costs capitalised"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of interest and other 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": [
      "r85"
     ]
    },
    "ifrs-full_BorrowingCostsIncurred": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BorrowingCostsIncurred",
     "presentation": [
      "http://petrobras.com/role/NetFinanceIncomeExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalized borrowing costs"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of interest and other costs that an entity incurs in connection with the borrowing of funds."
       }
      }
     },
     "auth_ref": [
      "r335"
     ]
    },
    "ifrs-full_Borrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Borrowings",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails",
      "http://petrobras.com/role/FinanceDebtDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of outstanding funds that the entity is obligated to repay."
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "ifrs-full_BorrowingsByNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BorrowingsByNameAxis",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4",
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "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": [
      "r365"
     ]
    },
    "ifrs-full_BorrowingsByNameMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BorrowingsByNameMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4",
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "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": [
      "r365"
     ]
    },
    "ifrs-full_BorrowingsInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BorrowingsInterestRate",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalization Rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The interest rate on borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r365"
     ]
    },
    "ifrs-full_BottomOfRangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BottomOfRangeMember",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bottom of range [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the bottom of a range."
       }
      }
     },
     "auth_ref": [
      "r173",
      "r190",
      "r198",
      "r289",
      "r291",
      "r365"
     ]
    },
    "pbr_BradescoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "BradescoMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bradesco [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_BrazilianFederalGovernmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "BrazilianFederalGovernmentMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Brazilian Federal Government [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_BrazilianIncomeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "BrazilianIncomeTaxes",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Brazilian income taxes on income of companies incorporated outside Brazil (1)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_BreakageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "BreakageMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Breakage [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_BuildingsAndImprovementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "BuildingsAndImprovementsMember",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Buildings And Improvements [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BusinessCombinationsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BusinessCombinationsAxis",
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetailsNarrative"
     ],
     "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": [
      "r203"
     ]
    },
    "pbr_BuziosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "BuziosMember",
     "presentation": [
      "http://petrobras.com/role/CollateralForCrudeOilExplorationConcessionAgreementsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Buzios [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CDIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CDIMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails12"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CDI [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CaixaEconomicaFederalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CaixaEconomicaFederalMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Caixa Economica Federal [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CapitalExpendituresAndFinancingActivitiesNotInvolvingCashAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CapitalExpendituresAndFinancingActivitiesNotInvolvingCashAbstract",
     "presentation": [
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transactions\u00a0\u00a0not involving cash"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CapitalExpendituresIncurredButNotYetPaid1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CapitalExpendituresIncurredButNotYetPaid1",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase of property, plant and equipment on credit"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CapitalMarketBalances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CapitalMarketBalances",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital market balance"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CapitalMarketMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CapitalMarketMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital Market [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CapitalRemunerationReserve": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CapitalRemunerationReserve",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital remuneration reserve"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CapitalReserve": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CapitalReserve",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital reserve and capital transactions"
       }
      },
      "en": {
       "role": {
        "documentation": "A component of equity representing the capital reserves."
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "pbr_CapitalReserveCapitalTransactionsAndTreasurySharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CapitalReserveCapitalTransactionsAndTreasurySharesMember",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital Reserve Capital Transactions And Treasury Shares [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CapitalTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CapitalTransactions",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital transactions"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CapitalisedDevelopmentExpenditureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CapitalisedDevelopmentExpenditureMember",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalised development expenditure [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets arising from development expenditure capitalised before the start of commercial production or use. An intangible asset shall only be recognised if the entity can demonstrate all of the following: (a) the technical feasibility of completing the intangible asset so that it will be available for use or sale; (b) its intention to complete the intangible asset and use or sell it; (c) its ability to use or sell the intangible asset; (d) how the intangible asset will generate probable future economic benefits. Among other things, the entity can demonstrate the existence of a market for the output of the intangible asset or the intangible asset itself or, if it is to be used internally, the usefulness of the intangible asset; (e) the availability of adequate technical, financial and other resources to complete the development and to use or sell the intangible asset; and (f) its ability to measure reliably the expenditure attributable to the intangible asset during its development."
       }
      }
     },
     "auth_ref": [
      "r355"
     ]
    },
    "pbr_CapitalizedAcquistionCostsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CapitalizedAcquistionCostsMember",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalized Acquistion Costs [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CapitalizedBorrowingCostsIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CapitalizedBorrowingCostsIntangibleAssetsOtherThanGoodwill",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Capitalized borrowing costs",
        "label": "CapitalizedBorrowingCostsIntangibleAssetsOtherThanGoodwill"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CapitalizedDepreciation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CapitalizedDepreciation",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalized depreciation"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CarmopolisGroupFieldsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CarmopolisGroupFieldsMember",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Carmopolis Group Fields [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails2",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails"
     ],
     "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": [
      "r62",
      "r68",
      "r118",
      "r121",
      "r128",
      "r129",
      "r130",
      "r131",
      "r132",
      "r205",
      "r228",
      "r229"
     ]
    },
    "ifrs-full_CarryingAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CarryingAmountMember",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails2",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the amount at which an asset is recognised in the statement of financial position (after deducting any accumulated depreciation or amortisation and accumulated impairment losses). It also represents the standard value for the 'Carrying amount, accumulated depreciation, amortisation and impairment and gross carrying amount' axis if no other member is used. [Refer: Depreciation and amortisation expense; Impairment loss]"
       }
      }
     },
     "auth_ref": [
      "r68",
      "r121",
      "r128",
      "r130",
      "r131",
      "r205",
      "r228",
      "r229"
     ]
    },
    "ifrs-full_Cash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Cash",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash at bank and in hand"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash on hand and demand deposits. [Refer: Cash on hand]"
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "ifrs-full_CashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssetsOtherThanAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and cash equivalents",
        "verboseLabel": "Total 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": [
      "r13",
      "r141",
      "r160"
     ]
    },
    "pbr_CashEffects": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CashEffects",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash effects"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total short-term financial investments"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of 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."
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "pbr_CashFlowHedgeHighlyProbableFutureExportsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CashFlowHedgeHighlyProbableFutureExportsMember",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Flow Hedge Highly Probable Future Exports [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowHedgesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowHedgesAbstract",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unrealized gains (losses) on cash flow hedge - highly probable future exports"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowHedgesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowHedgesMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11",
      "http://petrobras.com/role/FinancialRiskManagementDetails2",
      "http://petrobras.com/role/FinancialRiskManagementDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flow hedges [member]"
       }
      },
      "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: Hedges [member]]"
       }
      }
     },
     "auth_ref": [
      "r125",
      "r215",
      "r216",
      "r220"
     ]
    },
    "pbr_CashFlowsFromUsedInExplorationForAndEvaluationOfMineralResources": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CashFlowsFromUsedInExplorationForAndEvaluationOfMineralResources",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total cash used"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CashFlowsFromUsedInExplorationForAndEvaluationOfMineralResourcesClassifiedAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CashFlowsFromUsedInExplorationForAndEvaluationOfMineralResourcesClassifiedAbstract",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash used in:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInExplorationForAndEvaluationOfMineralResourcesClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowsFromUsedInExplorationForAndEvaluationOfMineralResourcesClassifiedAsInvestingActivities",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment activities"
       }
      },
      "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 investing activities."
       }
      }
     },
     "auth_ref": [
      "r209"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInExplorationForAndEvaluationOfMineralResourcesClassifiedAsOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowsFromUsedInExplorationForAndEvaluationOfMineralResourcesClassifiedAsOperatingActivities",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating activities"
       }
      },
      "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": [
      "r209"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowsFromUsedInFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash used in financing activities",
        "label": "Cash flows from (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."
       }
      }
     },
     "auth_ref": [
      "r133",
      "r142"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowsFromUsedInFinancingActivitiesAbstract",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows from financing activities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowsFromUsedInInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash used in investing activities",
        "label": "Cash flows from (used in) investing 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."
       }
      }
     },
     "auth_ref": [
      "r133",
      "r142"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowsFromUsedInInvestingActivitiesAbstract",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows from investing activities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowsFromUsedInOperatingActivities",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash provided by operating activities",
        "label": "Cash flows from (used in) operating activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from (used in) operating activities, which are the principal revenue-producing activities of the entity and other activities that are not investing or financing activities. [Refer: Revenue]"
       }
      }
     },
     "auth_ref": [
      "r133",
      "r142"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowsFromUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows from operating activities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashReceiptsFromRepaymentOfAdvancesAndLoansMadeToOtherPartiesClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashReceiptsFromRepaymentOfAdvancesAndLoansMadeToOtherPartiesClassifiedAsInvestingActivities",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Payments made",
        "label": "Cash receipts from repayment of advances and loans made to other parties, classified as investing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from the repayment of advances and loans made to other parties (other than advances and loans of a financial institution), classified as investing activities."
       }
      }
     },
     "auth_ref": [
      "r282"
     ]
    },
    "ifrs-full_CategoriesOfRelatedPartiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CategoriesOfRelatedPartiesAxis",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetailsNarrative",
      "http://petrobras.com/role/RelatedPartyTransactionsDetails",
      "http://petrobras.com/role/RelatedPartyTransactionsDetails1",
      "http://petrobras.com/role/RelatedPartyTransactionsDetailsNarrative",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetailsNarrative",
      "http://petrobras.com/role/TradePayablesDetails"
     ],
     "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": [
      "r90"
     ]
    },
    "pbr_ChangesInFinanceDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ChangesInFinanceDebtMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Changes In Finance Debt [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ChangesInNoncontrollingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ChangesInNoncontrollingInterest",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Changes in non-controlling interest"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ChangesInOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ChangesInOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Others",
        "label": "Increase (decrease) in other provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in other provisions. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r112"
     ]
    },
    "ifrs-full_CharacteristicsOfDefinedBenefitPlansAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CharacteristicsOfDefinedBenefitPlansAxis",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Characteristics of 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": [
      "r273"
     ]
    },
    "ifrs-full_CharacteristicsOfDefinedBenefitPlansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CharacteristicsOfDefinedBenefitPlansMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for all defined benefit plans when disaggregated by characteristics of defined benefits plans. It also represents the standard value for the 'Characteristics of defined benefits plans' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r273"
     ]
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CityAreaCode",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "City Area Code",
        "documentation": "Area code of city"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CivilRelatedContingentLiabilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CivilRelatedContingentLiabilityMember",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails",
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Civil Related Contingent Liability [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CivilRelatedEnvironmentalContingentLiabilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CivilRelatedEnvironmentalContingentLiabilityMember",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Civil Related Environmental Contingent Liability [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ClaimToRecoverPISAndCOFINSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ClaimToRecoverPISAndCOFINSMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Claim To Recover P I S And C O F I N S [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ClassesOfAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfAssetsAxis",
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetails1",
      "http://petrobras.com/role/ImpairmentDetailsNarrative",
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails2"
     ],
     "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": [
      "r105",
      "r108",
      "r171",
      "r183"
     ]
    },
    "ifrs-full_ClassesOfAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfAssetsMember",
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetails1",
      "http://petrobras.com/role/ImpairmentDetailsNarrative",
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails2"
     ],
     "lang": {
      "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": [
      "r105",
      "r171",
      "r183"
     ]
    },
    "ifrs-full_ClassesOfContingentLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfContingentLiabilitiesAxis",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails",
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails4"
     ],
     "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": [
      "r114",
      "r204"
     ]
    },
    "ifrs-full_ClassesOfFinancialAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfFinancialAssetsAxis",
     "presentation": [
      "http://petrobras.com/role/EquityDetails1",
      "http://petrobras.com/role/EquityDetailsNarrative",
      "http://petrobras.com/role/FinancialRiskManagementDetails1",
      "http://petrobras.com/role/FinancialRiskManagementDetails11",
      "http://petrobras.com/role/FinancialRiskManagementDetails12",
      "http://petrobras.com/role/FinancialRiskManagementDetails2",
      "http://petrobras.com/role/FinancialRiskManagementDetails3",
      "http://petrobras.com/role/FinancialRiskManagementDetails4",
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "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": [
      "r197",
      "r235",
      "r236",
      "r260",
      "r261"
     ]
    },
    "ifrs-full_ClassesOfFinancialInstrumentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfFinancialInstrumentsAxis",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails",
      "http://petrobras.com/role/FinanceDebtDetails3",
      "http://petrobras.com/role/FinancialRiskManagementDetails1",
      "http://petrobras.com/role/FinancialRiskManagementDetails7",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetailsNarrative"
     ],
     "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": [
      "r228",
      "r230",
      "r232",
      "r233"
     ]
    },
    "ifrs-full_ClassesOfFinancialInstrumentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfFinancialInstrumentsMember",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails",
      "http://petrobras.com/role/FinanceDebtDetails3",
      "http://petrobras.com/role/FinancialRiskManagementDetails1",
      "http://petrobras.com/role/FinancialRiskManagementDetails7",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetailsNarrative"
     ],
     "lang": {
      "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": [
      "r228",
      "r230",
      "r232",
      "r233"
     ]
    },
    "ifrs-full_ClassesOfFinancialLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfFinancialLiabilitiesAxis",
     "presentation": [
      "http://petrobras.com/role/EquityDetails2",
      "http://petrobras.com/role/SubsequentEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of financial 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": [
      "r235",
      "r236",
      "r260",
      "r261"
     ]
    },
    "ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfIntangibleAssetsAndGoodwillAxis",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails",
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of intangible assets and 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": [
      "r354"
     ]
    },
    "ifrs-full_ClassesOfLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfLiabilitiesAxis",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails13",
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "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": [
      "r171"
     ]
    },
    "ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfPropertyPlantAndEquipmentAxis",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails",
      "http://petrobras.com/role/LeaseLiabilityDetailsNarrative",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails1",
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "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": [
      "r69"
     ]
    },
    "ifrs-full_ClassesOfShareCapitalAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfShareCapitalAxis",
     "presentation": [
      "http://petrobras.com/role/EquityDetails6",
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "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": [
      "r33"
     ]
    },
    "ifrs-full_ClassesOfShareCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfShareCapitalMember",
     "presentation": [
      "http://petrobras.com/role/EquityDetails6",
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "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": [
      "r33"
     ]
    },
    "pbr_ClosedDerivativesTransactionsAwaitingFinancialSettlement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ClosedDerivativesTransactionsAwaitingFinancialSettlement",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Closed derivatives transactions awaiting financial settlement"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ClosingDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ClosingDate",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Closing date"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CollateralAgreementAmountGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CollateralAgreementAmountGross",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/CollateralForCrudeOilExplorationConcessionAgreementsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateral agreement amount gross"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CommercialNoteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CommercialNoteMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercial Note [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CommodityDerivativesLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CommodityDerivativesLiabilitiesMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails13"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commodity Derivatives Liabilities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CommodityDerivativesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CommodityDerivativesMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails2",
      "http://petrobras.com/role/FinancialRiskManagementDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commodity Derivatives [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ComponentsOfEquityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ComponentsOfEquityAxis",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails8",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "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": [
      "r5"
     ]
    },
    "ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTaxAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTaxAbstract",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Items that will not be reclassified to the statement of income:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total comprehensive income (loss)",
        "label": "Comprehensive income"
       }
      },
      "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": [
      "r2",
      "r36",
      "r145",
      "r147",
      "r157",
      "r287"
     ]
    },
    "ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ComprehensiveIncomeAttributableToNoncontrollingInterests",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive income (loss) attributable to non-controlling interests"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of comprehensive income attributable to non-controlling interests. [Refer: Comprehensive income; Non-controlling interests]"
       }
      }
     },
     "auth_ref": [
      "r2",
      "r39"
     ]
    },
    "ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ComprehensiveIncomeAttributableToOwnersOfParent",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive income (loss) attributable to shareholders of Petrobras"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of comprehensive income attributable to owners of the parent. [Refer: Comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r2",
      "r40"
     ]
    },
    "pbr_ConsolidatedClosingBalanceOfDividendsPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ConsolidatedClosingBalanceOfDividendsPayable",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Consolidated closing balance of dividends payable",
        "label": "ConsolidatedClosingBalanceOfDividendsPayable"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ConsolidatedOpeningBalanceOfDividendsPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ConsolidatedOpeningBalanceOfDividendsPayable",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Consolidated opening balance of dividends payable",
        "label": "ConsolidatedOpeningBalanceOfDividendsPayable"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ConstructionInProgressMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ConstructionInProgressMember",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Construction in progress [member]"
       }
      },
      "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": [
      "r341"
     ]
    },
    "pbr_ContingentAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ContingentAsset",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contingent assets"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ContingentAssetsAtClosingDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ContingentAssetsAtClosingDate",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contingent assets at the closing date"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ContingentLiabilitiesForLegalProceedings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ContingentLiabilitiesForLegalProceedings",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "ContingentLiabilitiesForLegalProceedings"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ContingentLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ContingentLiabilitiesMember",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails",
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails4"
     ],
     "lang": {
      "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": [
      "r115",
      "r204"
     ]
    },
    "pbr_ContractualRetentionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ContractualRetentionsMember",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contractual Retentions [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ContributionsRelatedToTfcSponsor": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ContributionsRelatedToTfcSponsor",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contributions related to the TFC - sponsor"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ContributionsToPlanByPlanParticipantsNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ContributionsToPlanByPlanParticipantsNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Contributions paid",
        "label": "Decrease (increase) in net defined benefit liability (asset) resulting from contributions to plan by plan participants"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in the net defined benefit liability (asset) resulting from contributions to a defined benefit plan by plan participants. [Refer: Net defined benefit liability (asset); Defined benefit plans [member]]"
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "pbr_CorporateAndOtherBusinessMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CorporateAndOtherBusinessMember",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Corporate And Other Business [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CorporatesAndOtherMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CorporatesAndOtherMember",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Corporates And Other [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CostOfSaleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CostOfSaleMember",
     "presentation": [
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cost Of Sale [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CostOfSales": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CostOfSales",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "ifrs-full_GrossProfit",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Cost of sales",
        "label": "Cost of sales"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of all expenses directly or indirectly attributed to the goods or services sold. Attributed expenses include, but are not limited to, costs previously included in the measurement of inventory that has now been sold, such as depreciation and maintenance of factory buildings and equipment used in the production process, unallocated production overheads, and abnormal amounts of production costs of inventories."
       }
      }
     },
     "auth_ref": [
      "r0",
      "r50"
     ]
    },
    "ifrs-full_CounterpartiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CounterpartiesAxis",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails6",
      "http://petrobras.com/role/ImpairmentDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Counterparties [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": [
      "r240"
     ]
    },
    "ifrs-full_CounterpartiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CounterpartiesMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails6",
      "http://petrobras.com/role/ImpairmentDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the parties to the transaction other than the entity. It also represents the standard value for the 'Counterparties' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r240"
     ]
    },
    "pbr_CountryBRMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CountryBRMember",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Country B R [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CountryOfBrazilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CountryOfBrazilMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails",
      "http://petrobras.com/role/FinanceDebtDetails2",
      "http://petrobras.com/role/FinanceDebtDetails6",
      "http://petrobras.com/role/LeaseLiabilityDetails",
      "http://petrobras.com/role/TaxesDetails",
      "http://petrobras.com/role/TaxesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Country Of Brazil [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CountryOfSingaporeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CountryOfSingaporeMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Country Of Singapore [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_CountryRegion": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CountryRegion",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Country Region",
        "documentation": "Region code of country"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CountyOfChinaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CountyOfChinaMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "County Of China [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CountyOfUnitedStatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CountyOfUnitedStatesMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "County Of United States [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CoverAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cover [Abstract]",
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CreditDerivativeNominalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CreditDerivativeNominalAmount",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nominal value of hedging instrument (finance debt and lease liability)"
       }
      },
      "en": {
       "role": {
        "documentation": "The nominal amount of a credit derivative. [Refer: Derivatives [member]]"
       }
      }
     },
     "auth_ref": [
      "r222"
     ]
    },
    "pbr_CrudeoilAndOilProductsPriceChangesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CrudeoilAndOilProductsPriceChangesMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Crudeoil And Oil Products Price Changes [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CrudeoilAndOilProductsPricesChangesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CrudeoilAndOilProductsPricesChangesMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Crudeoil And Oil Products Prices Changes [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CumulativeTranslationAdjustment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CumulativeTranslationAdjustment",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Translation adjustment",
        "label": "CumulativeTranslationAdjustment"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CumulativeTranslationAdjustmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CumulativeTranslationAdjustmentMember",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative Translation Adjustment [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_CurrencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "CurrencyAxis",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4",
      "http://petrobras.com/role/FinancialRiskManagementDetails6",
      "http://petrobras.com/role/FinancialRiskManagementDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Currency [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CurrencyDerivativesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CurrencyDerivativesMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Currency Derivatives [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrencyRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrencyRiskMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Currency risk [member]"
       }
      },
      "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: Financial instruments, class [member]]"
       }
      }
     },
     "auth_ref": [
      "r191",
      "r192",
      "r193",
      "r194",
      "r241"
     ]
    },
    "ifrs-full_CurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Current assets",
        "label": "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": [
      "r26",
      "r153",
      "r287"
     ]
    },
    "pbr_CurrentAssetsOrCurrentLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CurrentAssetsOrCurrentLiabilitiesMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Assets Or Current Liabilities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentAssetsOtherThanAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentAssetsOtherThanAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Current assets other than assets classified as held for sale",
        "label": "Current assets other than non-current assets or disposal groups classified as held for sale or as held for distribution to owners"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current assets other than non-current assets or disposal groups classified as held for sale or as held for distribution to owners. [Refer: Current assets; Disposal groups classified as held for sale [member]; Non-current assets or disposal groups classified as held for sale; Non-current assets or disposal groups classified as held for distribution to owners]"
       }
      }
     },
     "auth_ref": [
      "r26"
     ]
    },
    "ifrs-full_CurrentBorrowingsAndCurrentPortionOfNoncurrentBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentBorrowingsAndCurrentPortionOfNoncurrentBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilitiesOtherThanLiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails",
      "http://petrobras.com/role/FinanceDebtDetails1",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance debt",
        "verboseLabel": "Current portion of non-current borrowings",
        "terseLabel": "Total"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current borrowings and current portion of non-current borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "ifrs-full_CurrentCrudeOil": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentCrudeOil",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InventoriesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Crude oil"
       }
      },
      "en": {
       "role": {
        "documentation": "A classification of current inventory representing the amount of unrefined, unprocessed oil. [Refer: Inventories]"
       }
      }
     },
     "auth_ref": [
      "r347"
     ]
    },
    "ifrs-full_CurrentFinancialAssetsAtFairValueThroughProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentFinancialAssetsAtFairValueThroughProfitOrLoss",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measured at fair value through profit and loss"
       }
      },
      "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": [
      "r238"
     ]
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Fiscal Year End Date",
        "documentation": "End date of current fiscal year in the format --MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentLeaseLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilitiesOtherThanLiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liability"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current lease liabilities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r181"
     ]
    },
    "pbr_CurrentLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CurrentLeaseLiability",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liability, current"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_Liabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Current liabilities",
        "label": "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": [
      "r27",
      "r155",
      "r287"
     ]
    },
    "ifrs-full_CurrentLiabilitiesOtherThanLiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentLiabilitiesOtherThanLiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Current liabilities other than Liabilities on assets classified as held for sale",
        "label": "Current liabilities other than liabilities included in disposal groups classified as held for sale"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current liabilities other than liabilities included in disposal groups classified as held for sale. [Refer: Current liabilities; Disposal groups classified as held for sale [member]; Liabilities included in disposal groups classified as held for sale]"
       }
      }
     },
     "auth_ref": [
      "r27"
     ]
    },
    "ifrs-full_CurrentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentMember",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a current time band."
       }
      }
     },
     "auth_ref": [
      "r299",
      "r307"
     ]
    },
    "ifrs-full_CurrentNaturalGas": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentNaturalGas",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InventoriesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Natural gas and Liquefied Natural Gas (LNG)"
       }
      },
      "en": {
       "role": {
        "documentation": "A classification of current inventory representing the amount of a naturally occurring hydrocarbon gas mixture. [Refer: Inventories]"
       }
      }
     },
     "auth_ref": [
      "r347"
     ]
    },
    "pbr_CurrentNonCurrentICMSVATMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CurrentNonCurrentICMSVATMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Non Current I C M S V A T [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CurrentNonCurrentPISAndCOFINSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CurrentNonCurrentPISAndCOFINSMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Non Current P I S And C O F I N S [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_CurrentOtherProvision": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CurrentOtherProvision",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision for decommissioning costs, current"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilitiesOtherThanLiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other taxes payable"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current payables on social security and taxes other than incomes tax. [Refer: Payables on social security and taxes other than income tax]"
       }
      }
     },
     "auth_ref": [
      "r337"
     ]
    },
    "ifrs-full_CurrentPetroleumAndPetrochemicalProducts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentPetroleumAndPetrochemicalProducts",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InventoriesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oil products"
       }
      },
      "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": [
      "r347"
     ]
    },
    "ifrs-full_CurrentPortionOfLongtermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentPortionOfLongtermBorrowings",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current portion of long-term debt"
       }
      },
      "en": {
       "role": {
        "documentation": "The current portion of non-current borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "ifrs-full_CurrentProvisionsForEmployeeBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentProvisionsForEmployeeBenefits",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilitiesOtherThanLiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Employee benefits",
        "verboseLabel": "Current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current provisions for employee benefits. [Refer: Provisions for employee benefits]"
       }
      }
     },
     "auth_ref": [
      "r30"
     ]
    },
    "ifrs-full_CurrentRawMaterialsAndCurrentProductionSupplies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentRawMaterialsAndCurrentProductionSupplies",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InventoriesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Materials, supplies and others"
       }
      },
      "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": [
      "r347"
     ]
    },
    "pbr_CurrentServiceCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "CurrentServiceCost",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current service cost"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentTaxAssetsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentTaxAssetsCurrent",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Current assets",
        "label": "Current tax assets, current"
       }
      },
      "en": {
       "role": {
        "documentation": "The current amount of current tax assets. [Refer: Current tax assets]"
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "ifrs-full_CurrentTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentTaxExpenseIncome",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails1",
      "http://petrobras.com/role/TaxesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current income taxes",
        "verboseLabel": "Corporate Income Tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income taxes payable (recoverable) in respect of the taxable profit (tax loss) for a period."
       }
      }
     },
     "auth_ref": [
      "r271"
     ]
    },
    "ifrs-full_CurrentTaxLiabilitiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentTaxLiabilitiesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilitiesOtherThanLiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/TaxesDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income taxes payable",
        "verboseLabel": "Current liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The current amount of current tax liabilities. [Refer: Current tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "ifrs-full_CurrentTaxLiabilitiesNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentTaxLiabilitiesNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/TaxesDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Income taxes payable",
        "label": "Non-current liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The non-current amount of current tax liabilities. [Refer: Current tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "pbr_DateOfApproval": {
     "xbrltype": "dateItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DateOfApproval",
     "presentation": [
      "http://petrobras.com/role/SubsequentEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Date of approval",
        "label": "DateOfApproval"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DateOfBoardOfDirectorsApproval": {
     "xbrltype": "dateItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DateOfBoardOfDirectorsApproval",
     "presentation": [
      "http://petrobras.com/role/EquityDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Date of approval"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DateOfRecord": {
     "xbrltype": "dateItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DateOfRecord",
     "presentation": [
      "http://petrobras.com/role/EquityDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Date of record"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DateOfRecords": {
     "xbrltype": "dateItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DateOfRecords",
     "presentation": [
      "http://petrobras.com/role/SubsequentEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Date of record",
        "label": "DateOfRecords"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DebenturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DebenturesMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debentures [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DecreaseInBasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DecreaseInBasisPointsMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decrease In Basis Points [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DeepAndUltradeepPostsaltMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DeepAndUltradeepPostsaltMember",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deep And Ultradeep Postsalt [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DeferredCompensationArrangementsOverallDescriptions": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DeferredCompensationArrangementsOverallDescriptions",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nature"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DeferredIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DeferredIncomeExpense",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Deferred income taxes",
        "label": "DeferredIncomeExpense"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DeferredIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DeferredIncomeTax",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Opening balance",
        "periodEndLabel": "Closing balance",
        "label": "DeferredIncomeTax"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DeferredIncomeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DeferredIncomeTaxes",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "pbr_LongtermReceivables",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred income taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DeferredTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DeferredTaxAssets",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "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": [
      "r17",
      "r22",
      "r57"
     ]
    },
    "ifrs-full_DeferredTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DeferredTaxExpenseIncome",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "Deferred tax expense (income)"
       }
      },
      "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": [
      "r58"
     ]
    },
    "ifrs-full_DeferredTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DeferredTaxLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/TaxesDetails3",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Deferred income taxes",
        "negatedLabel": "Deferred tax liabilities",
        "label": "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": [
      "r17",
      "r22",
      "r57"
     ]
    },
    "pbr_DeficitRegisteredByPetros": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DeficitRegisteredByPetros",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deficit registered by Petros"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DefinedBenefitObligationCostAndExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DefinedBenefitObligationCostAndExpenses",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Defined benefit obligation, at present value",
        "label": "DefinedBenefitObligationCostAndExpenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DefinedBenefitPlansAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DefinedBenefitPlansAxis",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails1",
      "http://petrobras.com/role/EmployeeBenefitsDetails2",
      "http://petrobras.com/role/EmployeeBenefitsDetails3",
      "http://petrobras.com/role/EmployeeBenefitsDetails4",
      "http://petrobras.com/role/EmployeeBenefitsDetails5",
      "http://petrobras.com/role/EmployeeBenefitsDetails6",
      "http://petrobras.com/role/EmployeeBenefitsDetails7",
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative",
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "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": [
      "r71"
     ]
    },
    "ifrs-full_DefinedBenefitPlansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DefinedBenefitPlansMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails1",
      "http://petrobras.com/role/EmployeeBenefitsDetails2",
      "http://petrobras.com/role/EmployeeBenefitsDetails3",
      "http://petrobras.com/role/EmployeeBenefitsDetails4",
      "http://petrobras.com/role/EmployeeBenefitsDetails5",
      "http://petrobras.com/role/EmployeeBenefitsDetails6",
      "http://petrobras.com/role/EmployeeBenefitsDetails7",
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative",
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "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": [
      "r71"
     ]
    },
    "pbr_DepositsFinancingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DepositsFinancingMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deposits Financing [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DepositsRelatedToFederalTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DepositsRelatedToFederalTax",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deposits related to federal tax"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DepreciationAmortizationAndDepletionOfPropertyPlantAndEquipment1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DepreciationAmortizationAndDepletionOfPropertyPlantAndEquipment1",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation, amortization and depletion"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DepreciationAmortizationAndWriteOffsOfAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DepreciationAmortizationAndWriteOffsOfAssetsMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation Amortization And Write Offs Of Assets [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DepreciationAmortizationAndWriteOffsOfAssetsOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DepreciationAmortizationAndWriteOffsOfAssetsOneMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation Amortization And Write Offs Of Assets One [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DepreciationAmortizationAndWriteOffsOfAssetsTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DepreciationAmortizationAndWriteOffsOfAssetsTwoMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation Amortization And Write Offs Of Assets Two [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DepreciationAndAmortisationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DepreciationAndAmortisationExpense",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails1",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Depreciation, depletion and amortization",
        "label": "Depreciation and amortisation expense"
       }
      },
      "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": [
      "r1",
      "r50",
      "r161",
      "r243",
      "r252",
      "r263"
     ]
    },
    "pbr_DepreciationOfPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DepreciationOfPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation of Property, plant and equipment"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DepreciationOfRightOfUseRecoveryOfPiscofins": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DepreciationOfRightOfUseRecoveryOfPiscofins",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation of right of use - recovery of PIS/COFINS"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DerivativeLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DerivativeLiabilitiesMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Liabilities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DerivativesAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DerivativesAssetsMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivatives Assets [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DerivativesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DerivativesMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivatives [member]"
       }
      },
      "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: Financial instruments, class [member]]"
       }
      }
     },
     "auth_ref": [
      "r288",
      "r290",
      "r300",
      "r309"
     ]
    },
    "pbr_DerivativesNotDesignatedForHedgeAccountingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DerivativesNotDesignatedForHedgeAccountingMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails1",
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivatives Not Designated For Hedge Accounting [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DerivativesTransactionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DerivativesTransactionsMember",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivatives Transactions [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DescriptionOfAmountsOfOtherAssetsUsedByEntityIncludedInFairValueOfAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DescriptionOfAmountsOfOtherAssetsUsedByEntityIncludedInFairValueOfAssets",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Other assets used by entity included in fair value of plan assets",
        "label": "DescriptionOfAmountsOfOtherAssetsUsedByEntityIncludedInFairValueOfAssets"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DescriptionOfDerivativeFinancialInstrumentsMaturityPeriod": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DescriptionOfDerivativeFinancialInstrumentsMaturityPeriod",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of derivative maturity period"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DescriptionOfDistributionRemuneration": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DescriptionOfDistributionRemuneration",
     "presentation": [
      "http://petrobras.com/role/SubsequentEventsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description distribution remuneration"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfNatureOfContingentAssets": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfNatureOfContingentAssets",
     "presentation": [
      "http://petrobras.com/role/TaxesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of contingent assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the nature 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 the entity's control."
       }
      }
     },
     "auth_ref": [
      "r116"
     ]
    },
    "pbr_DescriptionOfProvisionForDecommissioningCostsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DescriptionOfProvisionForDecommissioningCostsExplanatory",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of changes in the provision for decommissioning costs are presented"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DescriptionOfProvisionForDecommissioningProductionAreaExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DescriptionOfProvisionForDecommissioningProductionAreaExplanatory",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of provision for decommissioning costs by producing area"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfRetirementBenefitsPromisedToParticipants": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfRetirementBenefitsPromisedToParticipants",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of installments"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the retirement benefits promised to participants in retirement benefit plans."
       }
      }
     },
     "auth_ref": [
      "r95"
     ]
    },
    "pbr_DescriptionTransactionAmountReceived": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DescriptionTransactionAmountReceived",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description transaction amount received"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DevelopmentBanksMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DevelopmentBanksMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Development Banks [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DieselMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DieselMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Diesel [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DifferentJurisdictionalTaxRates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DifferentJurisdictionalTaxRates",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Different jurisdictional tax rates for companies abroad"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DilutedEarningsLossPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DilutedEarningsLossPerShare",
     "presentation": [
      "http://petrobras.com/role/EquityDetails6",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Diluted earnings (losses) per common and preferred share",
        "verboseLabel": "Basic earnings per share"
       }
      },
      "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": [
      "r101",
      "r102"
     ]
    },
    "pbr_DisclosureCashAndCashEquivalentsAndMarketableSecuritiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureCashAndCashEquivalentsAndMarketableSecuritiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash And Cash Equivalents And Marketable Securities"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureCollateralForCrudeOilExplorationConcessionAgreementsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureCollateralForCrudeOilExplorationConcessionAgreementsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateral For Crude Oil Exploration Concession Agreements"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureDisposalOfAssetsAndOtherTransactionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureDisposalOfAssetsAndOtherTransactionsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disposal Of Assets And Other Transactions"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureEmployeeBenefitsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureEmployeeBenefitsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Employee Benefits"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureEquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureFinanceDebtAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureFinanceDebtAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Debt"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureImpairmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureImpairmentAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureInvestmentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureInvestmentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Investments"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfAmountsToBeRecoveredOrSettledAfterTwelveMonthsForClassesOfAssetsAndLiabilitiesThatContainAmountsToBeRecoveredOrSettledBothNoMoreAndMoreThanTwelveMonthsAfterReportingDateTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfAmountsToBeRecoveredOrSettledAfterTwelveMonthsForClassesOfAssetsAndLiabilitiesThatContainAmountsToBeRecoveredOrSettledBothNoMoreAndMoreThanTwelveMonthsAfterReportingDateTable",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails5",
      "http://petrobras.com/role/FinancialRiskManagementDetails9",
      "http://petrobras.com/role/LeaseLiabilityDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of amounts to be recovered or settled after twelve months for classes of assets and liabilities that contain amounts to be recovered or settled both no more and more than twelve months after reporting date [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to amounts to be recovered or settled after twelve months for classes of assets and liabilities that contain amounts to be recovered or settled both no more, and more than, twelve months after reporting date."
       }
      }
     },
     "auth_ref": [
      "r25"
     ]
    },
    "pbr_DisclosureOfAssetsAndLiabilitiesOfDisposalGroupsClassifiedAsHeldForSaleExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfAssetsAndLiabilitiesOfDisposalGroupsClassifiedAsHeldForSaleExplanatory",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of the major classes of assets and related liabilities classified as held for sale"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of assets and liabilities with significant risk of material adjustment [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to assets and liabilities with a significant risk of material adjustment."
       }
      }
     },
     "auth_ref": [
      "r7"
     ]
    },
    "pbr_DisclosureOfAssetsOperatingSegmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfAssetsOperatingSegmentsExplanatory",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of assets by operating segment"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory",
     "presentation": [
      "http://petrobras.com/role/BasisOfPreparation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basis of preparation"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the basis used for the preparation of the financial statements."
       }
      }
     },
     "auth_ref": [
      "r333"
     ]
    },
    "pbr_DisclosureOfBenefitsIncludeSalariesPostEmploymentBenefitsTerminationBenefitsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfBenefitsIncludeSalariesPostEmploymentBenefitsTerminationBenefitsExplanatory",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of employee benefits"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfBorrowingsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfBorrowingsExplanatory",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of balance by type finance debt"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r333"
     ]
    },
    "pbr_DisclosureOfCashAndCashEquivalentsAndMarketableSecuritiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfCashAndCashEquivalentsAndMarketableSecuritiesExplanatory",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecurities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and cash equivalents and marketable securities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfCashAndCashEquivalentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfCashAndCashEquivalentsExplanatory",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of cash and cash equivalents. [Refer: Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r333"
     ]
    },
    "pbr_DisclosureOfChangesInAllowanceForImpairmentOfTradeAndOtherReceivableExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfChangesInAllowanceForImpairmentOfTradeAndOtherReceivableExplanatory",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of changes in credit losses provision"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfChangesInDiscountRateExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfChangesInDiscountRateExplanatory",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of change in the discount rate"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfChangesInTheActuarialLiabilitiesFairValueOfAssetsAndAmountsRecognizedInStatementOfFinancialPositionExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfChangesInTheActuarialLiabilitiesFairValueOfAssetsAndAmountsRecognizedInStatementOfFinancialPositionExplanatory",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of changes in the actuarial liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfCollateralForCrudeOilExplorationConcessionAgreementsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfCollateralForCrudeOilExplorationConcessionAgreementsExplanatory",
     "presentation": [
      "http://petrobras.com/role/CollateralForCrudeOilExplorationConcessionAgreements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Collateral for crude oil exploration concession agreements"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfContingentLiabilitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfContingentLiabilitiesExplanatory",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of estimated contingent liabilities for which the possibility of loss is classified as possible"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of contingent liabilities. [Refer: Contingent liabilities [member]]"
       }
      }
     },
     "auth_ref": [
      "r114"
     ]
    },
    "ifrs-full_DisclosureOfContingentLiabilitiesInBusinessCombinationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfContingentLiabilitiesInBusinessCombinationTable",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails",
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of contingent liabilities in business combination [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to contingent liabilities in business combinations."
       }
      }
     },
     "auth_ref": [
      "r199",
      "r204"
     ]
    },
    "ifrs-full_DisclosureOfCostOfSalesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfCostOfSalesExplanatory",
     "presentation": [
      "http://petrobras.com/role/CostsAndExpensesByNatureTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of cost of sales"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the cost of sales. [Refer: Cost of sales]"
       }
      }
     },
     "auth_ref": [
      "r333"
     ]
    },
    "pbr_DisclosureOfDebtSecurityExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfDebtSecurityExplanatory",
     "presentation": [
      "http://petrobras.com/role/FinanceDebt"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Finance debt",
        "label": "DisclosureOfDebtSecurityExplanatory"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDeferredTaxesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDeferredTaxesExplanatory",
     "presentation": [
      "http://petrobras.com/role/TaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of changes in the deferred income taxes"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of deferred taxes. [Refer: Deferred tax liabilities; Deferred tax assets]"
       }
      }
     },
     "auth_ref": [
      "r333"
     ]
    },
    "ifrs-full_DisclosureOfDefinedBenefitPlansTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDefinedBenefitPlansTable",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails1",
      "http://petrobras.com/role/EmployeeBenefitsDetails2",
      "http://petrobras.com/role/EmployeeBenefitsDetails3",
      "http://petrobras.com/role/EmployeeBenefitsDetails5",
      "http://petrobras.com/role/EmployeeBenefitsDetails6",
      "http://petrobras.com/role/EmployeeBenefitsDetails7",
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of defined benefit plans [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to defined benefit plans."
       }
      }
     },
     "auth_ref": [
      "r71"
     ]
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of summarized information on current and non-current finance debt"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r365"
     ]
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutBorrowingsTable",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4"
     ],
     "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": [
      "r365"
     ]
    },
    "pbr_DisclosureOfDetailedInformationAboutFinanceIncomeExpenseExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfDetailedInformationAboutFinanceIncomeExpenseExplanatory",
     "presentation": [
      "http://petrobras.com/role/NetFinanceIncomeExpenseTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of net finance income (expense)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfDetailedInformationAboutFinancialInstrumentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfDetailedInformationAboutFinancialInstrumentsTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of statement profit loss"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfDetailedInformationAboutInSellingExpensesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfDetailedInformationAboutInSellingExpensesExplanatory",
     "presentation": [
      "http://petrobras.com/role/CostsAndExpensesByNatureTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of selling expenses"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfDetailedInformationAboutJudicialDepositExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfDetailedInformationAboutJudicialDepositExplanatory",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of non-current assets"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfDetailedInformationAboutOtherIncomeAndExpensesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfDetailedInformationAboutOtherIncomeAndExpensesExplanatory",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of other income and expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of property, plant and equipment by class of assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r69"
     ]
    },
    "pbr_DisclosureOfDetailedInformationAboutWeightedAverageUsefulLifeOfPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfDetailedInformationAboutWeightedAverageUsefulLifeOfPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of useful life of assets"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfDetailedInformationOfExplorationCostsOfOilAndGasAndEvaluationActivitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfDetailedInformationOfExplorationCostsOfOilAndGasAndEvaluationActivitiesExplanatory",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of exploration costs"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfDetailedInformationOfSupplementalCashFlowInformationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfDetailedInformationOfSupplementalCashFlowInformationExplanatory",
     "presentation": [
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental information on statement of cash flows"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfDetailedInformationRelatingToProvisionForJudicialDepositExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfDetailedInformationRelatingToProvisionForJudicialDepositExplanatory",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of reconciliation of judicial deposits with legal proceedings"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfDetailedInformationRelatingToProvisionForLegalProceedingsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfDetailedInformationRelatingToProvisionForLegalProceedingsExplanatory",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of provisions for legal proceedings"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDisaggregationOfRevenueFromContractsWithCustomersTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDisaggregationOfRevenueFromContractsWithCustomersTable",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails2",
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of disaggregation of revenue from contracts with customers [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the disaggregation of revenue from contracts with customers."
       }
      }
     },
     "auth_ref": [
      "r176"
     ]
    },
    "ifrs-full_DisclosureOfDividendsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDividendsExplanatory",
     "presentation": [
      "http://petrobras.com/role/EquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of dividends"
       }
      },
      "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": [
      "r333"
     ]
    },
    "pbr_DisclosureOfEffectsOrTaxTransactionInStatementOfIncomeExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfEffectsOrTaxTransactionInStatementOfIncomeExplanatory",
     "presentation": [
      "http://petrobras.com/role/TaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of effects or the tax transaction in the statement of income"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfEmployeeBenefitExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfEmployeeBenefitExplanatory",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefits"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Employee benefits",
        "label": "DisclosureOfEmployeeBenefitExplanatory"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfEntitysReportableSegmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfEntitysReportableSegmentsExplanatory",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Information by operating segment"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for operating segments."
       }
      }
     },
     "auth_ref": [
      "r259"
     ]
    },
    "ifrs-full_DisclosureOfEventsAfterReportingPeriodExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfEventsAfterReportingPeriodExplanatory",
     "presentation": [
      "http://petrobras.com/role/SubsequentEvents"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent events"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for events after the reporting period."
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "ifrs-full_DisclosureOfExpensesByNatureExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfExpensesByNatureExplanatory",
     "presentation": [
      "http://petrobras.com/role/CostsAndExpensesByNature"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Costs and expenses by nature"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of expenses by nature. [Refer: Expenses, by nature]"
       }
      }
     },
     "auth_ref": [
      "r333"
     ]
    },
    "ifrs-full_DisclosureOfExplorationAndEvaluationAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfExplorationAndEvaluationAssetsExplanatory",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReserves"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploration and evaluation of oil and gas reserves"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for exploration and evaluation assets."
       }
      }
     },
     "auth_ref": [
      "r210"
     ]
    },
    "ifrs-full_DisclosureOfExternalCreditExposuresTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfExternalCreditExposuresTable",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of external credit grades [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to external credit grades."
       }
      }
     },
     "auth_ref": [
      "r262",
      "r312"
     ]
    },
    "ifrs-full_DisclosureOfFairValueMeasurementOfAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFairValueMeasurementOfAssetsTable",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails13",
      "http://petrobras.com/role/ImpairmentDetails1",
      "http://petrobras.com/role/ImpairmentDetailsNarrative",
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of fair value measurement of assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the fair value measurement of assets."
       }
      }
     },
     "auth_ref": [
      "r171"
     ]
    },
    "ifrs-full_DisclosureOfFinanceIncomeExpenseExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinanceIncomeExpenseExplanatory",
     "presentation": [
      "http://petrobras.com/role/NetFinanceIncomeExpense"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net finance income (expense)"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of finance income (cost). [Refer: Finance income (cost)]"
       }
      }
     },
     "auth_ref": [
      "r333"
     ]
    },
    "ifrs-full_DisclosureOfFinancialAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsTable",
     "presentation": [
      "http://petrobras.com/role/EquityDetails1",
      "http://petrobras.com/role/FinancialRiskManagementDetails1",
      "http://petrobras.com/role/FinancialRiskManagementDetails12",
      "http://petrobras.com/role/FinancialRiskManagementDetails2",
      "http://petrobras.com/role/FinancialRiskManagementDetails3",
      "http://petrobras.com/role/FinancialRiskManagementDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to financial assets."
       }
      }
     },
     "auth_ref": [
      "r237"
     ]
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsTable",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails",
      "http://petrobras.com/role/FinanceDebtDetails3",
      "http://petrobras.com/role/FinancialRiskManagementDetails7",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about financial instruments [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of financial instruments."
       }
      }
     },
     "auth_ref": [
      "r224",
      "r230",
      "r237"
     ]
    },
    "ifrs-full_DisclosureOfFinancialLiabilitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialLiabilitiesTable",
     "presentation": [
      "http://petrobras.com/role/EquityDetails2",
      "http://petrobras.com/role/SubsequentEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial liabilities [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to financial liabilities."
       }
      }
     },
     "auth_ref": [
      "r237"
     ]
    },
    "ifrs-full_DisclosureOfFinancialRiskManagementExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialRiskManagementExplanatory",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial risk management"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the entity's financial risk management practices and policies."
       }
      }
     },
     "auth_ref": [
      "r333"
     ]
    },
    "ifrs-full_DisclosureOfGeneralAndAdministrativeExpenseExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfGeneralAndAdministrativeExpenseExplanatory",
     "presentation": [
      "http://petrobras.com/role/CostsAndExpensesByNatureTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of general and administrative expenses"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of general and administrative expenses. [Refer: Administrative expenses]"
       }
      }
     },
     "auth_ref": [
      "r333"
     ]
    },
    "pbr_DisclosureOfImpairmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfImpairmentExplanatory",
     "presentation": [
      "http://petrobras.com/role/Impairment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Impairment",
        "label": "DisclosureOfImpairmentExplanatory"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfIncomeTaxExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfIncomeTaxExplanatory",
     "presentation": [
      "http://petrobras.com/role/TaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of of income taxes"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for income taxes."
       }
      }
     },
     "auth_ref": [
      "r60"
     ]
    },
    "ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of information about activities subject to rate regulation [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to activities subject to rate regulation."
       }
      }
     },
     "auth_ref": [
      "r175"
     ]
    },
    "pbr_DisclosureOfInformationAboutRightOfUseAssetsExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfInformationAboutRightOfUseAssetsExplanatoryTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of accumulated depreciation and impairment"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfInformationAboutTermsAndConditionsOfHedgingInstrumentsAndHowTheyAffectFutureCashFlowsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfInformationAboutTermsAndConditionsOfHedgingInstrumentsAndHowTheyAffectFutureCashFlowsTable",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of information about terms and conditions of hedging instruments and how they affect future cash flows [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the terms and conditions of hedging instruments and how they affect future cash flows."
       }
      }
     },
     "auth_ref": [
      "r213"
     ]
    },
    "ifrs-full_DisclosureOfIntangibleAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfIntangibleAssetsExplanatory",
     "presentation": [
      "http://petrobras.com/role/IntangibleAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Intangible assets",
        "label": "Disclosure of intangible assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for intangible assets."
       }
      }
     },
     "auth_ref": [
      "r123"
     ]
    },
    "ifrs-full_DisclosureOfInventoriesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfInventoriesExplanatory",
     "presentation": [
      "http://petrobras.com/role/Inventories"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Inventories",
        "label": "Disclosure of inventories [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for inventories."
       }
      }
     },
     "auth_ref": [
      "r82"
     ]
    },
    "ifrs-full_DisclosureOfInvestmentsAccountedForUsingEquityMethodExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfInvestmentsAccountedForUsingEquityMethodExplanatory",
     "presentation": [
      "http://petrobras.com/role/InvestmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of 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": [
      "r333"
     ]
    },
    "pbr_DisclosureOfInvestmentsFinancialStatementsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfInvestmentsFinancialStatementsExplanatory",
     "presentation": [
      "http://petrobras.com/role/Investments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Investments",
        "label": "DisclosureOfInvestmentsFinancialStatementsExplanatory"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfJointOperationsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfJointOperationsTable",
     "presentation": [
      "http://petrobras.com/role/CollateralForCrudeOilExplorationConcessionAgreementsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of joint operations [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to joint operations."
       }
      }
     },
     "auth_ref": [
      "r166"
     ]
    },
    "ifrs-full_DisclosureOfJointVenturesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfJointVenturesTable",
     "presentation": [
      "http://petrobras.com/role/InvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of joint ventures [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to joint ventures."
       }
      }
     },
     "auth_ref": [
      "r97",
      "r98",
      "r165"
     ]
    },
    "ifrs-full_DisclosureOfLeasesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfLeasesExplanatory",
     "presentation": [
      "http://petrobras.com/role/LeaseLiability"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Lease liability",
        "label": "Disclosure of leases [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for leases."
       }
      }
     },
     "auth_ref": [
      "r186",
      "r187"
     ]
    },
    "pbr_DisclosureOfLiabilityRelatedToTheTransactionExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfLiabilityRelatedToTheTransactionExplanatory",
     "presentation": [
      "http://petrobras.com/role/TaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of liability related to transaction"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfMarketableSecuritiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfMarketableSecuritiesExplanatory",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of marketable securities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNetDefinedBenefitLiabilityAssetExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfNetDefinedBenefitLiabilityAssetExplanatory",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of short term employee benefits"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of a net defined benefit liability (asset). [Refer: Net defined benefit liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r72"
     ]
    },
    "pbr_DisclosureOfNetExpensesRelatingToBeenfitPlanExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfNetExpensesRelatingToBeenfitPlanExplanatory",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of net expenses relating to benefit plans"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfNonadjustingEventsAfterReportingPeriodTable",
     "presentation": [
      "http://petrobras.com/role/SubsequentEventsDetailsNarrative"
     ],
     "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": [
      "r51"
     ]
    },
    "pbr_DisclosureOfNoncurrentAssetHeldForSaleAndDiscontinuedOperationsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfNoncurrentAssetHeldForSaleAndDiscontinuedOperationsExplanatory",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactions"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disposal of assets and other transactions"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOffsettingOfFinancialAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfOffsettingOfFinancialAssetsTable",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of offsetting of financial assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the offsetting of financial assets."
       }
      }
     },
     "auth_ref": [
      "r211"
     ]
    },
    "ifrs-full_DisclosureOfOperatingSegmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfOperatingSegmentsExplanatory",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of consolidated statement of Income by operating segment"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of operating segments. [Refer: Operating segments [member]]"
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "pbr_DisclosureOfOperatingSegmentsExplanatory1": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfOperatingSegmentsExplanatory1",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of amount of depreciation, depletion and amortization by segment"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOperatingSegmentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfOperatingSegmentsTable",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of operating segments [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to operating segments."
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "pbr_DisclosureOfOtherAssetsAndLiabilitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfOtherAssetsAndLiabilitiesExplanatory",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other assets and liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOtherOperatingIncomeExpenseExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfOtherOperatingIncomeExpenseExplanatory",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other income and expenses, net",
        "label": "Disclosure of other operating income (expense) [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of other operating income or expense. [Refer: Other operating income (expense)]"
       }
      }
     },
     "auth_ref": [
      "r333"
     ]
    },
    "ifrs-full_DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provisions for legal proceedings, judicial deposits and contingent liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for other provisions, contingent liabilities and contingent assets."
       }
      }
     },
     "auth_ref": [
      "r117"
     ]
    },
    "pbr_DisclosureOfOtherTaxesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfOtherTaxesExplanatory",
     "presentation": [
      "http://petrobras.com/role/TaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of other taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentAbstract",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property plant and equipment"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentTable",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails",
      "http://petrobras.com/role/LeaseLiabilityDetailsNarrative",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails1",
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "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": [
      "r69"
     ]
    },
    "pbr_DisclosureOfPropertyPlantAndEquipmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfPropertyPlantAndEquipmentsExplanatory",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, plant and equipment"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfProvisionForDecommissioningCostExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfProvisionForDecommissioningCostExplanatory",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCosts"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Provision for decommissioning costs",
        "label": "DisclosureOfProvisionForDecommissioningCostExplanatory"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfProvisionForLegalProceedingsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfProvisionForLegalProceedingsTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of reconciliation of provisions for legal proceedings"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfProvisionMatrixTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfProvisionMatrixTable",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of provision matrix [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the provision matrix."
       }
      }
     },
     "auth_ref": [
      "r299"
     ]
    },
    "pbr_DisclosureOfRecognizedTheStatementOfIncomeExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfRecognizedTheStatementOfIncomeExplanatory",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of recognized the statement of income"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfReconciliationBetweenStatutoryIncomeTaxRateAndEffectiveIncomeTaxRateExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfReconciliationBetweenStatutoryIncomeTaxRateAndEffectiveIncomeTaxRateExplanatory",
     "presentation": [
      "http://petrobras.com/role/TaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of effective rate of income before income taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory",
     "presentation": [
      "http://petrobras.com/role/IntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of intangible assets by class of assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the reconciliation of changes in intangible assets and goodwill. [Refer: Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r354"
     ]
    },
    "ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable",
     "presentation": [
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of reconciliation of changes in intangible assets and goodwill [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the reconciliation of changes in intangible assets and goodwill."
       }
      }
     },
     "auth_ref": [
      "r354"
     ]
    },
    "pbr_DisclosureOfReconciliationOfDeficitExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfReconciliationOfDeficitExplanatory",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of reconciliation of deficit"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesTable",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of reconciliation of liabilities arising from financing activities [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the reconciliation of liabilities arising from financing activities."
       }
      }
     },
     "auth_ref": [
      "r286"
     ]
    },
    "ifrs-full_DisclosureOfRelatedPartyExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfRelatedPartyExplanatory",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactions"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related party transactions"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for related parties."
       }
      }
     },
     "auth_ref": [
      "r91"
     ]
    },
    "ifrs-full_DisclosureOfRevenueExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfRevenueExplanatory",
     "presentation": [
      "http://petrobras.com/role/SalesRevenues"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Sales revenues",
        "label": "Disclosure of revenue [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for revenue."
       }
      }
     },
     "auth_ref": [
      "r333"
     ]
    },
    "pbr_DisclosureOfSalesRevenuesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfSalesRevenuesExplanatory",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of sales revenues"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfSensitivityAnalysisForActuarialAssumptionsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfSensitivityAnalysisForActuarialAssumptionsTable",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of sensitivity analysis for actuarial assumptions [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the sensitivity analysis for actuarial assumptions."
       }
      }
     },
     "auth_ref": [
      "r77"
     ]
    },
    "ifrs-full_DisclosureOfSensitivityAnalysisToChangesInRiskExposuresThatAriseFromContractsWithinScopeOfIFRS17Table": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfSensitivityAnalysisToChangesInRiskExposuresThatAriseFromContractsWithinScopeOfIFRS17Table",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails10"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of sensitivity analysis to changes in risk variables that arise from contracts within scope of IFRS 17 [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the sensitivity analysis to changes in risk variables that arise from contracts within the scope of IFRS 17."
       }
      }
     },
     "auth_ref": [
      "r195"
     ]
    },
    "pbr_DisclosureOfShareCapitalReservesAndEquityExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfShareCapitalReservesAndEquityExplanatory",
     "presentation": [
      "http://petrobras.com/role/Equity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Equity",
        "label": "DisclosureOfShareCapitalReservesAndEquityExplanatory"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfSummaryOfSignificantAccountingPoliciesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfSummaryOfSignificantAccountingPoliciesExplanatory",
     "presentation": [
      "http://petrobras.com/role/MaterialAccountingPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material accounting policies"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfTaxesReceivablesAndPayablesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfTaxesReceivablesAndPayablesExplanatory",
     "presentation": [
      "http://petrobras.com/role/Taxes"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Taxes",
        "label": "DisclosureOfTaxesReceivablesAndPayablesExplanatory"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails",
      "http://petrobras.com/role/TaxesDetails3",
      "http://petrobras.com/role/TaxesDetails4",
      "http://petrobras.com/role/TaxesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of temporary difference, unused tax losses and unused tax credits [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to temporary differences, unused tax losses and unused tax credits."
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "pbr_DisclosureOfTradeAndOtherReceivablesNetExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfTradeAndOtherReceivablesNetExplanatory",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of trade and other receivables, net"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfTradePayablesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfTradePayablesExplanatory",
     "presentation": [
      "http://petrobras.com/role/TradePayables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trade payables",
        "label": "DisclosureOfTradePayablesExplanatory"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfTradePayablesExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfTradePayablesExplanatoryTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/TradePayablesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of trade payables"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfTradeReceivablesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfTradeReceivablesExplanatory",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trade and other receivables",
        "label": "DisclosureOfTradeReceivablesExplanatory"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureOfTradeReceivablesOverdueThirdPartieExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOfTradeReceivablesOverdueThirdPartieExplanatory",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of aging of trade and other receivables"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfTransactionsBetweenRelatedPartiesTable",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetailsNarrative",
      "http://petrobras.com/role/RelatedPartyTransactionsDetails1",
      "http://petrobras.com/role/RelatedPartyTransactionsDetailsNarrative",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails",
      "http://petrobras.com/role/TradePayablesDetails"
     ],
     "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": [
      "r90"
     ]
    },
    "ifrs-full_DisclosureOfTransactionsRecognisedSeparatelyFromAcquisitionOfAssetsAndAssumptionOfLiabilitiesInBusinessCombinationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfTransactionsRecognisedSeparatelyFromAcquisitionOfAssetsAndAssumptionOfLiabilitiesInBusinessCombinationTable",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of transactions recognised separately from acquisition of assets and assumption of liabilities in business combination [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to transactions recognised separately from the acquisition of assets and the assumption of liabilities in business combinations."
       }
      }
     },
     "auth_ref": [
      "r201"
     ]
    },
    "pbr_DisclosureOtherAssetsAndLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureOtherAssetsAndLiabilitiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Assets And Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosurePropertyPlantAndEquipmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosurePropertyPlantAndEquipmentAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Property Plant And Equipment"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureProvisionForDecommissioningCostsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureProvisionForDecommissioningCostsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision For Decommissioning Costs"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureSupplementalInformationOnStatementOfCashFlowsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureSupplementalInformationOnStatementOfCashFlowsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental Information On Statement Of Cash Flows"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureTaxesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureTaxesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Taxes"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureTradeAndOtherReceivablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureTradeAndOtherReceivablesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade And Other Receivables"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DisclosureTradePayablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DisclosureTradePayablesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade Payables"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisposalsAndRetirementsIntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisposalsAndRetirementsIntangibleAssetsAndGoodwill",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Write-offs",
        "label": "Disposals and retirements, intangible assets and goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease in intangible assets and goodwill resulting from disposals and retirements. [Refer: Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r353"
     ]
    },
    "ifrs-full_DisposalsAndRetirementsPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisposalsAndRetirementsPropertyPlantAndEquipment",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Write-offs",
        "label": "Disposals and retirements, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease in property, plant and equipment resulting from disposals and retirements. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r343"
     ]
    },
    "ifrs-full_DisposalsPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisposalsPropertyPlantAndEquipment",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Write-offs",
        "label": "Disposals, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease in property, plant and equipment resulting from disposals. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r64"
     ]
    },
    "pbr_DistributionRemuneration": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DistributionRemuneration",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Distribution remuneration"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_Dividend": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "Dividend",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Dividends",
        "label": "Dividend"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DividendPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DividendPayables",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails1",
      "http://petrobras.com/role/EquityDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend payables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends that the company has declared but not yet paid."
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "pbr_DividendRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DividendRate",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend rate"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DividendsApprovedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DividendsApprovedMember",
     "presentation": [
      "http://petrobras.com/role/EquityDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends Approved [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DividendsEquivalent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DividendsEquivalent",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends equivalent"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DividendsPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DividendsPaid",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Dividends",
        "label": "Dividends recognised as distributions to owners"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends recognised as distributions to owners."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "pbr_DividendsPaidOrdinarySharePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DividendsPaidOrdinarySharePerShare",
     "presentation": [
      "http://petrobras.com/role/SubsequentEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Amount per common and preferred share",
        "label": "DividendsPaidOrdinarySharePerShare"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DividendsPaidOrdinarySharesPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DividendsPaidOrdinarySharesPerShare",
     "presentation": [
      "http://petrobras.com/role/EquityDetails1",
      "http://petrobras.com/role/EquityDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amount per common and preferred share"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends paid per ordinary share."
       }
      }
     },
     "auth_ref": [
      "r103"
     ]
    },
    "ifrs-full_DividendsPaidOtherSharesPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DividendsPaidOtherSharesPerShare",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding preferred and common share per share"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends paid per other share."
       }
      }
     },
     "auth_ref": [
      "r103"
     ]
    },
    "ifrs-full_DividendsPaidToEquityHoldersOfParentClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DividendsPaidToEquityHoldersOfParentClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Dividends paid to Shareholders of Petrobras",
        "label": "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": [
      "r359"
     ]
    },
    "ifrs-full_DividendsPaidToNoncontrollingInterestsClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DividendsPaidToNoncontrollingInterestsClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Dividends paid to non-controlling interests",
        "label": "Dividends paid to non-controlling interests, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for dividends paid to non-controlling interests, classified as financing activities. [Refer: Non-controlling interests; Dividends paid to non-controlling interests]"
       }
      }
     },
     "auth_ref": [
      "r359"
     ]
    },
    "ifrs-full_DividendsPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DividendsPayable",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilitiesOtherThanLiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/SubsequentEventsDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends payable",
        "verboseLabel": "Dividend payables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends payable by means of the distribution of non-cash assets to owners."
       }
      }
     },
     "auth_ref": [
      "r143"
     ]
    },
    "pbr_DividendsPayableToNoncontrollingShareholders": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DividendsPayableToNoncontrollingShareholders",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Opening balance of dividends payable to non-controlling shareholders",
        "negatedPeriodEndLabel": "Closing balance of dividends payable to non-controlling shareholders",
        "label": "DividendsPayableToNoncontrollingShareholders"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DividendsPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DividendsPayables",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Opening balance of dividends payable to shareholders of Petrobras",
        "periodEndLabel": "Closing balance of dividends payable to shareholders of Petrobras",
        "label": "DividendsPayables"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DividendsReceived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DividendsReceived",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total dividends"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends received."
       }
      }
     },
     "auth_ref": [
      "r152"
     ]
    },
    "ifrs-full_DividendsReceivedClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DividendsReceivedClassifiedAsInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends received"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from dividends received, classified as investing activities. [Refer: Dividends received]"
       }
      }
     },
     "auth_ref": [
      "r137"
     ]
    },
    "dei_DocumentAccountingStandard": {
     "xbrltype": "accountingStandardItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentAccountingStandard",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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": [
      "r326"
     ]
    },
    "dei_DocumentAnnualReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentAnnualReport",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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": [
      "r324",
      "r326",
      "r327"
     ]
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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/2023",
     "localname": "DocumentFiscalYearFocus",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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/2023",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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_DocumentPeriodStartDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentPeriodStartDate",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period Start Date",
        "documentation": "The start date of the period covered in the document, in YYYY-MM-DD format."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentQuarterlyReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentQuarterlyReport",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Quarterly Report",
        "documentation": "Boolean flag that is true only for a form used as an quarterly report."
       }
      }
     },
     "auth_ref": [
      "r325"
     ]
    },
    "dei_DocumentRegistrationStatement": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentRegistrationStatement",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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": [
      "r313"
     ]
    },
    "dei_DocumentShellCompanyEventDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentShellCompanyEventDate",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Shell Company Event Date",
        "documentation": "Date of event requiring a shell company report."
       }
      }
     },
     "auth_ref": [
      "r326"
     ]
    },
    "dei_DocumentShellCompanyReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentShellCompanyReport",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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": [
      "r326"
     ]
    },
    "dei_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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": [
      "r328"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentType",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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": []
    },
    "dei_DocumentsIncorporatedByReferenceTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentsIncorporatedByReferenceTextBlock",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Documents Incorporated by Reference [Text Block]",
        "documentation": "Documents incorporated by reference."
       }
      }
     },
     "auth_ref": [
      "r316"
     ]
    },
    "pbr_DollarPerRealMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DollarPerRealMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dollar Per Real [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DomesticMarketMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DomesticMarketMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Domestic Market [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DownPayment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DownPayment",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Down payment"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DownPayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DownPayments",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Down payment upon enrollment"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_DutchTaxAuthority": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "DutchTaxAuthority",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dutch tax authority"
       }
      }
     },
     "auth_ref": []
    },
    "currency_EUR": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2023",
     "localname": "EUR",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Euro Member Countries, Euro"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_EarlyTerminationAndCashOutflowsRevisionOfLeaseAgreements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EarlyTerminationAndCashOutflowsRevisionOfLeaseAgreements",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Early termination and cash outflows revision of lease agreements"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_EarlyTerminationAndChangesToCashFlowEstimatesOfLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EarlyTerminationAndChangesToCashFlowEstimatesOfLeases",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Early termination and changes to cash flow estimates of leases"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EarningsPerShareExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EarningsPerShareExplanatory",
     "presentation": [
      "http://petrobras.com/role/EquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of earning per share"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of earnings per share."
       }
      }
     },
     "auth_ref": [
      "r101"
     ]
    },
    "pbr_EffectInStatementOfIncomeBeforeReimbursementOfPartnersInJointVentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EffectInStatementOfIncomeBeforeReimbursementOfPartnersInJointVentures",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effect in the statement of income before reimbursement of partners in joint ventures"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EffectOfExchangeRateChangesOnCashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effect of exchange rate changes on 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": [
      "r135",
      "r136"
     ]
    },
    "pbr_ElectricitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ElectricitiesMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Electricities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_EliminationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EliminationsMember",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Eliminations [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EmployeeBenefitsExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EmployeeBenefitsExpense",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Total",
        "label": "Employee benefits expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The expense of all forms of consideration given by an entity in exchange for a service rendered by employees or for the termination of employment."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r50",
      "r263"
     ]
    },
    "pbr_EmployeeCompensationPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EmployeeCompensationPayable",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation of employees"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_EndingBalance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EndingBalance",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodEndLabel": "Ending balance",
        "label": "EndingBalance"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_EnrollmentAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EnrollmentAmount",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Enrollment amount"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_EnrollmentTaxesCurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EnrollmentTaxesCurrentLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Balance at June 30, 2024"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_EnrollmentToProgram": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EnrollmentToProgram",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Enrollment to the program"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_EnrollmentToTaxSettlementProgram": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EnrollmentToTaxSettlementProgram",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Enrollment to the tax settlement program (3)",
        "label": "EnrollmentToTaxSettlementProgram"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_EnrollmentToTheTaxSettlementProgramMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EnrollmentToTheTaxSettlementProgramMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Enrollment To The Tax Settlement Program [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line One",
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine2": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressAddressLine2",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line Two",
        "documentation": "Address Line 2 such as Street or Suite number"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine3": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressAddressLine3",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line Three",
        "documentation": "Address Line 3 such as an Office Park"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCityOrTown": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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/2023",
     "localname": "EntityAddressCountry",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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/2023",
     "localname": "EntityAddressPostalZipCode",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Postal Zip Code",
        "documentation": "Code for the postal or zip code"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressStateOrProvince": {
     "xbrltype": "stateOrProvinceItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressStateOrProvince",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, State or Province",
        "documentation": "Name of the state or province."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityBankruptcyProceedingsReportingCurrent": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityBankruptcyProceedingsReportingCurrent",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Bankruptcy Proceedings, Reporting Current",
        "documentation": "For registrants involved in bankruptcy proceedings during the preceding five years, the value Yes indicates that the registrant has filed all documents and reports required to be filed by Section 12, 13 or 15(d) of the Securities Exchange Act of 1934 subsequent to the distribution of securities under a plan confirmed by a court; the value No indicates the registrant has not.  Registrants not involved in bankruptcy proceedings during the preceding five years should not report this element."
       }
      }
     },
     "auth_ref": [
      "r319"
     ]
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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": [
      "r315"
     ]
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCommonStockSharesOutstanding",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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/2023",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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_EntityEmergingGrowthCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityEmergingGrowthCompany",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r315"
     ]
    },
    "dei_EntityExTransitionPeriod": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityExTransitionPeriod",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Elected Not To Use the Extended Transition Period",
        "documentation": "Indicate if an emerging growth company has elected not to use the extended transition period for complying with any new or revised financial accounting standards."
       }
      }
     },
     "auth_ref": [
      "r332"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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/2023",
     "localname": "EntityFilerCategory",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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": [
      "r315"
     ]
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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/2023",
     "localname": "EntityInteractiveDataCurrent",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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": [
      "r329"
     ]
    },
    "dei_EntityPrimarySicNumber": {
     "xbrltype": "sicNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityPrimarySicNumber",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Primary SIC Number",
        "documentation": "Primary Standard Industrial Classification (SIC) Number for the Entity."
       }
      }
     },
     "auth_ref": [
      "r327"
     ]
    },
    "dei_EntityPublicFloat": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityPublicFloat",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Public Float",
        "documentation": "The aggregate market value of the voting and non-voting common equity held by non-affiliates computed by reference to the price at which the common equity was last sold, or the average bid and asked price of such common equity, as of the last business day of the registrant's most recently completed second fiscal quarter."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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": [
      "r315"
     ]
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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": [
      "r315"
     ]
    },
    "dei_EntitySmallBusiness": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntitySmallBusiness",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Small Business",
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC)."
       }
      }
     },
     "auth_ref": [
      "r315"
     ]
    },
    "dei_EntityTaxIdentificationNumber": {
     "xbrltype": "employerIdItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityTaxIdentificationNumber",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Tax Identification Number",
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS."
       }
      }
     },
     "auth_ref": [
      "r315"
     ]
    },
    "dei_EntityVoluntaryFilers": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityVoluntaryFilers",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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/2023",
     "localname": "EntityWellKnownSeasonedIssuer",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "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": [
      "r330"
     ]
    },
    "ifrs-full_EntitysTotalForAssociatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EntitysTotalForAssociatesMember",
     "presentation": [
      "http://petrobras.com/role/InvestmentsDetails"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Associates' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r97",
      "r98",
      "r167"
     ]
    },
    "ifrs-full_EntitysTotalForBusinessCombinationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EntitysTotalForBusinessCombinationsMember",
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Business combinations' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r203",
      "r206"
     ]
    },
    "ifrs-full_EntitysTotalForExternalCreditGradesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EntitysTotalForExternalCreditGradesMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'External credit grades' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r298",
      "r306"
     ]
    },
    "ifrs-full_EntitysTotalForJointOperationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EntitysTotalForJointOperationsMember",
     "presentation": [
      "http://petrobras.com/role/CollateralForCrudeOilExplorationConcessionAgreementsDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Joint operations' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r166"
     ]
    },
    "ifrs-full_EntitysTotalForJointVenturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EntitysTotalForJointVenturesMember",
     "presentation": [
      "http://petrobras.com/role/InvestmentsDetails",
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Joint ventures' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r97",
      "r98",
      "r165"
     ]
    },
    "ifrs-full_EntitysTotalForProbabilityOfDefaultMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EntitysTotalForProbabilityOfDefaultMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11",
      "http://petrobras.com/role/FinancialRiskManagementDetails12",
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Probability of default' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r298",
      "r306"
     ]
    },
    "ifrs-full_EntitysTotalForRelatedPartiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EntitysTotalForRelatedPartiesMember",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetailsNarrative",
      "http://petrobras.com/role/RelatedPartyTransactionsDetails",
      "http://petrobras.com/role/RelatedPartyTransactionsDetails1",
      "http://petrobras.com/role/RelatedPartyTransactionsDetailsNarrative",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetailsNarrative",
      "http://petrobras.com/role/TradePayablesDetails"
     ],
     "lang": {
      "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": [
      "r90"
     ]
    },
    "ifrs-full_EntitysTotalForSegmentConsolidationItemsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EntitysTotalForSegmentConsolidationItemsMember",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails1"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Segment consolidation items' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r253"
     ]
    },
    "ifrs-full_EntitysTotalForSubsidiariesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EntitysTotalForSubsidiariesMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails6"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Subsidiaries' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r97",
      "r98",
      "r164"
     ]
    },
    "pbr_EnvironmentalRelatedContingentLiabilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EnvironmentalRelatedContingentLiabilityMember",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Environmental Related Contingent Liability [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_EquipmentAndOtherAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EquipmentAndOtherAssetsMember",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equipment And Other Assets [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_Equities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "Equities",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "Equities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Equity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Equity",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAndLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Equity",
        "periodStartLabel": "Beginning balance, value",
        "periodEndLabel": "Ending balance, value",
        "label": "Equity [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of residual interest in the assets of the entity after deducting all its liabilities."
       }
      }
     },
     "auth_ref": [
      "r21",
      "r31",
      "r144",
      "r146",
      "r168",
      "r169",
      "r170"
     ]
    },
    "pbr_EquityAccountedInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EquityAccountedInvestmentsMember",
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Accounted Investments [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EquityAndLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EquityAndLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total liabilities and equity",
        "label": "Equity and liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of the entity's equity and liabilities. [Refer: Equity; Liabilities]"
       }
      }
     },
     "auth_ref": [
      "r21"
     ]
    },
    "ifrs-full_EquityAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EquityAttributableToOwnersOfParent",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_Equity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Attributable to the shareholders of Petrobras",
        "label": "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": [
      "r20"
     ]
    },
    "pbr_EquityAttributableToShareholdersOfPetrobrasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EquityAttributableToShareholdersOfPetrobrasMember",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Attributable To Shareholders Of Petrobras [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EquityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EquityMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails8",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "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": [
      "r5"
     ]
    },
    "pbr_EscrowAccountCollateralMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EscrowAccountCollateralMember",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Escrow Account Collateral [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_EuroPerDollarMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EuroPerDollarMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Euro Per Dollar [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_EuroPerRealMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EuroPerRealMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Euro Per Real [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_EuropenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "EuropenMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Europen [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ExchangeDifferencesOnTranslationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ExchangeDifferencesOnTranslationAbstract",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Translation adjustments\u00a0(1)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ExchangeRateCrossCurrencySwapMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExchangeRateCrossCurrencySwapMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exchange Rate Cross Currency Swap [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ExpectedCreditLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExpectedCreditLosses",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Expected credit losses",
        "label": "ExpectedCreditLosses"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ExpectedReclassificationOfCumulativeForeignExchangeLossesRecognizedInOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExpectedReclassificationOfCumulativeForeignExchangeLossesRecognizedInOtherComprehensiveIncome",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails9"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expected realization"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ExpectedReimbursementOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ExpectedReimbursementOtherProvisions",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reimbursement expected amount"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount expected to be reimbursed by another party on expenditures to settle other provisions. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r113"
     ]
    },
    "ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ExpenseArisingFromExplorationForAndEvaluationOfMineralResources",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "ifrs-full_OperatingExpenseExcludingCostOfSales",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Exploration costs",
        "negatedTerseLabel": "Exploration costs",
        "label": "Expense arising from exploration for and evaluation of mineral resources"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense 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": [
      "r209"
     ]
    },
    "pbr_ExpenseArisingFromExplorationOfGeologicalAndGeophysicalCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExpenseArisingFromExplorationOfGeologicalAndGeophysicalCosts",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geological and geophysical expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ExpenseByNature": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ExpenseByNature",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails1",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Expenses, by nature",
        "negatedTerseLabel": "Total",
        "label": "Expenses, by nature"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expenses aggregated according to their nature (for example, depreciation, purchases of materials, transport costs, employee benefits and advertising costs), and not reallocated among functions within the entity."
       }
      }
     },
     "auth_ref": [
      "r50"
     ]
    },
    "ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ExpenseFromSharebasedPaymentTransactionsWithEmployees",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails1",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Employee compensation",
        "label": "Expense from share-based payment transactions with employees"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense from share-based payment transactions with employees. [Refer: Expense from share-based payment transactions]"
       }
      }
     },
     "auth_ref": [
      "r335"
     ]
    },
    "ifrs-full_ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable payments"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of the expense relating to variable lease payments not included in the measurement of lease liabilities. Variable lease payments are the portion of payments made by a lessee to a lessor for the right to use an underlying asset during the lease term that varies because of changes in facts or circumstances occurring after the commencement date, other than the passage of time. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r182"
     ]
    },
    "pbr_ExpensesWithContractualFinesReceived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExpensesWithContractualFinesReceived",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expenses with contractual fines received"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ExpensesWithPostemploymentMedicalBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExpensesWithPostemploymentMedicalBenefits",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Post-employment benefits"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ExpiredUnclaimedDividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExpiredUnclaimedDividends",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expired unclaimed dividends"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ExplanationOfTransactionsRecognisedSeparatelyFromAcquisitionOfAssetsAndAssumptionOfLiabilitiesInBusinessCombination": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ExplanationOfTransactionsRecognisedSeparatelyFromAcquisitionOfAssetsAndAssumptionOfLiabilitiesInBusinessCombination",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Riacho da Forquilha group of fields"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of transactions that are recognised separately from the acquisition of assets and the assumption of liabilities in business combinations. [Refer: Business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r200",
      "r201",
      "r202"
     ]
    },
    "pbr_ExplorationAndDevelopmentCostsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExplorationAndDevelopmentCostsMember",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploration And Development Costs [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ExplorationAndProductionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExplorationAndProductionMember",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploration And Production [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ExplorationAndProductionSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExplorationAndProductionSegmentMember",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploration And Production Segment [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ExplorationCostsRecognisedInIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExplorationCostsRecognisedInIncomeAbstract",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploration costs recognized in the statement of income"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ExplorationCostsRecognizedInContractualPenalties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExplorationCostsRecognizedInContractualPenalties",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contractual penalties on local content requirements"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ExplorationExpendituresWrittenoff": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExplorationExpendituresWrittenoff",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploration expenditures written off (includes dry wells and signature bonuses)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ExploratoryExpenditureWrittenOff": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExploratoryExpenditureWrittenOff",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploratory expenditure write-offs"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ExploratoryWellCostsOrAcquisitionCostsCapitalised": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExploratoryWellCostsOrAcquisitionCostsCapitalised",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalized Exploratory Well Costs / Capitalized Acquisition Costs"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ExportCreditAgenciesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExportCreditAgenciesMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Export Credit Agencies [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ExportsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExportsMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exports [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_Extension": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "Extension",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Extension",
        "documentation": "Extension number for local phone number."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ExternalCreditGradesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ExternalCreditGradesAxis",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails"
     ],
     "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": [
      "r298",
      "r306"
     ]
    },
    "pbr_ExtraordinaryDividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExtraordinaryDividends",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Extraordinary dividends"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ExtraordinaryDividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ExtraordinaryDividendsMember",
     "presentation": [
      "http://petrobras.com/role/EquityDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Extraordinary Dividends [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_FairValueAssetPositionLiability": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "FairValueAssetPositionLiability",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair value Asset Position (Liability)"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FairValueHedgesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FairValueHedgesMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair value hedges [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for hedges of the exposure to changes in fair value of a recognised asset or liability or an unrecognised firm commitment, or an identified portion of such an asset, liability or firm commitment, that is attributable to a particular risk and could affect profit or loss. [Refer: Hedges [member]]"
       }
      }
     },
     "auth_ref": [
      "r124",
      "r215",
      "r216",
      "r220"
     ]
    },
    "pbr_FairValueOfDerivativeFinancialAssetsLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "FairValueOfDerivativeFinancialAssetsLiability",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Of Derivative Financial Assets (Liability)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_Fertilizers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "Fertilizers",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InventoriesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fertilizers"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinanceCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinanceCosts",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "pbr_NetFinanceExpense",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/NetFinanceIncomeExpenseDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Finance expenses",
        "label": "Finance costs"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of costs associated with financing activities of the entity."
       }
      }
     },
     "auth_ref": [
      "r42"
     ]
    },
    "pbr_FinanceDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "FinanceDebt",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Finance debt",
        "label": "FinanceDebt"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_FinanceDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "FinanceDebtMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Debt [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_FinanceDebtTotalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "FinanceDebtTotalMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Debt Total [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinanceIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinanceIncome",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "pbr_NetFinanceExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/NetFinanceIncomeExpenseDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income associated with interest and other financing activities of the entity."
       }
      }
     },
     "auth_ref": [
      "r339"
     ]
    },
    "ifrs-full_FinanceLeaseReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinanceLeaseReceivables",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of receivables related to finance leases."
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "pbr_FinanceLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "FinanceLeases",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssetsAtAmortisedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialAssetsAtAmortisedCost",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortized cost - Others"
       }
      },
      "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": [
      "r239"
     ]
    },
    "ifrs-full_FinancialAssetsAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialAssetsAtFairValue",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails13"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign currency derivatives, assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value of financial assets. [Refer: At fair value [member]; Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r223"
     ]
    },
    "ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialAssetsAtFairValueThroughProfitOrLoss",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair value through profit or loss"
       }
      },
      "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": [
      "r238"
     ]
    },
    "ifrs-full_FinancialAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialAssetsMember",
     "presentation": [
      "http://petrobras.com/role/EquityDetails1",
      "http://petrobras.com/role/EquityDetailsNarrative",
      "http://petrobras.com/role/FinancialRiskManagementDetails1",
      "http://petrobras.com/role/FinancialRiskManagementDetails11",
      "http://petrobras.com/role/FinancialRiskManagementDetails12",
      "http://petrobras.com/role/FinancialRiskManagementDetails2",
      "http://petrobras.com/role/FinancialRiskManagementDetails3",
      "http://petrobras.com/role/FinancialRiskManagementDetails4",
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "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": [
      "r197",
      "r235",
      "r236",
      "r260",
      "r261"
     ]
    },
    "pbr_FinancialAssumptionsInterestRateAndInflationChangesInFairValueOfPlanAssetsAndActuarialValuationMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "FinancialAssumptionsInterestRateAndInflationChangesInFairValueOfPlanAssetsAndActuarialValuationMethod",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assumptions (interest rate and inflation), changes in fair value of plan assets and actuarial valuation method"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_FinancialCompensationForCoparticipationAgreement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "FinancialCompensationForCoparticipationAgreement",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial compensation from co-participation agreements"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_FinancialInstrumentsDesignatedAsHedgingInstrumentAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "FinancialInstrumentsDesignatedAsHedgingInstrumentAtFairValue",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amounts designated"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialLiabilitiesAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialLiabilitiesAtFairValue",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails13"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign currency derivatives, liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value of financial liabilities. [Refer: At fair value [member]; Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r223"
     ]
    },
    "ifrs-full_FinancialLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialLiabilitiesMember",
     "presentation": [
      "http://petrobras.com/role/EquityDetails2",
      "http://petrobras.com/role/SubsequentEventsDetails"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for aggregated classes financial liabilities. It also represents the standard value for the 'Classes of financial liabilities' axis if no other member is used. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r235",
      "r236",
      "r260",
      "r261"
     ]
    },
    "pbr_FinancingCarryingDollarRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "FinancingCarryingDollarRate",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing carrying rate, Dollar"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_FinancingCarryingEuroRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "FinancingCarryingEuroRate",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing carrying rate, Euro"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_FinancingCarryingPoundsRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "FinancingCarryingPoundsRate",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing carrying rate, Pounds"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_FinesImposedOnSuppliers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "FinesImposedOnSuppliers",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fines imposed on suppliers"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_FirstInstallmentPetroleumAndAlcoholAccountsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "FirstInstallmentPetroleumAndAlcoholAccountsMember",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "First Installment Petroleum And Alcohol Accounts [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FixedInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FixedInterestRateMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fixed interest rate [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a fixed interest rate. [Refer: Interest rate risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r364"
     ]
    },
    "ifrs-full_FloatingInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FloatingInterestRateMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Floating interest rate [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a non-fixed interest rate. [Refer: Interest rate risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r364"
     ]
    },
    "ifrs-full_ForeignCountriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ForeignCountriesMember",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails",
      "http://petrobras.com/role/FinanceDebtDetails",
      "http://petrobras.com/role/FinanceDebtDetails2",
      "http://petrobras.com/role/FinanceDebtDetails6",
      "http://petrobras.com/role/LeaseLiabilityDetails",
      "http://petrobras.com/role/TaxesDetails",
      "http://petrobras.com/role/TaxesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign countries [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for countries outside the entity's country of domicile. [Refer: Country of domicile [member]]"
       }
      }
     },
     "auth_ref": [
      "r255",
      "r256"
     ]
    },
    "pbr_ForeignCurrencyContractsDerivativeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ForeignCurrencyContractsDerivativeMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails13"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Currency Contracts Derivative [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ForeignCurrencyDepreciationBRLMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ForeignCurrencyDepreciationBRLMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Currency Depreciation B R L [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ForeignCurrencyOrCrossCurrencySwapMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ForeignCurrencyOrCrossCurrencySwapMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Currency Or Cross Currency Swap [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ForeignExchangeAndInflationIndexationChargesNetMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ForeignExchangeAndInflationIndexationChargesNetMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Exchange And Inflation Indexation Charges Net [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ForeignExchangeGainsAndLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ForeignExchangeGainsAndLoss",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign exchange gains and losses"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ForeignExchangeGainsLossAndIndexationCharges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ForeignExchangeGainsLossAndIndexationCharges",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/NetFinanceIncomeExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign exchange gains (losses) and indexation charges"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ForeignExchangeInflationIndexationCharge": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ForeignExchangeInflationIndexationCharge",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign exchange/ inflation indexation charges"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ForeignExchangeRateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ForeignExchangeRateAxis",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Exchange Rate [Axis]",
        "verboseLabel": "ForeignExchangeRateAxis [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ForeignExchangeRateDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ForeignExchangeRateDomain",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails8"
     ],
     "auth_ref": []
    },
    "pbr_ForeignMarketMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ForeignMarketMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Market [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ForwardContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ForwardContractMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forward contract [member]"
       }
      },
      "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": [
      "r335"
     ]
    },
    "pbr_FuelOiLincludingBunkerFuelMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "FuelOiLincludingBunkerFuelMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "FuelOilIncludingBunkerFuelMember"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FuturesContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FuturesContractMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails1",
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Futures contract [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a standardised, exchange-traded contract for the purchase or sale of an underlying asset at a specified future date for a settlement price determined in advance."
       }
      }
     },
     "auth_ref": [
      "r335"
     ]
    },
    "currency_GBP": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2023",
     "localname": "GBP",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "United Kingdom, Pounds"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_GainLossOnHedgeIneffectivenessRecognisedInCashflow": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "GainLossOnHedgeIneffectivenessRecognisedInCashflow",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gains/ (losses) recognized in other comprehensive income"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GainLossOnHedgeIneffectivenessRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GainLossOnHedgeIneffectivenessRecognisedInProfitOrLoss",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails2",
      "http://petrobras.com/role/FinancialRiskManagementDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gains/ (losses) recognized in the statement of income",
        "verboseLabel": "Exports affecting the statement of income"
       }
      },
      "en": {
       "role": {
        "documentation": "The gain (loss) recognised in profit or loss on hedge ineffectiveness. [Refer: Gain (loss) on hedge ineffectiveness]"
       }
      }
     },
     "auth_ref": [
      "r217",
      "r219"
     ]
    },
    "ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GainsLossesOnCashFlowHedgesBeforeTax",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recognized in equity"
       }
      },
      "en": {
       "role": {
        "documentation": "The gains (losses) recognised in other comprehensive income on cash flow hedges, before tax, before reclassification adjustments. [Refer: Cash flow hedges [member]]"
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "pbr_GainsLossesOnCashFlowHedgesBeforeTax1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "GainsLossesOnCashFlowHedgesBeforeTax1",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Recognized in equity",
        "label": "GainsLossesOnCashFlowHedgesBeforeTax1"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GainsLossesOnCashFlowHedgesNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GainsLossesOnCashFlowHedgesNetOfTax",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recognized in Other comprehensive income"
       }
      },
      "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": [
      "r46",
      "r218",
      "r221"
     ]
    },
    "ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GainsLossesOnExchangeDifferencesOnTranslationBeforeTax",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Translation adjustment",
        "label": "Gains (losses) on exchange differences on translation of foreign operations, before tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The gains (losses) recognised in other comprehensive income on exchange differences on the translation of financial statements of foreign operations, before tax, before reclassification adjustments. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GainsLossesOnExchangeDifferencesOnTranslationNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Recognized in equity",
        "label": "Gains (losses) on exchange differences on translation of foreign operations, net of tax"
       }
      },
      "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": [
      "r46"
     ]
    },
    "ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails7",
      "http://petrobras.com/role/NetFinanceIncomeExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign exchange gains (losses) (2)",
        "verboseLabel": "Foreign exchange variation"
       }
      },
      "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]; Financial instruments, class [member]]"
       }
      }
     },
     "auth_ref": [
      "r8",
      "r83"
     ]
    },
    "ifrs-full_GainsLossesOnFairValueAdjustmentInvestmentProperty": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GainsLossesOnFairValueAdjustmentInvestmentProperty",
     "presentation": [
      "http://petrobras.com/role/InvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Translation adjustment",
        "label": "Gains (losses) on fair value adjustment, investment property"
       }
      },
      "en": {
       "role": {
        "documentation": "The gains (losses) from changes in the fair value of investment property. [Refer: Investment property]"
       }
      }
     },
     "auth_ref": [
      "r127"
     ]
    },
    "ifrs-full_GainsLossesOnNetMonetaryPosition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GainsLossesOnNetMonetaryPosition",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Monetary restatement"
       }
      },
      "en": {
       "role": {
        "documentation": "The gains (losses) representing the difference resulting from the restatement of non-monetary assets, owners' equity and items in the statement of comprehensive income and the adjustment of index linked assets and liabilities in hyperinflationary reporting."
       }
      }
     },
     "auth_ref": [
      "r99"
     ]
    },
    "pbr_GainsLossesWithCommoditiesDerivatives": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "GainsLossesWithCommoditiesDerivatives",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gains (losses) with commodities derivatives"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_GainsLossesWithLegalAdministrativeAndArbitrationProceedingsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "GainsLossesWithLegalAdministrativeAndArbitrationProceedingsNet",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Losses with legal, administrative and arbitration proceedings, net",
        "label": "GainsLossesWithLegalAdministrativeAndArbitrationProceedingsNet"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_GasAndLowCarbonEnergyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "GasAndLowCarbonEnergyMember",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gas And Low Carbon Energy [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_GasAndPowerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "GasAndPowerMember",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails1",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gas And Power [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_GasolineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "GasolineMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gasoline [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GeneralAndAdministrativeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GeneralAndAdministrativeExpense",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "ifrs-full_OperatingExpenseExcludingCostOfSales",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "General and administrative expenses",
        "negatedTerseLabel": "General and administrative expenses",
        "label": "General and administrative expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense relating to general and administrative activities of the entity."
       }
      }
     },
     "auth_ref": [
      "r335"
     ]
    },
    "pbr_GeneralAndAdministrativeExpensesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "GeneralAndAdministrativeExpensesMember",
     "presentation": [
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "General And Administrative Expenses [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GeographicalAreasAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GeographicalAreasAxis",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails",
      "http://petrobras.com/role/FinanceDebtDetails",
      "http://petrobras.com/role/FinanceDebtDetails2",
      "http://petrobras.com/role/FinanceDebtDetails6",
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "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": [
      "r257",
      "r272",
      "r293",
      "r296"
     ]
    },
    "ifrs-full_GeographicalAreasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GeographicalAreasMember",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails",
      "http://petrobras.com/role/FinanceDebtDetails",
      "http://petrobras.com/role/FinanceDebtDetails2",
      "http://petrobras.com/role/FinanceDebtDetails6",
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "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": [
      "r257",
      "r272",
      "r293",
      "r296"
     ]
    },
    "ifrs-full_GoodwillMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GoodwillMember",
     "presentation": [
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goodwill [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for goodwill. [Refer: Goodwill]"
       }
      }
     },
     "auth_ref": [
      "r277"
     ]
    },
    "pbr_GovernmentBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "GovernmentBondsMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Government Bonds [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_GovernmentEntitiesSubTotalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "GovernmentEntitiesSubTotalMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Government Entities Sub Total [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_GovernmentGrant": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "GovernmentGrant",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Government grants"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GrossCarryingAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GrossCarryingAmountMember",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails2",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gross carrying amount [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the amount at which an asset is recognised before deducting any accumulated depreciation (amortisation) and accumulated impairment losses thereon. [Refer: Depreciation and amortisation expense; Impairment loss]"
       }
      }
     },
     "auth_ref": [
      "r62",
      "r118",
      "r129",
      "r132",
      "r205",
      "r229",
      "r232",
      "r299"
     ]
    },
    "ifrs-full_GrossProfit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GrossProfit",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Gross profit",
        "label": "Gross profit (loss)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of revenue less cost of sales. [Refer: Cost of sales; Revenue]"
       }
      }
     },
     "auth_ref": [
      "r264"
     ]
    },
    "pbr_GuaranteesGivenAsCollateral": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "GuaranteesGivenAsCollateral",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Guarantees given as collateral"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_HealthCarePlanSaudePetrobrasAMSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "HealthCarePlanSaudePetrobrasAMSMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Health Care Plan Saude Petrobras A M S [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_HealthCarePlanSaudePetrobrasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "HealthCarePlanSaudePetrobrasMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6",
      "http://petrobras.com/role/EmployeeBenefitsDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Health Care Plan Saude Petrobras [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_HedgingInstrumentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "HedgingInstrumentsAxis",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails1",
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hedging 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": [
      "r213",
      "r215"
     ]
    },
    "ifrs-full_HedgingInstrumentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "HedgingInstrumentsMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails1",
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for hedging instruments. A hedging instrument can be a designated: (a) derivative measured at fair value through profit or loss, except for some written options (see paragraph B6.2.4 of IFRS 9); (b) non-derivative financial asset or non-derivative financial liability measured at fair value through profit or loss, unless it is a financial liability designated as at fair value through profit or loss for which the amount of its change in fair value that is attributable to changes in the credit risk of that liability is presented in other comprehensive income in accordance with paragraph 5.7.7 of IFRS 9. For a hedge of foreign currency risk, the foreign currency risk component of a non-derivative financial asset or a non-derivative financial liability may be designated as a hedging instrument provided that it is not an investment in an equity instrument for which an entity has elected to present changes in fair value in other comprehensive income in accordance with paragraph 5.7.5 of IFRS 9. This member also represents the standard value for the 'Hedging instruments' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r213",
      "r215"
     ]
    },
    "pbr_IPCAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IPCAMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails1",
      "http://petrobras.com/role/FinancialRiskManagementDetails12"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "IPCA [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IfrsStatementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IfrsStatementLineItems",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails",
      "http://petrobras.com/role/CollateralForCrudeOilExplorationConcessionAgreementsDetailsNarrative",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails1",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails2",
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails",
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1",
      "http://petrobras.com/role/EmployeeBenefitsDetails1",
      "http://petrobras.com/role/EmployeeBenefitsDetails2",
      "http://petrobras.com/role/EmployeeBenefitsDetails3",
      "http://petrobras.com/role/EmployeeBenefitsDetails4",
      "http://petrobras.com/role/EmployeeBenefitsDetails5",
      "http://petrobras.com/role/EmployeeBenefitsDetails6",
      "http://petrobras.com/role/EmployeeBenefitsDetails7",
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative",
      "http://petrobras.com/role/EquityDetails1",
      "http://petrobras.com/role/EquityDetails2",
      "http://petrobras.com/role/EquityDetails6",
      "http://petrobras.com/role/EquityDetailsNarrative",
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails",
      "http://petrobras.com/role/FinanceDebtDetails",
      "http://petrobras.com/role/FinanceDebtDetails2",
      "http://petrobras.com/role/FinanceDebtDetails3",
      "http://petrobras.com/role/FinanceDebtDetails4",
      "http://petrobras.com/role/FinanceDebtDetails5",
      "http://petrobras.com/role/FinanceDebtDetails6",
      "http://petrobras.com/role/FinanceDebtDetailsNarrative",
      "http://petrobras.com/role/FinancialRiskManagementDetails1",
      "http://petrobras.com/role/FinancialRiskManagementDetails10",
      "http://petrobras.com/role/FinancialRiskManagementDetails11",
      "http://petrobras.com/role/FinancialRiskManagementDetails12",
      "http://petrobras.com/role/FinancialRiskManagementDetails13",
      "http://petrobras.com/role/FinancialRiskManagementDetails2",
      "http://petrobras.com/role/FinancialRiskManagementDetails3",
      "http://petrobras.com/role/FinancialRiskManagementDetails4",
      "http://petrobras.com/role/FinancialRiskManagementDetails5",
      "http://petrobras.com/role/FinancialRiskManagementDetails6",
      "http://petrobras.com/role/FinancialRiskManagementDetails7",
      "http://petrobras.com/role/FinancialRiskManagementDetails8",
      "http://petrobras.com/role/FinancialRiskManagementDetails9",
      "http://petrobras.com/role/ImpairmentDetails1",
      "http://petrobras.com/role/ImpairmentDetailsNarrative",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails1",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3",
      "http://petrobras.com/role/IntangibleAssetsDetails",
      "http://petrobras.com/role/InvestmentsDetails",
      "http://petrobras.com/role/LeaseLiabilityDetails",
      "http://petrobras.com/role/LeaseLiabilityDetails1",
      "http://petrobras.com/role/LeaseLiabilityDetailsNarrative",
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails1",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails2",
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails",
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails",
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails4",
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetailsNarrative",
      "http://petrobras.com/role/RelatedPartyTransactionsDetails",
      "http://petrobras.com/role/RelatedPartyTransactionsDetails1",
      "http://petrobras.com/role/RelatedPartyTransactionsDetailsNarrative",
      "http://petrobras.com/role/SalesRevenuesDetails",
      "http://petrobras.com/role/SubsequentEventsDetails",
      "http://petrobras.com/role/SubsequentEventsDetailsNarrative",
      "http://petrobras.com/role/TaxesDetails",
      "http://petrobras.com/role/TaxesDetails3",
      "http://petrobras.com/role/TaxesDetails4",
      "http://petrobras.com/role/TaxesDetailsNarrative",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails1",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetailsNarrative",
      "http://petrobras.com/role/TradePayablesDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "IfrsStatementLineItems [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IfrsStatementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IfrsStatementTable",
     "presentation": [
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails1",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails2",
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails",
      "http://petrobras.com/role/FinancialRiskManagementDetails6",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3",
      "http://petrobras.com/role/LeaseLiabilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "IfrsStatementTable [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ImpairmentLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ImpairmentLoss",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net impairment losses"
       }
      },
      "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": [
      "r107",
      "r108"
     ]
    },
    "ifrs-full_ImpairmentLossRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ImpairmentLossRecognisedInProfitOrLoss",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Net effect within the statement of income",
        "label": "Impairment loss recognised in profit or loss"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of impairment loss recognised in profit or loss. [Refer: Impairment loss; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r104",
      "r106"
     ]
    },
    "ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Impairment recognition (note 19)",
        "label": "Impairment loss recognised in profit or loss, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of impairment loss recognised in profit or loss for property, plant and equipment. [Refer: Impairment loss recognised in profit or loss; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r49",
      "r65"
     ]
    },
    "pbr_ImpairmentLossRecognisedInProfitOrLossTradeReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ImpairmentLossRecognisedInProfitOrLossTradeReceivable",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Allowance for expected credit losses",
        "label": "ImpairmentLossRecognisedInProfitOrLossTradeReceivable"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "ifrs-full_OperatingExpenseExcludingCostOfSales",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetails",
      "http://petrobras.com/role/ImpairmentDetails1",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Impairment (losses) reversals, net",
        "negatedTerseLabel": "Impairment (losses) reversals, net",
        "label": "Impairment loss (reversal of impairment loss) recognised in profit or loss"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of impairment loss or reversal of impairment loss recognised in profit or loss. [Refer: Impairment loss recognised in profit or loss; Reversal of impairment loss recognised in profit or loss]"
       }
      }
     },
     "auth_ref": [
      "r50"
     ]
    },
    "pbr_ImpairmentLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ImpairmentLosses",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Losses"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ImpairmentOfAssetsReversal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ImpairmentOfAssetsReversal",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment of assets (reversals), net"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IncomeExpense",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income (Expense)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IncomeExpensesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IncomeExpensesMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Expenses [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeFromFinesAndPenalties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncomeFromFinesAndPenalties",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Principal and fines"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income arising from fines and penalties."
       }
      }
     },
     "auth_ref": [
      "r335"
     ]
    },
    "pbr_IncomeFromInvestmentsAndMarketableSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IncomeFromInvestmentsAndMarketableSecurities",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/NetFinanceIncomeExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income from investments and marketable securities (Government Bonds)"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeStatementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncomeStatementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit or loss [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IncomeStatementsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IncomeStatementsAxis",
     "presentation": [
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails1",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statements [Axis]",
        "verboseLabel": "IncomeStatementsAxis [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IncomeStatementsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IncomeStatementsDomain",
     "presentation": [
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails1",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails2"
     ],
     "auth_ref": []
    },
    "ifrs-full_IncomeTaxExpenseContinuingOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncomeTaxExpenseContinuingOperations",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/TaxesDetails1",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Income taxes",
        "negatedTerseLabel": "Income taxes",
        "label": "Tax expense (income)"
       }
      },
      "en": {
       "role": {
        "documentation": "The aggregate amount included in the determination of profit (loss) for the period in respect of current tax and deferred tax. [Refer: Current tax expense (income); Deferred tax expense (income)]"
       }
      }
     },
     "auth_ref": [
      "r44",
      "r53",
      "r55",
      "r56",
      "r94",
      "r162",
      "r245"
     ]
    },
    "pbr_IncomeTaxExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IncomeTaxExpenses",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income tax expense"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Deferred income tax",
        "label": "Income tax relating to remeasurements of defined benefit plans included in other comprehensive income"
       }
      },
      "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 [member]]"
       }
      }
     },
     "auth_ref": [
      "r45",
      "r54"
     ]
    },
    "pbr_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome2": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome2",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Deferred income tax",
        "label": "IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome2"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IncomeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IncomeTaxes",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Income taxes",
        "label": "IncomeTaxes"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IncomeTaxesAfterReimbursement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IncomeTaxesAfterReimbursement",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Income taxes (2)",
        "label": "IncomeTaxesAfterReimbursement"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IncomeTaxesBeforeReimbursement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IncomeTaxesBeforeReimbursement",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income taxes (2)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IncomeTaxesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IncomeTaxesMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Taxes [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncomeTaxesPaidRefundClassifiedAsOperatingActivities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 27.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Income taxes paid",
        "label": "Income taxes paid (refund), classified as operating activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from income taxes paid or refunded, classified as operating activities. [Refer: Income taxes paid (refund)]"
       }
      }
     },
     "auth_ref": [
      "r138",
      "r281"
     ]
    },
    "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseInCashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net change in cash and cash equivalents",
        "label": "Increase (decrease) in cash and cash equivalents after effect of exchange rate changes"
       }
      },
      "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": [
      "r141"
     ]
    },
    "ifrs-full_IncreaseDecreaseInExistingProvisionsOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseInExistingProvisionsOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Use of provisions",
        "label": "Increase in existing provisions, other provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in existing other provisions. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r110"
     ]
    },
    "ifrs-full_IncreaseDecreaseInFairValueMeasurementLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseInFairValueMeasurementLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair value measurement, liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in the fair value measurement of liabilities. [Refer: At fair value [member]]"
       }
      }
     },
     "auth_ref": [
      "r170"
     ]
    },
    "pbr_IncreaseDecreaseInProvisionForCostEqualization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IncreaseDecreaseInProvisionForCostEqualization",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions/(Write-offs) on PP&amp;E"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IncreaseDecreaseInRiskExposureAssociatedWithInstrumentsSharingCharacteristics": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IncreaseDecreaseInRiskExposureAssociatedWithInstrumentsSharingCharacteristics",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk exposure associated with instruments"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IncreaseDecreaseInRiskExposureAssociatedWithInterstRateManagement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IncreaseDecreaseInRiskExposureAssociatedWithInterstRateManagement",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails12"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase Decrease In Risk Exposure Associated With Interst Rate Management"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseInWorkingCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseInWorkingCapital",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/InvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restructuring, capital decrease and others"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in working capital."
       }
      }
     },
     "auth_ref": [
      "r362"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughChangesInForeignExchangeRatesNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughChangesInForeignExchangeRatesNetDefinedBenefitLiabilityAsset",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Translation Adjustment"
       }
      },
      "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": [
      "r74"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Translation adjustment",
        "label": "Increase (decrease) through net exchange differences, intangible assets and goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in intangible assets and goodwill 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: Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r352"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Translation adjustment",
        "label": "Increase (decrease) through net exchange differences, other provisions"
       }
      },
      "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": [
      "r349"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Translation adjustment",
        "label": "Increase (decrease) through net exchange differences, property, plant and equipment"
       }
      },
      "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": [
      "r67"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfers related to liabilities held for sale"
       }
      },
      "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": [
      "r349"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Transfers",
        "label": "Increase (decrease) through transfers and other changes, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in property, plant and equipment resulting from transfers and changes that the entity does not separately disclose in the same statement or note. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r343"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails",
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfers"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in intangible assets and goodwill resulting from transfers. [Refer: Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r353"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughTransfersPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughTransfersPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfers (5)"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in property, plant and equipment resulting from transfers. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r343"
     ]
    },
    "pbr_IncreaseInBasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IncreaseInBasisPointsMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase In Basis Points [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IndexationToSelicInterestRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IndexationToSelicInterestRate",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Indexation to the SELIC interest rate"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IndexationToSelicInterestRateOfAnticipatedDividendsAndDividendsPayable2": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IndexationToSelicInterestRateOfAnticipatedDividendsAndDividendsPayable2",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/NetFinanceIncomeExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Indexation to the Selic interest rate of anticipated dividends and dividends payable"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IndexationToSelicInterestRateOfJudicialDepositsAndTaxesOverTaxCredits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IndexationToSelicInterestRateOfJudicialDepositsAndTaxesOverTaxCredits",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Indexation to the Selic interest rate of Judicial deposits and taxes over tax credits"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_InstitutionalRelationsAndCulturalProjects": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "InstitutionalRelationsAndCulturalProjects",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Institutional relations and cultural projects"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IntangibleAssetAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IntangibleAssetAndGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Intangible assets",
        "label": "IntangibleAssetAndGoodwill"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangible assets",
        "periodStartLabel": "Opening Balance",
        "periodEndLabel": "Closing Balance"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of intangible assets and goodwill held by the entity. [Refer: Goodwill; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "pbr_IntangibleAssetsAndGoodwillCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IntangibleAssetsAndGoodwillCost",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Cost",
        "label": "IntangibleAssetsAndGoodwillCost"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IntangibleAssetsAndGoodwillMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IntangibleAssetsAndGoodwillMember",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails",
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for intangible assets and goodwill. It also represents the standard value for the 'Classes of intangible assets and goodwill' axis if no other member is used. [Refer: Goodwill; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r354"
     ]
    },
    "pbr_IntangibleExplorationAndEvaluationAssetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IntangibleExplorationAndEvaluationAssetAbstract",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Intangible assets"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_Interest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "Interest",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_InterestAccrued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "InterestAccrued",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest accrued"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestExpenseOnDebtInstrumentsIssued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InterestExpenseOnDebtInstrumentsIssued",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/NetFinanceIncomeExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Interest on finance debt",
        "label": "Interest expense on debt instruments issued"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of interest expense on debt instruments issued. [Refer: Interest expense; Debt instruments issued]"
       }
      }
     },
     "auth_ref": [
      "r335"
     ]
    },
    "pbr_InterestExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "InterestExpenses",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestPaidClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InterestPaidClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Repayment of interest - finance debt",
        "label": "Interest paid, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for interest paid, classified as financing activities."
       }
      }
     },
     "auth_ref": [
      "r137"
     ]
    },
    "pbr_InterestRateDerivativesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "InterestRateDerivativesMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails13",
      "http://petrobras.com/role/FinancialRiskManagementDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Rate Derivatives [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestRateTypesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InterestRateTypesMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4"
     ],
     "lang": {
      "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": [
      "r364"
     ]
    },
    "pbr_InterimDividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "InterimDividendsMember",
     "presentation": [
      "http://petrobras.com/role/EquityDetails2",
      "http://petrobras.com/role/SubsequentEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interim Dividends [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_InterimInterestCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "InterimInterestCapitalMember",
     "presentation": [
      "http://petrobras.com/role/EquityDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interim Interest Capital [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_InterimInterestOnCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "InterimInterestOnCapitalMember",
     "presentation": [
      "http://petrobras.com/role/SubsequentEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interim Interest On Capital [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IntermediateProducts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IntermediateProducts",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InventoriesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intermediate products"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_IntermediateRemeasurementDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IntermediateRemeasurementDescription",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intermediate remeasurement, description"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_Intersegments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "Intersegments",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intersegments"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Inventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Inventories",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssetsOtherThanAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventories"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current inventories. [Refer: Inventories]"
       }
      }
     },
     "auth_ref": [
      "r11",
      "r79",
      "r266"
     ]
    },
    "ifrs-full_InventoriesPledgedAsSecurityForLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InventoriesPledgedAsSecurityForLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InventoriesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventories pledged as security for terms of financial commitment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of inventories pledged as security for liabilities. [Refer: Inventories]"
       }
      }
     },
     "auth_ref": [
      "r81"
     ]
    },
    "ifrs-full_InventoriesTotal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InventoriesTotal",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InventoriesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "Inventories [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets: (a) held for sale in the ordinary course of business; (b) in the process of production for such sale; or (c) in the form of materials or supplies to be consumed in the production process or in the rendering of services. Inventories encompass goods purchased and held for resale including, for example, merchandise purchased by a retailer and held for resale, or land and other property held for resale. Inventories also encompass finished goods produced, or work in progress being produced, by the entity and include materials and supplies awaiting use in the production process. [Refer: Current finished goods; Current merchandise; Current work in progress; Land]"
       }
      }
     },
     "auth_ref": [
      "r11"
     ]
    },
    "pbr_InventoriesWritedown": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "InventoriesWritedown",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory write down (write-back) to net realizable value"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_InvesteesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "InvesteesMember",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investees [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_InvestimentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "InvestimentsMember",
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investiments [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_Investment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "Investment",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Investments",
        "label": "Investment"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InvestmentAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InvestmentAccountedForUsingEquityMethod",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of investments accounted for using the equity method. The equity method is a method of accounting whereby the investment is initially recognised at cost and adjusted thereafter for the post-acquisition change in the investor's share of net assets of the investee. The investor's profit or loss includes its share of the profit or loss of the investee. The investor's other comprehensive income includes its share of the other comprehensive income of the investee. [Refer: At cost [member]]"
       }
      }
     },
     "auth_ref": [
      "r10",
      "r163",
      "r247"
     ]
    },
    "pbr_InvestmentAccountedForUsingEquityMethods": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "InvestmentAccountedForUsingEquityMethods",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Investments",
        "label": "InvestmentAccountedForUsingEquityMethods"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_InvestmentInMarketableSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "InvestmentInMarketableSecurities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Investment in marketable securities",
        "label": "InvestmentInMarketableSecurities"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_InvestmentIncomeDividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "InvestmentIncomeDividends",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/InvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InvestmentsInSubsidiariesJointVenturesAndAssociates",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Investments in associates and joint ventures, Beginning balance",
        "periodEndLabel": "Investments in associates and joint ventures, Ending balance",
        "label": "Investments in subsidiaries, joint ventures and associates reported in separate financial statements"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of investments in subsidiaries, joint ventures and associates in an entity's separate financial statements. [Refer: Associates [member]; Joint ventures [member]; Subsidiaries [member]; Investments in subsidiaries reported in separate financial statements]"
       }
      }
     },
     "auth_ref": [
      "r96"
     ]
    },
    "pbr_IssuanceCostMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IssuanceCostMember",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Issuance Cost [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IssuedCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IssuedCapital",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share capital (net of share issuance costs)"
       }
      },
      "en": {
       "role": {
        "documentation": "The nominal value of capital issued."
       }
      }
     },
     "auth_ref": [
      "r269"
     ]
    },
    "pbr_IssuedCapitalGrossMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "IssuedCapitalGrossMember",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Issued Capital Gross [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ItemsThatMayBeReclassifiedSubsequentlyToStatementOfIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ItemsThatMayBeReclassifiedSubsequentlyToStatementOfIncomeAbstract",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Items that may be reclassified subsequently to the statement of income:"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_JetFuelMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "JetFuelMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Jet Fuel [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_JointOperationsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "JointOperationsAxis",
     "presentation": [
      "http://petrobras.com/role/CollateralForCrudeOilExplorationConcessionAgreementsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Joint operations [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": [
      "r166"
     ]
    },
    "pbr_JointVentureAndAssociatesSubTotalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "JointVentureAndAssociatesSubTotalMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Joint Venture And Associates Sub Total [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_JointVenturesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "JointVenturesAxis",
     "presentation": [
      "http://petrobras.com/role/InvestmentsDetails",
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "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": [
      "r97",
      "r98",
      "r165"
     ]
    },
    "ifrs-full_JointVenturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "JointVenturesMember",
     "presentation": [
      "http://petrobras.com/role/InvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Joint ventures [member]"
       }
      },
      "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": [
      "r97",
      "r98",
      "r165"
     ]
    },
    "pbr_JudicialDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "JudicialDeposits",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "pbr_LongtermReceivables",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails2",
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails3",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Judicial deposits",
        "verboseLabel": "Total",
        "periodStartLabel": "Opening Balance",
        "periodEndLabel": "Closing Balance",
        "documentation": "The element represents judicial deposits."
       }
      }
     },
     "auth_ref": []
    },
    "pbr_JudicialDepositsAccrualsAndCharges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "JudicialDepositsAccrualsAndCharges",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accruals and charges"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_JudicialDepositsAdditions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "JudicialDepositsAdditions",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Additions",
        "label": "JudicialDepositsAdditions"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_JudicialDepositsCumulativeTranslationAdjustment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "JudicialDepositsCumulativeTranslationAdjustment",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cumulative translation adjustment"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_JudicialDepositsOthers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "JudicialDepositsOthers",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Others",
        "label": "JudicialDepositsOthers"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_JudicialDepositsUseOfProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "JudicialDepositsUseOfProvisions",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Use"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_KeyManagementPersonnelCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "KeyManagementPersonnelCompensation",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total compensation paid"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of compensation to key management personnel. [Refer: Key management personnel of entity or parent [member]]"
       }
      }
     },
     "auth_ref": [
      "r88"
     ]
    },
    "ifrs-full_KeyManagementPersonnelCompensationPostemploymentBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "KeyManagementPersonnelCompensationPostemploymentBenefits",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Post-employment benefits (pension plan)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of compensation to key management personnel in the form of post-employment benefits. [Refer: Key management personnel of entity or parent [member]]"
       }
      }
     },
     "auth_ref": [
      "r86"
     ]
    },
    "pbr_KeyManagementPersonnelCompensationRecognizedInTheStatementOfIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "KeyManagementPersonnelCompensationRecognizedInTheStatementOfIncome",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total compensation recognized in the statement of income"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_KeyManagementPersonnelCompensationSocialSecurityAndOtherEmployeeRelatedTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "KeyManagementPersonnelCompensationSocialSecurityAndOtherEmployeeRelatedTaxes",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Social security and other employee-related taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "KeyManagementPersonnelCompensationTerminationBenefits",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Benefits due to termination of tenure"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of compensation to key management personnel in the form of termination benefits. [Refer: Termination benefits expense; Key management personnel of entity or parent [member]]"
       }
      }
     },
     "auth_ref": [
      "r87"
     ]
    },
    "pbr_KeyManagementPersonnelCompensationVariableCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "KeyManagementPersonnelCompensationVariableCompensation",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable compensation"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_KeyManagementPersonnelCompensationWagesAndShortTermBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "KeyManagementPersonnelCompensationWagesAndShortTermBenefits",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Wages and short-term benefits"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_LIBOR6MMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "LIBOR6MMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails12"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "LIBOR 6M [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_LaborRelatedContingentLiabilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "LaborRelatedContingentLiabilityMember",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails",
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Labor Related Contingent Liability [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_LandBuildingsAndImprovementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "LandBuildingsAndImprovementMember",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Land Buildings And Improvement [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LaterThanFiveYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanFiveYearsMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4",
      "http://petrobras.com/role/FinanceDebtDetails5",
      "http://petrobras.com/role/FinancialRiskManagementDetails9",
      "http://petrobras.com/role/LeaseLiabilityDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than five years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than five years."
       }
      }
     },
     "auth_ref": [
      "r184",
      "r185",
      "r196",
      "r301",
      "r304",
      "r308"
     ]
    },
    "ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanFourYearsAndNotLaterThanFiveYearsMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4",
      "http://petrobras.com/role/FinanceDebtDetails5",
      "http://petrobras.com/role/FinancialRiskManagementDetails9",
      "http://petrobras.com/role/LeaseLiabilityDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than four years and not later than five years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than four years and not later than five years."
       }
      }
     },
     "auth_ref": [
      "r184",
      "r185",
      "r196",
      "r301",
      "r308",
      "r335"
     ]
    },
    "ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanOneYearAndNotLaterThanTwoYearsMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4",
      "http://petrobras.com/role/FinanceDebtDetails5",
      "http://petrobras.com/role/FinancialRiskManagementDetails9",
      "http://petrobras.com/role/LeaseLiabilityDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than one year and not later than two years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than one year and not later than two years."
       }
      }
     },
     "auth_ref": [
      "r184",
      "r185",
      "r196",
      "r301",
      "r308",
      "r335"
     ]
    },
    "ifrs-full_LaterThanOneYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanOneYearMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails9",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than one year [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than one year."
       }
      }
     },
     "auth_ref": [
      "r24"
     ]
    },
    "ifrs-full_LaterThanSixMonthsAndNotLaterThanOneYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanSixMonthsAndNotLaterThanOneYearMember",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than six months and not later than one year [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than six months and not later than one year."
       }
      }
     },
     "auth_ref": [
      "r301",
      "r303",
      "r308"
     ]
    },
    "ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanThreeMonthsAndNotLaterThanSixMonthsMember",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than three months and not later than six months [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than three months and not later than six months."
       }
      }
     },
     "auth_ref": [
      "r301",
      "r302",
      "r308"
     ]
    },
    "ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanThreeYearsAndNotLaterThanFourYearsMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4",
      "http://petrobras.com/role/FinanceDebtDetails5",
      "http://petrobras.com/role/FinancialRiskManagementDetails9",
      "http://petrobras.com/role/LeaseLiabilityDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than three years and not later than four years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than three years and not later than four years."
       }
      }
     },
     "auth_ref": [
      "r184",
      "r185",
      "r196",
      "r301",
      "r308",
      "r335"
     ]
    },
    "ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanTwoYearsAndNotLaterThanThreeYearsMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4",
      "http://petrobras.com/role/FinanceDebtDetails5",
      "http://petrobras.com/role/FinancialRiskManagementDetails9",
      "http://petrobras.com/role/LeaseLiabilityDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than two years and not later than three years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than two years and not later than three years."
       }
      }
     },
     "auth_ref": [
      "r184",
      "r185",
      "r196",
      "r301",
      "r308",
      "r335"
     ]
    },
    "ifrs-full_LegalProceedingsProvision": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LegalProceedingsProvision",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails",
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "periodStartLabel": "Opening Balance",
        "periodEndLabel": "Closing Balance",
        "label": "Legal proceedings provision"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of provision for legal proceedings. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r278",
      "r280"
     ]
    },
    "pbr_LegalProceedingsProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "LegalProceedingsProvisions",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Provisions for legal proceedings",
        "label": "LegalProceedingsProvisions"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_LegalReserve": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "LegalReserve",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Level1OfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Level1OfFairValueHierarchyMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetailsNarrative",
      "http://petrobras.com/role/FinancialRiskManagementDetails13"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Level 1 of fair value hierarchy [member]"
       }
      },
      "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": [
      "r76",
      "r169"
     ]
    },
    "ifrs-full_Level2OfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Level2OfFairValueHierarchyMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetailsNarrative",
      "http://petrobras.com/role/FinancialRiskManagementDetails13"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Level 2 of fair value hierarchy [member]"
       }
      },
      "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": [
      "r169"
     ]
    },
    "ifrs-full_LevelsOfFairValueHierarchyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LevelsOfFairValueHierarchyAxis",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetailsNarrative",
      "http://petrobras.com/role/FinancialRiskManagementDetails13"
     ],
     "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": [
      "r76",
      "r169"
     ]
    },
    "ifrs-full_Liabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Liabilities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAndLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Current and non-current liabilities",
        "verboseLabel": "Liabilities",
        "label": "Liabilities [Default Label]"
       }
      },
      "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": [
      "r21",
      "r168",
      "r169",
      "r170",
      "r246",
      "r251"
     ]
    },
    "ifrs-full_LiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LiabilitiesAbstract",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LiabilitiesArisingFromFinancingActivitiesAxis",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails3",
      "http://petrobras.com/role/FinanceDebtDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities arising from financing activities [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": [
      "r286"
     ]
    },
    "ifrs-full_LiabilitiesArisingFromFinancingActivitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LiabilitiesArisingFromFinancingActivitiesMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails3",
      "http://petrobras.com/role/FinanceDebtDetailsNarrative"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for liabilities arising from financing activities. It also represents the standard value for the 'Liabilities arising from financing activities' axis if no other member is used. [Refer: Liabilities arising from financing activities]"
       }
      }
     },
     "auth_ref": [
      "r286"
     ]
    },
    "ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities related to assets classified as held for sale",
        "verboseLabel": "Total"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities included in disposal groups classified as held for sale. [Refer: Liabilities; Disposal groups classified as held for sale [member]]"
       }
      }
     },
     "auth_ref": [
      "r18",
      "r208"
     ]
    },
    "pbr_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSaleProvisionForDecommissioningCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSaleProvisionForDecommissioningCosts",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Provision for decommissioning costs",
        "label": "LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSaleProvisionForDecommissioningCosts"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LiabilitiesMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails13",
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "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": [
      "r171"
     ]
    },
    "pbr_LineOfCreditFacilityAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "LineOfCreditFacilityAmount",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Available (Lines of Credit)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_LineOfCreditFacilityIssuanceDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "LineOfCreditFacilityIssuanceDate",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Date"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_LineOfCreditFacilityMaturityDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "LineOfCreditFacilityMaturityDate",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_LineOfCreditFacilityRemainingBorrowingCapacity1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "LineOfCreditFacilityRemainingBorrowingCapacity1",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Balance"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_LiquefiedPetroleumGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "LiquefiedPetroleumGasMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liquefied Petroleum Gas [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Local Phone Number",
        "documentation": "Local phone number for entity."
       }
      }
     },
     "auth_ref": []
    },
    "pbr_LongPositionOrForeignCurrencyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "LongPositionOrForeignCurrencyOneMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Position Or Foreign Currency One [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_LongPositionSoybeanOilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "LongPositionSoybeanOilMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Position Soybean Oil [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LongtermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LongtermBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Finance debt",
        "label": "Non-current portion of non-current borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The non-current portion of non-current borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "ifrs-full_LongtermLegalProceedingsProvision": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LongtermLegalProceedingsProvision",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provisions for legal proceedings"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current provision for legal proceedings. [Refer: Legal proceedings provision]"
       }
      }
     },
     "auth_ref": [
      "r278",
      "r280"
     ]
    },
    "pbr_LongtermMiscellaneousOtherProvision": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "LongtermMiscellaneousOtherProvision",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Others",
        "label": "LongtermMiscellaneousOtherProvision"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LongtermProvisionForDecommissioningRestorationAndRehabilitationCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LongtermProvisionForDecommissioningRestorationAndRehabilitationCosts",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Provision for decommissioning costs",
        "label": "Non-current provision for decommissioning, restoration and rehabilitation costs"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current provision for decommissioning, restoration and rehabilitation costs. [Refer: Provision for decommissioning, restoration and rehabilitation costs]"
       }
      }
     },
     "auth_ref": [
      "r278",
      "r279"
     ]
    },
    "pbr_LongtermReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "LongtermReceivables",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Long-term receivables",
        "label": "LongtermReceivables"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_LossesWithLegalAdministrativeAndArbitrationProceedings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "LossesWithLegalAdministrativeAndArbitrationProceedings",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Losses with legal, administrative and arbitration proceedings"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ManagementFeesAndChargesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ManagementFeesAndChargesMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Management Fees And Charges [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_MarketableSecurities1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "MarketableSecurities1",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_MarketableSecuritiesCurrent1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "MarketableSecuritiesCurrent1",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssetsOtherThanAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails1",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Marketable securities",
        "verboseLabel": "Current"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_MarketableSecuritiesNonCurrent1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "MarketableSecuritiesNonCurrent1",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "pbr_LongtermReceivables",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails1",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Marketable securities",
        "label": "Non-current"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_MarlimMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "MarlimMember",
     "presentation": [
      "http://petrobras.com/role/CollateralForCrudeOilExplorationConcessionAgreementsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Marlim [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_MaterialAccountingPoliciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "MaterialAccountingPoliciesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Accounting Policies"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_MaterialsThirdPartyServicesFreightRentAndOtherRelatedCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "MaterialsThirdPartyServicesFreightRentAndOtherRelatedCosts",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails1",
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Raw material, products for resale, materials and third-party services",
        "negatedTerseLabel": "Materials, third-party services, freight, rent and other related costs",
        "label": "MaterialsThirdPartyServicesFreightRentAndOtherRelatedCosts"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MaturityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "MaturityAxis",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4",
      "http://petrobras.com/role/FinanceDebtDetails5",
      "http://petrobras.com/role/FinancialRiskManagementDetails9",
      "http://petrobras.com/role/LeaseLiabilityDetails1"
     ],
     "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": [
      "r25",
      "r179",
      "r184",
      "r185",
      "r188",
      "r189",
      "r190",
      "r196",
      "r214",
      "r234",
      "r275",
      "r301"
     ]
    },
    "ifrs-full_MeasurementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "MeasurementAxis",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails13"
     ],
     "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": [
      "r126",
      "r131",
      "r168"
     ]
    },
    "pbr_MedicalBenefitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "MedicalBenefitsMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Medical Benefits [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ModificationOfContractualCashFlows": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ModificationOfContractualCashFlows",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Modification of contractual cash flows"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NaphthaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NaphthaMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Naphtha [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NaturalGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NaturalGasMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Natural Gas [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NegotiatedLegalProceedingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NegotiatedLegalProceedingMember",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Negotiated Legal Proceeding [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NetActuarialLiabilityRecordedByCompany": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NetActuarialLiabilityRecordedByCompany",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net actuarial liability recorded by the Company"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NetCashUsedInFinancingActivitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NetCashUsedInFinancingActivitiesMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Used In Financing Activities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NetEffectWithinStatementOfIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NetEffectWithinStatementOfIncome",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net effect within the statement of income"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NetFinanceExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NetFinanceExpense",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net finance expense",
        "label": "NetFinanceExpense"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NetFinanceIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NetFinanceIncomeExpense",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/NetFinanceIncomeExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Total",
        "negatedTerseLabel": "Net finance income (expense)",
        "label": "NetFinanceIncomeExpense"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NetFinanceIncomeExpenseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NetFinanceIncomeExpenseMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Finance Income Expense [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NetFinanceIncomeExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NetFinanceIncomeExpenses",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Net finance income (expense)",
        "documentation": "The element represents net finance income expenses.",
        "label": "Net finance income (expense) [Default Label]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NetGainsLossesOnForeignExchangeAndInflationIndexationCharges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NetGainsLossesOnForeignExchangeAndInflationIndexationCharges",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "pbr_NetFinanceExpense",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign exchange gains (losses) and inflation indexation charges"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NetImpairmentReversals": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NetImpairmentReversals",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net impairment reversals"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NetInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NetInterest",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net interest"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NetOfWithholdingIncomeTaxesReceived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NetOfWithholdingIncomeTaxesReceived",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net of withholding income taxes received"
       }
      }
     },
     "auth_ref": []
    },
    "dei_NoTradingSymbolFlag": {
     "xbrltype": "trueItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "NoTradingSymbolFlag",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Trading Symbol Flag",
        "documentation": "Boolean flag that is true only for a security having no trading symbol."
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NominalAmounts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NominalAmounts",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nominal amounts"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NominalFutureLeasePayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NominalFutureLeasePayments",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nominal Future Payments"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NominalIncomeTaxesAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NominalIncomeTaxesAmount",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nominal income taxes computed based on Brazilian statutory corporate tax rates (34%)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NonCurrentAssetsOrNonCurrentLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NonCurrentAssetsOrNonCurrentLiabilitiesMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non Current Assets Or Non Current Liabilities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NonCurrentCivilRelatedDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NonCurrentCivilRelatedDeposits",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Civil"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NonCurrentEnvironmentalRelatedDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NonCurrentEnvironmentalRelatedDeposits",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Environmental"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NonCurrentLaborRelatedDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NonCurrentLaborRelatedDeposits",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Labor"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NonCurrentLeaseLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NonCurrentLeaseLiability",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liability, non current"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NonCurrentOtherDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NonCurrentOtherDeposits",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Others",
        "label": "NonCurrentOtherDeposits"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NonCurrentOtherProvision": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NonCurrentOtherProvision",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision for decommissioning costs, non current"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NonCurrentTaxRelatedDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NonCurrentTaxRelatedDeposits",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NonDeliverableForwardMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NonDeliverableForwardMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non Deliverable Forward [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NonDerivativeFinancialInstrumentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NonDerivativeFinancialInstrumentsMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non Derivative Financial Instruments [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NonadjustingEventMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NonadjustingEventMember",
     "presentation": [
      "http://petrobras.com/role/SubsequentEventsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nonadjusting Event [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NonadjustingEventsAfterReportingPeriodAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NonadjustingEventsAfterReportingPeriodAxis",
     "presentation": [
      "http://petrobras.com/role/SubsequentEventsDetailsNarrative"
     ],
     "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": [
      "r51"
     ]
    },
    "ifrs-full_NonadjustingEventsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NonadjustingEventsMember",
     "presentation": [
      "http://petrobras.com/role/SubsequentEventsDetailsNarrative"
     ],
     "lang": {
      "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": [
      "r51"
     ]
    },
    "ifrs-full_NoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_Equity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-controlling interests"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of equity in a subsidiary not attributable, directly or indirectly, to a parent. [Refer: Subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r19",
      "r148",
      "r150"
     ]
    },
    "ifrs-full_NoncontrollingInterestsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncontrollingInterestsMember",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-controlling interests [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for equity in a subsidiary not attributable, directly or indirectly, to the parent."
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "ifrs-full_NoncurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Non-current assets",
        "label": "Non-current assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that do not meet the definition of current assets. [Refer: Current assets]"
       }
      }
     },
     "auth_ref": [
      "r26",
      "r154",
      "r287"
     ]
    },
    "ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleMember",
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current assets or disposal groups classified as held for sale [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for non-current assets or disposal groups classified as held for sale. [Refer: Disposal groups classified as held for sale [member]; Non-current assets held for sale [member]]"
       }
      }
     },
     "auth_ref": [
      "r348"
     ]
    },
    "ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets classified as held 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": [
      "r14"
     ]
    },
    "ifrs-full_NoncurrentLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncurrentLeaseLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Lease liability",
        "label": "Non-current lease liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current lease liabilities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r181"
     ]
    },
    "ifrs-full_NoncurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_Liabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Non-current liabilities",
        "label": "Non-current liabilities [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities that do not meet the definition of current liabilities. [Refer: Current liabilities]"
       }
      }
     },
     "auth_ref": [
      "r27",
      "r156",
      "r287"
     ]
    },
    "ifrs-full_NoncurrentProvisionsForEmployeeBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncurrentProvisionsForEmployeeBenefits",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Employee benefits",
        "terseLabel": "Non-current",
        "label": "Non-current provisions for employee benefits"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current provisions for employee benefits. [Refer: Provisions for employee benefits]"
       }
      }
     },
     "auth_ref": [
      "r30"
     ]
    },
    "ifrs-full_NoncurrentReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncurrentReceivables",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-term 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": [
      "r12",
      "r29"
     ]
    },
    "ifrs-full_NoncurrentTradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncurrentTradeReceivables",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "pbr_LongtermReceivables",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trade and other receivables",
        "terseLabel": "Non-current",
        "label": "Non-current trade receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current trade receivables. [Refer: Trade receivables]"
       }
      }
     },
     "auth_ref": [
      "r267"
     ]
    },
    "pbr_NonincidenceOfIncomeTaxesOnIndexationChargesSelicInterestRateOverUnduePaidTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NonincidenceOfIncomeTaxesOnIndexationChargesSelicInterestRateOverUnduePaidTaxes",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-incidence of income taxes on indexation (SELIC interest rate) of undue paid taxes"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NontaxableIncomeNondeductibleExpensesNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NontaxableIncomeNondeductibleExpensesNet",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-taxable income (non-deductible expenses), net"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NotLaterThanOneYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NotLaterThanOneYearMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4",
      "http://petrobras.com/role/FinanceDebtDetails5",
      "http://petrobras.com/role/LeaseLiabilityDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Not later than one year [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of not later than one year."
       }
      }
     },
     "auth_ref": [
      "r23",
      "r184",
      "r185",
      "r196",
      "r301",
      "r308"
     ]
    },
    "ifrs-full_NotLaterThanThreeMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NotLaterThanThreeMonthsMember",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Not later than three months [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of not later than three months."
       }
      }
     },
     "auth_ref": [
      "r335"
     ]
    },
    "ifrs-full_NotesAndOtherExplanatoryInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NotesAndOtherExplanatoryInformationAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Notes and other explanatory information [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_NotionalValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "NotionalValue",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails1",
      "http://petrobras.com/role/FinancialRiskManagementDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Notional value",
        "verboseLabel": "Present value of notional value"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NumberOfSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NumberOfSharesIssued",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shares issued"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of shares issued by the entity."
       }
      }
     },
     "auth_ref": [
      "r334"
     ]
    },
    "ifrs-full_NumberOfSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NumberOfSharesOutstanding",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shares outstanding"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of shares that have been authorised and issued, reduced by treasury shares held. [Refer: Treasury shares]"
       }
      }
     },
     "auth_ref": [
      "r32"
     ]
    },
    "pbr_ObligationsArisingFromAcquisitionOfEquityInterestsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ObligationsArisingFromAcquisitionOfEquityInterestsMember",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Obligations Arising From Acquisition Of Equity Interests [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ObligationsArisingFromDivestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ObligationsArisingFromDivestmentsMember",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Obligations Arising From Divestments [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OfficersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OfficersMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Officers [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OilMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oil [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OilProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OilProductsMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oil Products [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OnshoreMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OnshoreMember",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Onshore [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OpenDerivativesTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OpenDerivativesTransactions",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Open derivatives transactions"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OpeningBalance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OpeningBalance",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Opening balance",
        "label": "OpeningBalance"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OperatingAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OperatingAssets",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OperatingExpenseExcludingCostOfSales": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OperatingExpenseExcludingCostOfSales",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTotalLabel": "Total Income (expenses)",
        "label": "Operating expense excluding cost of sales"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of operating expense excluding the cost of sales. [Refer: Cost of sales]"
       }
      }
     },
     "auth_ref": [
      "r339"
     ]
    },
    "pbr_OperatingExpensesWithThermoelectricPowerPlants": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OperatingExpensesWithThermoelectricPowerPlants",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating expenses with thermoelectric power plants"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OperatingIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OperatingIncomeExpense",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "OperatingIncomeExpense"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OperatingIncomeExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OperatingIncomeExpenseAbstract",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income (expenses)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OperatingIncomeExpenseExcludingCostOfSales": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OperatingIncomeExpenseExcludingCostOfSales",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Income (expenses)",
        "label": "OperatingIncomeExpenseExcludingCostOfSales"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OperatingSegmentUnderUnderConstruction": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OperatingSegmentUnderUnderConstruction",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Under construction"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OperatingSegmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OperatingSegmentsMember",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating segments [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for operating segments. An operating segment is a component of an entity: (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 entity); (b) whose operating results are regularly reviewed by the entity\u2019s 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. [Refer: Revenue]"
       }
      }
     },
     "auth_ref": [
      "r253"
     ]
    },
    "pbr_OrdinaryAndExtraordinaryFutureContributionsSponsor": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OrdinaryAndExtraordinaryFutureContributionsSponsor",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ordinary and extraordinary future contributions\u00a0- sponsor"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OrdinarySharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OrdinarySharesMember",
     "presentation": [
      "http://petrobras.com/role/EquityDetails6",
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ordinary shares [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for equity instruments that are subordinate to all other classes of equity instruments. It also represents the standard value for the 'Classes of ordinary shares' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r101",
      "r338"
     ]
    },
    "ifrs-full_OtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherAssets",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other assets",
        "label": "Other assets [Default Label]"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that the entity does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "pbr_OtherAssetsOfDerivativeFinancialInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherAssetsOfDerivativeFinancialInstruments",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other assets (note 16)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OtherAssociatesAndJointVenturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherAssociatesAndJointVenturesMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Associates And Joint Ventures [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OtherChanges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherChanges",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other changes"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OtherCommodityDerivativeTransactionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherCommodityDerivativeTransactionsMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Commodity Derivative Transactions [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherComprehensiveIncome",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income (loss)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income and expense (including reclassification adjustments) that is not recognised in profit or loss as required or permitted by IFRSs. [Refer: IFRSs [member]]"
       }
      }
     },
     "auth_ref": [
      "r4",
      "r35",
      "r46",
      "r159"
     ]
    },
    "pbr_OtherComprehensiveIncomeLossAndDeemedCostMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherComprehensiveIncomeLossAndDeemedCostMember",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income Loss And Deemed Cost [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherComprehensiveIncomeNetOfTaxCashFlowHedges",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Unrealized gains / (losses) on cash flow hedge-highly probable future exports, net",
        "label": "Other comprehensive income, net of tax, cash flow hedges"
       }
      },
      "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": [
      "r28",
      "r46"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Actuarial gains (losses) on defined benefit pension plans, net",
        "label": "Other comprehensive income, net of tax, gains (losses) on remeasurements of defined benefit plans"
       }
      },
      "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 [member]; 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": [
      "r28",
      "r46",
      "r344"
     ]
    },
    "pbr_OtherComprehensiveIncomeOnInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherComprehensiveIncomeOnInvestments",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/InvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "OtherComprehensiveIncome"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherCurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherCurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssetsOtherThanAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Others",
        "verboseLabel": "Other assets current"
       }
      },
      "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": [
      "r336"
     ]
    },
    "ifrs-full_OtherCurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherCurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilitiesOtherThanLiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative",
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Others",
        "label": "Other liabilites current",
        "terseLabel": "Other current 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": [
      "r336"
     ]
    },
    "pbr_OtherDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherDebtMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Debt [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OtherDeferredIncomeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherDeferredIncomeTaxes",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Others",
        "label": "OtherDeferredIncomeTaxes"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OtherExplorationExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherExplorationExpenses",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other exploration expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherFinanceIncomeCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherFinanceIncomeCost",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/NetFinanceIncomeExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other finance expenses (1)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of finance income or cost that the entity does not separately disclose in the same statement or note. [Refer: Finance income (cost)]"
       }
      }
     },
     "auth_ref": [
      "r339"
     ]
    },
    "pbr_OtherFinancialInvestmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherFinancialInvestmentsMember",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Financial Investments [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OtherForeignCurrencyExchangeGainsLossesAndIndexationChargesNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherForeignCurrencyExchangeGainsLossesAndIndexationChargesNet",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/NetFinanceIncomeExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other foreign exchange gains and indexation charges, net (1)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OtherGovernmentEntitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherGovernmentEntitiesMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Government Entities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherIncome",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/NetFinanceIncomeExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other finance income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of operating income that the entity does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r92",
      "r263",
      "r264"
     ]
    },
    "pbr_OtherIncomeAndExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherIncomeAndExpense",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other income and expenses, net"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OtherIncomeExpenseByFunction": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherIncomeExpenseByFunction",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "ifrs-full_OperatingExpenseExcludingCostOfSales",
       "weight": -1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other income and expenses, net"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OtherIncomeexpensesCostEqualization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherIncomeexpensesCostEqualization",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other income and expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherIntangibleAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherIntangibleAssets",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Balance at December 31, 2022",
        "periodEndLabel": "Balance at June 30, 2023",
        "label": "Other intangible assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of intangible assets that the entity does not separately disclose in the same statement or note. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r355"
     ]
    },
    "pbr_OtherInvestmentFundsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherInvestmentFundsMember",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Investment Funds [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other liabilites"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities that the entity does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "pbr_OtherLiabilitiesOfDerivativeFinancialInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherLiabilitiesOfDerivativeFinancialInstruments",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other liabilities\u00a0\u00a0(note 16)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OtherMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherNoncurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherNoncurrentAssets",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other assets non current"
       }
      },
      "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": [
      "r336"
     ]
    },
    "ifrs-full_OtherNoncurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherNoncurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Others",
        "label": "Other liabilites non current"
       }
      },
      "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": [
      "r336"
     ]
    },
    "ifrs-full_OtherNoncurrentReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherNoncurrentReceivables",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "pbr_LongtermReceivables",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Others",
        "label": "Other non-current receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current other receivables. [Refer: Other receivables]"
       }
      }
     },
     "auth_ref": [
      "r267"
     ]
    },
    "pbr_OtherOilProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherOilProductsMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Oil Products [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherOperatingIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherOperatingIncomeExpense",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Others (3)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of operating income (expense) that the entity does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r339"
     ]
    },
    "pbr_OtherProvision": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherProvision",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Provision for decommissioning costs",
        "label": "OtherProvision"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Opening balance",
        "periodEndLabel": "Closing balance",
        "label": "Other provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of provisions other than provisions for employee benefits. [Refer: Provisions]"
       }
      }
     },
     "auth_ref": [
      "r30",
      "r109"
     ]
    },
    "ifrs-full_OtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherReceivables",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "Other receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount receivable by the entity that it does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r267"
     ]
    },
    "pbr_OtherRecoverableTaxesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherRecoverableTaxesCurrent",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssetsOtherThanAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other recoverable taxes"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OtherRecoverableTaxesNonCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherRecoverableTaxesNonCurrent",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "pbr_LongtermReceivables",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other recoverable taxes",
        "label": "OtherRecoverableTaxesNonCurrent"
       }
      }
     },
     "auth_ref": []
    },
    "dei_OtherReportingStandardItemNumber": {
     "xbrltype": "otherReportingStandardItemNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "OtherReportingStandardItemNumber",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Reporting Standard Item Number",
        "documentation": "\"Item 17\" or \"Item 18\" specified when the basis of accounting is neither US GAAP nor IFRS."
       }
      }
     },
     "auth_ref": [
      "r326"
     ]
    },
    "ifrs-full_OtherReserves": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherReserves",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit reserves"
       }
      },
      "en": {
       "role": {
        "documentation": "A component of equity representing reserves within equity, not including retained earnings. [Refer: Retained earnings]"
       }
      }
     },
     "auth_ref": [
      "r269"
     ]
    },
    "ifrs-full_OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Others",
        "label": "Other tax effects for reconciliation between accounting profit and tax expense (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 the entity does not separately disclose in the same statement or note. [Refer: Accounting profit; Applicable tax rate]"
       }
      }
     },
     "auth_ref": [
      "r55"
     ]
    },
    "pbr_OtherTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherTaxes",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other taxes"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OtherTaxesCurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherTaxesCurrentAssets",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current assets, other taxes"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OtherTaxesCurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherTaxesCurrentLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current liabilities, other taxes"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OtherTaxesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherTaxesMember",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Taxes [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OtherTaxesNonCurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherTaxesNonCurrentAssets",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current assets, other taxes"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OtherTaxesNonCurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OtherTaxesNonCurrentLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current liabilities, other taxes"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OthersCountriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OthersCountriesMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Others Countries [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_OthersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "OthersMember",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails",
      "http://petrobras.com/role/TaxesDetails3",
      "http://petrobras.com/role/TaxesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Others [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PP1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PP1Member",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "P P 1 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PP2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PP2Member",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "P P 2 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PP3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PP3Member",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "P P 3 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PPSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PPSAMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "P P S A [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PPSPNRMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PPSPNRMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "P P S P N R [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PPSPRMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PPSPRMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "P P S P R [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PastDueStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PastDueStatusAxis",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails1"
     ],
     "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": [
      "r299"
     ]
    },
    "ifrs-full_PastDueStatusMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PastDueStatusMember",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails1"
     ],
     "lang": {
      "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": [
      "r299"
     ]
    },
    "pbr_PastServiceCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PastServiceCost",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Past service cost"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PaymentAdjustmentAgreement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PaymentAdjustmentAgreement",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payment adjustment agreement"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PaymentOfPrincipalAndInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PaymentOfPrincipalAndInterest",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payment of principal and interest (*)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PaymentRelatedToPlrProvisioned": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PaymentRelatedToPlrProvisioned",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payment relating to the PLR"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PaymentRelatedToPppProvisioned": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PaymentRelatedToPppProvisioned",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payment relating to the PPP"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PaymentRelatingToPlrProvisioned": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PaymentRelatingToPlrProvisioned",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payment relating to the PLR provisioned"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PaymentRelatingToPppProvisioned": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PaymentRelatingToPppProvisioned",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payment relating to the PPP provisioned"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PaymentsAndUseOfProvisionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PaymentsAndUseOfProvisionsMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments And Use Of Provisions [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PaymentsAndUseOfProvisionsOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PaymentsAndUseOfProvisionsOneMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments And Use Of Provisions One [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PaymentsAndUseProvisionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PaymentsAndUseProvisionsMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments And Use Provisions [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PaymentsFromChangesInOwnershipInterestsInSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PaymentsFromChangesInOwnershipInterestsInSubsidiaries",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss carryforwards of subsidiaries"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for changes in ownership interests in subsidiaries that do not result in a loss of control. [Refer: Subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r139",
      "r140"
     ]
    },
    "pbr_PaymentsMadeCostEqualization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PaymentsMadeCostEqualization",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments made"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Repayment of lease liability",
        "label": "Payments of lease liabilities, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for payment of lease liabilities, classified as financing activities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r285"
     ]
    },
    "pbr_PaymentsReceiptsConsiderationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PaymentsReceiptsConsiderationsMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments Receipts Considerations [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PaymentsRelatedToTermOfFinancialCommitment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PaymentsRelatedToTermOfFinancialCommitment",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments related to Term of financial commitment (TFC)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PensionPlansPPSPNRMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PensionPlansPPSPNRMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6",
      "http://petrobras.com/role/EmployeeBenefitsDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Plans PPSPNR [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PensionPlansPPSPRMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PensionPlansPPSPRMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6",
      "http://petrobras.com/role/EmployeeBenefitsDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Plans PPSPR [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PensionPlansPetros2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PensionPlansPetros2Member",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6",
      "http://petrobras.com/role/EmployeeBenefitsDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Plans Petros 2 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PerformanceObligationsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PerformanceObligationsAxis",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Performance obligations [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": [
      "r178"
     ]
    },
    "ifrs-full_PerformanceObligationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PerformanceObligationsMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails4"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for all performance obligations. A performance obligation is a promise in a contract with a customer to transfer to the customer either: (a) a good or service (or a bundle of goods or services) that is distinct; or (b) a series of distinct goods or services that are substantially the same and that have the same pattern of transfer to the customer. This member also represents the standard value for the 'Performance obligations' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r178"
     ]
    },
    "pbr_PesoPerDollarMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PesoPerDollarMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Peso Per Dollar [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PetrobrasDevidendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PetrobrasDevidendsMember",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petrobras Devidends [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PetrobrasGlobalTradingBVMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PetrobrasGlobalTradingBVMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petrobras Global Trading B V [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PetrochemicalCompaniesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PetrochemicalCompaniesMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petrochemical Companies [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PetroleoBrasileiroSaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PetroleoBrasileiroSaMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petroleo Brasileiro Sa [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PetroleumAndAlcoholAccountReceivableFromTheBrazilianGovernmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PetroleumAndAlcoholAccountReceivableFromTheBrazilianGovernmentMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petroleum And Alcohol Account Receivable From The Brazilian Government [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PetroleumAndAlcoholAccountsFromBrazilianGovernmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PetroleumAndAlcoholAccountsFromBrazilianGovernmentMember",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petroleum And Alcohol Accounts From Brazilian Government [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_Petros2PensionPlanPP2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "Petros2PensionPlanPP2Member",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petros 2 Pension Plan PP2 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PetrosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PetrosMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petros [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PetrosPensionPlanNonRenegotiatedPPSPNRMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PetrosPensionPlanNonRenegotiatedPPSPNRMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petros Pension Plan Non Renegotiated PPSP-NR [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PetrosPensionPlanNonRenegotiatedPre70PPSPNRPre70Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PetrosPensionPlanNonRenegotiatedPre70PPSPNRPre70Member",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petros Pension Plan Non Renegotiated Pre 70 (PPSP-NR Pre 70) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PetrosPensionPlanRenegotiatedPPSPRMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PetrosPensionPlanRenegotiatedPPSPRMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petros Pension Plan Renegotiated PPSPR [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PetrosPensionPlanRenegotiatedPre70PPSPRPre70Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PetrosPensionPlanRenegotiatedPre70PPSPRPre70Member",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petros Pension Plan Renegotiated Pre 70 (PPSP-R Pre 70) [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PisAndCofinsTaxCreditsAfterEnrollingProgram": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PisAndCofinsTaxCreditsAfterEnrollingProgram",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PIS and COFINS tax credits after enrolling the program\u00a0\u00a0(1)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PlatformsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PlatformsMember",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Platforms [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PortionOfGainsLossesRecognisedWhenControlOfSubsidiaryIsLostAttributableToRecognisingInvestmentRetainedInFormerSubsidiary": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PortionOfGainsLossesRecognisedWhenControlOfSubsidiaryIsLostAttributableToRecognisingInvestmentRetainedInFormerSubsidiary",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Gain on disposal/write-offs of assets",
        "label": "Portion of gains (losses) recognised when control of subsidiary is lost, attributable to recognising investment retained in former subsidiary"
       }
      },
      "en": {
       "role": {
        "documentation": "The portion of gains (losses) from losing control of a subsidiary attributable to recognising any investment retained in the former subsidiary at its fair value at the date when control is lost. [Refer: Gains (losses) recognised when control of subsidiary is lost; Subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r151"
     ]
    },
    "ifrs-full_PostemploymentBenefitExpenseDefinedBenefitPlans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PostemploymentBenefitExpenseDefinedBenefitPlans",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Pension and medical benefits - retirees (1)",
        "label": "Post-employment benefit expense in profit or loss, defined benefit plans"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of post-employment benefit expense included in profit or loss relating to defined benefit plans. [Refer: Profit (loss); Defined benefit plans [member]] [Contrast: Increase (decrease) in net defined benefit liability (asset) resulting from expense (income) in profit or loss]"
       }
      }
     },
     "auth_ref": [
      "r344",
      "r346"
     ]
    },
    "ifrs-full_PostemploymentBenefitExpenseDefinedContributionPlans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PostemploymentBenefitExpenseDefinedContributionPlans",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Post-employment benefit expense, defined contribution plans"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of post-employment benefit expense relating to 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."
       }
      }
     },
     "auth_ref": [
      "r78"
     ]
    },
    "ifrs-full_PostemploymentBenefitExpenseInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PostemploymentBenefitExpenseInProfitOrLoss",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Net expenses",
        "label": "Post-employment benefit expense in profit or loss"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of post-employment benefit expense included in profit or loss"
       }
      }
     },
     "auth_ref": [
      "r346"
     ]
    },
    "pbr_PostemploymentBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PostemploymentBenefits",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails",
      "http://petrobras.com/role/EmployeeBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Post-employment benefits",
        "label": "Total Net defined benefit liability"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PostemploymentBenefitsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PostemploymentBenefitsCurrent",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Current",
        "label": "PostemploymentBenefitsCurrent"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PostemploymentBenefitsNonCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PostemploymentBenefitsNonCurrent",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Non-current",
        "label": "PostemploymentBenefitsNonCurrent"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PostemploymentMedicalDefinedBenefitPlansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PostemploymentMedicalDefinedBenefitPlansMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Post-employment medical defined benefit plans [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for post-employment medical defined benefit plans. [Refer: Defined benefit plans [member]]"
       }
      }
     },
     "auth_ref": [
      "r273"
     ]
    },
    "pbr_PoundSterlingPerDollarMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PoundSterlingPerDollarMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pound Sterling Per Dollar [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PoundSterlingPerRealMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PoundSterlingPerRealMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pound Sterling Per Real [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_PreCommencementIssuerTenderOffer": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "PreCommencementIssuerTenderOffer",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pre-commencement Issuer Tender Offer",
        "documentation": "Boolean flag that is true when the Form 8-K filing is intended to satisfy the filing obligation of the registrant as pre-commencement communications pursuant to Rule 13e-4(c) under the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r320"
     ]
    },
    "dei_PreCommencementTenderOffer": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "PreCommencementTenderOffer",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pre-commencement Tender Offer",
        "documentation": "Boolean flag that is true when the Form 8-K filing is intended to satisfy the filing obligation of the registrant as pre-commencement communications pursuant to Rule 14d-2(b) under the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r321"
     ]
    },
    "pbr_PrePaymentLoan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PrePaymentLoan",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pre payment loan"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PreSaltMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PreSaltMember",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pre Salt [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PreferenceSharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PreferenceSharesMember",
     "presentation": [
      "http://petrobras.com/role/EquityDetails6",
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preference shares [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for equity instruments that are senior in some aspects to ordinary shares, but subordinate to debt instruments in terms of claim. [Refer: Ordinary shares [member]]"
       }
      }
     },
     "auth_ref": [
      "r338"
     ]
    },
    "pbr_PreferredShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PreferredShares",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred shares"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PreferredSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PreferredSharesIssued",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Preferred shares issued"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PrepaidExpensesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PrepaidExpensesMember",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prepaid Expenses [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_Prescription": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "Prescription",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prescription"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_Principal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "Principal",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Principal"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_PrincipalRepaymentsAndAmortizationDesignatedAsHedgingInstrument": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PrincipalRepaymentsAndAmortizationDesignatedAsHedgingInstrument",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails7"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Principal repayments / amortization"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProbabilityOfDefaultAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProbabilityOfDefaultAxis",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11",
      "http://petrobras.com/role/FinancialRiskManagementDetails12",
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Probability of default [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": [
      "r298",
      "r306"
     ]
    },
    "pbr_ProbableScenarioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProbableScenarioMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Probable Scenario [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ProbableScenarioTwelveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProbableScenarioTwelveMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails12"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Probable Scenario Twelve [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ProbableStressedScenarioOfFiftyPercentageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProbableStressedScenarioOfFiftyPercentageMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Probable Stressed Scenario Of Fifty Percentage [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ProbableStressedScenarioOfTwentyFivePercentageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProbableStressedScenarioOfTwentyFivePercentageMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Probable Stressed Scenario Of Twenty Five Percentage [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProceedsFromBorrowingsClassifiedAsFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from finance debt"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from borrowings obtained. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r283"
     ]
    },
    "ifrs-full_ProceedsFromDisposalOfNoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleAndDiscontinuedOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProceedsFromDisposalOfNoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleAndDiscontinuedOperations",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from disposal of assets - Divestment"
       }
      },
      "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": [
      "r358"
     ]
    },
    "pbr_ProceedsFromFinanceDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProceedsFromFinanceDebt",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails2",
      "http://petrobras.com/role/FinanceDebtDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from finance debt"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ProductOrServicesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProductOrServicesAxis",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Product Or Services [Axis]",
        "verboseLabel": "ProductOrServicesAxis [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ProductOrServicesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProductOrServicesDomain",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "auth_ref": []
    },
    "ifrs-full_ProductionSupplies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProductionSupplies",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InventoriesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total products"
       }
      },
      "en": {
       "role": {
        "documentation": "A classification of current inventory representing the amount of supplies to be used for the production process. [Refer: Inventories]"
       }
      }
     },
     "auth_ref": [
      "r268",
      "r347"
     ]
    },
    "pbr_ProductionTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProductionTax",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Production taxes",
        "label": "ProductionTax"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ProductionTaxesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProductionTaxesMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Production Taxes [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProductsAndServicesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProductsAndServicesAxis",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails"
     ],
     "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": [
      "r254",
      "r292"
     ]
    },
    "ifrs-full_ProductsAndServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProductsAndServicesMember",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails"
     ],
     "lang": {
      "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": [
      "r254",
      "r292"
     ]
    },
    "ifrs-full_ProfitLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProfitLoss",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 1.0
      },
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 1.0
      },
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net income (loss) for the period",
        "label": "Net income (loss) for the period",
        "verboseLabel": "Net income for the period",
        "terseLabel": "Net income"
       }
      },
      "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": [
      "r3",
      "r34",
      "r134",
      "r145",
      "r147",
      "r246",
      "r249",
      "r287",
      "r295"
     ]
    },
    "ifrs-full_ProfitLossAttributableToAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProfitLossAttributableToAbstract",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Attributable to:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProfitLossAttributableToNoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProfitLossAttributableToNoncontrollingInterests",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net income attributable to non-controlling interests",
        "verboseLabel": "Non-controlling interests"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) from continuing and discontinued operations attributable to non-controlling interests. [Refer: Profit (loss); Non-controlling interests]"
       }
      }
     },
     "auth_ref": [
      "r37",
      "r149"
     ]
    },
    "ifrs-full_ProfitLossAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProfitLossAttributableToOwnersOfParent",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails6",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net income (loss) attributable to shareholders of Petrobras",
        "verboseLabel": "Shareholders of Petrobras",
        "terseLabel": "Profit (loss), attributable to owners of parent"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) from continuing and discontinued operations attributable to owners of the parent. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "ifrs-full_ProfitLossBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProfitLossBeforeTax",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/TaxesDetails1",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net income (loss) before income taxes",
        "label": "Net income / (loss) before income taxes",
        "verboseLabel": "Net income (loss) before income taxes"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) before tax expense or income. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r207",
      "r263",
      "r264",
      "r310",
      "r311"
     ]
    },
    "ifrs-full_ProfitLossFromOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProfitLossFromOperatingActivities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Income before net finance expense, results of equity-accounted investments and income taxes",
        "label": "Income (loss) before net finance income (expense), results of equity-accounted investments and income taxes"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) from operating activities of the entity. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r276",
      "r339"
     ]
    },
    "pbr_ProfitReserve": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProfitReserve",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "ProfitReserve"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ProfitReservesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProfitReservesMember",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit Reserves [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ProfitRetention": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProfitRetention",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit retention"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ProfitRetentionReserveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProfitRetentionReserveMember",
     "presentation": [
      "http://petrobras.com/role/SubsequentEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit Retention Reserve [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ProfitSharing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProfitSharing",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit sharing"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ProfitSharingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProfitSharingMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails1",
      "http://petrobras.com/role/EmployeeBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit Sharing [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProfitsLossesOnDisposalOfInvestmentsAndChangesInValueOfInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProfitsLossesOnDisposalOfInvestmentsAndChangesInValueOfInvestments",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment of equity-accounted investments"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) on disposal of investments and changes in the value of investments. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r93"
     ]
    },
    "pbr_PropertiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PropertiesMember",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Properties [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PropertyPlantAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, plant and equipment - PP&amp;E",
        "verboseLabel": "Property, plant and equipment",
        "periodStartLabel": "Balance at December 31, 2022",
        "periodEndLabel": "Balance at June 30, 2023"
       }
      },
      "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": [
      "r9",
      "r68"
     ]
    },
    "pbr_PropertyPlantAndEquipmentCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PropertyPlantAndEquipmentCost",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cost"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PropertyPlantAndEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PropertyPlantAndEquipmentMember",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails",
      "http://petrobras.com/role/ImpairmentDetails1",
      "http://petrobras.com/role/ImpairmentDetailsNarrative",
      "http://petrobras.com/role/LeaseLiabilityDetailsNarrative",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails1",
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, plant and equipment [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for property, plant and equipment. It also represents the standard value for the 'Classes of property, plant and equipment' axis if no other member is used. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r69",
      "r277",
      "r294"
     ]
    },
    "pbr_ProvisionForCostEqualizationCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProvisionForCostEqualizationCurrent",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Opening balance",
        "periodEndLabel": "Closing balance",
        "label": "ProvisionForCostEqualizationCurrent"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProvisionForDecommissioningRestorationAndRehabilitationCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProvisionForDecommissioningRestorationAndRehabilitationCosts",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilitiesOtherThanLiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision for decommissioning costs"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of provision for costs related to decommissioning, restoration and rehabilitation. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r278",
      "r279"
     ]
    },
    "pbr_ProvisionReversalsForDecommissioningCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProvisionReversalsForDecommissioningCosts",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Provision for decommissioning costs",
        "label": "ProvisionReversalsForDecommissioningCosts"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProvisionUsedOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProvisionUsedOtherProvisions",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Use of provision",
        "label": "Provision used, other provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount used (ie incurred and charged against the provision) for other provisions. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r111"
     ]
    },
    "ifrs-full_ProvisionsForEmployeeBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProvisionsForEmployeeBenefits",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "Provisions for employee benefits"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of provisions for employee benefits. [Refer: Employee benefits expense; Provisions]"
       }
      }
     },
     "auth_ref": [
      "r30"
     ]
    },
    "pbr_ProvisionsForEnvironmentalExpensesAndFinesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProvisionsForEnvironmentalExpensesAndFinesMember",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provisions For Environmental Expenses And Fines [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ProvisionsRelatingToCumulativeTranslatingAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ProvisionsRelatingToCumulativeTranslatingAdjustments",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Translation adjustment",
        "label": "ProvisionsRelatingToCumulativeTranslatingAdjustments"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Acquisition of PP&amp;E and intangible assets",
        "label": "Purchase of property, plant and equipment, intangible assets other than goodwill, investment property and other non-current assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for the purchase of property, plant and equipment, intangible assets other than goodwill, investment property and other non-current assets. [Refer: Intangible assets other than goodwill; Investment property; Other non-current assets; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r358"
     ]
    },
    "pbr_PurchasesAndServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "PurchasesAndServicesMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchases And Services [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RangeAxis",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails1"
     ],
     "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": [
      "r173",
      "r190",
      "r198",
      "r289",
      "r291",
      "r365"
     ]
    },
    "ifrs-full_RangesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RangesMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails1"
     ],
     "lang": {
      "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": [
      "r173",
      "r190",
      "r198",
      "r289",
      "r291",
      "r365"
     ]
    },
    "ifrs-full_RateregulatedActivitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RateregulatedActivitiesMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for an entity\u2019s activities that are subject to rate regulation. It also represents the standard value for the 'Types of rate-regulated activities' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r172",
      "r174"
     ]
    },
    "pbr_ReasonablyPossibleScenarioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ReasonablyPossibleScenarioMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails10",
      "http://petrobras.com/role/FinancialRiskManagementDetails12",
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reasonably Possible Scenario [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ReceivablesFromBziosAgreement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ReceivablesFromBziosAgreement",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earn Out related to Atapu and S\u00e9pia fields"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ReceivablesFromDivestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ReceivablesFromDivestments",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivables from divestments"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/NetFinanceIncomeExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassification of hedge accounting to the Statement of Income (2)"
       }
      },
      "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": [
      "r48"
     ]
    },
    "pbr_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax1",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Reclassified to the statement of income",
        "label": "ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax1"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ReclassifiedToStatementOfIncomeOccurredExports": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ReclassifiedToStatementOfIncomeOccurredExports",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassified to the statement of income occurred exports"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RecognizedInEquityOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RecognizedInEquityOtherComprehensiveIncome",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recognized in Equity - other comprehensive income"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RecognizedInNetFinanceIncomeExpenseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RecognizedInNetFinanceIncomeExpenseMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recognized In Net Finance Income Expense [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RecognizedInOtherIncomeAndExpensesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RecognizedInOtherIncomeAndExpensesMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recognized In Other Income And Expenses [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RecognizedInShareholdersEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RecognizedInShareholdersEquity",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recognized in shareholders\u2019 equity"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RecognizedInStatementOfIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RecognizedInStatementOfIncome",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recognized in the Statement of Income"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RecognizedInStatementOfIncomeForPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RecognizedInStatementOfIncomeForPeriod",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recognized in the statement of income for the period"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RecognizedInStatementsOfFinancialPosition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RecognizedInStatementsOfFinancialPosition",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recognized in Statements of Financial Position"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RecoverableIncomeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RecoverableIncomeTaxes",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssetsOtherThanAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recoverable income taxes"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RecoverableTaxesInflationIndexationIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RecoverableTaxesInflationIndexationIncome",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/NetFinanceIncomeExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recoverable taxes inflation indexation income"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RecurringFairValueMeasurementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RecurringFairValueMeasurementMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails13"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recurring fair value measurement [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for fair value measurements which other IFRSs require or permit in the statement of financial position at the end of each reporting period. [Refer: IFRSs [member]]"
       }
      }
     },
     "auth_ref": [
      "r168"
     ]
    },
    "pbr_RedemptionPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RedemptionPercentage",
     "presentation": [
      "http://petrobras.com/role/SubsequentEventsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Redemption percentage"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RefiningTransportationAndMarketingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RefiningTransportationAndMarketingMember",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails1",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Refining Transportation And Marketing [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ReimbursementReceivableAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ReimbursementReceivableAmount",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reimbursement receivable amount"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ReimbursementsApprovedByPartnersInJointVentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ReimbursementsApprovedByPartnersInJointVentures",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reimbursements approved by partners in joint ventures until June 30, 2024"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RelatedPartiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RelatedPartiesMember",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails",
      "http://petrobras.com/role/TradePayablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related parties [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for related parties. Related parties are persons or entities that are related to the entity that is preparing its financial statements (the reporting entity). (a) A person or a close member of that person\u2019s family is related to a reporting entity if that person: (i) has control or joint control over the reporting entity; (ii) has significant influence over the reporting entity; or (iii) is a member of the key management personnel of the reporting entity or of a parent of the reporting entity. (b) An entity is related to a reporting entity if any of the following conditions applies: (i) The entity and the reporting entity are members of the same group (which means that each parent, subsidiary and fellow subsidiary is related to the others). (ii) One entity is an associate or joint venture of the other entity (or an associate or joint venture of a member of a group of which the other entity is a member). (iii) Both entities are joint ventures of the same third party. (iv) One entity is a joint venture of a third entity and the other entity is an associate of the third entity. (v) The entity is a post-employment benefit plan for the benefit of employees of either the reporting entity or an entity related to the reporting entity. If the reporting entity is itself such a plan, the sponsoring employers are also related to the reporting entity. (vi) The entity is controlled or jointly controlled by a person identified in (a). (vii) A person identified in (a)(i) has significant influence over the entity or is a member of the key management personnel of the entity (or of a parent of the entity). (viii) The entity, or any member of a group of which it is a part, provides key management personnel services to the reporting entity or to the parent of the reporting entity. [Refer: Joint ventures [member]; Key management personnel of entity or parent [member]]"
       }
      }
     },
     "auth_ref": [
      "r90"
     ]
    },
    "pbr_RemeasurementEffectsRecognizedInOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RemeasurementEffectsRecognizedInOtherComprehensiveIncome",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Remeasurement effects (2)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RemeasurementNewContracts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RemeasurementNewContracts",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Remeasurement / new contracts"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RemeasurementOfPropertyPlantAndEquipmentAcquiredInPreviousPeriods": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RemeasurementOfPropertyPlantAndEquipmentAcquiredInPreviousPeriods",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Remeasurement of property, plant and equipment acquired in previous periods"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RemoteScenarioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RemoteScenarioMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails10",
      "http://petrobras.com/role/FinancialRiskManagementDetails12",
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Remote Scenario [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RemunerationAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RemunerationAmount",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/SubsequentEventsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Remuneration amount"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RenewablesAndNitrogenProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RenewablesAndNitrogenProductsMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Renewables And Nitrogen Products [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RepaymentOfInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RepaymentOfInterest",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails2",
      "http://petrobras.com/role/FinanceDebtDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repayment of interest (*)",
        "verboseLabel": "Repayment of interest"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RepaymentOfPrincipal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RepaymentOfPrincipal",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails2",
      "http://petrobras.com/role/FinanceDebtDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repayment of principal (*)",
        "verboseLabel": "Repayment of principal"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RepaymentsOfBorrowingsClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Repayment of principal - finance debt",
        "label": "Repayments of borrowings, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow to settle borrowings, classified as financing activities. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r284"
     ]
    },
    "pbr_RepetroTaxMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RepetroTaxMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repetro Tax [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RepurchasePreferredShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RepurchasePreferredShares",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repurchase preferred shares"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RepurchasedPreferredValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RepurchasedPreferredValue",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repurchased preferred shares, value"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RepurchasedTranstactionCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RepurchasedTranstactionCost",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repurchased transtaction cost"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ResearchAndDevelopmentExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ResearchAndDevelopmentExpense",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "ifrs-full_OperatingExpenseExcludingCostOfSales",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Research and development expenses",
        "negatedTerseLabel": "Research and development expenses",
        "label": "Research and development expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expenditure directly attributable to research or development activities, recognised in profit or loss."
       }
      }
     },
     "auth_ref": [
      "r122"
     ]
    },
    "ifrs-full_ReserveOfExchangeDifferencesOnTranslationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ReserveOfExchangeDifferencesOnTranslationMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reserve of exchange differences on translation [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing accumulated exchange differences on the translation of financial statements recognised in other comprehensive income. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r84",
      "r265"
     ]
    },
    "ifrs-full_RestrictedCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RestrictedCashAndCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Cash and cash equivalents at the beginning of the period",
        "periodEndLabel": "Cash and cash equivalents at the end of the period",
        "label": "Restricted cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash and cash equivalents whose use or withdrawal is restricted. [Refer: Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "pbr_ResultFromCoparticipationAgreementsInBidAreas": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ResultFromCoparticipationAgreementsInBidAreas",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Results from co-participation agreements in bid areas",
        "label": "ResultFromCoparticipationAgreementsInBidAreas"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ResultsFromCoparticipationAgreementsInBidAreas": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ResultsFromCoparticipationAgreementsInBidAreas",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Results from co-participation agreements in bid areas"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ResultsOfEquityaccountedInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ResultsOfEquityaccountedInvestments",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/InvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Results of equity-accounted investments",
        "label": "ResultsOfEquityaccountedInvestments"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ResultsOfEquityaccountedInvestmentsInBrazilAndAbroad": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ResultsOfEquityaccountedInvestmentsInBrazilAndAbroad",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Results of equity-accounted investments in Brazil and abroad"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ResultsOfNoncoreActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ResultsOfNoncoreActivities",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Results of non-core activities"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ResultsOnDisposalwriteoffsOfAssetsAndOnRemeasurementOfInvestmentRetainedWithLossOfControl": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ResultsOnDisposalwriteoffsOfAssetsAndOnRemeasurementOfInvestmentRetainedWithLossOfControl",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Results on disposal/write-offs of assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RetainedEarnings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RetainedEarnings",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retained earnings (losses)"
       }
      },
      "en": {
       "role": {
        "documentation": "A component of equity representing the entity's cumulative undistributed earnings or deficit."
       }
      }
     },
     "auth_ref": [
      "r269",
      "r270"
     ]
    },
    "ifrs-full_RetainedEarningsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RetainedEarningsMember",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retained earnings [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing an entity's cumulative undistributed earnings or deficit."
       }
      }
     },
     "auth_ref": [
      "r5",
      "r265"
     ]
    },
    "ifrs-full_ReturnOnReimbursementRights": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ReturnOnReimbursementRights",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reimbursements from E&amp;P partnership operations"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in reimbursement rights related to defined benefit obligation, resulting from the return on those rights, excluding amounts included in interest income or expense. [Refer: Reimbursement rights related to defined benefit obligation, at fair value; Increase in reimbursement rights related to defined benefit obligation, resulting from interest income]"
       }
      }
     },
     "auth_ref": [
      "r73"
     ]
    },
    "pbr_RevaluationOfExistingProceedingsAndInterestCharges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RevaluationOfExistingProceedingsAndInterestCharges",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revaluation of existing proceedings and interest charges"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Revenue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Revenue",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "ifrs-full_GrossProfit",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/SalesRevenuesDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales revenues"
       }
      },
      "en": {
       "role": {
        "documentation": "The income arising in the course of an entity's ordinary activities. Income is increases in assets, or decreases in liabilities, that result in increases in equity, other than those relating to contributions from holders of equity claims."
       }
      }
     },
     "auth_ref": [
      "r41",
      "r158",
      "r207",
      "r242",
      "r248",
      "r254",
      "r255",
      "r258",
      "r263",
      "r264",
      "r287"
     ]
    },
    "pbr_RevenuesMainlySalesRevenuesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RevenuesMainlySalesRevenuesMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenues Mainly Sales Revenues [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ReversalOfImpairmentLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ReversalOfImpairmentLoss",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/ImpairmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reversals"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as an increase of the carrying amount of an asset or cash-generating unit to its recoverable amount when an impairment loss had been previously recognised. [Refer: Impairment loss]"
       }
      }
     },
     "auth_ref": [
      "r107",
      "r108"
     ]
    },
    "ifrs-full_ReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment reversal (note 19)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of reversal of impairment loss recognised in profit or loss for property, plant and equipment. [Refer: Reversal of impairment loss recognised in profit or loss; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r49",
      "r66"
     ]
    },
    "ifrs-full_ReversalOfInventoryWritedown": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ReversalOfInventoryWritedown",
     "presentation": [
      "http://petrobras.com/role/InventoriesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cost of sales to net realizable value"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as a reduction in the amount of inventories recognised as an expense due to the reversal of any write-down of inventories resulting from an increase in net realisable value. [Refer: Inventories; Inventory write-down]"
       }
      }
     },
     "auth_ref": [
      "r49",
      "r80"
     ]
    },
    "pbr_ReversalsOfImpairmentLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ReversalsOfImpairmentLoss",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Reversals",
        "label": "ReversalsOfImpairmentLoss"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RevisionAndUnwindingOfDiscountOnProvisionForDecommissioningCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RevisionAndUnwindingOfDiscountOnProvisionForDecommissioningCosts",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Revision and unwinding of discount on the provision for decommissioning costs",
        "label": "RevisionAndUnwindingOfDiscountOnProvisionForDecommissioningCosts"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_RightofuseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RightofuseAsset",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityDetailsNarrative",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-use assets",
        "verboseLabel": "Right of use assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RightofuseAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RightofuseAssetsMember",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails",
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-use assets [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for right-of-use assets. [Refer: Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r180"
     ]
    },
    "ifrs-full_RiskExposuresAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RiskExposuresAxis",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails10"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Risk variables [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": [
      "r195"
     ]
    },
    "ifrs-full_RiskExposuresMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RiskExposuresMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails10"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for the risk variables. It also represents the standard value for the 'Risk variables' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r195"
     ]
    },
    "pbr_RoncadorFieldMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "RoncadorFieldMember",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Roncador Field [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_SOFR3MMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SOFR3MMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails12"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SOFR 3M [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_SOFR6MMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SOFR6MMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails12"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SOFR 6M [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_SOFRONMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SOFRONMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails12"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SOFR ON [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_SalariesAccruedVacationsAndRelatedChargesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SalariesAccruedVacationsAndRelatedChargesMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Salaries Accrued Vacations And Related Charges [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_SalariesAndRelatedChargesAndOtherProvisionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SalariesAndRelatedChargesAndOtherProvisionsMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Salaries And Related Charges And Other Provisions [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_SaleOrIssueOfTreasuryShare": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SaleOrIssueOfTreasuryShare",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury shares"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SaleOrIssueOfTreasuryShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SaleOrIssueOfTreasuryShares",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sale or issue of treasury shares"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in equity resulting from the sale or issue of treasury shares. [Refer: Treasury shares]"
       }
      }
     },
     "auth_ref": [
      "r334"
     ]
    },
    "pbr_SalesAbroadMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SalesAbroadMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales Abroad [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_SalesFromTradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SalesFromTradeReceivables",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales from trade receivables"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_SalesWritedownsAndLossesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SalesWritedownsAndLossesMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales Writedowns And Losses [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_SchedueOfOtherAssetsAndLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SchedueOfOtherAssetsAndLiabilitiesTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of other assets and liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfAssetsAndLiabilitiesStatementOfFinancialPositionTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfAssetsAndLiabilitiesStatementOfFinancialPositionTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of assets and liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfCashFlowsReconciliationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfCashFlowsReconciliationTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of cash flows reconciliation"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfChangesInFinancialDebtTabletextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfChangesInFinancialDebtTabletextBlock",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of changes in finance debt"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfChangesInTheBalanceOfLeaseLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfChangesInTheBalanceOfLeaseLiabilitiesTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of changes in lease liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfChangesOnReimbursementsPayableTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfChangesOnReimbursementsPayableTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of reimbursements payable relating to the execution"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfCompositionOfDeferredTaxAssetsAndLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfCompositionOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/TaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of composition of deferred tax assets and liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfContingentAssetFromDisposalInvestmentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfContingentAssetFromDisposalInvestmentsTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of contingent asset from disposal investments"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDetailedInformationAboutComprehensiveIncomeTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDetailedInformationAboutComprehensiveIncomeTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of guarantees collateral"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDetailedInformationAboutInCumulativeForeignExchangeLossesRecognizedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDetailedInformationAboutInCumulativeForeignExchangeLossesRecognizedTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of cumulative foreign exchange losses recognized"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDetailedInformationAboutInCurrentFinanceDebtTabletTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDetailedInformationAboutInCurrentFinanceDebtTabletTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of current finance debt"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDetailedInformationAboutInGuaranteesGivenAsCollateralTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDetailedInformationAboutInGuaranteesGivenAsCollateralTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Schedule of guarantees collateral",
        "label": "ScheduleOfDetailedInformationAboutInGuaranteesGivenAsCollateralTableTextBlock"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDetailedInformationAboutInHedgingInstrumentNotionalValueTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDetailedInformationAboutInHedgingInstrumentNotionalValueTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of hedging instrument notional value"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDetailedInformationAboutInInterestRatesRiskManagementTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDetailedInformationAboutInInterestRatesRiskManagementTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of interest rate risk management"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDetailedInformationAboutInMaturityOfFinanceDebtTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDetailedInformationAboutInMaturityOfFinanceDebtTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of finance debt (undiscounted), including face value and interest payments"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDetailedInformationAboutInReclassificationOfCumulativeForeignExchangeLossesRecognizedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDetailedInformationAboutInReclassificationOfCumulativeForeignExchangeLossesRecognizedTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of reclassification of cumulative foreign exchange losses recognized"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDetailedInformationAboutInSensitivityAnalysisForForeignExchangeRiskOnFinancialInstrumentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDetailedInformationAboutInSensitivityAnalysisForForeignExchangeRiskOnFinancialInstrumentsTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of sensitivity analysis for foreign exchange risk on financial instruments"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDetailedInformationAboutInSensitivityAnalysisOfDerivativeFinancialInstrumentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDetailedInformationAboutInSensitivityAnalysisOfDerivativeFinancialInstrumentsTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of derivative financial instruments different types of market risks"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDetailedInformationAboutInStatementOfFinancialPositionTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDetailedInformationAboutInStatementOfFinancialPositionTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of statement financial position"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDetailedInformationAboutInStatementOfIncomeOfCumulativeLossesRecognizedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDetailedInformationAboutInStatementOfIncomeOfCumulativeLossesRecognizedTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of present value of hedging instrument notional value"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDetailedInformationAboutInSupplementalInformationOnStatementOfCashFlowsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDetailedInformationAboutInSupplementalInformationOnStatementOfCashFlowsTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of supplemental information on statement of cash flows"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDetailedInformationAboutInventoriesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDetailedInformationAboutInventoriesExplanatory",
     "presentation": [
      "http://petrobras.com/role/InventoriesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of inventories"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDetailedInformationOfExplorationAndEvaluationOfOilAndGasExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDetailedInformationOfExplorationAndEvaluationOfOilAndGasExplanatory",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of changes in capitalized costs"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDistributionRemunerationShareholdersTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDistributionRemunerationShareholdersTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/SubsequentEventsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of distribution remuneration to shareholders"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfDividendPayableTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfDividendPayableTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/EquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of dividend payable"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfFairValueMeasurementOfAssetsAndLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfFairValueMeasurementOfAssetsAndLiabilitiesTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of fair value of financial assets and liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfImpairmentLossesReversalsFinancialStatementTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfImpairmentLossesReversalsFinancialStatementTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/ImpairmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of statement of financial position"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfImpairmentLossesReversalsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfImpairmentLossesReversalsTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/ImpairmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of statement of income"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfInformationAboutKeyManagementPersonnelTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfInformationAboutKeyManagementPersonnelTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of total compensation"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfLineOfCreditFacilityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfLineOfCreditFacilityTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of lines of credit"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfMainInformationByClassOfUnderlyingAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfMainInformationByClassOfUnderlyingAssetsTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of maturity lease arrangements"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfProftReservesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfProftReservesTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/EquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of changes in the profit reserves"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfPstEmploymentBenefitsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfPstEmploymentBenefitsTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of post employment benefits"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfReconciliationOfDepreciationDepletionAndAmortizationWithStatementsOfCashFlowsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfReconciliationOfDepreciationDepletionAndAmortizationWithStatementsOfCashFlowsTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of reconciliation of depreciation depletion and amortization with Statements of Cash Flows"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfSensitivityAnalysisTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfSensitivityAnalysisTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of sensitivity analysis, keeping all other variables remaining constant"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfTransactionsBetweenRelatedPartyTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfTransactionsBetweenRelatedPartyTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of balances of significant transactions"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfUnclaimedDividendsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfUnclaimedDividendsTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/EquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of unclaimed dividends"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleOfVariablePaymentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleOfVariablePaymentsTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of variable payments and terms of less than 1 year recognized as expenses"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ScheduleofAnticipationDividendsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ScheduleofAnticipationDividendsTableTextBlock",
     "presentation": [
      "http://petrobras.com/role/EquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of anticipation dividend"
       }
      }
     },
     "auth_ref": []
    },
    "dei_Security12bTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "Security12bTitle",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of 12(b) Security",
        "documentation": "Title of a 12(b) registered security."
       }
      }
     },
     "auth_ref": [
      "r314"
     ]
    },
    "dei_Security12gTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "Security12gTitle",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of 12(g) Security",
        "documentation": "Title of a 12(g) registered security."
       }
      }
     },
     "auth_ref": [
      "r318"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Exchange Name",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r317"
     ]
    },
    "dei_SecurityReportingObligation": {
     "xbrltype": "securityReportingObligationItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "SecurityReportingObligation",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Reporting Obligation",
        "documentation": "15(d), indicating whether the security has a reporting obligation under that section of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r322"
     ]
    },
    "pbr_SegmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SegmentAxis",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3",
      "http://petrobras.com/role/LeaseLiabilityDetails",
      "http://petrobras.com/role/TaxesDetails",
      "http://petrobras.com/role/TaxesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment [Axis]",
        "verboseLabel": "SegmentAxis [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SegmentConsolidationItemsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SegmentConsolidationItemsAxis",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails1"
     ],
     "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": [
      "r246"
     ]
    },
    "pbr_SegmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SegmentDomain",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/InformationByOperatingSegmentDetails3",
      "http://petrobras.com/role/LeaseLiabilityDetails",
      "http://petrobras.com/role/TaxesDetails",
      "http://petrobras.com/role/TaxesDetails4"
     ],
     "auth_ref": []
    },
    "ifrs-full_SegmentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SegmentsAxis",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails1"
     ],
     "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": [
      "r108",
      "r177",
      "r246",
      "r274",
      "r297"
     ]
    },
    "ifrs-full_SegmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SegmentsMember",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails1"
     ],
     "lang": {
      "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": [
      "r108",
      "r177",
      "r253",
      "r274",
      "r297"
     ]
    },
    "ifrs-full_SellingExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SellingExpense",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "ifrs-full_OperatingExpenseExcludingCostOfSales",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Selling expenses",
        "negatedTerseLabel": "Selling expenses",
        "label": "Selling expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense relating to selling activities of the entity."
       }
      }
     },
     "auth_ref": [
      "r335"
     ]
    },
    "pbr_SellingExpensesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SellingExpensesMember",
     "presentation": [
      "http://petrobras.com/role/CostsAndExpensesByNatureDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Selling Expenses [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_SensitivityAnalysis": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SensitivityAnalysis",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails10"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sensitivity analysis"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ServiceConcessionRightsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ServiceConcessionRightsMember",
     "presentation": [
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Service concession rights [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for service concession rights. [Refer: Service concession arrangements [member]]"
       }
      }
     },
     "auth_ref": [
      "r355"
     ]
    },
    "pbr_ServicesAgencyAndOthersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ServicesAgencyAndOthersMember",
     "presentation": [
      "http://petrobras.com/role/SalesRevenuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Services Agency And Others [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ShallowWatersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ShallowWatersMember",
     "presentation": [
      "http://petrobras.com/role/ProvisionForDecommissioningCostsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shallow Waters [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ShareCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ShareCapital",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subscribed and fully paid share capital"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodNetOfTaxAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodNetOfTaxAbstract",
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share of other comprehensive income (loss) in equity-accounted investments"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ShareOfProfitLossOfAssociatesAndJointVentureAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ShareOfProfitLossOfAssociatesAndJointVentureAccountedForUsingEquityMethod",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Results of equity-accounted investments"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Results of equity-accounted investments"
       }
      },
      "en": {
       "role": {
        "documentation": "The entity's share of the profit (loss) of associates and joint ventures accounted for using the equity method. [Refer: Associates [member]; Investments accounted for using equity method; Joint ventures [member]; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r43",
      "r244",
      "r252"
     ]
    },
    "pbr_ShareRepurchaseProgram": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ShareRepurchaseProgram",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Share repurchase program",
        "label": "ShareRepurchaseProgram"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ShareholderRemuneration": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ShareholderRemuneration",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shareholder remuneration"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ShiptakeOrPayAgreementsAndFinesImposedToSuppliers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ShiptakeOrPayAgreementsAndFinesImposedToSuppliers",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ship/take or pay agreements and fines imposed to suppliers"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ShortPositionOrCrudeOilAndOilProductsOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ShortPositionOrCrudeOilAndOilProductsOneMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short Position Or Crude Oil And Oil Products One [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ShortPositionOrForeignCurrencyForwardsBrlUsdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ShortPositionOrForeignCurrencyForwardsBrlUsdMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short Position Or Foreign Currency Forwards Brl Usd [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ShortPositionSoybeanOilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ShortPositionSoybeanOilMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short Position Soybean Oil [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShorttermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ShorttermBorrowings",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-term debt"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "ifrs-full_ShorttermEmployeeBenefitsAccruals": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ShorttermEmployeeBenefitsAccruals",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails",
      "http://petrobras.com/role/EmployeeBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-term employee benefits",
        "verboseLabel": "Total"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of accruals for employee benefits (other than termination benefits) that are expected to be settled wholly within twelve months after the end of the annual reporting period in which the employees render the related services. [Refer: Accruals classified as current]"
       }
      }
     },
     "auth_ref": [
      "r337"
     ]
    },
    "pbr_ShorttermEmployeeBenefitsAccrualsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ShorttermEmployeeBenefitsAccrualsCurrent",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Current",
        "label": "ShorttermEmployeeBenefitsAccrualsCurrent"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ShorttermEmployeeBenefitsAccrualsNonCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ShorttermEmployeeBenefitsAccrualsNonCurrent",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Non-current",
        "label": "ShorttermEmployeeBenefitsAccrualsNonCurrent"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ShorttermInvestmentsClassifiedAsCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-term financial investments"
       }
      },
      "en": {
       "role": {
        "documentation": "A classification of cash equivalents representing short-term investments. [Refer: Cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "pbr_SignatureBonusesTransfer": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SignatureBonusesTransfer",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Signature Bonuses Transfers (3)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_SignatureBonusesTransfersPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SignatureBonusesTransfersPropertyPlantAndEquipment",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Signature Bonuses Transfers (6)"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SignificantInvestmentsInAssociatesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SignificantInvestmentsInAssociatesAxis",
     "presentation": [
      "http://petrobras.com/role/InvestmentsDetails"
     ],
     "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": [
      "r97",
      "r98",
      "r167"
     ]
    },
    "ifrs-full_SignificantInvestmentsInSubsidiariesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SignificantInvestmentsInSubsidiariesAxis",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails6"
     ],
     "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": [
      "r97",
      "r98",
      "r164"
     ]
    },
    "pbr_SoftwareLicensesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SoftwareLicensesMember",
     "presentation": [
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Software Licenses [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_SolicitingMaterial": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "SolicitingMaterial",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Soliciting Material",
        "documentation": "Boolean flag that is true when the Form 8-K filing is intended to satisfy the filing obligation of the registrant as soliciting material pursuant to Rule 14a-12 under the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r323"
     ]
    },
    "pbr_SoybeanOilPriceChangesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SoybeanOilPriceChangesMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Soybean Oil Price Changes [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatementOfCashFlowsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "StatementOfCashFlowsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of cash flows [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatementOfChangesInEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "StatementOfChangesInEquityAbstract",
     "auth_ref": []
    },
    "ifrs-full_StatementOfChangesInEquityTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "StatementOfChangesInEquityTable",
     "presentation": [
      "http://petrobras.com/role/EquityDetails6",
      "http://petrobras.com/role/EquityDetailsNarrative",
      "http://petrobras.com/role/FinancialRiskManagementDetails8",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of changes in equity [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to changes in equity."
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "ifrs-full_StatementOfFinancialPositionAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "StatementOfFinancialPositionAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of financial position [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_StatutoryCapitalRemunerationReserve": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "StatutoryCapitalRemunerationReserve",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statutory \u2013 Capital remuneration"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_StatutoryResearchAndDevelopmentReserve": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "StatutoryResearchAndDevelopmentReserve",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statutory - R&amp;D"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_SwapCDIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SwapCDIMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Swap C D I [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_SwapCDIXDollarMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SwapCDIXDollarMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Swap C D I X Dollar [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SwapContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SwapContractMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Swap contract [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a derivative financial instrument that involves the exchange of cash flow streams between the parties of the contract over a specified period. [Refer: Derivatives [member]]"
       }
      }
     },
     "auth_ref": [
      "r335"
     ]
    },
    "pbr_SyndicateOfBanksMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SyndicateOfBanksMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Syndicate Of Banks [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_SyndicateOfBanksTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "SyndicateOfBanksTwoMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Syndicate Of Banks Two [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TJLPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TJLPMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails12"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "TJLP [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TRMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TRMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails12"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "TR [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TaxBenefitsFromDeductionOfInterestOnCapitalDistribution": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TaxBenefitsFromDeductionOfInterestOnCapitalDistribution",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax benefits from the deduction of interest on capital distributions"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TaxContingentLiabilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TaxContingentLiabilityMember",
     "presentation": [
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails",
      "http://petrobras.com/role/ProvisionsForLegalProceedingsJudicialDepositsAndContingentLiabilitiesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax contingent liability [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a contingent liability for taxes. [Refer: Contingent liabilities [member]]"
       }
      }
     },
     "auth_ref": [
      "r350"
     ]
    },
    "pbr_TaxEffectMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TaxEffectMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails8"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax Effect [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TaxExpenseOtherThanIncomeTaxExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TaxExpenseOtherThanIncomeTaxExpense",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome": {
       "parentTag": "ifrs-full_OperatingExpenseExcludingCostOfSales",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Other taxes",
        "label": "Tax expense other than income tax expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of tax expense exclusive of income tax expense."
       }
      }
     },
     "auth_ref": [
      "r339"
     ]
    },
    "pbr_TaxExpenseOtherThanIncomeTaxExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TaxExpenseOtherThanIncomeTaxExpenses",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Other taxes",
        "label": "TaxExpenseOtherThanIncomeTaxExpenses"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TaxIncentives": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TaxIncentives",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Tax incentives",
        "label": "TaxIncentives"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TaxIncentivesAdjustmentsToEffectiveTaxRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TaxIncentivesAdjustmentsToEffectiveTaxRate",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax incentives"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TaxLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TaxLiability",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax liability"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TaxLossesCarryforwards": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TaxLossesCarryforwards",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax loss carryforwards (unrecognized tax losses) (2)"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TaxSettlementProgramsPRTMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TaxSettlementProgramsPRTMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax Settlement Programs P R T [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TaxableIncomeCompensationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TaxableIncomeCompensationMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Taxable Income Compensation [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails",
      "http://petrobras.com/role/TaxesDetails3",
      "http://petrobras.com/role/TaxesDetails4",
      "http://petrobras.com/role/TaxesDetailsNarrative"
     ],
     "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": [
      "r59"
     ]
    },
    "ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails",
      "http://petrobras.com/role/TaxesDetails3",
      "http://petrobras.com/role/TaxesDetails4",
      "http://petrobras.com/role/TaxesDetailsNarrative"
     ],
     "lang": {
      "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": [
      "r59"
     ]
    },
    "pbr_TerminationBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TerminationBenefits",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Termination benefits"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ThirdParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ThirdParties",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/InformationByOperatingSegmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Third parties"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ThirdPartiesAbroadMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ThirdPartiesAbroadMember",
     "presentation": [
      "http://petrobras.com/role/TradePayablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Third Parties Abroad [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ThirdPartiesInCountryOfBrazilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ThirdPartiesInCountryOfBrazilMember",
     "presentation": [
      "http://petrobras.com/role/TradePayablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Third Parties In Country Of Brazil [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_ThirdPartiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "ThirdPartiesMember",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Third Parties [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TimeDepositsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TimeDepositsMember",
     "presentation": [
      "http://petrobras.com/role/CashAndCashEquivalentsAndMarketableSecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Time Deposits [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TopOfRangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TopOfRangeMember",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Top of range [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for top of a range."
       }
      }
     },
     "auth_ref": [
      "r173",
      "r190",
      "r198",
      "r289",
      "r291",
      "r365"
     ]
    },
    "pbr_Total": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "Total",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total",
        "label": "Total [Default Label]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TotalAmountPaidToInvestors": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TotalAmountPaidToInvestors",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/SubsequentEventsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total amount paid to investors"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TotalAnticipatedDividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TotalAnticipatedDividendsMember",
     "presentation": [
      "http://petrobras.com/role/EquityDetails2",
      "http://petrobras.com/role/SubsequentEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Anticipated Dividends [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TotalDebtEnrolledInTaxSettlementProgram": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TotalDebtEnrolledInTaxSettlementProgram",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total debt enrolled in the tax settlement program"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TotalDistributionToShareholdersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TotalDistributionToShareholdersMember",
     "presentation": [
      "http://petrobras.com/role/SubsequentEventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Distribution To Shareholders [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TotalDividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TotalDividendsMember",
     "presentation": [
      "http://petrobras.com/role/EquityDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Dividends [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TotalEffectInStatementOfIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TotalEffectInStatementOfIncome",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total effect in the statement of income"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TotalEffectInStatementsOfIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TotalEffectInStatementsOfIncome",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total effect in the statement of income",
        "label": "TotalEffectInStatementsOfIncome"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TotalExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TotalExpenses",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total expenses"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TotalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TotalMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TradeAndOtherCurrentPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TradeAndOtherCurrentPayables",
     "crdr": "credit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilitiesOtherThanLiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/TradePayablesDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade payables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current trade payables and current other payables. [Refer: Current trade payables; Other current payables]"
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "ifrs-full_TradeAndOtherCurrentReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TradeAndOtherCurrentReceivables",
     "crdr": "debit",
     "calculation": {
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssetsOtherThanAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails",
      "http://petrobras.com/role/UnauditedCondensedConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other receivables",
        "verboseLabel": "Current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current trade receivables and current other receivables. [Refer: Current trade receivables; Other current receivables]"
       }
      }
     },
     "auth_ref": [
      "r12",
      "r29"
     ]
    },
    "ifrs-full_TradeAndOtherPayablesToRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TradeAndOtherPayablesToRelatedParties",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TradePayablesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Due to related party"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of payables due to related parties. [Refer: Related parties [member]]"
       }
      }
     },
     "auth_ref": [
      "r337"
     ]
    },
    "ifrs-full_TradeAndOtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TradeAndOtherReceivables",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total trade receivables, net"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of trade receivables and other receivables. [Refer: Trade receivables; Other receivables]"
       }
      }
     },
     "auth_ref": [
      "r12",
      "r29"
     ]
    },
    "ifrs-full_TradeAndOtherReceivablesDueFromRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TradeAndOtherReceivablesDueFromRelatedParties",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade receivables from contracts with costumers"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of receivables due from related parties. [Refer: Related parties [member]]"
       }
      }
     },
     "auth_ref": [
      "r267"
     ]
    },
    "pbr_TradeAndOtherReceivablesGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TradeAndOtherReceivablesGross",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other receivables gross"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TradeReceivables",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails1",
      "http://petrobras.com/role/TradeAndOtherReceivablesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivables from contracts with customers",
        "verboseLabel": "Trade receivables",
        "terseLabel": "Receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount due from customers for goods and services sold."
       }
      }
     },
     "auth_ref": [
      "r267"
     ]
    },
    "ifrs-full_TradeReceivablesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TradeReceivablesMember",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade receivables [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for trade receivables. [Refer: Trade receivables]"
       }
      }
     },
     "auth_ref": [
      "r227",
      "r231",
      "r299",
      "r335"
     ]
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "TradingSymbol",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Symbol",
        "documentation": "Trading symbol of an instrument as listed on an exchange."
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransactionContingentAssetsEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransactionContingentAssetsEightMember",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transaction Contingent Assets Eight [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransactionContingentAssetsEighthMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransactionContingentAssetsEighthMember",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transaction Contingent Assets Eighth [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransactionContingentAssetsElevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransactionContingentAssetsElevenMember",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transaction Contingent Assets Eleven [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransactionContingentAssetsFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransactionContingentAssetsFiveMember",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transaction Contingent Assets Five [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransactionContingentAssetsFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransactionContingentAssetsFourMember",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transaction Contingent Assets Four [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransactionContingentAssetsNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransactionContingentAssetsNineMember",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transaction Contingent Assets Nine [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransactionContingentAssetsOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransactionContingentAssetsOneMember",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transaction Contingent Assets One [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransactionContingentAssetsSevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransactionContingentAssetsSevenMember",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transaction Contingent Assets Seven [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransactionContingentAssetsSixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransactionContingentAssetsSixMember",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transaction Contingent Assets Six [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransactionContingentAssetsTenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransactionContingentAssetsTenMember",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transaction Contingent Assets Ten [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransactionContingentAssetsThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransactionContingentAssetsThreeMember",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transaction Contingent Assets Three [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransactionContingentAssetsTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransactionContingentAssetsTwoMember",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transaction Contingent Assets Two [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransactionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransactionCosts",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative",
      "http://petrobras.com/role/SubsequentEventsDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transaction costs"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TransactionsRecognisedSeparatelyFromAcquisitionOfAssetsAndAssumptionOfLiabilitiesInBusinessCombinationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TransactionsRecognisedSeparatelyFromAcquisitionOfAssetsAndAssumptionOfLiabilitiesInBusinessCombinationAxis",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transactions recognised separately from acquisition of assets and assumption of liabilities in business combination [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": [
      "r201"
     ]
    },
    "ifrs-full_TransactionsRecognisedSeparatelyFromAcquisitionOfAssetsAndAssumptionOfLiabilitiesInBusinessCombinationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TransactionsRecognisedSeparatelyFromAcquisitionOfAssetsAndAssumptionOfLiabilitiesInBusinessCombinationMember",
     "presentation": [
      "http://petrobras.com/role/DisposalOfAssetsAndOtherTransactionsDetails1"
     ],
     "lang": {
      "en": {
       "role": {
        "documentation": "This member stands for transactions that are recognised separately from the acquisition of assets and assumption of liabilities in business combinations. It also represents the standard value for the 'Transactions recognised separately from acquisition of assets and assumption of liabilities in business combination' axis if no other member is used. [Refer: Business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r201"
     ]
    },
    "pbr_TransactionsWithJointVenturesAssociatesGovernmentEntitiesAndPensionPlansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransactionsWithJointVenturesAssociatesGovernmentEntitiesAndPensionPlansMember",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transactions With Joint Ventures Associates Government Entities And Pension Plans [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransferToAssetsHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransferToAssetsHeldForSale",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/InvestmentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfer to assets held for sale"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransfersFromDividendsPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransfersFromDividendsPayable",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfers from dividends payable"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransfersToAssetsHeldForSalePropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransfersToAssetsHeldForSalePropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfers to assets held for sale"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TransfersToUnclaimedDividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TransfersToUnclaimedDividends",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfers to unclaimed dividends"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TranslationAdjustment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TranslationAdjustment",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Translation adjustment",
        "label": "TranslationAdjustment"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TranslationAdjustmentAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TranslationAdjustmentAmount",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Translation adjustment",
        "label": "TranslationAdjustmentAmount"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TranslationAdjustmentForDeferredIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TranslationAdjustmentForDeferredIncomeTax",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Translation adjustment",
        "label": "TranslationAdjustmentForDeferredIncomeTax"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TranslationAdjustmentOfGoodwillAndIntangibleAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TranslationAdjustmentOfGoodwillAndIntangibleAssets",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/ExplorationAndEvaluationOfOilAndGasReservesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Translation adjustment",
        "label": "TranslationAdjustmentOfGoodwillAndIntangibleAssets"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TranslationAdjustmentsAmounts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TranslationAdjustmentsAmounts",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Translation adjustment",
        "label": "TranslationAdjustmentsAmounts"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TranslationAdjustmentscostEqualization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TranslationAdjustmentscostEqualization",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Translation adjustments"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_TranslationsAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "TranslationsAdjustments",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Translation adjustment"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TreasuryShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TreasuryShares",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shares held in treasury"
       }
      },
      "en": {
       "role": {
        "documentation": "An entity\u2019s own equity instruments, held by the entity or other members of the consolidated group."
       }
      }
     },
     "auth_ref": [
      "r100",
      "r269"
     ]
    },
    "ifrs-full_TreasurySharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TreasurySharesMember",
     "presentation": [
      "http://petrobras.com/role/EquityDetailsNarrative"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury shares [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the entity\u2019s own equity instruments, held by the entity or other members of the consolidated group."
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "ifrs-full_TypesOfHedgesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TypesOfHedgesAxis",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11",
      "http://petrobras.com/role/FinancialRiskManagementDetails2"
     ],
     "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": [
      "r215",
      "r216",
      "r220"
     ]
    },
    "ifrs-full_TypesOfHedgesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TypesOfHedgesMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11",
      "http://petrobras.com/role/FinancialRiskManagementDetails2"
     ],
     "lang": {
      "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": [
      "r215",
      "r216",
      "r220"
     ]
    },
    "ifrs-full_TypesOfInterestRatesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TypesOfInterestRatesAxis",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4"
     ],
     "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": [
      "r364"
     ]
    },
    "ifrs-full_TypesOfRateregulatedActivitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TypesOfRateregulatedActivitiesAxis",
     "presentation": [
      "http://petrobras.com/role/RelatedPartyTransactionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of rate-regulated activities [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": [
      "r172",
      "r174"
     ]
    },
    "ifrs-full_TypesOfRisksAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TypesOfRisksAxis",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11",
      "http://petrobras.com/role/FinancialRiskManagementDetails2",
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "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": [
      "r191",
      "r192",
      "r193",
      "r195",
      "r212",
      "r225",
      "r226"
     ]
    },
    "ifrs-full_TypesOfRisksMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TypesOfRisksMember",
     "presentation": [
      "http://petrobras.com/role/FinancialRiskManagementDetails11",
      "http://petrobras.com/role/FinancialRiskManagementDetails2",
      "http://petrobras.com/role/FinancialRiskManagementDetails5"
     ],
     "lang": {
      "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": [
      "r191",
      "r192",
      "r193",
      "r195",
      "r212",
      "r225",
      "r226"
     ]
    },
    "pbr_UnclaimedDividend": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "UnclaimedDividend",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "UnclaimedDividend"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_UnclaimedDividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "UnclaimedDividendsMember",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unclaimed Dividends [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_UnscheduledStoppagesAndPreoperatingExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "UnscheduledStoppagesAndPreoperatingExpenses",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stoppages for asset maintenance and pre-operating expenses"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_UnwindingOfDiscountOnLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "UnwindingOfDiscountOnLeaseLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/NetFinanceIncomeExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unwinding of discount on lease liability"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_UnwindingOfDiscountOnProvisionsForDecommissioningCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "UnwindingOfDiscountOnProvisionsForDecommissioningCosts",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/NetFinanceIncomeExpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unwinding of discount on the provision for decommissioning costs"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_UpToOneYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "UpToOneYearMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Up To One Year [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_UseOfDeferredTaxAndJudicialDeposit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "UseOfDeferredTaxAndJudicialDeposit",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Use of tax credits and judicial deposit for the payment of contingency"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_UseOfJudicialDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "UseOfJudicialDeposits",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Use of judicial deposits"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_UseOfTaxCredits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "UseOfTaxCredits",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails5"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Use of tax credits"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_UseOfTaxLossCarryforwards": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "UseOfTaxLossCarryforwards",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Use of tax loss carryforwards",
        "label": "UseOfTaxLossCarryforwards"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_UseOfTaxLossCarryforwardsForDeferredIcomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "UseOfTaxLossCarryforwardsForDeferredIcomeTax",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Use of tax loss carryforwards"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment": {
     "xbrltype": "durationItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average useful life in years"
       }
      },
      "en": {
       "role": {
        "documentation": "The useful life, measured as period of time, used for property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "pbr_UsefulLivesOrAmortisationPeriodIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "durationItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "UsefulLivesOrAmortisationPeriodIntangibleAssetsOtherThanGoodwill",
     "presentation": [
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated useful life in years"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_VariableCompensationProgramMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "VariableCompensationProgramMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Compensation Program [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_VariableCompensationPrograms": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "VariableCompensationPrograms",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/OtherIncomeAndExpensesNetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable compensation programs"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_VariableCompensationProgramsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "VariableCompensationProgramsMember",
     "presentation": [
      "http://petrobras.com/role/EmployeeBenefitsDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Compensation Programs [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_VariableLeaseToFixedPaymentsPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "VariableLeaseToFixedPaymentsPercentage",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable lease to fixed payments percentage"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_VariableMaturityTermPayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "VariableMaturityTermPayments",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/LeaseLiabilityDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable maturity term"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_VariousCreditorsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "VariousCreditorsMember",
     "presentation": [
      "http://petrobras.com/role/OtherAssetsAndLiabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Various Creditors [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_VesselsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "VesselsMember",
     "presentation": [
      "http://petrobras.com/role/PropertyPlantAndEquipmentDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Vessels [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_WeightedAverageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "WeightedAverageMember",
     "presentation": [
      "http://petrobras.com/role/FinanceDebtDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for an average in which each quantity to be averaged is assigned a weight that determines the relative effect of each quantity on the average."
       }
      }
     },
     "auth_ref": [
      "r173",
      "r190",
      "r289",
      "r291",
      "r365"
     ]
    },
    "pbr_WeightedAverageNumberOfCommonAndPreferredSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "WeightedAverageNumberOfCommonAndPreferredSharesOutstanding",
     "presentation": [
      "http://petrobras.com/role/EquityDetails6"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average number of outstanding shares"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_WithholdingIncomeTaxPaidOnBehalfOfThirdParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "WithholdingIncomeTaxPaidOnBehalfOfThirdParties",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/SupplementalInformationOnStatementOfCashFlowsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Withholding income tax paid on behalf of third-parties"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_WithholdingIncomeTaxeOverInterestOnCapitalAndMonetaryRestatement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "WithholdingIncomeTaxeOverInterestOnCapitalAndMonetaryRestatement",
     "crdr": "credit",
     "presentation": [
      "http://petrobras.com/role/EquityDetails3"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Withholding income taxe over interest on capital and monetary restatement"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_WithholdingIncomeTaxesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "WithholdingIncomeTaxesMember",
     "presentation": [
      "http://petrobras.com/role/TaxesDetails4"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Withholding Income Taxes [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "pbr_WriteOffOfIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "WriteOffOfIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/IntangibleAssetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Write-offs",
        "label": "WriteOffOfIntangibleAssetsOtherThanGoodwill"
       }
      }
     },
     "auth_ref": []
    },
    "dei_WrittenCommunications": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "WrittenCommunications",
     "presentation": [
      "http://petrobras.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Written Communications",
        "documentation": "Boolean flag that is true when the Form 8-K filing is intended to satisfy the filing obligation of the registrant as written communications pursuant to Rule 425 under the Securities Act."
       }
      }
     },
     "auth_ref": [
      "r331"
     ]
    },
    "pbr_WrittenOffAllowanceForImpairmentOfTradeAndOtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://petrobras.com/20240630",
     "localname": "WrittenOffAllowanceForImpairmentOfTradeAndOtherReceivables",
     "crdr": "debit",
     "presentation": [
      "http://petrobras.com/role/TradeAndOtherReceivablesDetails2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Write-offs"
       }
      }
     },
     "auth_ref": []
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "103",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_103&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r1": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "104",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_104&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r2": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "106",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_106_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r3": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_106_d_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r4": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_106_d_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r5": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "106",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_106&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r6": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "107",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_107&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r7": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "125",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_125&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r8": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_35&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r9": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r10": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r11": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_g&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r12": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_h&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r13": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r14": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "j",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_j&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r15": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "k",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_k&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r16": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "n",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_n&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r17": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "o",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_o&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r18": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "p",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_p&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r19": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "q",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_q&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r20": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "r",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_r&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r21": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "55",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_55&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r22": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "56",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_56&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r23": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "61",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_61_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r24": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "61",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_61_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r25": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "61",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_61&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r26": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "66",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_66&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r27": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "69",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_69&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r28": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "7",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_7&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r29": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "78",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_78_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r30": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "78",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_78_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r31": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "78",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_78_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r32": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_79_a_iv&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r33": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_79_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r34": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "81A",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81A_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r35": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "81A",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81A_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r36": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "81A",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81A_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r37": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "81B",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81B_a_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r38": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "81B",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81B_a_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r39": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "81B",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81B_b_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r40": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "81B",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81B_b_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r41": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "82",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_82_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r42": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "82",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_82_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r43": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "82",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_82_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r44": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "82",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_82_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r45": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "90",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_90&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r46": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "91",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_91_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r47": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "91",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_91_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r48": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "92",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_92&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r49": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "98",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_98_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r50": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "99",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_99&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r51": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "10",
   "IssueDate": "2023-01-01",
   "Paragraph": "21",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=10&code=ifrs-tx-2023-en-r&anchor=para_21&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r52": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "10",
   "IssueDate": "2023-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=10&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IAS10_g17-22_TI",
   "URIDate": "2023-03-23"
  },
  "r53": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_79&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r54": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "81",
   "Subparagraph": "ab",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_ab&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r55": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "81",
   "Subparagraph": "c",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_c_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r56": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "81",
   "Subparagraph": "c",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_c_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r57": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_g_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r58": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_g_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r59": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_g&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r60": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IAS12_g79-88_TI",
   "URIDate": "2023-03-23"
  },
  "r61": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r62": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r63": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_e_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r64": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_e_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r65": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_e_v&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r66": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_e_vi&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r67": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_e_viii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r68": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r69": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r70": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "75",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_75_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r71": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "138",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_138&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r72": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "140",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_140_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r73": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "141",
   "Subparagraph": "c",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_141_c_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r74": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "141",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_141_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r75": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "141",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_141_f&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r76": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "142",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_142&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r77": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "145",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_145&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r78": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "53",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_53&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r79": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "2",
   "IssueDate": "2023-01-01",
   "Paragraph": "36",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=2&code=ifrs-tx-2023-en-r&anchor=para_36_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r80": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "2",
   "IssueDate": "2023-01-01",
   "Paragraph": "36",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=2&code=ifrs-tx-2023-en-r&anchor=para_36_f&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r81": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "2",
   "IssueDate": "2023-01-01",
   "Paragraph": "36",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=2&code=ifrs-tx-2023-en-r&anchor=para_36_h&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r82": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "2",
   "IssueDate": "2023-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=2&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IAS02_g36-39_TI",
   "URIDate": "2023-03-23"
  },
  "r83": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "21",
   "IssueDate": "2023-01-01",
   "Paragraph": "52",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2023-en-r&anchor=para_52_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r84": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "21",
   "IssueDate": "2023-01-01",
   "Paragraph": "52",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2023-en-r&anchor=para_52_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r85": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "23",
   "IssueDate": "2023-01-01",
   "Paragraph": "26",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=23&code=ifrs-tx-2023-en-r&anchor=para_26_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r86": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2023-en-r&anchor=para_17_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r87": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2023-en-r&anchor=para_17_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r88": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2023-en-r&anchor=para_17&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r89": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2023-01-01",
   "Paragraph": "19",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2023-en-r&anchor=para_19_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r90": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2023-01-01",
   "Paragraph": "19",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2023-en-r&anchor=para_19&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r91": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2023-01-01",
   "Section": "Disclosures",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IAS24_g13-24_TI",
   "URIDate": "2023-03-23"
  },
  "r92": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "26",
   "IssueDate": "2023-01-01",
   "Paragraph": "35",
   "Subparagraph": "b",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2023-en-r&anchor=para_35_b_iv&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r93": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "26",
   "IssueDate": "2023-01-01",
   "Paragraph": "35",
   "Subparagraph": "b",
   "Clause": "ix",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2023-en-r&anchor=para_35_b_ix&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r94": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "26",
   "IssueDate": "2023-01-01",
   "Paragraph": "35",
   "Subparagraph": "b",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2023-en-r&anchor=para_35_b_viii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r95": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "26",
   "IssueDate": "2023-01-01",
   "Paragraph": "36",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2023-en-r&anchor=para_36_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r96": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2023-01-01",
   "Paragraph": "10",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_10&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r97": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2023-01-01",
   "Paragraph": "16",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_16_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r98": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_17_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r99": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "29",
   "IssueDate": "2023-01-01",
   "Paragraph": "9",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=29&code=ifrs-tx-2023-en-r&anchor=para_9&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r100": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "32",
   "IssueDate": "2023-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=32&code=ifrs-tx-2023-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r101": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2023-01-01",
   "Paragraph": "66",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2023-en-r&anchor=para_66&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r102": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2023-01-01",
   "Paragraph": "67",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2023-en-r&anchor=para_67&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r103": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "34",
   "IssueDate": "2023-01-01",
   "Paragraph": "16A",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=34&code=ifrs-tx-2023-en-r&anchor=para_16A_f&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r104": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2023-01-01",
   "Paragraph": "126",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2023-en-r&anchor=para_126_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r105": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2023-01-01",
   "Paragraph": "126",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2023-en-r&anchor=para_126&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r106": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2023-01-01",
   "Paragraph": "129",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2023-en-r&anchor=para_129_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r107": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2023-01-01",
   "Paragraph": "130",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2023-en-r&anchor=para_130_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r108": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2023-01-01",
   "Paragraph": "130",
   "Subparagraph": "d",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2023-en-r&anchor=para_130_d_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r109": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "84",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_84_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r110": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "84",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_84_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r111": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "84",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_84_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r112": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "84",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_84&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r113": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "85",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_85_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r114": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "86",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_86&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r115": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "88",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_88&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r116": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "89",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_89&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r117": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IAS37_g84-92_TI",
   "URIDate": "2023-03-23"
  },
  "r118": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r119": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_e_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r120": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_e_vi&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r121": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r122": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "126",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_126&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r123": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IAS38_g118-128_TI",
   "URIDate": "2023-03-23"
  },
  "r124": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "39",
   "IssueDate": "2023-01-01",
   "Paragraph": "86",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=39&code=ifrs-tx-2023-en-r&anchor=para_86_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r125": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "39",
   "IssueDate": "2023-01-01",
   "Paragraph": "86",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=39&code=ifrs-tx-2023-en-r&anchor=para_86_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r126": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2023-01-01",
   "Paragraph": "32A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2023-en-r&anchor=para_32A&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r127": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2023-01-01",
   "Paragraph": "76",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2023-en-r&anchor=para_76_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r128": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2023-01-01",
   "Paragraph": "76",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2023-en-r&anchor=para_76&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r129": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2023-en-r&anchor=para_79_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r130": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2023-en-r&anchor=para_79_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r131": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2023-01-01",
   "Paragraph": "50",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2023-en-r&anchor=para_50&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r132": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2023-en-r&anchor=para_54_f&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r133": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "10",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_10&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r134": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "18",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_18_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r135": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "25",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_25&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r136": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "28",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_28&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r137": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "31",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_31&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r138": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r139": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "42A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_42A&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r140": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "42B",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_42B&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r141": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "45",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_45&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r142": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "50",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_50_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r143": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRIC",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "16",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRIC&num=17&code=ifrs-tx-2023-en-r&anchor=para_16_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r144": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "24",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2023-en-r&anchor=para_24_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r145": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "24",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2023-en-r&anchor=para_24_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r146": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "32",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2023-en-r&anchor=para_32_a_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r147": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "32",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2023-en-r&anchor=para_32_a_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r148": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "10",
   "IssueDate": "2023-01-01",
   "Paragraph": "22",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=10&code=ifrs-tx-2023-en-r&anchor=para_22&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r149": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "12",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_12_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r150": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "12",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_12_f&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r151": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "19",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_19_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r152": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B12",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B12_a&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r153": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B12_b_i&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r154": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B12_b_ii&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r155": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B12_b_iii&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r156": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B12_b_iv&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r157": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "ix",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B12_b_ix&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r158": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B12_b_v&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r159": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B12_b_viii&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r160": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B13",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B13_a&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r161": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B13",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B13_d&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r162": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B13",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B13_g&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r163": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B16",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B16&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r164": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B4",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B4_a&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r165": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B4",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B4_b&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r166": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B4",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B4_c&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r167": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B4",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B4_d&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r168": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "93",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r169": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "93",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r170": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "93",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r171": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "93",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r172": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "14",
   "IssueDate": "2023-01-01",
   "Paragraph": "30",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=14&code=ifrs-tx-2023-en-r&anchor=para_30&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r173": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "14",
   "IssueDate": "2023-01-01",
   "Paragraph": "33",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=14&code=ifrs-tx-2023-en-r&anchor=para_33_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r174": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "14",
   "IssueDate": "2023-01-01",
   "Paragraph": "33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=14&code=ifrs-tx-2023-en-r&anchor=para_33&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r175": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "14",
   "IssueDate": "2023-01-01",
   "Section": "Explanation of activities subject to rate regulation",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=14&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IFRS14_g30-31_TI",
   "URIDate": "2023-03-23"
  },
  "r176": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2023-01-01",
   "Paragraph": "114",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2023-en-r&anchor=para_114&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r177": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2023-01-01",
   "Paragraph": "115",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2023-en-r&anchor=para_115&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r178": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2023-01-01",
   "Paragraph": "119",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2023-en-r&anchor=para_119&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r179": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2023-01-01",
   "Paragraph": "120",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2023-en-r&anchor=para_120_b_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r180": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_33&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r181": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "47",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_47_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r182": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "53",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_53_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r183": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "53",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_53&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r184": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "94",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_94&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r185": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "97",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_97&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r186": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IFRS16_g51-60_TI",
   "URIDate": "2023-03-23"
  },
  "r187": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Section": "Presentation",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IFRS16_g47-50_TI",
   "URIDate": "2023-03-23"
  },
  "r188": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "109",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_109&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r189": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "109A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_109A&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r190": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "120",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_120&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r191": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "124",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_124&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r192": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "125",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_125&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r193": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "127",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_127&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r194": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "128",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_128_a_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r195": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "128",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_128_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r196": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "132",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_132_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r197": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "C32",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_C32&doctype=Appendix&subtype=C",
   "URIDate": "2023-03-23"
  },
  "r198": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2023-01-01",
   "Paragraph": "45",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2023-en-r&anchor=para_45_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r199": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B64",
   "Subparagraph": "j",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_j&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r200": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B64",
   "Subparagraph": "l",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_l_i&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r201": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B64",
   "Subparagraph": "l",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_l&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r202": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B64",
   "Subparagraph": "m",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_m&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r203": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B64",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r204": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B67",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B67_c&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r205": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B67",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B67_d&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r206": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B67",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B67&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r207": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "5",
   "IssueDate": "2023-01-01",
   "Paragraph": "33",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2023-en-r&anchor=para_33_b_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r208": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "5",
   "IssueDate": "2023-01-01",
   "Paragraph": "38",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2023-en-r&anchor=para_38&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r209": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "6",
   "IssueDate": "2023-01-01",
   "Paragraph": "24",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=6&code=ifrs-tx-2023-en-r&anchor=para_24_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r210": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "6",
   "IssueDate": "2023-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=6&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IFRS06_g23-25_TI",
   "URIDate": "2023-03-23"
  },
  "r211": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "13C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_13C&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r212": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "21C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_21C&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r213": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "23A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_23A&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r214": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "23B",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_23B_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r215": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24A&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r216": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24B",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24B&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r217": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24C",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24C_a_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r218": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24C",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24C_b_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r219": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24C",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24C_b_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r220": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24C&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r221": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24E",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24E_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r222": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24G",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24G_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r223": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "25",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_25&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r224": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "31",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_31&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r225": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_33&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r226": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r227": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35H",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35H_b_iii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r228": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35H",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35H&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r229": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35I",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35I&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r230": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35K",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35K&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r231": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35M",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35M_b_iii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r232": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35M",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35M&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r233": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "36",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_36&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r234": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "42E",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_42E_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r235": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "42I",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_42I&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r236": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_6&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r237": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "7",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_7&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r238": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "8",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_8_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r239": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "8",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_8_f&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r240": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B52",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B52&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r241": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Section": "Defined terms",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&doctype=Appendix&subtype=A&dita_xref=IFRS07_APPA_TI",
   "URIDate": "2023-03-23"
  },
  "r242": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "23",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r243": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "23",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r244": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "23",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23_g&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r245": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "23",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23_h&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r246": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "23",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r247": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "24",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_24_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r248": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "28",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r249": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "28",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r250": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "28",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r251": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "28",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r252": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "28",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r253": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "28",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r254": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "32",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_32&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r255": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "33",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_33_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r256": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "33",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_33_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r257": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_33&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r258": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r259": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IFRS08_g20-24_TI",
   "URIDate": "2023-03-23"
  },
  "r260": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "9",
   "IssueDate": "2023-01-01",
   "Paragraph": "7.2.34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=9&code=ifrs-tx-2023-en-r&anchor=para_7.2.34&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r261": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "9",
   "IssueDate": "2023-01-01",
   "Paragraph": "7.2.42",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=9&code=ifrs-tx-2023-en-r&anchor=para_7.2.42&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r262": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expired 2023-01-01",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "36",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_36_c&doctype=Standard&book=b",
   "URIDate": "2023-03-23"
  },
  "r263": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "102",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_102&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r264": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "103",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_103&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r265": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "108",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_108&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r266": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "68",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_68&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r267": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "78",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_78_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r268": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "78",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_78_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r269": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "78",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_78_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r270": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "IG6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_IG6&doctype=Implementation%20Guidance",
   "URIDate": "2023-03-23"
  },
  "r271": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "80",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_80_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r272": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "138",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_138_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r273": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "138",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_138_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r274": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "138",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_138_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r275": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "147",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_147_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r276": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "32",
   "IssueDate": "2023-01-01",
   "Paragraph": "IE33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=32&code=ifrs-tx-2023-en-r&anchor=para_IE33&doctype=Illustrative%20Examples",
   "URIDate": "2023-03-23"
  },
  "r277": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2023-01-01",
   "Paragraph": "127",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2023-en-r&anchor=para_127&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r278": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "87",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_87&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r279": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Section": "D Examples: disclosures",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&doctype=Illustrative%20Examples&dita_xref=IAS37_IE_D_TI",
   "URIDate": "2023-03-23"
  },
  "r280": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Section": "Example 10 A court case",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&doctype=Illustrative%20Examples&dita_xref=IAS37_IE_C_ex10_TI",
   "URIDate": "2023-03-23"
  },
  "r281": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "14",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_14_f&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r282": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "16",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_16_f&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r283": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_17_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r284": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_17_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r285": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_17_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r286": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "44D",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_44D&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r287": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B10",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B10_b&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r288": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "94",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_94&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r289": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "B6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_B6&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r290": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "IE60",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_IE60&doctype=Illustrative%20Examples",
   "URIDate": "2023-03-23"
  },
  "r291": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "IE63",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_IE63&doctype=Illustrative%20Examples",
   "URIDate": "2023-03-23"
  },
  "r292": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2023-01-01",
   "Paragraph": "B89",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2023-en-r&anchor=para_B89_a&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r293": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2023-01-01",
   "Paragraph": "B89",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2023-en-r&anchor=para_B89_b&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r294": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "53",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_53&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r295": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "113",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_113_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r296": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "96",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_96_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r297": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "96",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_96_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r298": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35M",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35M&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r299": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35N",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35N&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r300": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_6&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r301": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B11",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B11&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r302": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B35",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B35_c&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r303": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B35",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B35_d&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r304": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B35",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B35_g&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r305": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B35&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r306": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "IG20C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_IG20C&doctype=Implementation%20Guidance",
   "URIDate": "2023-03-23"
  },
  "r307": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "IG20D",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_IG20D&doctype=Implementation%20Guidance",
   "URIDate": "2023-03-23"
  },
  "r308": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "IG31A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_IG31A&doctype=Implementation%20Guidance",
   "URIDate": "2023-03-23"
  },
  "r309": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "IG40B",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_IG40B&doctype=Implementation%20Guidance",
   "URIDate": "2023-03-23"
  },
  "r310": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "23",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r311": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "28",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r312": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Expired 2023-01-01",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "IG24",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_IG24&doctype=Implementation%20Guidance&book=b",
   "URIDate": "2023-03-23"
  },
  "r313": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12"
  },
  "r314": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b"
  },
  "r315": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r316": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-23"
  },
  "r317": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r318": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "g"
  },
  "r319": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12, 13, 15d"
  },
  "r320": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "13e",
   "Subsection": "4c"
  },
  "r321": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "14d",
   "Subsection": "2b"
  },
  "r322": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "15",
   "Subsection": "d"
  },
  "r323": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Section": "14a",
   "Number": "240",
   "Subsection": "12"
  },
  "r324": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-K",
   "Number": "249",
   "Section": "310"
  },
  "r325": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-Q",
   "Number": "240",
   "Section": "308",
   "Subsection": "a"
  },
  "r326": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Number": "249",
   "Section": "220",
   "Subsection": "f"
  },
  "r327": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Number": "249",
   "Section": "240",
   "Subsection": "f"
  },
  "r328": {
   "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"
  },
  "r329": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r330": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "405"
  },
  "r331": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "425"
  },
  "r332": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "7A",
   "Section": "B",
   "Subsection": "2"
  },
  "r333": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "10",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_10_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r334": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_106_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r335": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "112",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_112_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r336": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "55",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_55&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r337": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "78",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_78&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r338": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_79_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r339": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "85",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_85&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r340": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "80",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_80&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r341": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "37",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_37&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r342": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r343": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r344": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "135",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_135_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r345": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "145",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_145&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r346": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "5",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_5&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r347": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "2",
   "IssueDate": "2023-01-01",
   "Paragraph": "37",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=2&code=ifrs-tx-2023-en-r&anchor=para_37&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r348": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2023-01-01",
   "Paragraph": "127",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2023-en-r&anchor=para_127&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r349": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "84",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_84&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r350": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "88",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_88&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r351": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r352": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "vii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_e_vii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r353": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r354": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r355": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "119",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_119&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r356": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2023-en-r&anchor=para_79_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r357": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2023-en-r&anchor=para_54_f&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r358": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "16",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_16&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r359": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_17&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r360": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "20",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r361": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "20",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r362": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "20",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r363": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "45",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_45&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r364": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "39",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_39&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r365": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "7",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_7&doctype=Standard",
   "URIDate": "2023-03-23"
  }
 }
}
