<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>236</ContextCount>
  <ElementCount>314</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>66</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>9952151 - Statement - Condensed Consolidated Balance Sheets (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/CondensedConsolidatedBalanceSheetsunaudited</Role>
      <ShortName>Condensed Consolidated Balance Sheets (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952152 - Statement - Condensed Consolidated Balance Sheets (unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/CondensedConsolidatedBalanceSheetsunauditedParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952153 - Statement - Condensed Consolidated Statements of Operations and Comprehensive (Loss) Income (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/CondensedConsolidatedStatementsofOperationsandComprehensiveLossIncomeunaudited</Role>
      <ShortName>Condensed Consolidated Statements of Operations and Comprehensive (Loss) Income (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952154 - Statement - Condensed Consolidated Statements of Stockholders’ Equity (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/CondensedConsolidatedStatementsofStockholdersEquityunaudited</Role>
      <ShortName>Condensed Consolidated Statements of Stockholders’ Equity (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952155 - Statement - Condensed Consolidated Statements of Cash Flows (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/CondensedConsolidatedStatementsofCashFlowsunaudited</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952156 - Disclosure - Organization and Description of Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/OrganizationandDescriptionofBusiness</Role>
      <ShortName>Organization and Description of Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952157 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/SummaryofSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952158 - Disclosure - Revenues</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/Revenues</Role>
      <ShortName>Revenues</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952159 - Disclosure - Cash, Cash Equivalents and Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/CashCashEquivalentsandInvestments</Role>
      <ShortName>Cash, Cash Equivalents and Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952160 - Disclosure - Fair Value Measurement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/FairValueMeasurement</Role>
      <ShortName>Fair Value Measurement</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - Asset Acquisition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/AssetAcquisition</Role>
      <ShortName>Asset Acquisition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - Investment in Equity Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/InvestmentinEquitySecurities</Role>
      <ShortName>Investment in Equity Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952163 - Disclosure - Balance Sheet Components</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/BalanceSheetComponents</Role>
      <ShortName>Balance Sheet Components</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - Goodwill and Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/GoodwillandIntangibleAssets</Role>
      <ShortName>Goodwill and Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/RelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - Common Stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/CommonStock</Role>
      <ShortName>Common Stock</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9952170 - Disclosure - Stock-based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/StockbasedCompensation</Role>
      <ShortName>Stock-based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9952171 - Disclosure - Net (Loss) Income Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/NetLossIncomePerShare</Role>
      <ShortName>Net (Loss) Income Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9952172 - Disclosure - Segment Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/SegmentInformation</Role>
      <ShortName>Segment Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9952173 - Disclosure - Subsequent Event</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/SubsequentEvent</Role>
      <ShortName>Subsequent Event</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9955511 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/SummaryofSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/SummaryofSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - Revenues (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/RevenuesTables</Role>
      <ShortName>Revenues (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/Revenues</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Cash, Cash Equivalents and Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/CashCashEquivalentsandInvestmentsTables</Role>
      <ShortName>Cash, Cash Equivalents and Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/CashCashEquivalentsandInvestments</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - Fair Value Measurement (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/FairValueMeasurementTables</Role>
      <ShortName>Fair Value Measurement (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/FairValueMeasurement</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - Investment in Equity Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/InvestmentinEquitySecuritiesTables</Role>
      <ShortName>Investment in Equity Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/InvestmentinEquitySecurities</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - Balance Sheet Components (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/BalanceSheetComponentsTables</Role>
      <ShortName>Balance Sheet Components (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/BalanceSheetComponents</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - Goodwill and Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/GoodwillandIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/GoodwillandIntangibleAssets</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/Leases</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - Related Party Transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/RelatedPartyTransactionsTables</Role>
      <ShortName>Related Party Transactions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/RelatedPartyTransactions</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - Stock-based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/StockbasedCompensationTables</Role>
      <ShortName>Stock-based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/StockbasedCompensation</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - Net (Loss) Income Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/NetLossIncomePerShareTables</Role>
      <ShortName>Net (Loss) Income Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/NetLossIncomePerShare</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - Segment Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/SegmentInformationTables</Role>
      <ShortName>Segment Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/SegmentInformation</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - Organization and Description of Business (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/OrganizationandDescriptionofBusinessDetails</Role>
      <ShortName>Organization and Description of Business (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/OrganizationandDescriptionofBusiness</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - Summary of Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/SummaryofSignificantAccountingPoliciesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - Revenues - Summary of Contract Balances (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/RevenuesSummaryofContractBalancesDetails</Role>
      <ShortName>Revenues - Summary of Contract Balances (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Revenues - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/RevenuesNarrativeDetails</Role>
      <ShortName>Revenues - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - Revenues - Summary of Revenues by Geographic Region (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/RevenuesSummaryofRevenuesbyGeographicRegionDetails</Role>
      <ShortName>Revenues - Summary of Revenues by Geographic Region (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Revenues - Summary of Revenues by Product (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/RevenuesSummaryofRevenuesbyProductDetails</Role>
      <ShortName>Revenues - Summary of Revenues by Product (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Revenues - Summary of Revenues by Industry (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/RevenuesSummaryofRevenuesbyIndustryDetails</Role>
      <ShortName>Revenues - Summary of Revenues by Industry (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - Cash, Cash Equivalents and Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/CashCashEquivalentsandInvestmentsDetails</Role>
      <ShortName>Cash, Cash Equivalents and Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/CashCashEquivalentsandInvestmentsTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - Fair Value Measurement - Summary of Company's Financial Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/FairValueMeasurementSummaryofCompanysFinancialAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails</Role>
      <ShortName>Fair Value Measurement - Summary of Company's Financial Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - Fair Value Measurement - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/FairValueMeasurementNarrativeDetails</Role>
      <ShortName>Fair Value Measurement - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - Asset Acquisition (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/AssetAcquisitionDetails</Role>
      <ShortName>Asset Acquisition (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/AssetAcquisition</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - Investment in Equity Securities - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/InvestmentinEquitySecuritiesNarrativeDetails</Role>
      <ShortName>Investment in Equity Securities - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - Investment in Equity Securities - Summary of Assets, Liabilities, and Maximum Exposure with Unconsolidated VIEs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/InvestmentinEquitySecuritiesSummaryofAssetsLiabilitiesandMaximumExposurewithUnconsolidatedVIEsDetails</Role>
      <ShortName>Investment in Equity Securities - Summary of Assets, Liabilities, and Maximum Exposure with Unconsolidated VIEs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - Investment in Equity Securities - Summary of Transactions with Unconsolidated VIE (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/InvestmentinEquitySecuritiesSummaryofTransactionswithUnconsolidatedVIEDetails</Role>
      <ShortName>Investment in Equity Securities - Summary of Transactions with Unconsolidated VIE (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - Balance Sheet Components - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/BalanceSheetComponentsNarrativeDetails</Role>
      <ShortName>Balance Sheet Components - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955539 - Disclosure - Balance Sheet Components - Summary of Prepaid Expenses and Other Current Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/BalanceSheetComponentsSummaryofPrepaidExpensesandOtherCurrentAssetsDetails</Role>
      <ShortName>Balance Sheet Components - Summary of Prepaid Expenses and Other Current Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955540 - Disclosure - Balance Sheet Components - Summary of Inventory (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/BalanceSheetComponentsSummaryofInventoryDetails</Role>
      <ShortName>Balance Sheet Components - Summary of Inventory (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955541 - Disclosure - Balance Sheet Components - Summary of Property, Plant and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/BalanceSheetComponentsSummaryofPropertyPlantandEquipmentDetails</Role>
      <ShortName>Balance Sheet Components - Summary of Property, Plant and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - Balance sheet components - Summary of Accrued Expenses and Other Current Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/BalancesheetcomponentsSummaryofAccruedExpensesandOtherCurrentLiabilitiesDetails</Role>
      <ShortName>Balance sheet components - Summary of Accrued Expenses and Other Current Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - Goodwill and Intangible Assets - Summary of Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/GoodwillandIntangibleAssetsSummaryofGoodwillDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Summary of Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - Goodwill and Intangible Assets - Summary of Intangible Assets Balances (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/GoodwillandIntangibleAssetsSummaryofIntangibleAssetsBalancesDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Summary of Intangible Assets Balances (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - Goodwill and Intangible Assets - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/GoodwillandIntangibleAssetsNarrativeDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - Leases - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/LeasesNarrativeDetails</Role>
      <ShortName>Leases - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955547 - Disclosure - Leases - Summary of Future Minimum Lease Payments and Sublease Income (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/LeasesSummaryofFutureMinimumLeasePaymentsandSubleaseIncomeDetail</Role>
      <ShortName>Leases - Summary of Future Minimum Lease Payments and Sublease Income (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955548 - Disclosure - Leases - Summary of Components of Lease Expense and Supplemental Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/LeasesSummaryofComponentsofLeaseExpenseandSupplementalInformationDetails</Role>
      <ShortName>Leases - Summary of Components of Lease Expense and Supplemental Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955549 - Disclosure - Leases - Summary of Supplemental Cash Flow Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/LeasesSummaryofSupplementalCashFlowInformationDetails</Role>
      <ShortName>Leases - Summary of Supplemental Cash Flow Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955550 - Disclosure - Commitments and contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/CommitmentsandcontingenciesDetails</Role>
      <ShortName>Commitments and contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955551 - Disclosure - Related Party Transactions - Summary of Transaction with Related Parties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/RelatedPartyTransactionsSummaryofTransactionwithRelatedPartiesDetails</Role>
      <ShortName>Related Party Transactions - Summary of Transaction with Related Parties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955552 - Disclosure - Related Party Transactions - Summary of Accounts Receivable Balances with Related Parties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/RelatedPartyTransactionsSummaryofAccountsReceivableBalanceswithRelatedPartiesDetails</Role>
      <ShortName>Related Party Transactions - Summary of Accounts Receivable Balances with Related Parties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9955553 - Disclosure - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/IncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/IncomeTaxes</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9955554 - Disclosure - Common Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/CommonStockDetails</Role>
      <ShortName>Common Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/CommonStock</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9955555 - Disclosure - Stock-based Compensation - Summary of Stock-Based Compensation Expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/StockbasedCompensationSummaryofStockBasedCompensationExpensesDetails</Role>
      <ShortName>Stock-based Compensation - Summary of Stock-Based Compensation Expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9955556 - Disclosure - Stock-based Compensation - Summary of Activity Under The Equity Incentive Plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/StockbasedCompensationSummaryofActivityUnderTheEquityIncentivePlansDetails</Role>
      <ShortName>Stock-based Compensation - Summary of Activity Under The Equity Incentive Plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9955557 - Disclosure - Stock-based Compensation - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/StockbasedCompensationNarrativeDetails</Role>
      <ShortName>Stock-based Compensation - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9955558 - Disclosure - Stock-based Compensation - Summary of Stock Option Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/StockbasedCompensationSummaryofStockOptionActivityDetails</Role>
      <ShortName>Stock-based Compensation - Summary of Stock Option Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9955559 - Disclosure - Stock-based Compensation - Summary of Reserved For Issuance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/StockbasedCompensationSummaryofReservedForIssuanceDetails</Role>
      <ShortName>Stock-based Compensation - Summary of Reserved For Issuance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9955560 - Disclosure - Net (Loss) Income Per Share - Summary of Computation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/NetLossIncomePerShareSummaryofComputationDetails</Role>
      <ShortName>Net (Loss) Income Per Share - Summary of Computation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/NetLossIncomePerShareTables</ParentRole>
      <Position>75</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9955561 - Disclosure - Net (Loss) Income Per Share - Summary of Anti-dilutive (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/NetLossIncomePerShareSummaryofAntidilutiveDetails</Role>
      <ShortName>Net (Loss) Income Per Share - Summary of Anti-dilutive (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://imetrix.edgar-online.com/role/NetLossIncomePerShareTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9955562 - Disclosure - Segment Information - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/SegmentInformationNarrativeDetails</Role>
      <ShortName>Segment Information - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="twst-20260630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9955563 - Disclosure - Segment Information - Summary of Segment Reporting Information, by Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://imetrix.edgar-online.com/role/SegmentInformationSummaryofSegmentReportingInformationbySegmentDetails</Role>
      <ShortName>Segment Information - Summary of Segment Reporting Information, by Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="twst-20260630.htm">twst-20260630.htm</File>
    <File>twst-20260630.xsd</File>
    <File>twst-20260630_cal.xml</File>
    <File>twst-20260630_def.xml</File>
    <File>twst-20260630_lab.xml</File>
    <File>twst-20260630_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>twst-20260630_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="851">http://fasb.org/us-gaap/2026</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2026</BaseTaxonomy>
    <BaseTaxonomy items="27">http://xbrl.sec.gov/ecd/2026</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
