<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.19.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>317</ContextCount>
  <ElementCount>417</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>79</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>11</UnitCount>
  <MyReports>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001000 - Statement - Condensed Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/CondensedConsolidatedBalanceSheets</Role>
      <ShortName>Condensed Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1001501 - Statement - Condensed Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/CondensedConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1002000 - Statement - Condensed Consolidated Statements of Operations and Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/CondensedConsolidatedStatementsOfOperationsAndComprehensiveIncome</Role>
      <ShortName>Condensed Consolidated Statements of Operations and Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1003000 - Statement - Condensed Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/CondensedConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1003001 - Statement - Condensed Consolidated Statements of Cash Flows - Schedule of Cash, Cash Equivalents and Restricted Cash</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/CondensedConsolidatedStatementsOfCashFlowsScheduleOfCashCashEquivalentsAndRestrictedCash</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows - Schedule of Cash, Cash Equivalents and Restricted Cash</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>2101100 - Disclosure - Organization, Basis of Presentation and Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/OrganizationBasisOfPresentationAndSignificantAccountingPolicies</Role>
      <ShortName>Organization, Basis of Presentation and Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>2102100 - Disclosure - Related-Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RelatedPartyTransactions</Role>
      <ShortName>Related-Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2103100 - Disclosure - (Loss) Earnings Per Share of Common Stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/LossEarningsPerShareOfCommonStock</Role>
      <ShortName>(Loss) Earnings Per Share of Common Stock</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2104100 - Disclosure - Real Estate and Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateAndIntangibleAssets</Role>
      <ShortName>Real Estate and Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2105100 - Disclosure - Real Estate Dispositions, Held for Sale and Impairment Charges</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateDispositionsHeldForSaleAndImpairmentCharges</Role>
      <ShortName>Real Estate Dispositions, Held for Sale and Impairment Charges</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2107100 - Disclosure - Mortgage Notes Payable and Credit Facility</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableAndCreditFacility</Role>
      <ShortName>Mortgage Notes Payable and Credit Facility</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2109100 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/CommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2110100 - Disclosure - Equity and Mezzanine Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EquityAndMezzanineEquity</Role>
      <ShortName>Equity and Mezzanine Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2111100 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2201201 - Disclosure - Organization, Basis of Presentation and Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/OrganizationBasisOfPresentationAndSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Organization, Basis of Presentation and Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/OrganizationBasisOfPresentationAndSignificantAccountingPolicies</ParentRole>
      <Position>16</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2303301 - Disclosure - (Loss) Earnings Per Share of Common Stock (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/LossEarningsPerShareOfCommonStockTables</Role>
      <ShortName>(Loss) Earnings Per Share of Common Stock (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/LossEarningsPerShareOfCommonStock</ParentRole>
      <Position>17</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2304301 - Disclosure - Real Estate and Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateAndIntangibleAssetsTables</Role>
      <ShortName>Real Estate and Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/RealEstateAndIntangibleAssets</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2305301 - Disclosure - Real Estate Dispositions, Held for Sale and Impairment Charges (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateDispositionsHeldForSaleAndImpairmentChargesTables</Role>
      <ShortName>Real Estate Dispositions, Held for Sale and Impairment Charges (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/RealEstateDispositionsHeldForSaleAndImpairmentCharges</ParentRole>
      <Position>19</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2307301 - Disclosure - Mortgage Notes Payable and Credit Facility (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableAndCreditFacilityTables</Role>
      <ShortName>Mortgage Notes Payable and Credit Facility (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/MortgageNotesPayableAndCreditFacility</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2309301 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/CommitmentsAndContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/CommitmentsAndContingencies</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2310301 - Disclosure - Equity and Mezzanine Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EquityAndMezzanineEquityTables</Role>
      <ShortName>Equity and Mezzanine Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/EquityAndMezzanineEquity</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2311301 - Disclosure - Subsequent Events (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/SubsequentEventsTables</Role>
      <ShortName>Subsequent Events (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/SubsequentEvents</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2401402 - Disclosure - Organization, Basis of Presentation and Significant Accounting Policies (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/OrganizationBasisOfPresentationAndSignificantAccountingPoliciesDetail</Role>
      <ShortName>Organization, Basis of Presentation and Significant Accounting Policies (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/OrganizationBasisOfPresentationAndSignificantAccountingPoliciesPolicies</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2402401 - Disclosure - Related-Party Transactions - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RelatedPartyTransactionsAdditionalInformationDetail</Role>
      <ShortName>Related-Party Transactions - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2403402 - Disclosure - (Loss) Earnings Per Share of Common Stock - Basic and Diluted (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/LossEarningsPerShareOfCommonStockBasicAndDilutedDetail</Role>
      <ShortName>(Loss) Earnings Per Share of Common Stock - Basic and Diluted (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2404402 - Disclosure - Real Estate and Intangible Assets - Components of Investments in Real Estate (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateAndIntangibleAssetsComponentsOfInvestmentsInRealEstateDetail</Role>
      <ShortName>Real Estate and Intangible Assets - Components of Investments in Real Estate (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2404403 - Disclosure - Real Estate and Intangible Assets - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateAndIntangibleAssetsAdditionalInformationDetail</Role>
      <ShortName>Real Estate and Intangible Assets - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2404404 - Disclosure - Real Estate and Intangible Assets - Summary of Acquired Properties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateAndIntangibleAssetsSummaryOfAcquiredPropertiesDetails</Role>
      <ShortName>Real Estate and Intangible Assets - Summary of Acquired Properties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2404405 - Disclosure - Real Estate and Intangible Assets - Business Combinations and Asset Acquisitions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateAndIntangibleAssetsBusinessCombinationsAndAssetAcquisitionsDetails</Role>
      <ShortName>Real Estate and Intangible Assets - Business Combinations and Asset Acquisitions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2404406 - Disclosure - Real Estate and Intangible Assets - Summary of Lease on Property (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateAndIntangibleAssetsSummaryOfLeaseOnPropertyDetail</Role>
      <ShortName>Real Estate and Intangible Assets - Summary of Lease on Property (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2404407 - Disclosure - Real Estate and Intangible Assets Real Estate and Intangible Assets - Future Operating Lease Payments from Tenants under Non-Cancelable Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateAndIntangibleAssetsRealEstateAndIntangibleAssetsFutureOperatingLeasePaymentsFromTenantsUnderNonCancelableLeasesDetails</Role>
      <ShortName>Real Estate and Intangible Assets Real Estate and Intangible Assets - Future Operating Lease Payments from Tenants under Non-Cancelable Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2404408 - Disclosure - Real Estate and Intangible Assets - Carrying Value of Intangible Assets and Accumulated Amortization (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateAndIntangibleAssetsCarryingValueOfIntangibleAssetsAndAccumulatedAmortizationDetail</Role>
      <ShortName>Real Estate and Intangible Assets - Carrying Value of Intangible Assets and Accumulated Amortization (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2404409 - Disclosure - Real Estate and Intangible Assets - Weighted Average Amortization Period for Intangible Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateAndIntangibleAssetsWeightedAverageAmortizationPeriodForIntangibleAssetsAndLiabilitiesDetails</Role>
      <ShortName>Real Estate and Intangible Assets - Weighted Average Amortization Period for Intangible Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2405402 - Disclosure - Real Estate Dispositions, Held for Sale and Impairment Charges - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateDispositionsHeldForSaleAndImpairmentChargesAdditionalInformationDetail</Role>
      <ShortName>Real Estate Dispositions, Held for Sale and Impairment Charges - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2405403 - Disclosure - Real Estate Dispositions, Held for Sale and Impairment Charges - Summary of Property Sold (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateDispositionsHeldForSaleAndImpairmentChargesSummaryOfPropertySoldDetails</Role>
      <ShortName>Real Estate Dispositions, Held for Sale and Impairment Charges - Summary of Property Sold (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2405404 - Disclosure - Real Estate Dispositions, Held for Sale and Impairment Charges - Components of Income from Real Estate and Related Assets Held for Sale (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateDispositionsHeldForSaleAndImpairmentChargesComponentsOfIncomeFromRealEstateAndRelatedAssetsHeldForSaleDetail</Role>
      <ShortName>Real Estate Dispositions, Held for Sale and Impairment Charges - Components of Income from Real Estate and Related Assets Held for Sale (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2405405 - Disclosure - Real Estate Dispositions, Held for Sale and Impairment Charges - Components of Assets and Liabilities Held for Sale (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateDispositionsHeldForSaleAndImpairmentChargesComponentsOfAssetsAndLiabilitiesHeldForSaleDetail</Role>
      <ShortName>Real Estate Dispositions, Held for Sale and Impairment Charges - Components of Assets and Liabilities Held for Sale (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2407402 - Disclosure - Mortgage Notes Payable and Credit Facility - Company's Mortgage Notes Payable and Line of Credit (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableAndCreditFacilityCompanysMortgageNotesPayableAndLineOfCreditDetail</Role>
      <ShortName>Mortgage Notes Payable and Credit Facility - Company's Mortgage Notes Payable and Line of Credit (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2407403 - Disclosure - Mortgage Notes Payable and Credit Facility - Company's Mortgage Notes Payable and Line of Credit Additional Information (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableAndCreditFacilityCompanysMortgageNotesPayableAndLineOfCreditAdditionalInformationDetail</Role>
      <ShortName>Mortgage Notes Payable and Credit Facility - Company's Mortgage Notes Payable and Line of Credit Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2407404 - Disclosure - Mortgage Notes Payable and Credit Facility - Additional Information (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableAndCreditFacilityAdditionalInformationDetail</Role>
      <ShortName>Mortgage Notes Payable and Credit Facility - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2407405 - Disclosure - Mortgage Notes Payable and Credit Facility - Mortgages Notes Payable (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableAndCreditFacilityMortgagesNotesPayableDetail</Role>
      <ShortName>Mortgage Notes Payable and Credit Facility - Mortgages Notes Payable (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2407406 - Disclosure - Mortgage Notes Payable and Credit Facility - Scheduled Principal Payments of Mortgage Notes Payable (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableAndCreditFacilityScheduledPrincipalPaymentsOfMortgageNotesPayableDetail</Role>
      <ShortName>Mortgage Notes Payable and Credit Facility - Scheduled Principal Payments of Mortgage Notes Payable (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2407407 - Disclosure - Mortgage Notes Payable and Credit Facility - Interest Rate Cap Agreement (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableAndCreditFacilityInterestRateCapAgreementDetail</Role>
      <ShortName>Mortgage Notes Payable and Credit Facility - Interest Rate Cap Agreement (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2407408 - Disclosure - Mortgage Notes Payable and Credit Facility - Schedule of Derivative Instruments Impact (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableAndCreditFacilityScheduleOfDerivativeInstrumentsImpactDetails</Role>
      <ShortName>Mortgage Notes Payable and Credit Facility - Schedule of Derivative Instruments Impact (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2407409 - Disclosure - Mortgage Notes Payable and Credit Facility - Schedule of Derivative Instruments' Information (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableAndCreditFacilityScheduleOfDerivativeInstrumentsInformationDetails</Role>
      <ShortName>Mortgage Notes Payable and Credit Facility - Schedule of Derivative Instruments' Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2409402 - Disclosure - Commitments and Contingencies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/CommitmentsAndContingenciesAdditionalInformationDetail</Role>
      <ShortName>Commitments and Contingencies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2409403 - Disclosure - Commitments and Contingencies - Future Lease Payments Due Under Operating Leases (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/CommitmentsAndContingenciesFutureLeasePaymentsDueUnderOperatingLeasesDetail</Role>
      <ShortName>Commitments and Contingencies - Future Lease Payments Due Under Operating Leases (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2409404 - Disclosure - Commitments and Contingencies Commitments and Contingencies - Future Minimum Rental Payments Due under Terms of Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/CommitmentsAndContingenciesCommitmentsAndContingenciesFutureMinimumRentalPaymentsDueUnderTermsOfLeasesDetails</Role>
      <ShortName>Commitments and Contingencies Commitments and Contingencies - Future Minimum Rental Payments Due under Terms of Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2410402 - Disclosure - Equity and Mezzanine Equity - Summary of Changes in Stockholders' Equity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EquityAndMezzanineEquitySummaryOfChangesInStockholdersEquityDetail</Role>
      <ShortName>Equity and Mezzanine Equity - Summary of Changes in Stockholders' Equity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2410403 - Disclosure - Equity and Mezzanine Equity - Dividends Paid (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EquityAndMezzanineEquityDividendsPaidDetail</Role>
      <ShortName>Equity and Mezzanine Equity - Dividends Paid (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2410404 - Disclosure - Equity and Mezzanine Equity - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EquityAndMezzanineEquityAdditionalInformationDetail</Role>
      <ShortName>Equity and Mezzanine Equity - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2411402 - Disclosure - Subsequent Events - Monthly Distributions Declared by Company's Board of Directors (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/SubsequentEventsMonthlyDistributionsDeclaredByCompanysBoardOfDirectorsDetail</Role>
      <ShortName>Subsequent Events - Monthly Distributions Declared by Company's Board of Directors (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="good-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2411403 - Disclosure - Subsequent Events - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/SubsequentEventsAdditionalInformationDetails</Role>
      <ShortName>Subsequent Events - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>good-20190630.xml</File>
    <File>good-20190630.xsd</File>
    <File>good-20190630_cal.xml</File>
    <File>good-20190630_def.xml</File>
    <File>good-20190630_lab.xml</File>
    <File>good-20190630_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2018-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/invest/2013-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
