<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.20.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>659</ContextCount>
  <ElementCount>648</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>182</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>9</UnitCount>
  <MyReports>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>1001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1002 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1003 - Statement - Consolidated Statements of Income and of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ConsolidatedStatementsOfIncomeAndOfComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Income and of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1004 - Statement - Consolidated Statements of Changes in Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ConsolidatedStatementsOfChangesInEquity</Role>
      <ShortName>Consolidated Statements of Changes in Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1005 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1006 - Disclosure - Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/Operations</Role>
      <ShortName>Operations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1007 - Disclosure - Basis of preparation of the financial statements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/BasisOfPreparationOfTheFinancialStatements</Role>
      <ShortName>Basis of preparation of the financial statements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1008 - Disclosure - Summary of significant accounting policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of significant accounting policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>1009 - Disclosure - Significant estimated and judgements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SignificantEstimatedAndJudgements</Role>
      <ShortName>Significant estimated and judgements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>1010 - Disclosure - Group structure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/GroupStructure</Role>
      <ShortName>Group structure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>1011 - Disclosure - Securities purchased under agreements to resell</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesPurchasedUnderAgreementsToResell</Role>
      <ShortName>Securities purchased under agreements to resell</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>1012 - Disclosure - Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/Securities</Role>
      <ShortName>Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>1013 - Disclosure - Derivative financial instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/DerivativeFinancialInstruments</Role>
      <ShortName>Derivative financial instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>1014 - Disclosure - Hedge accounting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/HedgeAccounting</Role>
      <ShortName>Hedge accounting</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>1015 - Disclosure - Accounts receivable</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/AccountsReceivable</Role>
      <ShortName>Accounts receivable</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>1016 - Disclosure - Recoverable Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/RecoverableTaxes</Role>
      <ShortName>Recoverable Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>1017 - Disclosure - Prepaid Expenses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/PrepaidExpenses</Role>
      <ShortName>Prepaid Expenses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>1018 - Disclosure - Property, Equipment, Intangible Assets And Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/PropertyEquipmentIntangibleAssetsAndLeases</Role>
      <ShortName>Property, Equipment, Intangible Assets And Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>1019 - Disclosure - Securities Sold Under Repurchase Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesSoldUnderRepurchaseAgreements</Role>
      <ShortName>Securities Sold Under Repurchase Agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>1020 - Disclosure - Borrowings And Lease Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/BorrowingsAndLeaseLiabilities</Role>
      <ShortName>Borrowings And Lease Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>1021 - Disclosure - Debentures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/Debentures</Role>
      <ShortName>Debentures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>1022 - Disclosure - Securities Trading and Intermediation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesTradingAndIntermediation</Role>
      <ShortName>Securities Trading and Intermediation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>1023 - Disclosure - Other Financial Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/OtherFinancialLiabilities</Role>
      <ShortName>Other Financial Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>1024 - Disclosure - Social and Statutory Obligations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SocialAndStatutoryObligations</Role>
      <ShortName>Social and Statutory Obligations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>1025 - Disclosure - Tax and Social Security Obligations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/TaxAndSocialSecurityObligations</Role>
      <ShortName>Tax and Social Security Obligations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>1026 - Disclosure - Private Pension Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/PrivatePensionLiabilities</Role>
      <ShortName>Private Pension Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>1027 - Disclosure - Income Tax</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/IncomeTax</Role>
      <ShortName>Income Tax</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>1028 - Disclosure - Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/Equity</Role>
      <ShortName>Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>1029 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/RelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>1030 - Disclosure - Provisions and Contingent Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ProvisionsAndContingentLiabilities</Role>
      <ShortName>Provisions and Contingent Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>1031 - Disclosure - Total revenue and income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/TotalRevenueAndIncome</Role>
      <ShortName>Total revenue and income</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>1032 - Disclosure - Operating costs</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/OperatingCosts</Role>
      <ShortName>Operating costs</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>1033 - Disclosure - Operating expenses by nature</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/OperatingExpensesByNature</Role>
      <ShortName>Operating expenses by nature</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>1034 - Disclosure - Other Operating Income, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/OtherOperatingIncomeNet</Role>
      <ShortName>Other Operating Income, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>1035 - Disclosure - Share-Based Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ShareBasedPlan</Role>
      <ShortName>Share-Based Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>1036 - Disclosure - Earnings Per Share (Basic And Diluted)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/EarningsPerShareBasicAndDiluted</Role>
      <ShortName>Earnings Per Share (Basic And Diluted)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>1037 - Disclosure - Determination Of Fair Value</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/DeterminationOfFairValue</Role>
      <ShortName>Determination Of Fair Value</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>1038 - Disclosure - Management Of Financial Risks And Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ManagementOfFinancialRisksAndFinancialInstruments</Role>
      <ShortName>Management Of Financial Risks And Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>1039 - Disclosure - Capital Management</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/CapitalManagement</Role>
      <ShortName>Capital Management</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>1040 - Disclosure - Cash Flow Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/CashFlowInformation</Role>
      <ShortName>Cash Flow Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>1041 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>1042 - Disclosure - Summary of significant accounting policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of significant accounting policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>1043 - Disclosure - Summary of significant accounting policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of significant accounting policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/SummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>1044 - Disclosure - Group structure (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/GroupStructureTables</Role>
      <ShortName>Group structure (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/GroupStructure</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>1045 - Disclosure - Securities purchased under agreements to resell (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesPurchasedUnderAgreementsToResellTables</Role>
      <ShortName>Securities purchased under agreements to resell (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/SecuritiesPurchasedUnderAgreementsToResell</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>1046 - Disclosure - Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesTables</Role>
      <ShortName>Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/SecuritiesPurchasedUnderAgreementsToResell</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>1047 - Disclosure - Derivative financial instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/DerivativeFinancialInstrumentsTables</Role>
      <ShortName>Derivative financial instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/DerivativeFinancialInstruments</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>1048 - Disclosure - Hedge accounting (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/HedgeAccountingTables</Role>
      <ShortName>Hedge accounting (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/HedgeAccounting</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>1049 - Disclosure - Accounts receivable (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/AccountsReceivableTables</Role>
      <ShortName>Accounts receivable (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/AccountsReceivable</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>1050 - Disclosure - Recoverable Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/RecoverableTaxesTables</Role>
      <ShortName>Recoverable Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/RecoverableTaxes</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>1051 - Disclosure - Prepaid Expenses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/PrepaidExpensesTables</Role>
      <ShortName>Prepaid Expenses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/PrepaidExpenses</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>1052 - Disclosure - Property, Equipment, Intangible Assets And Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/PropertyEquipmentIntangibleAssetsAndLeasesTables</Role>
      <ShortName>Property, Equipment, Intangible Assets And Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/PropertyEquipmentIntangibleAssetsAndLeases</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>1053 - Disclosure - Securities Sold Under Repurchase Agreements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesSoldUnderRepurchaseAgreementsTables</Role>
      <ShortName>Securities Sold Under Repurchase Agreements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/SecuritiesSoldUnderRepurchaseAgreements</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>1054 - Disclosure - Borrowings and lease liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/BorrowingsAndLeaseLiabilitiesTables</Role>
      <ShortName>Borrowings and lease liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>1055 - Disclosure - Debentures (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/DebenturesTables</Role>
      <ShortName>Debentures (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/Debentures</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>1056 - Disclosure - Securities Trading and Intermediation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesTradingAndIntermediationTables</Role>
      <ShortName>Securities Trading and Intermediation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/SecuritiesTradingAndIntermediation</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>1057 - Disclosure - Other Financial Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/OtherFinancialLiabilitiesTables</Role>
      <ShortName>Other Financial Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/OtherFinancialLiabilities</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>1058 - Disclosure - Social and Statutory Obligations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SocialAndStatutoryObligationsTables</Role>
      <ShortName>Social and Statutory Obligations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/SocialAndStatutoryObligations</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>1059 - Disclosure - Tax and Social Security Obligations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/TaxAndSocialSecurityObligationsTables</Role>
      <ShortName>Tax and Social Security Obligations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/TaxAndSocialSecurityObligations</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>1060 - Disclosure - Private Pension Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/PrivatePensionLiabilitiesTables</Role>
      <ShortName>Private Pension Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/PrivatePensionLiabilities</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>1061 - Disclosure - Income Tax (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/IncomeTaxTables</Role>
      <ShortName>Income Tax (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/IncomeTax</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>1062 - Disclosure - Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/EquityTables</Role>
      <ShortName>Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/Equity</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>1063 - Disclosure - Related Party Transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/RelatedPartyTransactionsTables</Role>
      <ShortName>Related Party Transactions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/RelatedPartyTransactions</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>1064 - Disclosure - Provisions and Contingent Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ProvisionsAndContingentLiabilitiesTables</Role>
      <ShortName>Provisions and Contingent Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/ProvisionsAndContingentLiabilities</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>1065 - Disclosure - Total revenue and income (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/TotalRevenueAndIncomeTables</Role>
      <ShortName>Total revenue and income (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/TotalRevenueAndIncome</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>1066 - Disclosure - Operating costs (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/OperatingCostsTables</Role>
      <ShortName>Operating costs (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/OperatingCosts</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>1067 - Disclosure - Operating expenses by nature (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/OperatingExpensesByNatureTables</Role>
      <ShortName>Operating expenses by nature (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/OperatingExpensesByNature</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>1068 - Disclosure - Other operating income, net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/OtherOperatingIncomeNetTables</Role>
      <ShortName>Other operating income, net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>1069 - Disclosure - Earnings Per Share (Basic And Diluted) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/EarningsPerShareBasicAndDilutedTables</Role>
      <ShortName>Earnings Per Share (Basic And Diluted) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/EarningsPerShareBasicAndDiluted</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>1070 - Disclosure - Determination Of Fair Value (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/DeterminationOfFairValueTables</Role>
      <ShortName>Determination Of Fair Value (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/DeterminationOfFairValue</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>1071 - Disclosure - Management Of Financial Risks And Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ManagementOfFinancialRisksAndFinancialInstrumentsTables</Role>
      <ShortName>Management Of Financial Risks And Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/ManagementOfFinancialRisksAndFinancialInstruments</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>1072 - Disclosure - Capital Management (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/CapitalManagementTables</Role>
      <ShortName>Capital Management (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/CapitalManagement</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>1073 - Disclosure - Cash Flow Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/CashFlowInformationTables</Role>
      <ShortName>Cash Flow Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://xpinc.com/role/CashFlowInformation</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>1074 - Disclosure - Operations - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/OperationsAdditionalInformationDetail</Role>
      <ShortName>Operations - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>1075 - Disclosure - Summary of Significant Accounting Policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>1076 - Disclosure - Summary of Significant Accounting Policies - Summary of Adoption of IFRS 16 On Lease Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfAdoptionOfIfrs16OnLeaseLiabilitiesDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Adoption of IFRS 16 On Lease Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>1077 - Disclosure - Summary of Significant Accounting Policies - Summary of Right-Of-Use Assets Related to Property and Equipment Leases (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfRightOfUseAssetsRelatedToPropertyAndEquipmentLeasesDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Right-Of-Use Assets Related to Property and Equipment Leases (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>1078 - Disclosure - Summary of Significant Accounting Policies - Summary of Depreciation of Property and Equipment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfDepreciationOfPropertyAndEquipmentDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Depreciation of Property and Equipment (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>1079 - Disclosure - Summary of Significant Accounting Policies - Summary of Useful Lives of the Intangible Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SummaryOfSignificantAccountingPoliciesSummaryOfUsefulLivesOfTheIntangibleAssetsDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Useful Lives of the Intangible Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>1080 - Disclosure - Group structure - Summary of Direct and Indirect Interests of Company in Its Subsidiaries (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/GroupStructureSummaryOfDirectAndIndirectInterestsOfCompanyInItsSubsidiariesDetail</Role>
      <ShortName>Group structure - Summary of Direct and Indirect Interests of Company in Its Subsidiaries (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>1081 - Disclosure - Group structure - Summary of the Net Assets Acquired, the Goodwill (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/GroupStructureSummaryOfTheNetAssetsAcquiredTheGoodwillDetail</Role>
      <ShortName>Group structure - Summary of the Net Assets Acquired, the Goodwill (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>1082 - Disclosure - Group structure - Summary of Intangible Assets Acquired  (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/GroupStructureSummaryOfIntangibleAssetsAcquiredDetail</Role>
      <ShortName>Group structure - Summary of Intangible Assets Acquired  (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>1083 - Disclosure - Group structure - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/GroupStructureAdditionalInformationDetail</Role>
      <ShortName>Group structure - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>1084 - Disclosure - Securities purchased under agreements to resell - Summary of securities purchased under agreements to resell (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesPurchasedUnderAgreementsToResellSummaryOfSecuritiesPurchasedUnderAgreementsToResellDetail</Role>
      <ShortName>Securities purchased under agreements to resell - Summary of securities purchased under agreements to resell (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>1085 - Disclosure - Securities purchased under agreements to resell - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesPurchasedUnderAgreementsToResellAdditionalInformationDetail</Role>
      <ShortName>Securities purchased under agreements to resell - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>1086 - Disclosure - Securities - Summary of securities classified at fair value through profit and loss and at fair value through other comprehensive income (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesSummaryOfSecuritiesClassifiedAtFairValueThroughProfitAndLossAndAtFairValueThroughOtherComprehensiveIncomeDetail</Role>
      <ShortName>Securities - Summary of securities classified at fair value through profit and loss and at fair value through other comprehensive income (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>1087 - Disclosure - Securities - Summary of securities classified at fair value through profit and loss and at fair value through other comprehensive income (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesSummaryOfSecuritiesClassifiedAtFairValueThroughProfitAndLossAndAtFairValueThroughOtherComprehensiveIncomeParentheticalDetail</Role>
      <ShortName>Securities - Summary of securities classified at fair value through profit and loss and at fair value through other comprehensive income (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>1088 - Disclosure - Securities - Summary of securities evaluated at amortized cost (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesSummaryOfSecuritiesEvaluatedAtAmortizedCostDetail</Role>
      <ShortName>Securities - Summary of securities evaluated at amortized cost (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>1089 - Disclosure - Securities - Summary of securities on the financial liabilities classified at fair value through profit or loss (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesSummaryOfSecuritiesOnTheFinancialLiabilitiesClassifiedAtFairValueThroughProfitOrLossDetail</Role>
      <ShortName>Securities - Summary of securities on the financial liabilities classified at fair value through profit or loss (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>1090 - Disclosure - Securities - Summary of securities classified by maturity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesSummaryOfSecuritiesClassifiedByMaturityDetail</Role>
      <ShortName>Securities - Summary of securities classified by maturity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>1091 - Disclosure - Derivative financial instruments - Summary of Positions with derivative financial instruments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/DerivativeFinancialInstrumentsSummaryOfPositionsWithDerivativeFinancialInstrumentsDetail</Role>
      <ShortName>Derivative financial instruments - Summary of Positions with derivative financial instruments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>1092 - Disclosure - Derivative financial instruments - Summary of the Derivative financial instruments portfolio (assets and liabilities) by type of instrument (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/DerivativeFinancialInstrumentsSummaryOfTheDerivativeFinancialInstrumentsPortfolioAssetsAndLiabilitiesByTypeOfInstrumentDetail</Role>
      <ShortName>Derivative financial instruments - Summary of the Derivative financial instruments portfolio (assets and liabilities) by type of instrument (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>1093 - Disclosure - Derivative financial instruments - Summary of derivatives financial instruments by index (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/DerivativeFinancialInstrumentsSummaryOfDerivativesFinancialInstrumentsByIndexDetail</Role>
      <ShortName>Derivative financial instruments - Summary of derivatives financial instruments by index (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>1094 - Disclosure - Hedge accounting - Summary of detailed information about hedging instruments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/HedgeAccountingSummaryOfDetailedInformationAboutHedgingInstrumentsDetail</Role>
      <ShortName>Hedge accounting - Summary of detailed information about hedging instruments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>1095 - Disclosure - Accounts Receivable - Summary of Accounts receivable (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/AccountsReceivableSummaryOfAccountsReceivableDetail</Role>
      <ShortName>Accounts Receivable - Summary of Accounts receivable (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>1096 - Disclosure - Recoverable Taxes - Summary of Recoverable Taxes (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/RecoverableTaxesSummaryOfRecoverableTaxesDetail</Role>
      <ShortName>Recoverable Taxes - Summary of Recoverable Taxes (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>1097 - Disclosure - Prepaid Expenses - Summary of Prepaid Expenses (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/PrepaidExpensesSummaryOfPrepaidExpensesDetail</Role>
      <ShortName>Prepaid Expenses - Summary of Prepaid Expenses (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>1098 - Disclosure - Property, Equipment, Intangible Assets And Leases - Summary of Property and Equipment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/PropertyEquipmentIntangibleAssetsAndLeasesSummaryOfPropertyAndEquipmentDetail</Role>
      <ShortName>Property, Equipment, Intangible Assets And Leases - Summary of Property and Equipment (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>1099 - Disclosure - Property, Equipment, Intangible Assets And Leases - Summary of Intangible Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/PropertyEquipmentIntangibleAssetsAndLeasesSummaryOfIntangibleAssetsDetail</Role>
      <ShortName>Property, Equipment, Intangible Assets And Leases - Summary of Intangible Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>1100 - Disclosure - Property, Equipment, Intangible Assets And Leases - Summary of Right-of-use Assets and Lease Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/PropertyEquipmentIntangibleAssetsAndLeasesSummaryOfRightOfUseAssetsAndLeaseLiabilitiesDetail</Role>
      <ShortName>Property, Equipment, Intangible Assets And Leases - Summary of Right-of-use Assets and Lease Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>1101 - Disclosure - Property, Equipment, Intangible Assets And Leases - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/PropertyEquipmentIntangibleAssetsAndLeasesAdditionalInformationDetail</Role>
      <ShortName>Property, Equipment, Intangible Assets And Leases - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>1102 - Disclosure - Securities Sold Under Repurchase Agreements - Summary of Securities Sold Under Repurchase Agreements (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesSoldUnderRepurchaseAgreementsSummaryOfSecuritiesSoldUnderRepurchaseAgreementsDetail</Role>
      <ShortName>Securities Sold Under Repurchase Agreements - Summary of Securities Sold Under Repurchase Agreements (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>102</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>1103 - Disclosure - Securities Sold Under Repurchase Agreements - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesSoldUnderRepurchaseAgreementsAdditionalInformationDetail</Role>
      <ShortName>Securities Sold Under Repurchase Agreements - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>103</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>1104 - Disclosure - Borrowings And Lease Liabilities - Summary of Detailed Information About Borrowings (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/BorrowingsAndLeaseLiabilitiesSummaryOfDetailedInformationAboutBorrowingsDetail</Role>
      <ShortName>Borrowings And Lease Liabilities - Summary of Detailed Information About Borrowings (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>104</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>1105 - Disclosure - Borrowings And Lease Liabilities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/BorrowingsAndLeaseLiabilitiesAdditionalInformationDetail</Role>
      <ShortName>Borrowings And Lease Liabilities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>1106 - Disclosure - Debentures - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/DebenturesAdditionalInformationDetail</Role>
      <ShortName>Debentures - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>106</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>1107 - Disclosure - Debentures - Summary of Detailed Information About Debentures Issued (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/DebenturesSummaryOfDetailedInformationAboutDebenturesIssuedDetail</Role>
      <ShortName>Debentures - Summary of Detailed Information About Debentures Issued (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>107</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>1108 - Disclosure - Debentures - Summary of Detailed Information on Debentures Outstanding (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/DebenturesSummaryOfDetailedInformationOnDebenturesOutstandingDetail</Role>
      <ShortName>Debentures - Summary of Detailed Information on Debentures Outstanding (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>108</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>1109 - Disclosure - Securities Trading and Intermediation - Summary of Securities Trading and  Intermediation Assets and Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SecuritiesTradingAndIntermediationSummaryOfSecuritiesTradingAndIntermediationAssetsAndLiabilitiesDetail</Role>
      <ShortName>Securities Trading and Intermediation - Summary of Securities Trading and  Intermediation Assets and Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>109</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>1110 - Disclosure - Other Financial Liabilities - Summary of Other Financial Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/OtherFinancialLiabilitiesSummaryOfOtherFinancialLiabilitiesDetail</Role>
      <ShortName>Other Financial Liabilities - Summary of Other Financial Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>110</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>1111 - Disclosure - Social and Statutory Obligations - Summary Of Social And Statutory Obligations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SocialAndStatutoryObligationsSummaryOfSocialAndStatutoryObligationsDetail</Role>
      <ShortName>Social and Statutory Obligations - Summary Of Social And Statutory Obligations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>111</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>1112 - Disclosure - Social and Statutory Obligations - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/SocialAndStatutoryObligationsAdditionalInformationDetail</Role>
      <ShortName>Social and Statutory Obligations - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>112</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>1113 - Disclosure - Tax and Social Security Obligations - Summary Of Tax And Social Security Obligations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/TaxAndSocialSecurityObligationsSummaryOfTaxAndSocialSecurityObligationsDetail</Role>
      <ShortName>Tax and Social Security Obligations - Summary Of Tax And Social Security Obligations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>113</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>1114 - Disclosure - Tax and Social Security Obligations - Summary Of Tax And Social Security Obligations (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/TaxAndSocialSecurityObligationsSummaryOfTaxAndSocialSecurityObligationsParentheticalDetail</Role>
      <ShortName>Tax and Social Security Obligations - Summary Of Tax And Social Security Obligations (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>114</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R115.htm</HtmlFileName>
      <LongName>1115 - Disclosure - Private Pension Liabilities - Summary Of Net Defined Benefit Liability (Asset) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/PrivatePensionLiabilitiesSummaryOfNetDefinedBenefitLiabilityAssetDetail</Role>
      <ShortName>Private Pension Liabilities - Summary Of Net Defined Benefit Liability (Asset) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>115</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R116.htm</HtmlFileName>
      <LongName>1116 - Disclosure - Income Tax - Summary Of Temporary Difference, Unused Tax Losses And Unused Tax Credits (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/IncomeTaxSummaryOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDetail</Role>
      <ShortName>Income Tax - Summary Of Temporary Difference, Unused Tax Losses And Unused Tax Credits (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>116</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R117.htm</HtmlFileName>
      <LongName>1117 - Disclosure - Income Tax - Summary Of Reconciliation Of Changes In Deferred Tax Liability Asset (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/IncomeTaxSummaryOfReconciliationOfChangesInDeferredTaxLiabilityAssetDetail</Role>
      <ShortName>Income Tax - Summary Of Reconciliation Of Changes In Deferred Tax Liability Asset (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>117</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R118.htm</HtmlFileName>
      <LongName>1118 - Disclosure - Income Tax - Summary Of Income Tax Calculation (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/IncomeTaxSummaryOfIncomeTaxCalculationDetail</Role>
      <ShortName>Income Tax - Summary Of Income Tax Calculation (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>118</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R119.htm</HtmlFileName>
      <LongName>1119 - Disclosure - Income Tax - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/IncomeTaxAdditionalInformationDetail</Role>
      <ShortName>Income Tax - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>119</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R120.htm</HtmlFileName>
      <LongName>1120 - Disclosure - Income Tax - Disclosure Of Analysis Other Comprehensive Income By Item (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/IncomeTaxDisclosureOfAnalysisOtherComprehensiveIncomeByItemDetail</Role>
      <ShortName>Income Tax - Disclosure Of Analysis Other Comprehensive Income By Item (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>120</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R121.htm</HtmlFileName>
      <LongName>1121 - Disclosure - Equity - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/EquityAdditionalInformationDetail</Role>
      <ShortName>Equity - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>121</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R122.htm</HtmlFileName>
      <LongName>1122 - Disclosure - Equity - Summary Of Issuances And Conversions Of Shares (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/EquitySummaryOfIssuancesAndConversionsOfSharesDetail</Role>
      <ShortName>Equity - Summary Of Issuances And Conversions Of Shares (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>122</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R123.htm</HtmlFileName>
      <LongName>1123 - Disclosure - Equity - Summary Of Dividends Distribution (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/EquitySummaryOfDividendsDistributionDetail</Role>
      <ShortName>Equity - Summary Of Dividends Distribution (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>123</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R124.htm</HtmlFileName>
      <LongName>1124 - Disclosure - Related Party Transactions - Summary of Key Management Personnel Compensation Expense (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/RelatedPartyTransactionsSummaryOfKeyManagementPersonnelCompensationExpenseDetail</Role>
      <ShortName>Related Party Transactions - Summary of Key Management Personnel Compensation Expense (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>124</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R125.htm</HtmlFileName>
      <LongName>1125 - Disclosure - Related Party Transactions - Summary of Transactions Between Related Parties Explanatory (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/RelatedPartyTransactionsSummaryOfTransactionsBetweenRelatedPartiesExplanatoryDetail</Role>
      <ShortName>Related Party Transactions - Summary of Transactions Between Related Parties Explanatory (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>125</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R126.htm</HtmlFileName>
      <LongName>1126 - Disclosure - Provisions and Contingent Liabilities - Summary Of Other Provisions (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ProvisionsAndContingentLiabilitiesSummaryOfOtherProvisionsDetail</Role>
      <ShortName>Provisions and Contingent Liabilities - Summary Of Other Provisions (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>126</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R127.htm</HtmlFileName>
      <LongName>1127 - Disclosure - Provisions and Contingent Liabilities - Summary Of Changes In Other Provisions (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ProvisionsAndContingentLiabilitiesSummaryOfChangesInOtherProvisionsDetail</Role>
      <ShortName>Provisions and Contingent Liabilities - Summary Of Changes In Other Provisions (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>127</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R128.htm</HtmlFileName>
      <LongName>1128 - Disclosure - Provisions and Contingent Liabilities - Summary of contingent liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ProvisionsAndContingentLiabilitiesSummaryOfContingentLiabilitiesDetail</Role>
      <ShortName>Provisions and Contingent Liabilities - Summary of contingent liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>128</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R129.htm</HtmlFileName>
      <LongName>1129 - Disclosure - Provisions and Contingent Liabilities - Summary of contingent liabilities (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ProvisionsAndContingentLiabilitiesSummaryOfContingentLiabilitiesParentheticalDetail</Role>
      <ShortName>Provisions and Contingent Liabilities - Summary of contingent liabilities (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>129</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R130.htm</HtmlFileName>
      <LongName>1130 - Disclosure - Provisions and Contingent Liabilities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ProvisionsAndContingentLiabilitiesAdditionalInformationDetail</Role>
      <ShortName>Provisions and Contingent Liabilities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>130</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R131.htm</HtmlFileName>
      <LongName>1131 - Disclosure - Total revenue and income - Summary of Disaggregation of Revenue by Major Service Lines (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/TotalRevenueAndIncomeSummaryOfDisaggregationOfRevenueByMajorServiceLinesDetail</Role>
      <ShortName>Total revenue and income - Summary of Disaggregation of Revenue by Major Service Lines (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>131</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R132.htm</HtmlFileName>
      <LongName>1132 - Disclosure - Total revenue and income - Summary of Net Income from Financial Instruments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/TotalRevenueAndIncomeSummaryOfNetIncomeFromFinancialInstrumentsDetail</Role>
      <ShortName>Total revenue and income - Summary of Net Income from Financial Instruments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>132</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R133.htm</HtmlFileName>
      <LongName>1133 - Disclosure - Total revenue and income - Summary of Disaggregation by Geographic Location (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/TotalRevenueAndIncomeSummaryOfDisaggregationByGeographicLocationDetail</Role>
      <ShortName>Total revenue and income - Summary of Disaggregation by Geographic Location (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>133</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R134.htm</HtmlFileName>
      <LongName>1134 - Disclosure - Operating costs - Summary of Operating Costs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/OperatingCostsSummaryOfOperatingCostsDetail</Role>
      <ShortName>Operating costs - Summary of Operating Costs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>134</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R135.htm</HtmlFileName>
      <LongName>1135 - Disclosure - Operating expenses by nature - Summary of Operating Expense by Nature (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/OperatingExpensesByNatureSummaryOfOperatingExpenseByNatureDetail</Role>
      <ShortName>Operating expenses by nature - Summary of Operating Expense by Nature (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>135</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R136.htm</HtmlFileName>
      <LongName>1136 - Disclosure - Other Operating Income, Net - Summary of Other Operating Income Net (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/OtherOperatingIncomeNetSummaryOfOtherOperatingIncomeNetDetail</Role>
      <ShortName>Other Operating Income, Net - Summary of Other Operating Income Net (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>136</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R137.htm</HtmlFileName>
      <LongName>1137 - Disclosure - Share-Based Plan - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ShareBasedPlanAdditionalInformationDetail</Role>
      <ShortName>Share-Based Plan - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>137</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R138.htm</HtmlFileName>
      <LongName>1138 - Disclosure - Earnings Per Share (Basic And Diluted) - Summary of Earnings Per Share (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/EarningsPerShareBasicAndDilutedSummaryOfEarningsPerShareDetail</Role>
      <ShortName>Earnings Per Share (Basic And Diluted) - Summary of Earnings Per Share (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://xpinc.com/role/EarningsPerShareBasicAndDilutedTables</ParentRole>
      <Position>138</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R139.htm</HtmlFileName>
      <LongName>1139 - Disclosure - Determination Of Fair Value - Summary Of Fair Value Measurement Of  Assets And Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/DeterminationOfFairValueSummaryOfFairValueMeasurementOfAssetsAndLiabilitiesDetail</Role>
      <ShortName>Determination Of Fair Value - Summary Of Fair Value Measurement Of  Assets And Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>139</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R140.htm</HtmlFileName>
      <LongName>1140 - Disclosure - Management Of Financial Risks And Financial Instruments - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ManagementOfFinancialRisksAndFinancialInstrumentsAdditionalInformationDetail</Role>
      <ShortName>Management Of Financial Risks And Financial Instruments - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>140</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R141.htm</HtmlFileName>
      <LongName>1141 - Disclosure - Management Of Financial Risks And Financial Instruments - Summary Of Financial Assets Representing The Maximum Exposure To Credit Risk (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ManagementOfFinancialRisksAndFinancialInstrumentsSummaryOfFinancialAssetsRepresentingTheMaximumExposureToCreditRiskDetail</Role>
      <ShortName>Management Of Financial Risks And Financial Instruments - Summary Of Financial Assets Representing The Maximum Exposure To Credit Risk (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>141</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R142.htm</HtmlFileName>
      <LongName>1142 - Disclosure - Management Of Financial Risks And Financial Instruments - Summary Of Financial Liabilities Into Groupings Based On Their Contractual Maturities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ManagementOfFinancialRisksAndFinancialInstrumentsSummaryOfFinancialLiabilitiesIntoGroupingsBasedOnTheirContractualMaturitiesDetail</Role>
      <ShortName>Management Of Financial Risks And Financial Instruments - Summary Of Financial Liabilities Into Groupings Based On Their Contractual Maturities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>142</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R143.htm</HtmlFileName>
      <LongName>1143 - Disclosure - Management Of Financial Risks And Financial Instruments - Summary Of Sensitivity Analysis (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/ManagementOfFinancialRisksAndFinancialInstrumentsSummaryOfSensitivityAnalysisDetail</Role>
      <ShortName>Management Of Financial Risks And Financial Instruments - Summary Of Sensitivity Analysis (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>143</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R144.htm</HtmlFileName>
      <LongName>1144 - Disclosure - Capital Management - Summary Of Net Debt And Corresponding Gearing Ratios (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/CapitalManagementSummaryOfNetDebtAndCorrespondingGearingRatiosDetail</Role>
      <ShortName>Capital Management - Summary Of Net Debt And Corresponding Gearing Ratios (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>144</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R145.htm</HtmlFileName>
      <LongName>1145 - Disclosure - Capital Management - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/CapitalManagementAdditionalInformationDetail</Role>
      <ShortName>Capital Management - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>145</Position>
    </Report>
    <Report instance="xp-20200531.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R146.htm</HtmlFileName>
      <LongName>1146 - Disclosure - Cash Flow Information - Schedule Of Debt Reconciliation (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xpinc.com/role/CashFlowInformationScheduleOfDebtReconciliationDetail</Role>
      <ShortName>Cash Flow Information - Schedule Of Debt Reconciliation (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>146</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>xp-20200531.xml</File>
    <File>xp-20200531.xsd</File>
    <File>xp-20200531_cal.xml</File>
    <File>xp-20200531_def.xml</File>
    <File>xp-20200531_lab.xml</File>
    <File>xp-20200531_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.ifrs.org/taxonomy/2019-03-27/ifrs-full</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/country/2017-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
