<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:oef="http://xbrl.sec.gov/oef/2026"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="dbxetf-20260706.xsd" xlink:type="simple"/>
    <context id="D_06Jul2026_06Jul2026">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001503123</identifier>
        </entity>
        <period>
            <startDate>2026-07-06</startDate>
            <endDate>2026-07-06</endDate>
        </period>
    </context>
    <dei:DocumentPeriodEndDate contextRef="D_06Jul2026_06Jul2026" id="apid_1">2026-07-06</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="D_06Jul2026_06Jul2026" id="apid_2">DBX ETF Trust</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey contextRef="D_06Jul2026_06Jul2026" id="apid_3">0001503123</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="D_06Jul2026_06Jul2026" id="apid_4">false</dei:AmendmentFlag>
    <oef:ProspectusDate contextRef="D_06Jul2026_06Jul2026" id="apid_5">2025-10-01</oef:ProspectusDate>
    <dei:EntityInvCompanyType contextRef="D_06Jul2026_06Jul2026" id="apid_6">N-1A</dei:EntityInvCompanyType>
    <dei:DocumentType contextRef="D_06Jul2026_06Jul2026" id="apid_7">497</dei:DocumentType>
    <oef:SupplementToProspectusTextBlock
      contextRef="D_06Jul2026_06Jul2026"
      id="x_8f5e2532-3c13-4568-a001-9c886763aba3">&lt;span style="color:#000000;font-family:Arial;font-size:10pt;font-weight:bold;text-transform:uppercase;"&gt;SUPPLEMENT TO THE CURRENTLY EFFECTIVE SUMMARY PROSPECTUS AND PROSPECTUS&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:12pt;"&gt;Xtrackers Cybersecurity Select Equity ETF (PSWD)&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;margin-left:0%;"&gt;Effective on July 7, 2026 (the &lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;"&gt;&#x201c;Effective Date&#x201d;), the name and index screening methodology of the underlying index of the &lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;margin-left:0%;"&gt;fund will change. The name of the underlying index will change from the Solactive Cyber Security ESG Screened Index (the &#x201c;&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;"&gt;Underlying Index&#x201d;) to the Solactive Cyber Security Focus Index. In addition, Solactive AG, the provider of the Underlying &lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;margin-left:0%;"&gt;Index, will change the index screening methodology for the Underlying Index by removing the environmental, social and governance (&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;"&gt;&#x201c;ESG&#x201d;) screen. These changes to the index screening methodology are expected to be reflected in the fund&#x2019;s portfolio on or about August 5, 2026. All other aspects of the Underlying Index will remain unchanged.&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;margin-left:0%;"&gt;Accordingly, as of the Effective Date, all references to Solactive Cyber Security ESG Screened Index are hereby replaced with Solactive Cyber Security Focus Index and the fund&#x2019;s summary prospectus and prospectus are modified as set forth &lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;"&gt;below.&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9pt;font-style:italic;"&gt;The following disclosure replaces the existing similar disclosure contained under the &#x201c;PRINCIPAL INVESTMENT STRATEGIES&#x201d;  section of the fund&#x2019;s summary prospectus and under the &#x201c;PRINCIPAL INVESTMENT STRATEGIES&#x201d; section of the summary section and in the &#x201c;FUND DETAILS&#x201d; section of the fund&#x2019;s prospectus.&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;margin-left:0%;"&gt;The fund, using a &lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;"&gt;&#x201c;passive&#x201d; or indexing investment approach, seeks investment results that correspond generally to the &lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;margin-left:0%;"&gt;performance, before fees and expenses, of the Solactive Cyber Security Focus Index (the &lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;"&gt;&#x201c;Underlying Index&#x201d;), which is &lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;margin-left:0%;"&gt;comprised of companies that have business operations in the field of cybersecurity. Under normal circumstances, the Underlying Index is reconstituted quarterly. The fund changes its portfolio in accordance with the Underlying Index, and, therefore, any changes to the Underlying Index&#x2019;s reconstitution schedule will result in corresponding changes to the fund&#x2019;s schedule of portfolio changes. Any changes made to the Underlying Index in between scheduled reconstitutions (e.g., in the event of &lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;"&gt;a corporate action) also will result in corresponding changes to the fund&#x2019;s portfolio.&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:9pt;font-style:italic;"&gt;The following disclosure is deleted under the &#x201c;PRINCIPAL INVESTMENT STRATEGIES&#x201d; section of the fund&#x2019;s summary prospectus and under the &#x201d;PRINCIPAL INVESTMENT STRATEGIES&#x201d; section of the summary section and in the &#x201c;FUND DETAILS&#x201d;  section of the fund&#x2019;s prospectus:&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;margin-left:0%;"&gt;From the companies that meet the above criteria, Solactive uses data from Sustainalytics, a global leader in sustainability research and analysis, to evaluate each company with respect to each of the sustainability criteria described below. Companies&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;"&gt; are excluded from the Underlying Index if they are determined by Sustainalytics:&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;position:relative;top:0.6pt;"&gt;&#x25a0;&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;"&gt;To be &#x201c;non-compliant&#x201d; with the principles of the United Nations Global Compact (&#x201c;UNGC&#x201d;). A company is determined to be &#x201c;non-compliant&#x201d; if it does not act in accordance with the UNGC principles and their associated standards, conventions, and treaties. Sustainalytics analyzes news reports and other publicly available information to assess a company&#x2019;s compliance with the normative principles of the UNGC &#x2013; human rights, labor rights, the environment, and anti-corruption.&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;position:relative;top:0.6pt;"&gt;&#x25a0;&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;"&gt;To have an environmental, social and governance (&#x201c;ESG&#x201d;) risk score of 40 or higher.&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;position:relative;top:0.6pt;"&gt;&#x25a0;&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;"&gt;To have involvement in controversial weapons (i.e., chemical biological or nuclear weapons, depleted uranium, cluster munitions and anti-personnel mines), the manufacture of tobacco products, or the manufacture and sale of assault weapons and/or small arms (non-assault weapons) to civilian customers.&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;position:relative;top:0.6pt;"&gt;&#x25a0;&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;"&gt;To derive a specified percentage of revenues from or have a specified ownership interest in another company involved in, as applicable, certain business activities in one the following sectors: tobacco, thermal coal, oil and gas, or conventional weapons.&lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;margin-left:0%;"&gt;Sustainalytics reviews publicly available information to determine whether a company is involved in controversial weapons &lt;/span&gt;&lt;span style="color:#000000;font-family:Arial;font-size:10pt;"&gt;or derives a specified percentage of revenues from or has a specified ownership interest in one of the above sectors.&lt;/span&gt;</oef:SupplementToProspectusTextBlock>
</xbrl>
