{
 "version": "2.2",
 "instance": {
  "d873067dex201.htm": {
   "nsprefix": "bhp",
   "nsuri": "http://www.bhp.com/20240630",
   "dts": {
    "schema": {
     "local": [
      "bhp-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/2014/extensible-enumerations.xsd",
      "http://www.xbrl.org/lrr/arcrole/factExplanatory-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/net-2009-12-16.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.sec.gov/country/2024/country-2024.xsd",
      "https://xbrl.sec.gov/country/2024/country-2024_def.xsd",
      "https://xbrl.sec.gov/currency/2024/currency-2024.xsd",
      "https://xbrl.sec.gov/dei/2024/dei-2024.xsd",
      "https://xbrl.sec.gov/rxp/2024/rxp-2024.xsd",
      "https://xbrl.sec.gov/snj/2024/snj-2024.xsd",
      "https://xbrl.sec.gov/snj/2024/snj-2024_def.xsd"
     ]
    },
    "inline": {
     "local": [
      "d873067dex201.htm"
     ]
    }
   },
   "keyStandard": 15,
   "keyCustom": 4,
   "axisStandard": 4,
   "axisCustom": 0,
   "memberStandard": 16,
   "memberCustom": 71,
   "hidden": {
    "total": 6,
    "http://xbrl.sec.gov/dei/2024": 6
   },
   "contextCount": 88,
   "entityCount": 1,
   "segmentCount": 87,
   "elementCount": 136,
   "unitCount": 1,
   "baseTaxonomies": {
    "http://xbrl.sec.gov/rxp/2024": 192,
    "http://xbrl.sec.gov/dei/2024": 6
   },
   "report": {
    "R1": {
     "role": "http://xbrl.sec.gov/dei/role/document/DocumentInformation",
     "longName": "995200 - Document - Document Information",
     "shortName": "Document Information",
     "isDefault": "true",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": null,
     "uniqueAnchor": null
    },
    "R2": {
     "role": "http://xbrl.sec.gov/rxp/role/ByCategory",
     "longName": "995600 - Disclosure - Payments, by Category",
     "shortName": "Payments, by Category",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "2",
     "firstAnchor": {
      "contextRef": "P07_01_2023To06_30_2024",
      "name": "rxp:Taxes",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d873067dex201.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R3": {
     "role": "http://xbrl.sec.gov/rxp/role/ByProject",
     "longName": "995601 - Disclosure - Payments, by Project",
     "shortName": "Payments, by Project",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "3",
     "firstAnchor": {
      "contextRef": "P07_01_2023To06_30_2024",
      "name": "rxp:Taxes",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d873067dex201.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P07_01_2023To06_30_2024_MineralsAmericasMemberdeiLegalEntityAxis",
      "name": "rxp:Taxes",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d873067dex201.htm",
      "unique": true
     }
    },
    "R4": {
     "role": "http://xbrl.sec.gov/rxp/role/ByGovernment",
     "longName": "995602 - Disclosure - Payments, by Government",
     "shortName": "Payments, by Government",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "4",
     "firstAnchor": {
      "contextRef": "P07_01_2023To06_30_2024",
      "name": "rxp:Taxes",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d873067dex201.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P07_01_2023To06_30_2024_AUrxpCountryAxis",
      "name": "rxp:Taxes",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d873067dex201.htm",
      "unique": true
     }
    }
   },
   "tag": {
    "rxp_A": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "A",
     "crdr": "debit",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amount",
        "terseLabel": "Amount"
       }
      }
     },
     "auth_ref": [
      "r1"
     ]
    },
    "country_AU": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "AU",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AUSTRALIA",
        "terseLabel": "Australia"
       }
      }
     },
     "auth_ref": []
    },
    "country_AllCountriesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "AllCountriesDomain",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Countries [Domain]",
        "terseLabel": "All Countries"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_AllGovernmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "AllGovernmentsMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Governments [Member]",
        "terseLabel": "All Governments"
       }
      }
     },
     "auth_ref": [
      "r11",
      "r12"
     ]
    },
    "rxp_AllProjectsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "AllProjectsMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Projects [Member]",
        "terseLabel": "All Projects"
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "dei_AmendmentDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AmendmentDescription",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/DocumentInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Description",
        "terseLabel": "Amendment Description",
        "documentation": "Description of changes contained within amended document."
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/DocumentInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Flag",
        "terseLabel": "Amendment",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "bhp_ArizonaDepartmentOfRevenueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "ArizonaDepartmentOfRevenueMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Arizona Department of Revenue [Member]",
        "terseLabel": "Arizona Department of Revenue"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_ArizonaStateLandDepartmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "ArizonaStateLandDepartmentMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Arizona State Land Department [Member]",
        "terseLabel": "Arizona State Land Department"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_AustralianTaxationOfficeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "AustralianTaxationOfficeMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Australian Taxation Office [Member]",
        "terseLabel": "Australian Taxation Office"
       }
      }
     },
     "auth_ref": []
    },
    "country_BR": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "BR",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "BRAZIL",
        "terseLabel": "Brazil"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_BhpBillitonBrasilLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "BhpBillitonBrasilLtdaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "BHP Billiton Brasil Ltda [Member]",
        "terseLabel": "BHP Billiton Brasil Ltda"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_BhpMitsubishiAllianceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "BhpMitsubishiAllianceMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "BHP Mitsubishi Alliance [Member]",
        "terseLabel": "BHP Mitsubishi Alliance"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_Bonuses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "Bonuses",
     "crdr": "debit",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByCategory",
      "http://xbrl.sec.gov/rxp/role/ByGovernment",
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bonuses",
        "terseLabel": "Bonuses"
       }
      }
     },
     "auth_ref": [
      "r18"
     ]
    },
    "bhp_BureauOfInternalRevenueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "BureauOfInternalRevenueMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bureau of Internal Revenue [Member]",
        "terseLabel": "Bureau of Internal Revenue"
       }
      }
     },
     "auth_ref": []
    },
    "country_CA": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "CA",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CANADA",
        "terseLabel": "Canada"
       }
      }
     },
     "auth_ref": []
    },
    "country_CH": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "CH",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SWITZERLAND",
        "terseLabel": "Switzerland"
       }
      }
     },
     "auth_ref": []
    },
    "country_CL": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "CL",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CHILE",
        "terseLabel": "Chile"
       }
      }
     },
     "auth_ref": []
    },
    "country_CN": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "CN",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CHINA",
        "terseLabel": "China"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_CanadaRevenueAgencyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "CanadaRevenueAgencyMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Canada Revenue Agency [Member]",
        "terseLabel": "Canada Revenue Agency"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_CantonOfZugMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "CantonOfZugMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Canton of Zug [Member]",
        "terseLabel": "Canton of Zug"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_CentralHighlandsRegionalCouncilQueenslandMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "CentralHighlandsRegionalCouncilQueenslandMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Central Highlands Regional Council (Queensland) [Member]",
        "terseLabel": "Central Highlands Regional Council (Queensland)"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_ChinaTaxBureauMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "ChinaTaxBureauMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "China Tax Bureau [Member]",
        "terseLabel": "China Tax Bureau"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_CityOfKalgoorlieboulderWesternAustraliaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "CityOfKalgoorlieboulderWesternAustraliaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "City of KalgoorlieBoulder (Western Australia) [Member]",
        "terseLabel": "City of Kalgoorlie-Boulder (Western Australia)"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_CityOfRockinghamWesternAustraliaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "CityOfRockinghamWesternAustraliaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "City of Rockingham (Western Australia) [Member]",
        "terseLabel": "City of Rockingham (Western Australia)"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_CityOfWestminsterMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "CityOfWestminsterMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "City of Westminster [Member]",
        "terseLabel": "City of Westminster"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_Cm": {
     "xbrltype": "conversionMethodItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "Cm",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Currency Conversion Method",
        "terseLabel": "Curr. Conv. Method"
       }
      }
     },
     "auth_ref": [
      "r23"
     ]
    },
    "rxp_Co": {
     "xbrltype": "enumerationItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "Co",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Country",
        "terseLabel": "Country"
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "bhp_CoalMiningIndustryLongServiceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "CoalMiningIndustryLongServiceMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Coal Mining Industry Long Service [Member]",
        "terseLabel": "Coal Mining Industry Long Service"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_CommercialMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "CommercialMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercial [Member]",
        "terseLabel": "Commercial"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_CommunityAndSocial": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "CommunityAndSocial",
     "crdr": "debit",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByCategory",
      "http://xbrl.sec.gov/rxp/role/ByGovernment",
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Community and Social Responsibility",
        "terseLabel": "Comm. Social Resp."
       }
      }
     },
     "auth_ref": [
      "r21"
     ]
    },
    "bhp_CopperSouthAustraliaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "CopperSouthAustraliaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Copper South Australia [Member]",
        "terseLabel": "Copper South Australia"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_CorporateIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "CorporateIncomeTax",
     "crdr": "debit",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByCategory",
      "http://xbrl.sec.gov/rxp/role/ByGovernment",
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Corporate Income Tax",
        "terseLabel": "Corporate income tax"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_CorporateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "CorporateMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Corporate [Member]",
        "terseLabel": "Corporate"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_CountryAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "CountryAxis",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Country [Axis]",
        "terseLabel": "Country:"
       }
      }
     },
     "auth_ref": [
      "r24"
     ]
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "CoverAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cover [Abstract]",
        "terseLabel": "Cover",
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "rxp_Dividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "Dividends",
     "crdr": "debit",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByCategory",
      "http://xbrl.sec.gov/rxp/role/ByGovernment",
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends",
        "terseLabel": "Dividends"
       }
      }
     },
     "auth_ref": [
      "r19"
     ]
    },
    "dei_DocumentInformationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentInformationLineItems",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/DocumentInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Information [Line Items]",
        "terseLabel": "Document Information:",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentInformationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentInformationTable",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/DocumentInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Information [Table]",
        "terseLabel": "Document Information",
        "documentation": "Container to support the formal attachment of each official or unofficial, public or private document as part of a submission package."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentPeriodEndDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/DocumentInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period End Date",
        "terseLabel": "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_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentType",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/DocumentInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Type",
        "terseLabel": "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": []
    },
    "country_EC": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "EC",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ECUADOR",
        "terseLabel": "Ecuador"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/DocumentInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Central Index Key",
        "terseLabel": "CIK",
        "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": [
      "r0"
     ]
    },
    "dei_EntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityDomain",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByCategory",
      "http://xbrl.sec.gov/rxp/role/ByGovernment",
      "http://xbrl.sec.gov/rxp/role/ByProject",
      "http://xbrl.sec.gov/rxp/role/Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Entities [Member]",
        "terseLabel": "All Entities",
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/DocumentInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Registrant Name",
        "terseLabel": "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": [
      "r0"
     ]
    },
    "dei_EntityReportingCurrencyISOCode": {
     "xbrltype": "currencyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityReportingCurrencyISOCode",
     "presentation": [
      "http://xbrl.sec.gov/dei/role/document/DocumentInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Reporting Currency ISO Code",
        "terseLabel": "Reporting Currency",
        "documentation": "The three character ISO 4217 code for the currency used for reporting purposes. Example: 'USD'."
       }
      }
     },
     "auth_ref": []
    },
    "bhp_EscondidaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "EscondidaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Escondida [Member]",
        "terseLabel": "Escondida"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_FederalTaxRevenueMinistryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "FederalTaxRevenueMinistryMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Tax Revenue Ministry [Member]",
        "terseLabel": "Federal Tax Revenue Ministry"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_Fees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "Fees",
     "crdr": "debit",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByCategory",
      "http://xbrl.sec.gov/rxp/role/ByGovernment",
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fees",
        "terseLabel": "Fees"
       }
      }
     },
     "auth_ref": [
      "r16"
     ]
    },
    "bhp_FinancesQuebecMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "FinancesQuebecMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finances Quebec [Member]",
        "terseLabel": "Finances Quebec"
       }
      }
     },
     "auth_ref": []
    },
    "country_GB": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "GB",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "UNITED KINGDOM",
        "terseLabel": "United Kingdom"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_GovernmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "GovernmentAxis",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Government [Axis]",
        "terseLabel": "Government:"
       }
      }
     },
     "auth_ref": [
      "r11",
      "r12"
     ]
    },
    "bhp_GovernmentOfBritishColumbiaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "GovernmentOfBritishColumbiaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Government of British Columbia [Member]",
        "terseLabel": "Government of British Columbia"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_GovernmentOfSaskatchewanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "GovernmentOfSaskatchewanMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Government of Saskatchewan [Member]",
        "terseLabel": "Government of Saskatchewan"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_GroupAndUnallocatedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "GroupAndUnallocatedMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Group and Unallocated [Member]",
        "terseLabel": "Group and Unallocated"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_Gv": {
     "xbrltype": "enumerationItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "Gv",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Government",
        "terseLabel": "Govt."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "bhp_HmRevenueAndCustomsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "HmRevenueAndCustomsMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "HM Revenue And Customs [Member]",
        "terseLabel": "HM Revenue &amp; Customs"
       }
      }
     },
     "auth_ref": []
    },
    "country_IN": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "IN",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "INDIA",
        "terseLabel": "India"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_IncomeTaxDepartmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "IncomeTaxDepartmentMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Department [Member]",
        "terseLabel": "Income Tax Department"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_InfrastructureImprovements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "InfrastructureImprovements",
     "crdr": "debit",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByCategory",
      "http://xbrl.sec.gov/rxp/role/ByGovernment",
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Infrastructure Improvements",
        "terseLabel": "Infrastructure"
       }
      }
     },
     "auth_ref": [
      "r20"
     ]
    },
    "bhp_InlandRevenueAuthorityOfSingaporeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "InlandRevenueAuthorityOfSingaporeMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inland Revenue Authority of Singapore [Member]",
        "terseLabel": "Inland Revenue Authority of Singapore"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_InlandRevenueBoardMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "InlandRevenueBoardMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inland Revenue Board [Member]",
        "terseLabel": "Inland Revenue Board"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_InstitutoEcuatorianoDeSeguridadSocialMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "InstitutoEcuatorianoDeSeguridadSocialMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Instituto Ecuatoriano de Seguridad Social [Member]",
        "terseLabel": "Instituto Ecuatoriano de Seguridad Social"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_InternalRevenueServiceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "InternalRevenueServiceMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Internal Revenue Service [Member]",
        "terseLabel": "Internal Revenue Service"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_IsaacRegionalCouncilQueenslandMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "IsaacRegionalCouncilQueenslandMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Isaac Regional Council (Queensland) [Member]",
        "terseLabel": "Isaac Regional Council (Queensland)"
       }
      }
     },
     "auth_ref": []
    },
    "country_JP": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "JP",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "JAPAN",
        "terseLabel": "Japan"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_K": {
     "xbrltype": "yesItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "K",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "In-kind",
        "terseLabel": "In-kind"
       }
      }
     },
     "auth_ref": [
      "r22"
     ]
    },
    "rxp_Km": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "Km",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "In-kind Value Calculation",
        "terseLabel": "In-kind Calc."
       }
      }
     },
     "auth_ref": [
      "r22"
     ]
    },
    "dei_LegalEntityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "LegalEntityAxis",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByCategory",
      "http://xbrl.sec.gov/rxp/role/ByGovernment",
      "http://xbrl.sec.gov/rxp/role/ByProject",
      "http://xbrl.sec.gov/rxp/role/Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal Entity [Axis]",
        "terseLabel": "Legal Entity:",
        "documentation": "The set of legal entities associated with a report."
       }
      }
     },
     "auth_ref": []
    },
    "rxp_M": {
     "xbrltype": "extractionMethodItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "M",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Extraction Method",
        "terseLabel": "Ext. Method"
       }
      }
     },
     "auth_ref": [
      "r8"
     ]
    },
    "country_MY": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "MY",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "MALAYSIA",
        "terseLabel": "Malaysia"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_MackayRegionalCouncilQueenslandMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "MackayRegionalCouncilQueenslandMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mackay Regional Council (Queensland) [Member]",
        "terseLabel": "Mackay Regional Council (Queensland)"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_MineralsAmericasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "MineralsAmericasMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minerals Americas [Member]",
        "terseLabel": "Minerals Americas"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_MineralsAustraliaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "MineralsAustraliaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minerals Australia [Member]",
        "terseLabel": "Minerals Australia"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_MunicipalCouncilOfRoxbyDownsSouthAustraliaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "MunicipalCouncilOfRoxbyDownsSouthAustraliaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Municipal Council of Roxby Downs (South Australia) [Member]",
        "terseLabel": "Municipal Council of Roxby Downs (South Australia)"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_MuswellbrookShireCouncilNewSouthWalesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "MuswellbrookShireCouncilNewSouthWalesMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Muswellbrook Shire Council (New South Wales) [Member]",
        "terseLabel": "Muswellbrook Shire Council (New South Wales)"
       }
      }
     },
     "auth_ref": []
    },
    "country_NL": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "NL",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "NETHERLANDS",
        "terseLabel": "Netherlands"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_NationalMiningAgencyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "NationalMiningAgencyMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "National Mining Agency [Member]",
        "terseLabel": "National Mining Agency"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_NationalSuperintendencyOfCustomsAndTaxAdministrationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "NationalSuperintendencyOfCustomsAndTaxAdministrationMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "National Superintendency of Customs and Tax Administration [Member]",
        "terseLabel": "National Superintendency of Customs and Tax Administration"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_NationalTaxAgencyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "NationalTaxAgencyMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "National Tax Agency [Member]",
        "terseLabel": "National Tax Agency"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_NewSouthWalesEnergyCoalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "NewSouthWalesEnergyCoalMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New South Wales Energy Coal [Member]",
        "terseLabel": "New South Wales Energy Coal"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_OtherAustralianGovernmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "OtherAustralianGovernmentsMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Australian Governments [Member]",
        "terseLabel": "Other Australian Governments"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_OtherCanadianGovernmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "OtherCanadianGovernmentsMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Canadian Governments [Member]",
        "terseLabel": "Other Canadian Governments"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_OtherCoalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "OtherCoalMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Coal [Member]",
        "terseLabel": "Other Coal"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_OtherCopperMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "OtherCopperMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Copper [Member]",
        "terseLabel": "Other Copper"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_OtherMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "OtherMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other [Member]",
        "terseLabel": "Other"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_OtherPayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "OtherPayments",
     "crdr": "debit",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByCategory",
      "http://xbrl.sec.gov/rxp/role/ByGovernment",
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Payments",
        "terseLabel": "Other payments"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_OtherPhilippinesGovernmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "OtherPhilippinesGovernmentsMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Philippines Governments [Member]",
        "terseLabel": "Other Philippines Governments"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_OtherUsGovernmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "OtherUsGovernmentsMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other US Governments [Member]",
        "terseLabel": "Other US Governments"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_P": {
     "xbrltype": "enumerationItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "P",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payment Type",
        "terseLabel": "Type"
       }
      }
     },
     "auth_ref": [
      "r1"
     ]
    },
    "country_PE": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "PE",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PERU",
        "terseLabel": "Peru"
       }
      }
     },
     "auth_ref": []
    },
    "country_PH": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "PH",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PHILIPPINES",
        "terseLabel": "Philippines"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_PampaNorteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "PampaNorteMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pampa Norte [Member]",
        "terseLabel": "Pampa Norte"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_PaymentsByCategoryTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "PaymentsByCategoryTable",
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments by Category [Table]",
        "terseLabel": "Payments:"
       }
      }
     },
     "auth_ref": [
      "r3"
     ]
    },
    "rxp_PaymentsByGovernmentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "PaymentsByGovernmentTable",
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments by Government [Table]",
        "terseLabel": "Payments, by Government:"
       }
      }
     },
     "auth_ref": [
      "r2"
     ]
    },
    "rxp_PaymentsByProjectTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "PaymentsByProjectTable",
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments by Project [Table]",
        "terseLabel": "Payments, by Project:"
       }
      }
     },
     "auth_ref": [
      "r1"
     ]
    },
    "rxp_PaymentsDetailTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "PaymentsDetailTable",
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments Detail [Table]",
        "terseLabel": "Payments Detail:"
       }
      }
     },
     "auth_ref": [
      "r1"
     ]
    },
    "rxp_PaymentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "PaymentsLineItems",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByCategory",
      "http://xbrl.sec.gov/rxp/role/ByGovernment",
      "http://xbrl.sec.gov/rxp/role/ByProject",
      "http://xbrl.sec.gov/rxp/role/Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments [Line Items]",
        "terseLabel": "Payments:"
       }
      }
     },
     "auth_ref": [
      "r1"
     ]
    },
    "bhp_PaymentsToGovernments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "PaymentsToGovernments",
     "crdr": "debit",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByCategory",
      "http://xbrl.sec.gov/rxp/role/ByGovernment",
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments to Governments",
        "terseLabel": "Total payments to governments"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_PmtAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "PmtAxis",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pmt [Axis]",
        "terseLabel": "#"
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "bhp_PotashCanadaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "PotashCanadaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Potash Canada [Member]",
        "terseLabel": "Potash Canada"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_Pr": {
     "xbrltype": "enumerationItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "Pr",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Project",
        "terseLabel": "Project"
       }
      }
     },
     "auth_ref": [
      "r7"
     ]
    },
    "rxp_ProductionEntitlements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "ProductionEntitlements",
     "crdr": "debit",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByCategory",
      "http://xbrl.sec.gov/rxp/role/ByGovernment",
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Production Entitlements",
        "terseLabel": "Prod. Entitlements"
       }
      }
     },
     "auth_ref": [
      "r17"
     ]
    },
    "rxp_ProjectAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "ProjectAxis",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Project [Axis]",
        "terseLabel": "Project:"
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "rxp_R": {
     "xbrltype": "enumerationItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "R",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Resource",
        "terseLabel": "Resource"
       }
      }
     },
     "auth_ref": [
      "r4"
     ]
    },
    "bhp_RalCaymanIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "RalCaymanIncMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "RAL Cayman Inc [Member]",
        "terseLabel": "RAL Cayman Inc"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_Royalties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "Royalties",
     "crdr": "debit",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByCategory",
      "http://xbrl.sec.gov/rxp/role/ByGovernment",
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Royalties",
        "terseLabel": "Royalties"
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "bhp_RoyaltyRelatedIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "RoyaltyRelatedIncomeTax",
     "crdr": "debit",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByCategory",
      "http://xbrl.sec.gov/rxp/role/ByGovernment",
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Royalty Related Income Tax",
        "terseLabel": "Royalty-related income tax"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_RuralMunicipalityOfLeroySaskatchewanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "RuralMunicipalityOfLeroySaskatchewanMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rural Municipality of Leroy (Saskatchewan) [Member]",
        "terseLabel": "Rural Municipality of Leroy (Saskatchewan)"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_RuralMunicipalityOfPrairieRoseSaskatchewanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "RuralMunicipalityOfPrairieRoseSaskatchewanMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rural Municipality of Prairie Rose (Saskatchewan) [Member]",
        "terseLabel": "Rural Municipality of Prairie Rose (Saskatchewan)"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_RuralMunicipalityOfUsborneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "RuralMunicipalityOfUsborneMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rural Municipality of Usborne [Member]",
        "terseLabel": "Rural Municipality of Usborne"
       }
      }
     },
     "auth_ref": []
    },
    "country_SG": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "SG",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SINGAPORE",
        "terseLabel": "Singapore"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_ServicioDeImpuestosInternosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "ServicioDeImpuestosInternosMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Servicio De Impuestos Internos [Member]",
        "terseLabel": "Servicio De Impuestos Internos"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_Sg": {
     "xbrltype": "enumerationItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "Sg",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment",
        "terseLabel": "Segment"
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "bhp_ShireOfAshburtonWesternAustraliaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "ShireOfAshburtonWesternAustraliaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shire of Ashburton (Western Australia) [Member]",
        "terseLabel": "Shire of Ashburton (Western Australia)"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_ShireOfDundasWesternAustraliaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "ShireOfDundasWesternAustraliaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shire of Dundas (Western Australia) [Member]",
        "terseLabel": "Shire of Dundas (Western Australia)"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_ShireOfEastPilbaraWesternAustraliaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "ShireOfEastPilbaraWesternAustraliaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shire of East Pilbara (Western Australia) [Member]",
        "terseLabel": "Shire of East Pilbara (Western Australia)"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_ShireOfLeonaraWesternAustraliaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "ShireOfLeonaraWesternAustraliaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shire of Leonara (Western Australia) [Member]",
        "terseLabel": "Shire of Leonara (Western Australia)"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_ShireOfWilunaWesternAustraliaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "ShireOfWilunaWesternAustraliaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shire of Wiluna (Western Australia) [Member]",
        "terseLabel": "Shire of Wiluna (Western Australia)"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_Sn": {
     "xbrltype": "enumerationItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "Sn",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subnational Jurisdiction",
        "terseLabel": "Subnat. Juris."
       }
      }
     },
     "auth_ref": [
      "r9"
     ]
    },
    "bhp_StateOfNewMexicoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "StateOfNewMexicoMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "State of New Mexico [Member]",
        "terseLabel": "State of New Mexico"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_StateOfNewSouthWalesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "StateOfNewSouthWalesMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "State of New South Wales [Member]",
        "terseLabel": "State of New South Wales"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_StateOfQueenslandMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "StateOfQueenslandMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "State of Queensland [Member]",
        "terseLabel": "State of Queensland"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_StateOfSouthAustraliaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "StateOfSouthAustraliaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "State of South Australia [Member]",
        "terseLabel": "State of South Australia"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_StateOfVictoriaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "StateOfVictoriaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "State of Victoria [Member]",
        "terseLabel": "State of Victoria"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_StateOfWesternAustraliaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "StateOfWesternAustraliaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "State of Western Australia [Member]",
        "terseLabel": "State of Western Australia"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_TaxAndCustomsAdministrationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "TaxAndCustomsAdministrationMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax and Customs Administration [Member]",
        "terseLabel": "Tax and Customs Administration"
       }
      }
     },
     "auth_ref": []
    },
    "rxp_Taxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "Taxes",
     "crdr": "debit",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByCategory",
      "http://xbrl.sec.gov/rxp/role/ByGovernment",
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Taxes",
        "terseLabel": "Taxes"
       }
      }
     },
     "auth_ref": [
      "r14"
     ]
    },
    "rxp_TotalPayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/rxp/2024",
     "localname": "TotalPayments",
     "crdr": "debit",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByCategory",
      "http://xbrl.sec.gov/rxp/role/ByGovernment",
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Payments",
        "terseLabel": "Total Payments"
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "bhp_TownOfPortHedlandWesternAustraliaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "TownOfPortHedlandWesternAustraliaMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Town of Port Hedland (Western Australia) [Member]",
        "terseLabel": "Town of Port Hedland (Western Australia)"
       }
      }
     },
     "auth_ref": []
    },
    "country_US": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2024",
     "localname": "US",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "UNITED STATES",
        "terseLabel": "United States of America"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_UsDepartmentOfTheTreasuryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "UsDepartmentOfTheTreasuryMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "U.S. Department of the Treasury [Member]",
        "terseLabel": "U.S. Department of the Treasury"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_UsNuclearRegulatoryCommissionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "UsNuclearRegulatoryCommissionMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "U.S. Nuclear Regulatory Commission [Member]",
        "terseLabel": "U.S. Nuclear Regulatory Commission"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_UtahStateTaxCommissionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "UtahStateTaxCommissionMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByGovernment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Utah State Tax Commission [Member]",
        "terseLabel": "Utah State Tax Commission"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_WesternAustraliaIronOreMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "WesternAustraliaIronOreMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Western Australia Iron Ore [Member]",
        "terseLabel": "Western Australia Iron Ore"
       }
      }
     },
     "auth_ref": []
    },
    "bhp_WesternAustraliaNickelMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.bhp.com/20240630",
     "localname": "WesternAustraliaNickelMember",
     "presentation": [
      "http://xbrl.sec.gov/rxp/role/ByProject"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Western Australia Nickel [Member]",
        "terseLabel": "Western Australia Nickel"
       }
      }
     },
     "auth_ref": []
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r1": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "a",
   "Paragraph": "5"
  },
  "r2": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "a",
   "Paragraph": "5",
   "Subparagraph": "ii"
  },
  "r3": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "a",
   "Paragraph": "5",
   "Subparagraph": "iii"
  },
  "r4": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "a",
   "Paragraph": "5",
   "Subparagraph": "ix"
  },
  "r5": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "a",
   "Paragraph": "5",
   "Subparagraph": "vi"
  },
  "r6": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "a",
   "Paragraph": "5",
   "Subparagraph": "vii"
  },
  "r7": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "a",
   "Paragraph": "5",
   "Subparagraph": "viii"
  },
  "r8": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "a",
   "Paragraph": "5",
   "Subparagraph": "x"
  },
  "r9": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "a",
   "Paragraph": "5",
   "Subparagraph": "xi"
  },
  "r10": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "d",
   "Paragraph": "10"
  },
  "r11": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "d",
   "Paragraph": "6"
  },
  "r12": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "d",
   "Paragraph": "7"
  },
  "r13": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "d",
   "Paragraph": "9"
  },
  "r14": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "d",
   "Paragraph": "9",
   "Subparagraph": "iii",
   "Clause": "A"
  },
  "r15": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "d",
   "Paragraph": "9",
   "Subparagraph": "iii",
   "Clause": "B"
  },
  "r16": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "d",
   "Paragraph": "9",
   "Subparagraph": "iii",
   "Clause": "C"
  },
  "r17": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "d",
   "Paragraph": "9",
   "Subparagraph": "iii",
   "Clause": "D"
  },
  "r18": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "d",
   "Paragraph": "9",
   "Subparagraph": "iii",
   "Clause": "E"
  },
  "r19": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "d",
   "Paragraph": "9",
   "Subparagraph": "iii",
   "Clause": "F"
  },
  "r20": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "d",
   "Paragraph": "9",
   "Subparagraph": "iii",
   "Clause": "G"
  },
  "r21": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "d",
   "Paragraph": "9",
   "Subparagraph": "iii",
   "Clause": "H"
  },
  "r22": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "instruction",
   "Paragraph": "12"
  },
  "r23": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "instruction",
   "Paragraph": "2"
  },
  "r24": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form SD",
   "Section": "2.01",
   "Subsection": "instruction",
   "Paragraph": "3",
   "Subparagraph": "iii"
  }
 }
}
