<?xml version="1.0" encoding="utf-8"?>
<FilingSummary xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Version>2.3.0.11</Version>
  <ProcessingTime />
  <ReportFormat>Html</ReportFormat>
  <ReportType />
  <ContextCount>20</ContextCount>
  <ElementCount>68</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>2</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>3</UnitCount>
  <MyReports>
    <Report>
      <IsDefault>true</IsDefault>
      <ContainEmbeddedReports>false</ContainEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>000990 - Document - Document And Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://aeifunds.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document And Entity Information</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <ContainEmbeddedReports>false</ContainEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>001000 - Statement - Balance Sheet</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://aeifunds.com/role/BalanceSheet</Role>
      <ShortName>Balance Sheet</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <ContainEmbeddedReports>false</ContainEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>001010 - Statement - Balance Sheet Parenthetical</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://aeifunds.com/role/BalanceSheetParenthetical</Role>
      <ShortName>Balance Sheet Parenthetical</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <ContainEmbeddedReports>false</ContainEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>002000 - Statement - Statement of Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://aeifunds.com/role/StatementOfIncome</Role>
      <ShortName>Statement of Income</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <ContainEmbeddedReports>false</ContainEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>003000 - Statement - Statement of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://aeifunds.com/role/StatementOfCashFlows</Role>
      <ShortName>Statement of Cash Flows</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <ContainEmbeddedReports>false</ContainEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>004000 - Statement - Statement of Changes in Partners' Capital</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://aeifunds.com/role/StatementOfChangesInPartnersCapital</Role>
      <ShortName>Statement of Changes in Partners' Capital</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <ContainEmbeddedReports>false</ContainEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>006010 - Disclosure - Basis of Accounting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://aeifunds.com/role/BasisOfAccounting</Role>
      <ShortName>Basis of Accounting</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <ContainEmbeddedReports>false</ContainEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>006020 - Disclosure - Organization</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://aeifunds.com/role/Organization</Role>
      <ShortName>Organization</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <ContainEmbeddedReports>false</ContainEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>006030 - Disclosure - Reclassification</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://aeifunds.com/role/Reclassification</Role>
      <ShortName>Reclassification</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <ContainEmbeddedReports>false</ContainEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>006040 - Disclosure - Investments in Real Estate</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://aeifunds.com/role/InvestmentsInRealEstate</Role>
      <ShortName>Investments in Real Estate</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <ContainEmbeddedReports>false</ContainEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>006050 - Disclosure - Payable to AEI Fund Management, Inc.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://aeifunds.com/role/PayableToAeiFundManagementInc</Role>
      <ShortName>Payable to AEI Fund Management, Inc.</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <ContainEmbeddedReports>false</ContainEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>006060 - Disclosure - Discontinued Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://aeifunds.com/role/DiscontinuedOperations</Role>
      <ShortName>Discontinued Operations</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <ContainEmbeddedReports>false</ContainEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>006070 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://aeifunds.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <ContainEmbeddedReports>false</ContainEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Info">Element us-gaap_LimitedPartnersCapitalAccountUnitsOutstanding had a mix of decimals attribute values: 2 0.</Log>
    <Log type="Info">Element us-gaap_LimitedPartnersCapitalAccountUnitsOutstanding had a mix of decimals attribute values: 2 0.</Log>
    <Log type="Info">Element us-gaap_LimitedPartnersCapitalAccountUnitsOutstanding had a mix of decimals attribute values: 2 0.</Log>
    <Log type="Info">Process Flow-Through: 001000 - Statement - Balance Sheet</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Jun. 30, 2010'</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Dec. 31, 2009'</Log>
    <Log type="Info">Process Flow-Through: 001010 - Statement - Balance Sheet Parenthetical</Log>
    <Log type="Info">Process Flow-Through: 002000 - Statement - Statement of Income</Log>
    <Log type="Info">Process Flow-Through: 003000 - Statement - Statement of Cash Flows</Log>
  </Logs>
  <InputFiles>
    <File>aei21-20110630.xml</File>
    <File>aeixx-20110630.xsd</File>
    <File>aeixx-20110630_cal.xml</File>
    <File>aeixx-20110630_def.xml</File>
    <File>aeixx-20110630_lab.xml</File>
    <File>aeixx-20110630_pre.xml</File>
  </InputFiles>
  <SupplementalFiles />
  <BaseTaxonomies />
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
