<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.4</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>737</ContextCount>
  <ElementCount>470</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>280</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>12</UnitCount>
  <MyReports>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Document - Audit Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/AuditInformation</Role>
      <ShortName>Audit Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952151 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952152 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952153 - Statement - Consolidated Statements of Operations and Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/ConsolidatedStatementsofOperationsandComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Operations and Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952154 - Statement - Consolidated Statements of Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/ConsolidatedStatementsofEquity</Role>
      <ShortName>Consolidated Statements of Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952155 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/ConsolidatedStatementsofCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952156 - 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>8</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952157 - 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>9</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952158 - 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-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952159 - 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-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952160 - Disclosure - Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableCreditFacilityandSeniorUnsecuredNotes</Role>
      <ShortName>Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952161 - 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-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952162 - 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-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952163 - Disclosure - Earnings (loss) per Share of Common Stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EarningslossperShareofCommonStock</Role>
      <ShortName>Earnings (loss) per Share of Common Stock</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - SCHEDULE III???REAL ESTATE AND ACCUMULATED DEPRECIATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/SCHEDULEIIIREALESTATEANDACCUMULATEDDEPRECIATION</Role>
      <ShortName>SCHEDULE III???REAL ESTATE AND ACCUMULATED DEPRECIATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.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>18</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995447 - Disclosure - Insider Trading Policies and Procedures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc</Role>
      <ShortName>Insider Trading Policies and Procedures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure</Role>
      <ShortName>Cybersecurity Risk Management and Strategy Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9955511 - 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>21</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9955512 - 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>22</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9955513 - 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>23</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableCreditFacilityandSeniorUnsecuredNotesTables</Role>
      <ShortName>Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/MortgageNotesPayableCreditFacilityandSeniorUnsecuredNotes</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9955515 - 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>25</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9955516 - 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>26</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - Earnings (loss) per Share of Common Stock (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EarningslossperShareofCommonStockTables</Role>
      <ShortName>Earnings (loss) per Share of Common Stock (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/EarningslossperShareofCommonStock</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9955518 - 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>28</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - Organization, Basis of Presentation and Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/OrganizationBasisofPresentationandSignificantAccountingPoliciesDetails</Role>
      <ShortName>Organization, Basis of Presentation and Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/OrganizationBasisofPresentationandSignificantAccountingPoliciesPolicies</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - Related-Party Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RelatedPartyTransactionsDetails</Role>
      <ShortName>Related-Party Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/RelatedPartyTransactions</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - Real Estate and Intangible Assets - Schedule of Components of Investments in Real Estate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateandIntangibleAssetsScheduleofComponentsofInvestmentsinRealEstateDetails</Role>
      <ShortName>Real Estate and Intangible Assets - Schedule of Components of Investments in Real Estate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - Real Estate and Intangible Assets - Real Estate (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateandIntangibleAssetsRealEstateNarrativeDetails</Role>
      <ShortName>Real Estate and Intangible Assets - Real Estate (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - Real Estate and Intangible Assets - Schedule of Properties Acquired (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateandIntangibleAssetsScheduleofPropertiesAcquiredDetails</Role>
      <ShortName>Real Estate and Intangible Assets - Schedule of Properties Acquired (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - Real Estate and Intangible Assets - Schedule of Fair Value of Acquired Assets and Liabilities Assumed (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateandIntangibleAssetsScheduleofFairValueofAcquiredAssetsandLiabilitiesAssumedDetails</Role>
      <ShortName>Real Estate and Intangible Assets - Schedule of Fair Value of Acquired Assets and Liabilities Assumed (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - Real Estate and Intangible Assets - Schedule of Future Operating Lease Payments from Tenants under Non-Cancelable Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateandIntangibleAssetsScheduleofFutureOperatingLeasePaymentsfromTenantsunderNonCancelableLeasesDetails</Role>
      <ShortName>Real Estate and Intangible Assets - Schedule of Future Operating Lease Payments from Tenants under Non-Cancelable Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - Real Estate and Intangible Assets - Schedule of Lease Revenue Reconciliation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateandIntangibleAssetsScheduleofLeaseRevenueReconciliationDetails</Role>
      <ShortName>Real Estate and Intangible Assets - Schedule of Lease Revenue Reconciliation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Real Estate and Intangible Assets - Sales-Type Leases (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateandIntangibleAssetsSalesTypeLeasesNarrativeDetails</Role>
      <ShortName>Real Estate and Intangible Assets - Sales-Type Leases (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - Real Estate and Intangible Assets - Schedule of Carrying Value of Intangible Assets, Liabilities and Accumulated Amortization (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateandIntangibleAssetsScheduleofCarryingValueofIntangibleAssetsLiabilitiesandAccumulatedAmortizationDetails</Role>
      <ShortName>Real Estate and Intangible Assets - Schedule of Carrying Value of Intangible Assets, Liabilities and Accumulated Amortization (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Real Estate and Intangible Assets - Intangible Assets (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateandIntangibleAssetsIntangibleAssetsNarrativeDetails</Role>
      <ShortName>Real Estate and Intangible Assets - Intangible Assets (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Real Estate and Intangible Assets - Schedule of Weighted Average Amortization Period for Intangible Assets Acquired and Liabilities Assumed (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateandIntangibleAssetsScheduleofWeightedAverageAmortizationPeriodforIntangibleAssetsAcquiredandLiabilitiesAssumedDetails</Role>
      <ShortName>Real Estate and Intangible Assets - Schedule of Weighted Average Amortization Period for Intangible Assets Acquired and Liabilities Assumed (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - Real Estate and Intangible Assets - Schedule of Estimated Aggregate Amortization Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateandIntangibleAssetsScheduleofEstimatedAggregateAmortizationExpenseDetails</Role>
      <ShortName>Real Estate and Intangible Assets - Schedule of Estimated Aggregate Amortization Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - Real Estate and Intangible Assets - Schedule of Estimated Aggregate Rental Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateandIntangibleAssetsScheduleofEstimatedAggregateRentalIncomeDetails</Role>
      <ShortName>Real Estate and Intangible Assets - Schedule of Estimated Aggregate Rental Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - Real Estate Dispositions, Held for Sale, and Impairment Charges - Schedule of Properties Disposed (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateDispositionsHeldforSaleandImpairmentChargesScheduleofPropertiesDisposedDetails</Role>
      <ShortName>Real Estate Dispositions, Held for Sale, and Impairment Charges - Schedule of Properties Disposed (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - Real Estate Dispositions, Held for Sale, and Impairment Charges - Real Estate Dispositions (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateDispositionsHeldforSaleandImpairmentChargesRealEstateDispositionsNarrativeDetails</Role>
      <ShortName>Real Estate Dispositions, Held for Sale, and Impairment Charges - Real Estate Dispositions (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - Real Estate Dispositions, Held for Sale, and Impairment Charges - Schedule of Components of Operating Income from Real Estate and Related Assets Disposed (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateDispositionsHeldforSaleandImpairmentChargesScheduleofComponentsofOperatingIncomefromRealEstateandRelatedAssetsDisposedDetails</Role>
      <ShortName>Real Estate Dispositions, Held for Sale, and Impairment Charges - Schedule of Components of Operating Income from Real Estate and Related Assets Disposed (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - Real Estate Dispositions, Held for Sale, and Impairment Charges - Real Estate Held for Sale (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateDispositionsHeldforSaleandImpairmentChargesRealEstateHeldforSaleNarrativeDetails</Role>
      <ShortName>Real Estate Dispositions, Held for Sale, and Impairment Charges - Real Estate Held for Sale (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - Real Estate Dispositions, Held for Sale, and Impairment Charges - Schedule of Components of Assets and Liabilities Held for Sale (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateDispositionsHeldforSaleandImpairmentChargesScheduleofComponentsofAssetsandLiabilitiesHeldforSaleDetails</Role>
      <ShortName>Real Estate Dispositions, Held for Sale, and Impairment Charges - Schedule of Components of Assets and Liabilities Held for Sale (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - Real Estate Dispositions, Held for Sale, and Impairment Charges - Impairment Charges (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/RealEstateDispositionsHeldforSaleandImpairmentChargesImpairmentChargesNarrativeDetails</Role>
      <ShortName>Real Estate Dispositions, Held for Sale, and Impairment Charges - Impairment Charges (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955539 - Disclosure - Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Narrative (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableCreditFacilityandSeniorUnsecuredNotesNarrativeDetails</Role>
      <ShortName>Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/MortgageNotesPayableCreditFacilityandSeniorUnsecuredNotesTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955540 - Disclosure - Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Schedule of Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableCreditFacilityandSeniorUnsecuredNotesScheduleofMortgageNotesPayableCreditFacilityandSeniorUnsecuredNotesDetails</Role>
      <ShortName>Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Schedule of Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955541 - Disclosure - Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Mortgage Notes Payable (Narrative) (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableCreditFacilityandSeniorUnsecuredNotesMortgageNotesPayableNarrativeDetails</Role>
      <ShortName>Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Mortgage Notes Payable (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Schedule of Long-Term Mortgages (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableCreditFacilityandSeniorUnsecuredNotesScheduleofLongTermMortgagesDetails</Role>
      <ShortName>Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Schedule of Long-Term Mortgages (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Schedule of Principal Payments of Mortgage Notes Payable (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableCreditFacilityandSeniorUnsecuredNotesScheduleofPrincipalPaymentsofMortgageNotesPayableDetails</Role>
      <ShortName>Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Schedule of Principal Payments of Mortgage Notes Payable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Interest Rate Caps and Swaps (Narrative) (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableCreditFacilityandSeniorUnsecuredNotesInterestRateCapsandSwapsNarrativeDetails</Role>
      <ShortName>Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Interest Rate Caps and Swaps (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Schedule of Interest Rate Caps and Interest Rate Swaps (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableCreditFacilityandSeniorUnsecuredNotesScheduleofInterestRateCapsandInterestRateSwapsDetails</Role>
      <ShortName>Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Schedule of Interest Rate Caps and Interest Rate Swaps (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Schedule of Impact of Derivative Instruments, Reclassifications of Derivative Instruments (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableCreditFacilityandSeniorUnsecuredNotesScheduleofImpactofDerivativeInstrumentsReclassificationsofDerivativeInstrumentsDetails</Role>
      <ShortName>Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Schedule of Impact of Derivative Instruments, Reclassifications of Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955547 - Disclosure - Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Schedule of Information Regarding Derivative Instruments (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableCreditFacilityandSeniorUnsecuredNotesScheduleofInformationRegardingDerivativeInstrumentsDetails</Role>
      <ShortName>Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Schedule of Information Regarding Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955548 - Disclosure - Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Credit Facility (Narrative) (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableCreditFacilityandSeniorUnsecuredNotesCreditFacilityNarrativeDetails</Role>
      <ShortName>Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Credit Facility (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955549 - Disclosure - Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Unsecured Term Loan D (Narrative) (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/MortgageNotesPayableCreditFacilityandSeniorUnsecuredNotesUnsecuredTermLoanDNarrativeDetails</Role>
      <ShortName>Mortgage Notes Payable, Credit Facility, and Senior Unsecured Notes - Unsecured Term Loan D (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955550 - Disclosure - Commitments and Contingencies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/CommitmentsandContingenciesNarrativeDetails</Role>
      <ShortName>Commitments and Contingencies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955551 - Disclosure - Commitments and Contingencies - Schedule of Future Minimum Rental Payments Due Under the Terms Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/CommitmentsandContingenciesScheduleofFutureMinimumRentalPaymentsDueUndertheTermsLeasesDetails</Role>
      <ShortName>Commitments and Contingencies - Schedule of Future Minimum Rental Payments Due Under the Terms Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955552 - Disclosure - Equity and Mezzanine Equity - Schedule of Distributions Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EquityandMezzanineEquityScheduleofDistributionsPerShareDetails</Role>
      <ShortName>Equity and Mezzanine Equity - Schedule of Distributions Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955553 - Disclosure - Equity and Mezzanine Equity - Schedule of Characterization of Distributions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EquityandMezzanineEquityScheduleofCharacterizationofDistributionsDetails</Role>
      <ShortName>Equity and Mezzanine Equity - Schedule of Characterization of Distributions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955554 - Disclosure - Equity and Mezzanine Equity - Common Stock ATM Program (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EquityandMezzanineEquityCommonStockATMProgramNarrativeDetails</Role>
      <ShortName>Equity and Mezzanine Equity - Common Stock ATM Program (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955555 - Disclosure - Equity and Mezzanine Equity - Common Stock Buyback Program (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EquityandMezzanineEquityCommonStockBuybackProgramNarrativeDetails</Role>
      <ShortName>Equity and Mezzanine Equity - Common Stock Buyback Program (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955556 - Disclosure - Equity and Mezzanine Equity - Mezzanine Equity (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EquityandMezzanineEquityMezzanineEquityNarrativeDetails</Role>
      <ShortName>Equity and Mezzanine Equity - Mezzanine Equity (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955557 - Disclosure - Equity and Mezzanine Equity - Series E Preferred Stock ATM Program (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EquityandMezzanineEquitySeriesEPreferredStockATMProgramNarrativeDetails</Role>
      <ShortName>Equity and Mezzanine Equity - Series E Preferred Stock ATM Program (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9955558 - Disclosure - Equity and Mezzanine Equity - Universal Shelf Registration Statement (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EquityandMezzanineEquityUniversalShelfRegistrationStatementNarrativeDetails</Role>
      <ShortName>Equity and Mezzanine Equity - Universal Shelf Registration Statement (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9955559 - Disclosure - Equity and Mezzanine Equity - Preferred Series F Continuous Offering (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EquityandMezzanineEquityPreferredSeriesFContinuousOfferingNarrativeDetails</Role>
      <ShortName>Equity and Mezzanine Equity - Preferred Series F Continuous Offering (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9955560 - Disclosure - Equity and Mezzanine Equity - Non-controlling Interests in Operating Partnership (Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EquityandMezzanineEquityNoncontrollingInterestsinOperatingPartnershipNarrativeDetails</Role>
      <ShortName>Equity and Mezzanine Equity - Non-controlling Interests in Operating Partnership (Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9955561 - Disclosure - Earnings (loss) per Share of Common Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/EarningslossperShareofCommonStockDetails</Role>
      <ShortName>Earnings (loss) per Share of Common Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/EarningslossperShareofCommonStockTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9955562 - Disclosure - Subsequent Events - Schedule of Monthly Distributions Declared (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/SubsequentEventsScheduleofMonthlyDistributionsDeclaredDetails</Role>
      <ShortName>Subsequent Events - Schedule of Monthly Distributions Declared (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9955563 - Disclosure - Subsequent Events - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/SubsequentEventsNarrativeDetails</Role>
      <ShortName>Subsequent Events - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9955564 - Disclosure - SCHEDULE III???REAL ESTATE AND ACCUMULATED DEPRECIATION (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/SCHEDULEIIIREALESTATEANDACCUMULATEDDEPRECIATIONDetails</Role>
      <ShortName>SCHEDULE III???REAL ESTATE AND ACCUMULATED DEPRECIATION (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/SCHEDULEIIIREALESTATEANDACCUMULATEDDEPRECIATION</ParentRole>
      <Position>74</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9955565 - Disclosure - SCHEDULE III???REAL ESTATE AND ACCUMULATED DEPRECIATION (Footnote Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/SCHEDULEIIIREALESTATEANDACCUMULATEDDEPRECIATIONFootnoteNarrativeDetails</Role>
      <ShortName>SCHEDULE III???REAL ESTATE AND ACCUMULATED DEPRECIATION (Footnote Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://ir.gladstonecommercial.com/role/SCHEDULEIIIREALESTATEANDACCUMULATEDDEPRECIATION</ParentRole>
      <Position>75</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9955566 - Disclosure - SCHEDULE III???REAL ESTATE AND ACCUMULATED DEPRECIATION - Schedule of Change in Balance of Real Estate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/SCHEDULEIIIREALESTATEANDACCUMULATEDDEPRECIATIONScheduleofChangeinBalanceofRealEstateDetails</Role>
      <ShortName>SCHEDULE III???REAL ESTATE AND ACCUMULATED DEPRECIATION - Schedule of Change in Balance of Real Estate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9955567 - Disclosure - SCHEDULE III???REAL ESTATE AND ACCUMULATED DEPRECIATION - Schedule of Change in Balance of Real Estate (Footnote Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/SCHEDULEIIIREALESTATEANDACCUMULATEDDEPRECIATIONScheduleofChangeinBalanceofRealEstateFootnoteNarrativeDetails</Role>
      <ShortName>SCHEDULE III???REAL ESTATE AND ACCUMULATED DEPRECIATION - Schedule of Change in Balance of Real Estate (Footnote Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9955568 - Disclosure - SCHEDULE III???REAL ESTATE AND ACCUMULATED DEPRECIATION - Schedule of Change in Balance of Accumulated Depreciation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/SCHEDULEIIIREALESTATEANDACCUMULATEDDEPRECIATIONScheduleofChangeinBalanceofAccumulatedDepreciationDetails</Role>
      <ShortName>SCHEDULE III???REAL ESTATE AND ACCUMULATED DEPRECIATION - Schedule of Change in Balance of Accumulated Depreciation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="good-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9955569 - Disclosure - SCHEDULE III???REAL ESTATE AND ACCUMULATED DEPRECIATION - Schedule of Change in Balance of Accumulated Depreciation (Footnote Narrative) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ir.gladstonecommercial.com/role/SCHEDULEIIIREALESTATEANDACCUMULATEDDEPRECIATIONScheduleofChangeinBalanceofAccumulatedDepreciationFootnoteNarrativeDetails</Role>
      <ShortName>SCHEDULE III???REAL ESTATE AND ACCUMULATED DEPRECIATION - Schedule of Change in Balance of Accumulated Depreciation (Footnote Narrative) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</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-K" isDefinitelyFs="true" isUsgaap="true" original="good-20251231.htm">good-20251231.htm</File>
    <File>good-20251231.xsd</File>
    <File>good-20251231_cal.xml</File>
    <File>good-20251231_def.xml</File>
    <File>good-20251231_lab.xml</File>
    <File>good-20251231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>good-20251231_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="305">http://fasb.org/srt/2025</BaseTaxonomy>
    <BaseTaxonomy items="2134">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="15">http://xbrl.sec.gov/cyd/2025</BaseTaxonomy>
    <BaseTaxonomy items="47">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="5">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
