<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.4</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>3</ContextCount>
  <ElementCount>23</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>1</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>0</UnitCount>
  <MyReports>
    <Report instance="ptra-20230312.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://proterra.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</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-0546-Security12bTitle-Security-Axes] In submission type 8-K, Security12bTitle should have values without axes if a single non-ADR member, otherwise in separate contexts by axis member, but not both, in contexts if79c4ca9849a4fccba14b34847130502_D20230312-20230312. ptra-20230312.htm 4</Log>
    <Log type="Warning">[dqc-0033-Document-Period-End-Date-Context] The ending date of 2022-01-24 used for EntityInformationFormerLegalOrRegisteredName must be the same as the Document Period End Date, 2023-03-12. The properties of this EntityInformationFormerLegalOrRegisteredName fact are Context: i6aa7c674ae0f4b929d5670496dd09251_D20220124-20220124, Unit: (none), Rule Element Id: 2. ptra-20230312.htm 4</Log>
  </Logs>
  <InputFiles>
    <File doctype="8-K" original="ptra-20230312.htm">ptra-20230312.htm</File>
    <File>a8-k3x13x2023ex991.htm</File>
    <File>ptra-20230312.xsd</File>
    <File>ptra-20230312_def.xml</File>
    <File>ptra-20230312_lab.xml</File>
    <File>ptra-20230312_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="23">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
