<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ecd="http://xbrl.sec.gov/ecd/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="maze-20260608.xsd" xlink:type="simple"/>
    <context id="c20250101to20251231">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001842295</identifier>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <dei:DocumentType
      contextRef="c20250101to20251231"
      id="Fact_4c2df690dbce4046a6ce70def79c0358">DEF 14A</dei:DocumentType>
    <dei:AmendmentFlag
      contextRef="c20250101to20251231"
      id="Fact_f12e4faafffc49dc880724cf9c47c188">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="c20250101to20251231"
      id="Fact_e000cf866da14419aa5def62820611f3">0001842295</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="c20250101to20251231"
      id="Fact_02e7d5ea57024ed7b3e59f988bda1d2a">Maze Therapeutics, Inc.</dei:EntityRegistrantName>
    <ecd:InsiderTrdPoliciesProcAdoptedFlag
      contextRef="c20250101to20251231"
      id="Fact_472e179df0334dd092b528a8e58fa2d4">true</ecd:InsiderTrdPoliciesProcAdoptedFlag>
    <ecd:AwardTmgMnpiDiscTextBlock
      contextRef="c20250101to20251231"
      id="Text_bfcd71508160436db1351b48c58d9fa9">
&lt;div style="text-align: justify; color: #0070C0; font-weight: bold;"&gt;Policies and Practices Related to the Grant of Certain Equity Awards&lt;/div&gt;

&lt;div&gt;&lt;br/&gt;
      &lt;/div&gt;

&lt;div style="display:none;"&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style="color: #000000; font-family: 'Times New Roman'; font-size: 10pt; font-style: normal; font-weight: normal; text-align: justify; text-indent: 18pt;"&gt;&lt;span style="color: #000000; font-family: 'Times New Roman'; font-size: 10pt; font-style: normal; font-weight: normal;"&gt;We grant equity awards on the commencement of employment and on an annual basis as part of our annual performance cycle. In addition, we may grant equity awards on a discretionary basis in connection with certain events such as promotion.&lt;/span&gt;
        We do not grant equity awards in anticipation of the release of material non-public information. Similarly, &lt;span style="color: #000000; font-family: 'Times New Roman'; font-size: 10pt; font-style: normal; font-weight: normal;"&gt;we do not time the release of material
        non-public information based on equity award grant dates.&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&lt;br/&gt;
      &lt;/div&gt;

&lt;div style="display:none;"&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style="color: #000000; font-family: 'Times New Roman'; font-size: 10pt; font-style: normal; font-weight: normal; text-align: justify; text-indent: 18pt;"&gt;During fiscal year 2025, (i) none of our named executive officers were awarded stock
        options with an effective grant date during any period beginning four business days before the filing or furnishing of a Form 10-Q, Form 10-K, or Form 8-K that disclosed material non-public information, and ending one business day after the filing
        or furnishing of such reports, and (ii)&lt;span style="color: #000000; font-family: 'Times New Roman'; font-size: 10pt; font-style: normal; font-weight: normal;"&gt;
        we did not time the disclosure of material non-public information for the purpose of affecting the value of executive compensation.&lt;/span&gt;&lt;/div&gt;
</ecd:AwardTmgMnpiDiscTextBlock>
    <ecd:AwardTmgMethodTextBlock
      contextRef="c20250101to20251231"
      id="Text_b3de7b3b1ec8477dae60de28c0a34346">&lt;span style="color: #000000; font-family: 'Times New Roman'; font-size: 10pt; font-style: normal; font-weight: normal;"&gt;We grant equity awards on the commencement of employment and on an annual basis as part of our annual performance cycle. In addition, we may grant equity awards on a discretionary basis in connection with certain events such as promotion.&lt;/span&gt;</ecd:AwardTmgMethodTextBlock>
    <ecd:AwardTmgPredtrmndFlag
      contextRef="c20250101to20251231"
      id="Fact_0a5bb66ca13a43d1a0f6c0ae86d6e31c">true</ecd:AwardTmgPredtrmndFlag>
    <ecd:AwardTmgMnpiCnsdrdFlag
      contextRef="c20250101to20251231"
      id="Fact_1b99dd67589a46878bd9aa450f9cd2d8">false</ecd:AwardTmgMnpiCnsdrdFlag>
    <ecd:AwardTmgHowMnpiCnsdrdTextBlock
      contextRef="c20250101to20251231"
      id="Text_3ecd71f16021498c931a68ec5953a761">&lt;span style="color: #000000; font-family: 'Times New Roman'; font-size: 10pt; font-style: normal; font-weight: normal;"&gt;we do not time the release of material
        non-public information based on equity award grant dates.&lt;/span&gt;&lt;span style="color: #000000; font-family: 'Times New Roman'; font-size: 10pt; font-style: normal; font-weight: normal;"&gt;
        we did not time the disclosure of material non-public information for the purpose of affecting the value of executive compensation.&lt;/span&gt;</ecd:AwardTmgHowMnpiCnsdrdTextBlock>
    <ecd:MnpiDiscTimedForCompValFlag
      contextRef="c20250101to20251231"
      id="Fact_6601184b1b9746ecb51557cae025cb87">false</ecd:MnpiDiscTimedForCompValFlag>
</xbrl>
