<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="trno-20260505.xsd" xlink:type="simple"/>
    <context id="duration_2026-05-05_to_2026-05-05">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001476150</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <dei:EntityRegistrantName
      contextRef="duration_2026-05-05_to_2026-05-05"
      id="Hidden_dei_EntityRegistrantName">Terreno Realty Corp</dei:EntityRegistrantName>
    <dei:AmendmentFlag contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-496">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="duration_2026-05-05_to_2026-05-05"
      id="Hidden_dei_EntityCentralIndexKey">0001476150</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-507">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-508">2026-05-05</dei:DocumentPeriodEndDate>
    <dei:EntityIncorporationStateCountryCode contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-509">MD</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-510">001-34603</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-511">27-1262675</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-67">10500 NE 8th Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-512">Suite 1910</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-513">Bellevue</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-514">WA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-515">98004</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-516">(415)</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-517">655-4580</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-518">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-519">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-520">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-521">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-522">Common Stock, $0.01 par value per share</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-523">TRNO</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-524">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="duration_2026-05-05_to_2026-05-05" id="ixv-525">false</dei:EntityEmergingGrowthCompany>
</xbrl>
