<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>125</ContextCount>
  <ElementCount>171</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>39</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Statements of Financial Condition (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_StatementStatementsOfFinancialConditionUnaudited</Role>
      <ShortName>Statements of Financial Condition (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - Statements of Financial Condition (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_StatementStatementsOfFinancialConditionUnauditedParenthetical</Role>
      <ShortName>Statements of Financial Condition (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Schedule of Investments (Unaudited) - Treasury Bills and Money Market Fund</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_StatementScheduleOfInvestmentsUnauditedTreasuryBillsAndMoneyMarketFund</Role>
      <ShortName>Schedule of Investments (Unaudited) - Treasury Bills and Money Market Fund</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Schedule of Investments (Unaudited) - Futures Contracts</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_StatementScheduleOfInvestmentsUnauditedFuturesContracts</Role>
      <ShortName>Schedule of Investments (Unaudited) - Futures Contracts</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - Statements of Income and Expenses (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_StatementStatementsOfIncomeAndExpensesUnaudited</Role>
      <ShortName>Statements of Income and Expenses (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Statement - Statement of Changes in Shareholders' Equity (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_StatementStatementOfChangesInShareholdersEquityUnaudited</Role>
      <ShortName>Statement of Changes in Shareholders' Equity (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Statement - Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_StatementStatementsOfCashFlowsUnaudited</Role>
      <ShortName>Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Disclosure - Organization</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureOrganization</Role>
      <ShortName>Organization</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Financial Instrument Risk</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureFinancialInstrumentRisk</Role>
      <ShortName>Financial Instrument Risk</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Service Providers and Related Party Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureServiceProvidersAndRelatedPartyAgreements</Role>
      <ShortName>Service Providers and Related Party Agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Deposits with Commodity Broker and Custodian</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureDepositsWithCommodityBrokerAndCustodian</Role>
      <ShortName>Deposits with Commodity Broker and Custodian</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Additional Valuation Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureAdditionalValuationInformation</Role>
      <ShortName>Additional Valuation Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Derivative Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureDerivativeInstruments</Role>
      <ShortName>Derivative Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Investments in Affiliates</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureInvestmentsInAffiliates</Role>
      <ShortName>Investments in Affiliates</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Share Purchases and Redemptions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureSharePurchasesAndRedemptions</Role>
      <ShortName>Share Purchases and Redemptions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Financial Highlights</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureFinancialHighlights</Role>
      <ShortName>Financial Highlights</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Additional Valuation Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureAdditionalValuationInformationTables</Role>
      <ShortName>Additional Valuation Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureAdditionalValuationInformation</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Derivative Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureDerivativeInstrumentsTables</Role>
      <ShortName>Derivative Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureDerivativeInstruments</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Investments in Affiliates (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureInvestmentsInAffiliatesTables</Role>
      <ShortName>Investments in Affiliates (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureInvestmentsInAffiliates</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Financial Highlights (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureFinancialHighlightsTables</Role>
      <ShortName>Financial Highlights (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureFinancialHighlights</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Organization - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureOrganizationAdditionalInformationDetail</Role>
      <ShortName>Organization - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Summary of Significant Accounting Policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Service Providers and Related Party Agreements - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureServiceProvidersAndRelatedPartyAgreementsAdditionalInformationDetail</Role>
      <ShortName>Service Providers and Related Party Agreements - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Deposits with Commodity Broker and Custodian - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureDepositsWithCommodityBrokerAndCustodianAdditionalInformationDetail</Role>
      <ShortName>Deposits with Commodity Broker and Custodian - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Additional Valuation Information - Summary of the Tiered Valuation Input Levels (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureAdditionalValuationInformationSummaryOfTieredValuationInputLevelsDetail</Role>
      <ShortName>Additional Valuation Information - Summary of the Tiered Valuation Input Levels (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Derivative Instruments - Fair Value of Derivative Instruments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureDerivativeInstrumentsFairValueOfDerivativeInstrumentsDetail</Role>
      <ShortName>Derivative Instruments - Fair Value of Derivative Instruments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Derivative Instruments - Effect of Derivative Instruments on Statements of Income and Expenses (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureDerivativeInstrumentsEffectOfDerivativeInstrumentsOnStatementsOfIncomeAndExpensesDetail</Role>
      <ShortName>Derivative Instruments - Effect of Derivative Instruments on Statements of Income and Expenses (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Derivative Instruments - Summary of Average Monthly Notional Value of Future Contracts Outstanding (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureDerivativeInstrumentsSummaryOfAverageMonthlyNotionalValueOfFutureContractsOutstandingDetail</Role>
      <ShortName>Derivative Instruments - Summary of Average Monthly Notional Value of Future Contracts Outstanding (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Investments in Affiliates - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureInvestmentsInAffiliatesAdditionalInformationDetail</Role>
      <ShortName>Investments in Affiliates - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Investments in Affiliates - Summary of Transactions in, and Earnings from, Investments in Affiliates (Excluding Affiliated Money Market Funds) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureInvestmentsInAffiliatesSummaryOfTransactionsInAndEarningsFromInvestmentsInAffiliatesExcludingAffiliatedMoneyMarketFundsDetail</Role>
      <ShortName>Investments in Affiliates - Summary of Transactions in, and Earnings from, Investments in Affiliates (Excluding Affiliated Money Market Funds) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Share Purchases and Redemptions - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureSharePurchasesAndRedemptionsAdditionalInformationDetail</Role>
      <ShortName>Share Purchases and Redemptions - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="dbc-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Financial Highlights - Schedule of Net Asset Value Per Share (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://dbfunds.db.com/20230331/taxonomy/role/Role_DisclosureFinancialHighlightsScheduleOfNetAssetValuePerShareDetail</Role>
      <ShortName>Financial Highlights - Schedule of Net Asset Value Per Share (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept InvestmentSecondaryCategorizationAxis in us-gaap/2022 used in 145 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. dbc-20230331.htm 8, 931, 937, 941, 945, 952, 958, 962, 966, 973, 979, 983, 987, 994, 1000, 1004, 1008, 1015, 1021, 1025, 1029, 1036, 1042, 1046, 1050, 1057, 1063, 1067, 1071, 1078, 1084, 1088, 1092, 1099, 1105, 1109, 1113, 1120, 1126, 1130, 1134, 1141, 1147, 1151, 1155, 1162, 1168, 1172, 1176, 1183, 1189, 1193, 1197, 1204, 1210, 1214, 1218, 1225, 1231, 1235, 1239, 1546, 1552, 1556, 1560, 1567, 1573, 1577, 1581, 1588, 1594, 1598, 1602, 1609, 1615, 1619, 1623, 1630, 1636, 1640, 1644, 1651, 1657, 1661, 1665, 1672, 1678, 1682, 1686, 1693, 1699, 1703, 1707, 1714, 1720, 1724, 1728, 1735, 1741, 1745, 1749, 1756, 1762, 1766, 1770, 1777, 1783, 1787, 1791, 1798, 1804, 1808, 1812, 1819, 1825, 1829, 1833</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept InvestmentsInAndAdvancesToAffiliatesAtFairValue in us-gaap/2022 used in 20 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. dbc-20230331.htm 376, 380, 803, 830, 845, 1418, 1445, 1460, 3822, 3842, 3877, 3897, 3908, 3928, 3996, 4016, 4051, 4071, 4082, 4102</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept DueToRelatedPartiesCurrentAndNoncurrent in us-gaap/2022 used in 2 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. dbc-20230331.htm 509, 513</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept InvestmentsInAndAdvancesToAffiliatesBalanceShares in us-gaap/2022 used in 4 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. dbc-20230331.htm 807, 834, 1422, 1449</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept InvestmentsInAndAdvancesToAffiliatesDividendOrInterestCreditedToIncome in us-gaap/2022 used in 6 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. dbc-20230331.htm 3846, 3901, 3932, 4020, 4075, 4106</Log>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 29 fact(s) appearing in ix:hidden were eligible for transformation: us-gaap:ForwardContractIndexedToIssuersEquitySettlementDateOrDates -  dbc-20230331.htm 8</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-Q" original="dbc-20230331.htm">dbc-20230331.htm</File>
    <File>dbc-20230331.xsd</File>
    <File>dbc-20230331_cal.xml</File>
    <File>dbc-20230331_def.xml</File>
    <File>dbc-20230331_lab.xml</File>
    <File>dbc-20230331_pre.xml</File>
    <File>dbc-ex31_1.htm</File>
    <File>dbc-ex31_2.htm</File>
    <File>dbc-ex32_1.htm</File>
    <File>dbc-ex32_2.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>img113032776_0.jpg</File>
    <File>img113032776_1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="497">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="31">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
