{
 "version": "2.2",
 "instance": {
  "xp-20231231.htm": {
   "nsprefix": "xp",
   "nsuri": "http://xpinc.com/20231231",
   "dts": {
    "inline": {
     "local": [
      "xp-20231231.htm"
     ]
    },
    "schema": {
     "local": [
      "xp-20231231.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/net-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://www.xbrl.org/dtr/type/2022-03-31/types.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-roles-2023.xsd",
      "https://xbrl.fasb.org/srt/2023/elts/srt-types-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-roles-2023.xsd",
      "https://xbrl.fasb.org/us-gaap/2023/elts/us-types-2023.xsd",
      "https://xbrl.ifrs.org/taxonomy/2023-03-23/full_ifrs/full_ifrs-cor_2023-03-23.xsd",
      "https://xbrl.sec.gov/country/2023/country-2023.xsd",
      "https://xbrl.sec.gov/dei/2023/dei-2023.xsd"
     ]
    },
    "calculationLink": {
     "local": [
      "xp-20231231_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "xp-20231231_def.xml"
     ]
    },
    "labelLink": {
     "local": [
      "xp-20231231_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "xp-20231231_pre.xml"
     ]
    }
   },
   "keyStandard": 387,
   "keyCustom": 315,
   "axisStandard": 44,
   "axisCustom": 6,
   "memberStandard": 73,
   "memberCustom": 243,
   "hidden": {
    "total": 4,
    "http://xbrl.sec.gov/dei/2023": 4
   },
   "contextCount": 1494,
   "entityCount": 1,
   "segmentCount": 354,
   "elementCount": 1279,
   "unitCount": 12,
   "baseTaxonomies": {
    "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full": 3002,
    "http://xbrl.sec.gov/dei/2023": 45,
    "http://fasb.org/us-gaap/2023": 3
   },
   "report": {
    "R1": {
     "role": "http://xpinc.com/role/Cover",
     "longName": "0000001 - Document - Cover",
     "shortName": "Cover",
     "isDefault": "true",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R2": {
     "role": "http://xpinc.com/role/AuditInformation",
     "longName": "0000002 - Document - Audit Information",
     "shortName": "Audit Information",
     "isDefault": "false",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "2",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "dei:AuditorName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "dei:AuditorName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R3": {
     "role": "http://xpinc.com/role/Consolidatedbalancesheets",
     "longName": "0000003 - Statement - Consolidated balance sheets",
     "shortName": "Consolidated balance sheets",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "3",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:Cash",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:CapitalManagementTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:FinancialAssetsAtFairValueThroughProfitOrLoss",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R4": {
     "role": "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
     "longName": "0000004 - Statement - Consolidated statements of income and of comprehensive income",
     "shortName": "Consolidated statements of income and of comprehensive income",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "4",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:Revenue",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:InterestIncomeLossOnFinancialAssetsHeldForTrading",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R5": {
     "role": "http://xpinc.com/role/Consolidatedstatementsofchangesinequity",
     "longName": "0000005 - Statement - Consolidated statements of changes in equity",
     "shortName": "Consolidated statements of changes in equity",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "5",
     "firstAnchor": {
      "contextRef": "c-17",
      "name": "ifrs-full:Equity",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-17",
      "name": "ifrs-full:Equity",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R6": {
     "role": "http://xpinc.com/role/Consolidatedstatementsofcashflows",
     "longName": "0000006 - Statement - Consolidated statements of cash flows",
     "shortName": "Consolidated statements of cash flows",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "6",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:ProfitLossBeforeTax",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:AdjustmentsForDepreciationExpense",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R7": {
     "role": "http://xpinc.com/role/Operations",
     "longName": "0000007 - Disclosure - Operations",
     "shortName": "Operations",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "7",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfOperationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfOperationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R8": {
     "role": "http://xpinc.com/role/BasisofpreparationofthefinancialstatementsandchangestotheGroupsaccountingpolicies",
     "longName": "0000008 - Disclosure - Basis of preparation of the financial statements and changes to the Group\u2019s accounting policies",
     "shortName": "Basis of preparation of the financial statements and changes to the Group\u2019s accounting policies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "8",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R9": {
     "role": "http://xpinc.com/role/Summaryofsignificantaccountingpolicies",
     "longName": "0000009 - Disclosure - Summary of significant accounting policies",
     "shortName": "Summary of significant accounting policies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "9",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfSummaryOfSignificantAccountingPoliciesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfSummaryOfSignificantAccountingPoliciesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R10": {
     "role": "http://xpinc.com/role/Significantaccountingjudgementsestimatesandassumptions",
     "longName": "0000010 - Disclosure - Significant accounting judgements, estimates and assumptions",
     "shortName": "Significant accounting judgements, estimates and assumptions",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "10",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfAccountingJudgementsAndEstimatesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfAccountingJudgementsAndEstimatesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R11": {
     "role": "http://xpinc.com/role/Groupstructure",
     "longName": "0000011 - Disclosure - Group structure",
     "shortName": "Group structure",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "11",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfBasisOfConsolidationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfBasisOfConsolidationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R12": {
     "role": "http://xpinc.com/role/Securitiespurchasedsoldunderresalerepurchaseagreements",
     "longName": "0000012 - Disclosure - Securities purchased (sold) under resale (repurchase) agreements",
     "shortName": "Securities purchased (sold) under resale (repurchase) agreements",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "12",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfRepurchaseAndReverseRepurchaseAgreementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfRepurchaseAndReverseRepurchaseAgreementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R13": {
     "role": "http://xpinc.com/role/Securities",
     "longName": "0000013 - Disclosure - Securities",
     "shortName": "Securities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "13",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfFinancialAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfFinancialAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R14": {
     "role": "http://xpinc.com/role/Derivativefinancialinstruments",
     "longName": "0000014 - Disclosure - Derivative financial instruments",
     "shortName": "Derivative financial instruments",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "14",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDerivativeFinancialInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDerivativeFinancialInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R15": {
     "role": "http://xpinc.com/role/Hedgeaccounting",
     "longName": "0000015 - Disclosure - Hedge accounting",
     "shortName": "Hedge accounting",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "15",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfHedgeAccountingExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfHedgeAccountingExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R16": {
     "role": "http://xpinc.com/role/Loanoperations",
     "longName": "0000016 - Disclosure - Loan operations",
     "shortName": "Loan operations",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "16",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfLoanOperationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfLoanOperationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R17": {
     "role": "http://xpinc.com/role/Accountsreceivable",
     "longName": "0000017 - Disclosure - Accounts receivable",
     "shortName": "Accounts receivable",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "17",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R18": {
     "role": "http://xpinc.com/role/Recoverabletaxes",
     "longName": "0000018 - Disclosure - Recoverable taxes",
     "shortName": "Recoverable taxes",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "18",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfTaxReceivablesAndPayablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfTaxReceivablesAndPayablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R19": {
     "role": "http://xpinc.com/role/Prepaidexpenses",
     "longName": "0000019 - Disclosure - Prepaid expenses",
     "shortName": "Prepaid expenses",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "19",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfPrepaymentsAndOtherAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfPrepaymentsAndOtherAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R20": {
     "role": "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamount",
     "longName": "0000020 - Disclosure - Expected Credit Losses on Financial Assets and Reconciliation of carrying amount",
     "shortName": "Expected Credit Losses on Financial Assets and Reconciliation of carrying amount",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "20",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfAllowanceForCreditLossesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfAllowanceForCreditLossesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R21": {
     "role": "http://xpinc.com/role/Investmentsinassociatesandjointventures",
     "longName": "0000021 - Disclosure - Investments in associates and joint ventures",
     "shortName": "Investments in associates and joint ventures",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "21",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfInterestsInOtherEntitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfInterestsInOtherEntitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R22": {
     "role": "http://xpinc.com/role/Propertyequipmentintangibleassetsandleases",
     "longName": "0000022 - Disclosure - Property, equipment, intangible assets and leases",
     "shortName": "Property, equipment, intangible assets and leases",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "22",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R23": {
     "role": "http://xpinc.com/role/Financinginstrumentspayable",
     "longName": "0000023 - Disclosure - Financing instruments payable",
     "shortName": "Financing instruments payable",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "23",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfFinancialLiabilitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfFinancialLiabilitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R24": {
     "role": "http://xpinc.com/role/Securitiestradingandintermediation",
     "longName": "0000024 - Disclosure - Securities trading and intermediation",
     "shortName": "Securities trading and intermediation",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "24",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:SecuritiesTradingAndIntermediationTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:SecuritiesTradingAndIntermediationTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R25": {
     "role": "http://xpinc.com/role/Borrowings",
     "longName": "0000025 - Disclosure - Borrowings",
     "shortName": "Borrowings",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "25",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfBorrowingsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfBorrowingsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R26": {
     "role": "http://xpinc.com/role/Otherfinancialassetsandfinancialliabilities",
     "longName": "0000026 - Disclosure - Other financial assets and financial liabilities",
     "shortName": "Other financial assets and financial liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "26",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfOtherFinancialAssetsAndOtherFinancialLiabilitiesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfOtherFinancialAssetsAndOtherFinancialLiabilitiesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R27": {
     "role": "http://xpinc.com/role/Socialandstatutoryobligations",
     "longName": "0000027 - Disclosure - Social and statutory obligations",
     "shortName": "Social and statutory obligations",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "27",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:SocialAndStatutoryObligationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:SocialAndStatutoryObligationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R28": {
     "role": "http://xpinc.com/role/Taxandsocialsecurityobligations",
     "longName": "0000028 - Disclosure - Tax and social security obligations",
     "shortName": "Tax and social security obligations",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "28",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:TaxAndSocialSecurityObligationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:TaxAndSocialSecurityObligationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R29": {
     "role": "http://xpinc.com/role/Retirementplansliabilities",
     "longName": "0000029 - Disclosure - Retirement plans liabilities",
     "shortName": "Retirement plans liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "29",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDefinedBenefitPlansExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDefinedBenefitPlansExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R30": {
     "role": "http://xpinc.com/role/Incometax",
     "longName": "0000030 - Disclosure - Income tax",
     "shortName": "Income tax",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "30",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfIncomeTaxExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfIncomeTaxExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R31": {
     "role": "http://xpinc.com/role/Equity",
     "longName": "0000031 - Disclosure - Equity",
     "shortName": "Equity",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "31",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R32": {
     "role": "http://xpinc.com/role/Relatedpartytransactions",
     "longName": "0000032 - Disclosure - Related party transactions",
     "shortName": "Related party transactions",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "32",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfRelatedPartyExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfRelatedPartyExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R33": {
     "role": "http://xpinc.com/role/Provisionsandcontingentliabilities",
     "longName": "0000033 - Disclosure - Provisions and contingent liabilities",
     "shortName": "Provisions and contingent liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "33",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R34": {
     "role": "http://xpinc.com/role/Totalrevenueandincome",
     "longName": "0000034 - Disclosure - Total revenue and income",
     "shortName": "Total revenue and income",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "34",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfRevenueExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfRevenueExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R35": {
     "role": "http://xpinc.com/role/Operatingcosts",
     "longName": "0000035 - Disclosure - Operating costs",
     "shortName": "Operating costs",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "35",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfOperatingCostsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfOperatingCostsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R36": {
     "role": "http://xpinc.com/role/Operatingexpensesbynature",
     "longName": "0000036 - Disclosure - Operating expenses by nature",
     "shortName": "Operating expenses by nature",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "36",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R37": {
     "role": "http://xpinc.com/role/Otheroperatingincomeexpensesnet",
     "longName": "0000037 - Disclosure - Other operating income/(expenses), net",
     "shortName": "Other operating income/(expenses), net",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "37",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R38": {
     "role": "http://xpinc.com/role/Sharebasedplan",
     "longName": "0000038 - Disclosure - Share-based plan",
     "shortName": "Share-based plan",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "38",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfSharebasedPaymentArrangementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfSharebasedPaymentArrangementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R39": {
     "role": "http://xpinc.com/role/Earningspersharebasicanddiluted",
     "longName": "0000039 - Disclosure - Earnings per share (basic and diluted)",
     "shortName": "Earnings per share (basic and diluted)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "39",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfEarningsPerShareExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfEarningsPerShareExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R40": {
     "role": "http://xpinc.com/role/Determinationoffairvalue",
     "longName": "0000040 - Disclosure - Determination of fair value",
     "shortName": "Determination of fair value",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "40",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfFairValueMeasurementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfFairValueMeasurementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R41": {
     "role": "http://xpinc.com/role/Managementoffinancialrisksandfinancialinstruments",
     "longName": "0000041 - Disclosure - Management of financial risks and financial instruments",
     "shortName": "Management of financial risks and financial instruments",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "41",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfFinancialRiskManagementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R42": {
     "role": "http://xpinc.com/role/Capitalmanagement",
     "longName": "0000042 - Disclosure - Capital management",
     "shortName": "Capital management",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "42",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:CapitalManagementTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:CapitalManagementTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R43": {
     "role": "http://xpinc.com/role/Cashflowinformation",
     "longName": "0000043 - Disclosure - Cash flow information",
     "shortName": "Cash flow information",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "43",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfCashFlowStatementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfCashFlowStatementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R44": {
     "role": "http://xpinc.com/role/Subsequentevents",
     "longName": "0000044 - Disclosure - Subsequent events",
     "shortName": "Subsequent events",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "44",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R45": {
     "role": "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies",
     "longName": "9954471 - Disclosure - Summary of significant accounting policies (Policies)",
     "shortName": "Summary of significant accounting policies (Policies)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "policies",
     "menuCat": "Policies",
     "order": "45",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfAccountingPolicyForBasisOfConsolidationPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfAccountingPolicyForBasisOfConsolidationPolicyTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R46": {
     "role": "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesTables",
     "longName": "9954472 - Disclosure - Summary of significant accounting policies (Tables)",
     "shortName": "Summary of significant accounting policies (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "46",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfDetailedInformationAboutDepreciationRatesOfPropertyPlantAndEquipmentTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfDetailedInformationAboutDepreciationRatesOfPropertyPlantAndEquipmentTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R47": {
     "role": "http://xpinc.com/role/GroupstructureTables",
     "longName": "9954473 - Disclosure - Group structure (Tables)",
     "shortName": "Group structure (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "47",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfInterestsInSubsidiariesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfBasisOfConsolidationExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfInterestsInSubsidiariesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfBasisOfConsolidationExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R48": {
     "role": "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsTables",
     "longName": "9954474 - Disclosure - Securities purchased (sold) under resale (repurchase) agreements (Tables)",
     "shortName": "Securities purchased (sold) under resale (repurchase) agreements (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "48",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:SummaryOfSecuritiesPurchasedUnderAgreementsToResellTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:SummaryOfSecuritiesPurchasedUnderAgreementsToResellTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R49": {
     "role": "http://xpinc.com/role/SecuritiesTables",
     "longName": "9954475 - Disclosure - Securities (Tables)",
     "shortName": "Securities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "49",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:SummaryOfSecuritiesClassifiedAtFairValueThroughProfitAndLossTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinancialAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:SummaryOfSecuritiesClassifiedAtFairValueThroughProfitAndLossTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinancialAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R50": {
     "role": "http://xpinc.com/role/DerivativefinancialinstrumentsTables",
     "longName": "9954476 - Disclosure - Derivative financial instruments (Tables)",
     "shortName": "Derivative financial instruments (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "50",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:SummaryOfDerivativeFinancialInstrumentsByMaturityTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:SummaryOfDerivativeFinancialInstrumentsByMaturityTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R51": {
     "role": "http://xpinc.com/role/HedgeaccountingTables",
     "longName": "9954477 - Disclosure - Hedge accounting (Tables)",
     "shortName": "Hedge accounting (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "51",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutHedgingInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutHedgingInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R52": {
     "role": "http://xpinc.com/role/LoanoperationsTables",
     "longName": "9954478 - Disclosure - Loan operations (Tables)",
     "shortName": "Loan operations (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "52",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:ScheduleOfLoanOperationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:ScheduleOfLoanOperationsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R53": {
     "role": "http://xpinc.com/role/AccountsreceivableTables",
     "longName": "9954479 - Disclosure - Accounts receivable (Tables)",
     "shortName": "Accounts receivable (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "53",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfDetailedInformationAboutReceivableTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfDetailedInformationAboutReceivableTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R54": {
     "role": "http://xpinc.com/role/RecoverabletaxesTables",
     "longName": "9954480 - Disclosure - Recoverable taxes (Tables)",
     "shortName": "Recoverable taxes (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "54",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:SummaryOfRecoverableTaxesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:SummaryOfRecoverableTaxesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R55": {
     "role": "http://xpinc.com/role/PrepaidexpensesTables",
     "longName": "9954481 - Disclosure - Prepaid expenses (Tables)",
     "shortName": "Prepaid expenses (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "55",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:SummaryOfPrepaidExpensesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:SummaryOfPrepaidExpensesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R56": {
     "role": "http://xpinc.com/role/ExpectedcreditlossesonfinancialassetsandreconciliationofcarryingamountTables",
     "longName": "9954482 - Disclosure - Expected credit losses on financial assets and reconciliation of carrying amount (Tables)",
     "shortName": "Expected credit losses on financial assets and reconciliation of carrying amount (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "56",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfCreditRiskExposureExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfCreditRiskExposureExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R57": {
     "role": "http://xpinc.com/role/InvestmentsinassociatesandjointventuresTables",
     "longName": "9954483 - Disclosure - Investments in associates and joint ventures (Tables)",
     "shortName": "Investments in associates and joint ventures (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "57",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfSignificantInvestmentsInAssociatesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfSignificantInvestmentsInAssociatesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R58": {
     "role": "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesTables",
     "longName": "9954484 - Disclosure - Property, equipment, intangible assets and leases (Tables)",
     "shortName": "Property, equipment, intangible assets and leases (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "58",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R59": {
     "role": "http://xpinc.com/role/FinancinginstrumentspayableTables",
     "longName": "9954485 - Disclosure - Financing instruments payable (Tables)",
     "shortName": "Financing instruments payable (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "59",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfDetailedInformationAboutFinancingInstrumentsPayableTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfDetailedInformationAboutFinancingInstrumentsPayableTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R60": {
     "role": "http://xpinc.com/role/SecuritiestradingandintermediationTables",
     "longName": "9954486 - Disclosure - Securities trading and intermediation (Tables)",
     "shortName": "Securities trading and intermediation (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "60",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:SummaryOfSecuritiesTradingAndIntermediationAssetsAndLiabilitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:SummaryOfSecuritiesTradingAndIntermediationAssetsAndLiabilitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R61": {
     "role": "http://xpinc.com/role/BorrowingsTables",
     "longName": "9954487 - Disclosure - Borrowings (Tables)",
     "shortName": "Borrowings (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "61",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R62": {
     "role": "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesTables",
     "longName": "9954488 - Disclosure - Other financial assets and financial liabilities (Tables)",
     "shortName": "Other financial assets and financial liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "62",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfOtherFinancialAssetsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfOtherFinancialAssetsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R63": {
     "role": "http://xpinc.com/role/SocialandstatutoryobligationsTables",
     "longName": "9954489 - Disclosure - Social and statutory obligations (Tables)",
     "shortName": "Social and statutory obligations (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "63",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:ScheduleOfSocialAndStatutoryObligationsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:ScheduleOfSocialAndStatutoryObligationsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R64": {
     "role": "http://xpinc.com/role/TaxandsocialsecurityobligationsTables",
     "longName": "9954490 - Disclosure - Tax and social security obligations (Tables)",
     "shortName": "Tax and social security obligations (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "64",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:SummaryOfTaxAndSocialSecurityObligationsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:SummaryOfTaxAndSocialSecurityObligationsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R65": {
     "role": "http://xpinc.com/role/RetirementplansliabilitiesTables",
     "longName": "9954491 - Disclosure - Retirement plans liabilities (Tables)",
     "shortName": "Retirement plans liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "65",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfNetDefinedBenefitLiabilityAssetExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfNetDefinedBenefitLiabilityAssetExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R66": {
     "role": "http://xpinc.com/role/IncometaxTables",
     "longName": "9954492 - Disclosure - Income tax (Tables)",
     "shortName": "Income tax (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "66",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R67": {
     "role": "http://xpinc.com/role/EquityTables",
     "longName": "9954493 - Disclosure - Equity (Tables)",
     "shortName": "Equity (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "67",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfClassesOfShareCapitalExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfClassesOfShareCapitalExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R68": {
     "role": "http://xpinc.com/role/RelatedpartytransactionsTables",
     "longName": "9954494 - Disclosure - Related party transactions (Tables)",
     "shortName": "Related party transactions (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "68",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfKeyManagementPersonnelCompensationExpenseTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfKeyManagementPersonnelCompensationExpenseTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R69": {
     "role": "http://xpinc.com/role/ProvisionsandcontingentliabilitiesTables",
     "longName": "9954495 - Disclosure - Provisions and contingent liabilities (Tables)",
     "shortName": "Provisions and contingent liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "69",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfOtherProvisionsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfOtherProvisionsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R70": {
     "role": "http://xpinc.com/role/TotalrevenueandincomeTables",
     "longName": "9954496 - Disclosure - Total revenue and income (Tables)",
     "shortName": "Total revenue and income (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "70",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisaggregationOfRevenueByMajorServiceLinesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisaggregationOfRevenueByMajorServiceLinesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R71": {
     "role": "http://xpinc.com/role/OperatingcostsTables",
     "longName": "9954497 - Disclosure - Operating costs (Tables)",
     "shortName": "Operating costs (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "71",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:SummaryOfOperatingCostsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:SummaryOfOperatingCostsTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R72": {
     "role": "http://xpinc.com/role/OperatingexpensesbynatureTables",
     "longName": "9954498 - Disclosure - Operating expenses by nature (Tables)",
     "shortName": "Operating expenses by nature (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "72",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfOperatingExpensesByNatureTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfOperatingExpensesByNatureTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R73": {
     "role": "http://xpinc.com/role/OtheroperatingincomeexpensesnetTables",
     "longName": "9954499 - Disclosure - Other operating income/(expenses), net (Tables)",
     "shortName": "Other operating income/(expenses), net (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "73",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfOtherOperatingIncomeNetTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfOtherOperatingIncomeNetTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R74": {
     "role": "http://xpinc.com/role/SharebasedplanTables",
     "longName": "9954500 - Disclosure - Share-based plan (Tables)",
     "shortName": "Share-based plan (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "74",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfNumberAndWeightedAverageExercisePricesOfOtherEquityInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfNumberAndWeightedAverageExercisePricesOfOtherEquityInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R75": {
     "role": "http://xpinc.com/role/EarningspersharebasicanddilutedTables",
     "longName": "9954501 - Disclosure - Earnings per share (basic and diluted) (Tables)",
     "shortName": "Earnings per share (basic and diluted) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "75",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:EarningsPerShareExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:EarningsPerShareExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R76": {
     "role": "http://xpinc.com/role/DeterminationoffairvalueTables",
     "longName": "9954502 - Disclosure - Determination of fair value (Tables)",
     "shortName": "Determination of fair value (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "76",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfFairValueMeasurementOfAssetsAndLiabilitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:DisclosureOfFairValueMeasurementOfAssetsAndLiabilitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R77": {
     "role": "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsTables",
     "longName": "9954503 - Disclosure - Management of financial risks and financial instruments (Tables)",
     "shortName": "Management of financial risks and financial instruments (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "77",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfCreditRiskExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfCreditRiskExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R78": {
     "role": "http://xpinc.com/role/CapitalmanagementTables",
     "longName": "9954504 - Disclosure - Capital management (Tables)",
     "shortName": "Capital management (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "78",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:CapitalManagementTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:CapitalManagementTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R79": {
     "role": "http://xpinc.com/role/CashflowinformationTables",
     "longName": "9954505 - Disclosure - Cash flow information (Tables)",
     "shortName": "Cash flow information (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "79",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R80": {
     "role": "http://xpinc.com/role/OperationsAdditionalinformationDetails",
     "longName": "9954506 - Disclosure - Operations - Additional information (Details)",
     "shortName": "Operations - Additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "80",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:PercentageOfOwnershipHeldByHoldingCompany",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-68",
      "name": "xp:ShareRepurchaseLimit",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-9",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R81": {
     "role": "http://xpinc.com/role/BasisofpreparationofthefinancialstatementsandchangestotheGroupsaccountingpoliciesDetails",
     "longName": "9954507 - Disclosure - Basis of preparation of the financial statements and changes to the Group\u2019s accounting policies (Details)",
     "shortName": "Basis of preparation of the financial statements and changes to the Group\u2019s accounting policies (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "81",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:NumbersOfOperatingSegments",
      "unitRef": "segement",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:NumbersOfOperatingSegments",
      "unitRef": "segement",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R82": {
     "role": "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails",
     "longName": "9954508 - Disclosure - Summary of significant accounting policies - Additional information (Details)",
     "shortName": "Summary of significant accounting policies - Additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "82",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:IncreasedCreditRiskWhenContractualPaymentsArePastDue",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:IncreasedCreditRiskWhenContractualPaymentsArePastDue",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R83": {
     "role": "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofdepreciationofpropertyandequipmentDetails",
     "longName": "9954509 - Disclosure - Summary of significant accounting policies - Summary of depreciation of property and equipment (Details)",
     "shortName": "Summary of significant accounting policies - Summary of depreciation of property and equipment (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "83",
     "firstAnchor": {
      "contextRef": "c-81",
      "name": "ifrs-full:DepreciationRatePropertyPlantAndEquipment",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfDetailedInformationAboutDepreciationRatesOfPropertyPlantAndEquipmentTableTextBlock",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-81",
      "name": "ifrs-full:DepreciationRatePropertyPlantAndEquipment",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfDetailedInformationAboutDepreciationRatesOfPropertyPlantAndEquipmentTableTextBlock",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R84": {
     "role": "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofusefullivesofintangibleassetsDetails",
     "longName": "9954510 - Disclosure - Summary of significant accounting policies - Summary of useful lives of intangible assets (Details)",
     "shortName": "Summary of significant accounting policies - Summary of useful lives of intangible assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "84",
     "firstAnchor": {
      "contextRef": "c-86",
      "name": "ifrs-full:UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-86",
      "name": "ifrs-full:UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R85": {
     "role": "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails",
     "longName": "9954511 - Disclosure - Group structure - Summary of direct and indirect interests of company in its subsidiaries (Details)",
     "shortName": "Group structure - Summary of direct and indirect interests of company in its subsidiaries (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "85",
     "firstAnchor": {
      "contextRef": "c-105",
      "name": "ifrs-full:NameOfSubsidiary",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfInterestsInSubsidiariesExplanatory",
       "ifrs-full:DisclosureOfBasisOfConsolidationExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-105",
      "name": "ifrs-full:NameOfSubsidiary",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfInterestsInSubsidiariesExplanatory",
       "ifrs-full:DisclosureOfBasisOfConsolidationExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R86": {
     "role": "http://xpinc.com/role/GroupstructureSummaryofintangibleassetsacquiredDetails",
     "longName": "9954512 - Disclosure - Group structure - Summary of intangible assets acquired (Details)",
     "shortName": "Group structure - Summary of intangible assets acquired (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "86",
     "firstAnchor": {
      "contextRef": "c-331",
      "name": "ifrs-full:IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:SummaryOfFairValueOfTheIdentifiableAssetsAcquiredAndLiabilitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-321",
      "name": "ifrs-full:IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:SummaryOfFairValueOfTheIdentifiableAssetsAcquiredAndLiabilitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R87": {
     "role": "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
     "longName": "9954513 - Disclosure - Group structure - Summary of fair value of the identifiable assets acquired and liabilities (Details)",
     "shortName": "Group structure - Summary of fair value of the identifiable assets acquired and liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "87",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:ProceedsFromIssuingShares",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-342",
      "name": "xp:GoodwillArisingOnAcquisitionOfSubsidiaries",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:SummaryOfFairValueOfTheIdentifiableAssetsAcquiredAndLiabilities1TableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R88": {
     "role": "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails",
     "longName": "9954514 - Disclosure - Securities purchased (sold) under resale (repurchase) agreements - Summary of securities purchased under agreements to resell (Details)",
     "shortName": "Securities purchased (sold) under resale (repurchase) agreements - Summary of securities purchased under agreements to resell (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "88",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:AllowanceAccountForCreditLossesOfReverseRepurchaseAgreementsAndCashCollateralOnSecuritiesBorrowed",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:AllowanceAccountForCreditLossesOfReverseRepurchaseAgreementsAndCashCollateralOnSecuritiesBorrowed",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R89": {
     "role": "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsAdditionalinformationDetails",
     "longName": "9954515 - Disclosure - Securities purchased (sold) under resale (repurchase) agreements - Additional information (Details)",
     "shortName": "Securities purchased (sold) under resale (repurchase) agreements - Additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "89",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:ReverseRepurchaseAgreementsAndCashCollateralOnSecuritiesBorrowedIncludedInCashAndCashEquivalents",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:SecuritiesSoldUnderRepurchaseAgreementsInterestRate",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R90": {
     "role": "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails",
     "longName": "9954516 - Disclosure - Securities purchased (sold) under resale (repurchase) agreements - Securities sold under repurchase agreements (Details)",
     "shortName": "Securities purchased (sold) under resale (repurchase) agreements - Securities sold under repurchase agreements (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "90",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:FinancialLiabilitiesAtAmortizedCostSecuritiesSoldUnderRepurchaseAgreements",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfFinancialLiabilitiesIntoGroupingsBasedOnTheirContractualMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-384",
      "name": "xp:FinancialLiabilitiesAtAmortizedCostSecuritiesSoldUnderRepurchaseAgreements",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R91": {
     "role": "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails",
     "longName": "9954517 - Disclosure - Securities - Summary of Securities Classified at Fair Value Through Profit or Loss (Details)",
     "shortName": "Securities - Summary of Securities Classified at Fair Value Through Profit or Loss (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "91",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:FinancialAssetsAtFairValueThroughProfitOrLossClassifiedAsHeldForTrading",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:InvestmentContractsWithLegalFormOfRetirementPlans",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "xp:SummaryOfSecuritiesClassifiedAtFairValueThroughProfitAndLossTableTextBlock",
       "ifrs-full:DisclosureOfFinancialAssetsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R92": {
     "role": "http://xpinc.com/role/SecuritiesSummaryofSecuritiesatFairValueThroughOtherComprehensiveIncomeDetails",
     "longName": "9954518 - Disclosure - Securities - Summary of Securities at Fair Value Through Other Comprehensive Income (Details)",
     "shortName": "Securities - Summary of Securities at Fair Value Through Other Comprehensive Income (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "92",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:FinancialAssetsAtFairValueThroughOtherComprehensiveIncome",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-526",
      "name": "ifrs-full:FinancialAssetsAtFairValueThroughOtherComprehensiveIncome",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:SummaryOfSecuritiesClassifiedAtFairValueThroughProfitAndLossAndAtFairValueThroughOtherComprehensiveIncomeTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R93": {
     "role": "http://xpinc.com/role/SecuritiesSummaryofSecuritiesEvaluatedatAmortizedCostDetails",
     "longName": "9954519 - Disclosure - Securities - Summary of Securities Evaluated at Amortized Cost (Details)",
     "shortName": "Securities - Summary of Securities Evaluated at Amortized Cost (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "93",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:FinancialAssetsAtAmortizedCostSecurities",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-566",
      "name": "xp:ExpectedCreditLoss",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "xp:SummaryOfFinancialAssetsAtAmortizedCostSecuritiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R94": {
     "role": "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails",
     "longName": "9954520 - Disclosure - Securities - Summary of Securities on the Financial Liabilities Classified at Fair Value Through Profit or Loss (Details)",
     "shortName": "Securities - Summary of Securities on the Financial Liabilities Classified at Fair Value Through Profit or Loss (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "94",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:FinancialLiabilities",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfFinancialLiabilitiesIntoGroupingsBasedOnTheirContractualMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-572",
      "name": "ifrs-full:NotesAndDebenturesIssued",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R95": {
     "role": "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails",
     "longName": "9954521 - Disclosure - Securities - Summary of Securities Classified by Maturity (Details)",
     "shortName": "Securities - Summary of Securities Classified by Maturity (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "95",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-582",
      "name": "ifrs-full:CurrentFinancialLiabilities",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:SummaryOfSecuritiesClassifiedByMaturityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R96": {
     "role": "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails",
     "longName": "9954522 - Disclosure - Derivative financial instruments - Summary of derivative financial instruments portfolio (assets and liabilities) by type of instrument (Details)",
     "shortName": "Derivative financial instruments - Summary of derivative financial instruments portfolio (assets and liabilities) by type of instrument (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "96",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:DerivativeFinancialAssetsNotionalAmount",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:SummaryOfDerivativeFinancialInstrumentsByMaturityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:PercentageOfDerivativeFinancialAssets",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:SummaryOfDerivativeFinancialInstrumentsByMaturityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R97": {
     "role": "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
     "longName": "9954523 - Disclosure - Derivative financial instruments - Summary of derivative financial instruments by index (Details)",
     "shortName": "Derivative financial instruments - Summary of derivative financial instruments by index (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "97",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:DerivativeFinancialAssetsNotionalAmount",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:SummaryOfDerivativeFinancialInstrumentsByMaturityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:DerivativeFinancialAssetsLiabilitiesNet",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "xp:SummaryOfDerivativeFinancialInstrumentsByIndexTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R98": {
     "role": "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails",
     "longName": "9954524 - Disclosure - Hedge accounting - Summary of detailed information about hedging instruments (Details)",
     "shortName": "Hedge accounting - Summary of detailed information about hedging instruments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "98",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:NotionalAmount",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-754",
      "name": "ifrs-full:HedgedItemAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfDetailedInformationAboutHedgingInstrumentsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R99": {
     "role": "http://xpinc.com/role/HedgeaccountingHedgediteminformationDetails",
     "longName": "9954525 - Disclosure - Hedge accounting - Hedged item information (Details)",
     "shortName": "Hedge accounting - Hedged item information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "99",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:NotionalAmount",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:AccumulatedFairValueHedgeAdjustmentOnHedgedItemIncludedInCarryingAmountAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R100": {
     "role": "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails",
     "longName": "9954526 - Disclosure - Hedge accounting - Hedged item maturity (Details)",
     "shortName": "Hedge accounting - Hedged item maturity (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "100",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:NotionalAmount",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-822",
      "name": "ifrs-full:NotionalAmount",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ifrs-full:InformationAboutHowDesignatedRiskComponentRelatesToHedgedItemInItsEntiretyExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R101": {
     "role": "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails",
     "longName": "9954528 - Disclosure - Loan operations - Loan operations by type (Details)",
     "shortName": "Loan operations - Loan operations by type (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "101",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-886",
      "name": "ifrs-full:AllowanceAccountForCreditLossesOfFinancialAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "xp:ScheduleOfLoanOperationsTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R102": {
     "role": "http://xpinc.com/role/LoanoperationsLoanoperationsbymaturityDetails",
     "longName": "9954529 - Disclosure - Loan operations - Loan operations by maturity (Details)",
     "shortName": "Loan operations - Loan operations by maturity (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "102",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-888",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R103": {
     "role": "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails",
     "longName": "9954530 - Disclosure - Loan operations - Loan operations by concentration (Details)",
     "shortName": "Loan operations - Loan operations by concentration (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "103",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-896",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R104": {
     "role": "http://xpinc.com/role/AccountsreceivableDetails",
     "longName": "9954531 - Disclosure - Accounts receivable (Details)",
     "shortName": "Accounts receivable (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "104",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:ReceivablesFromContractsWithCustomers",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfDetailedInformationAboutReceivableTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:ReceivablesFromContractsWithCustomers",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfDetailedInformationAboutReceivableTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R105": {
     "role": "http://xpinc.com/role/RecoverabletaxesDetails",
     "longName": "9954532 - Disclosure - Recoverable taxes (Details)",
     "shortName": "Recoverable taxes (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "105",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:CurrentTaxAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:CurrentTaxAssetsCurrent",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "xp:SummaryOfRecoverableTaxesTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R106": {
     "role": "http://xpinc.com/role/PrepaidexpensesDetails",
     "longName": "9954533 - Disclosure - Prepaid expenses (Details)",
     "shortName": "Prepaid expenses (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "106",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:Prepayments",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:CurrentPrepayments",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "xp:SummaryOfPrepaidExpensesTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R107": {
     "role": "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
     "longName": "9954534 - Disclosure - Expected Credit Losses on Financial Assets and Reconciliation of carrying amount (Details)",
     "shortName": "Expected Credit Losses on Financial Assets and Reconciliation of carrying amount (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "107",
     "firstAnchor": {
      "contextRef": "c-6",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1003",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R108": {
     "role": "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountECLsmeasuredusingsimplifiedapproachDetails",
     "longName": "9954535 - Disclosure - Expected Credit Losses on Financial Assets and Reconciliation of carrying amount - ECLs measured using simplified approach (Details)",
     "shortName": "Expected Credit Losses on Financial Assets and Reconciliation of carrying amount - ECLs measured using simplified approach (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "108",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1041",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R109": {
     "role": "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails",
     "longName": "9954536 - Disclosure - Expected Credit Losses on Financial Assets and Reconciliation of carrying amount - Expected credit losses (Details)",
     "shortName": "Expected Credit Losses on Financial Assets and Reconciliation of carrying amount - Expected credit losses (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "109",
     "firstAnchor": {
      "contextRef": "c-6",
      "name": "ifrs-full:AllowanceAccountForCreditLossesOfFinancialAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1003",
      "name": "ifrs-full:AllowanceAccountForCreditLossesOfFinancialAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R110": {
     "role": "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossusingsimplifiedmethodDetails",
     "longName": "9954537 - Disclosure - Expected Credit Losses on Financial Assets and Reconciliation of carrying amount - Expected credit loss using simplified method (Details)",
     "shortName": "Expected Credit Losses on Financial Assets and Reconciliation of carrying amount - Expected credit loss using simplified method (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "110",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:AllowanceAccountForCreditLossesOfFinancialAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1041",
      "name": "ifrs-full:AllowanceAccountForCreditLossesOfFinancialAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R111": {
     "role": "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails",
     "longName": "9954538 - Disclosure - Expected Credit Losses on Financial Assets and Reconciliation of carrying amount - Expected credit loss segregated by product (Details)",
     "shortName": "Expected Credit Losses on Financial Assets and Reconciliation of carrying amount - Expected credit loss segregated by product (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "111",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:AllowanceAccountForCreditLossesOfFinancialAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R112": {
     "role": "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails",
     "longName": "9954539 - Disclosure - Investments in associates and joint ventures (Details)",
     "shortName": "Investments in associates and joint ventures (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "112",
     "firstAnchor": {
      "contextRef": "c-6",
      "name": "ifrs-full:InvestmentsInSubsidiariesJointVenturesAndAssociates",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ifrs-full:DisclosureOfSignificantInvestmentsInAssociatesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-7",
      "name": "xp:IncreaseDueToAcquisitionsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ifrs-full:DisclosureOfSignificantInvestmentsInAssociatesExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R113": {
     "role": "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails",
     "longName": "9954540 - Disclosure - Property, equipment, intangible assets and leases - Summary of property and equipment (Details)",
     "shortName": "Property, equipment, intangible assets and leases - Summary of property and equipment (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "113",
     "firstAnchor": {
      "contextRef": "c-6",
      "name": "ifrs-full:PropertyPlantAndEquipment",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-17",
      "name": "ifrs-full:PropertyPlantAndEquipment",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R114": {
     "role": "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails",
     "longName": "9954541 - Disclosure - Property, equipment, intangible assets and leases - Summary of intangible assets (Details)",
     "shortName": "Property, equipment, intangible assets and leases - Summary of intangible assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "114",
     "firstAnchor": {
      "contextRef": "c-6",
      "name": "ifrs-full:IntangibleAssetsAndGoodwill",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-17",
      "name": "ifrs-full:IntangibleAssetsAndGoodwill",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R115": {
     "role": "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesAdditionaldetailsDetails",
     "longName": "9954542 - Disclosure - Property, equipment, intangible assets and leases - Additional details (Details)",
     "shortName": "Property, equipment, intangible assets and leases - Additional details (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "115",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:DescriptionOfGrowthRateUsedToExtrapolateCashFlowProjections",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:DescriptionOfGrowthRateUsedToExtrapolateCashFlowProjections",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R116": {
     "role": "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails",
     "longName": "9954543 - Disclosure - Property, equipment, intangible assets and leases - Summary of right-of-use assets and lease liabilities (Details)",
     "shortName": "Property, equipment, intangible assets and leases - Summary of right-of-use assets and lease liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "116",
     "firstAnchor": {
      "contextRef": "c-6",
      "name": "ifrs-full:RightofuseAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-33",
      "name": "ifrs-full:RightofuseAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R117": {
     "role": "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails",
     "longName": "9954544 - Disclosure - Financing instruments payable - Schedule (Details)",
     "shortName": "Financing instruments payable - Schedule (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "117",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:DepositsFinancialBillsAndStructuredOperationsCertificates",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfDetailedInformationAboutFinancingInstrumentsPayableTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:DepositsFromBanksAndCustomers",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfDetailedInformationAboutFinancingInstrumentsPayableTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R118": {
     "role": "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails",
     "longName": "9954545 - Disclosure - Financing instruments payable - Maturity (Details)",
     "shortName": "Financing instruments payable - Maturity (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "118",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:BalancesOnDemandDepositsFromCustomers",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1249",
      "name": "ifrs-full:BalancesOnDemandDepositsFromCustomers",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R119": {
     "role": "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesDetails",
     "longName": "9954546 - Disclosure - Financing instruments payable - Debt securities (Details)",
     "shortName": "Financing instruments payable - Debt securities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "119",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:BondsIssued",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfDetailedInformationAboutFinancingInstrumentsPayableTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:CurrentDebtInstrumentsIssued",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfDebtSecuritiesExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R120": {
     "role": "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails",
     "longName": "9954547 - Disclosure - Financing instruments payable - Debt securities, additional information (Details)",
     "shortName": "Financing instruments payable - Debt securities, additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "120",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:NotionalAmount",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1263",
      "name": "ifrs-full:NotionalAmount",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-6",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R121": {
     "role": "http://xpinc.com/role/SecuritiestradingandintermediationDetails",
     "longName": "9954548 - Disclosure - Securities trading and intermediation (Details)",
     "shortName": "Securities trading and intermediation (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "121",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:CashAndSettlementRecordsAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "xp:SummaryOfSecuritiesTradingAndIntermediationAssetsAndLiabilitiesTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:CashAndSettlementRecordsAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "xp:SummaryOfSecuritiesTradingAndIntermediationAssetsAndLiabilitiesTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R122": {
     "role": "http://xpinc.com/role/BorrowingsDetails",
     "longName": "9954549 - Disclosure - Borrowings (Details)",
     "shortName": "Borrowings (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "122",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:Borrowings",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:BorrowingsAndLeaseLiabilitiesCurrent",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R123": {
     "role": "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails",
     "longName": "9954550 - Disclosure - Other financial assets and financial liabilities - Other financial assets (Details)",
     "shortName": "Other financial assets and financial liabilities - Other financial assets (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "123",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:ForeignPortfolioInvestment",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:ForeignPortfolioInvestment",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R124": {
     "role": "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails",
     "longName": "9954551 - Disclosure - Other financial assets and financial liabilities - Other financial liabilities (Details)",
     "shortName": "Other financial assets and financial liabilities - Other financial liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "124",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:ForeignExchangeLiabilities",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:ForeignExchangeLiabilities",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R125": {
     "role": "http://xpinc.com/role/SocialandstatutoryobligationsAdditionalinformationDetails",
     "longName": "9954552 - Disclosure - Social and statutory obligations - Additional information (Details)",
     "shortName": "Social and statutory obligations - Additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "125",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:SocialAndStatutoryObligations",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "xp:ScheduleOfSocialAndStatutoryObligationsTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R126": {
     "role": "http://xpinc.com/role/SocialandstatutoryobligationsSummaryofsocialandstatutoryobligationsDetails",
     "longName": "9954553 - Disclosure - Social and statutory obligations - Summary of social and statutory obligations (Details)",
     "shortName": "Social and statutory obligations - Summary of social and statutory obligations (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "126",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:ObligationsToNonControllingInterest",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "xp:ScheduleOfSocialAndStatutoryObligationsTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:ObligationsToNonControllingInterest",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "xp:ScheduleOfSocialAndStatutoryObligationsTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R127": {
     "role": "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails",
     "longName": "9954554 - Disclosure - Tax and social security obligations - Summary of Tax and Social Security Obligations (Details)",
     "shortName": "Tax and social security obligations - Summary of Tax and Social Security Obligations (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "127",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:CurrentTaxLiabilities",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "xp:SummaryOfTaxAndSocialSecurityObligationsTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:CurrentTaxLiabilities",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "xp:SummaryOfTaxAndSocialSecurityObligationsTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R128": {
     "role": "http://xpinc.com/role/TaxandsocialsecurityobligationsAdditionalInformationDetails",
     "longName": "9954555 - Disclosure - Tax and social security obligations - Additional Information (Details)",
     "shortName": "Tax and social security obligations - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "128",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:CorporateIncomeTaxLiability",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "xp:SummaryOfTaxAndSocialSecurityObligationsTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:CorporateIncomeTaxLiability",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "xp:SummaryOfTaxAndSocialSecurityObligationsTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R129": {
     "role": "http://xpinc.com/role/RetirementplansliabilitiesDetails",
     "longName": "9954556 - Disclosure - Retirement plans liabilities (Details)",
     "shortName": "Retirement plans liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "129",
     "firstAnchor": {
      "contextRef": "c-6",
      "name": "ifrs-full:LiabilityAssetOfDefinedBenefitPlans",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ifrs-full:DisclosureOfNetDefinedBenefitLiabilityAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-33",
      "name": "ifrs-full:LiabilityAssetOfDefinedBenefitPlans",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ifrs-full:DisclosureOfNetDefinedBenefitLiabilityAssetExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R130": {
     "role": "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails",
     "longName": "9954557 - Disclosure - Income tax - Summary of components of deferred tax assets and deferred tax liabilities (Details)",
     "shortName": "Income tax - Summary of components of deferred tax assets and deferred tax liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "130",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:DeferredTaxLiabilityAsset",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfDeferredTaxesExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DeferredTaxExpenseIncome",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R131": {
     "role": "http://xpinc.com/role/IncometaxSummaryofreconciliationofchangesindeferredtaxliabilityassetDetails",
     "longName": "9954558 - Disclosure - Income tax - Summary of reconciliation of changes in deferred tax liability asset (Details)",
     "shortName": "Income tax - Summary of reconciliation of changes in deferred tax liability asset (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "131",
     "firstAnchor": {
      "contextRef": "c-6",
      "name": "ifrs-full:DeferredTaxLiabilityAsset",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:IncreaseDecreaseThroughNetExchangeDifferencesDeferredTaxLiabilityAsset",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfDeferredTaxesExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R132": {
     "role": "http://xpinc.com/role/IncometaxAdditionalinformationDetails",
     "longName": "9954559 - Disclosure - Income tax - Additional information (Details)",
     "shortName": "Income tax - Additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "132",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:UnusedTaxLossesForWhichNoDeferredTaxAssetRecognised",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:UnusedTaxLossesForWhichNoDeferredTaxAssetRecognised",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R133": {
     "role": "http://xpinc.com/role/IncometaxSummaryofincometaxcalculationDetails",
     "longName": "9954560 - Disclosure - Income tax - Summary of income tax calculation (Details)",
     "shortName": "Income tax - Summary of income tax calculation (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "133",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:ProfitLossBeforeTax",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:TaxExpenseIncomeAtApplicableTaxRate",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R134": {
     "role": "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails",
     "longName": "9954561 - Disclosure - Income tax - Summary of analysis of other comprehensive income by item (Details)",
     "shortName": "Income tax - Summary of analysis of other comprehensive income by item (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "134",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfAnalysisOfOtherComprehensiveIncomeByItemExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfAnalysisOfOtherComprehensiveIncomeByItemExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R135": {
     "role": "http://xpinc.com/role/EquityAdditionalinformationDetails",
     "longName": "9954562 - Disclosure - Equity - Additional information (Details)",
     "shortName": "Equity - Additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "135",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:AuthorizedShareCapital",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:AuthorizedShareCapital",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R136": {
     "role": "http://xpinc.com/role/EquitySummaryofissuancesandconversationsofsharesDetails",
     "longName": "9954563 - Disclosure - Equity - Summary of issuances and conversations of shares (Details)",
     "shortName": "Equity - Summary of issuances and conversations of shares (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "136",
     "firstAnchor": {
      "contextRef": "c-6",
      "name": "ifrs-full:NumberOfSharesOutstanding",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfClassesOfShareCapitalExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:TransferOfClassOfShares",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfClassesOfShareCapitalExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R137": {
     "role": "http://xpinc.com/role/RelatedpartytransactionsSummaryofkeymanagementpersonnelcompensationexpenseDetails",
     "longName": "9954564 - Disclosure - Related party transactions - Summary of key management personnel compensation expense (Details)",
     "shortName": "Related party transactions - Summary of key management personnel compensation expense (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "137",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:KeyManagementPersonnelFixedCompensation",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfKeyManagementPersonnelCompensationExpenseTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:KeyManagementPersonnelFixedCompensation",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfKeyManagementPersonnelCompensationExpenseTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R138": {
     "role": "http://xpinc.com/role/RelatedpartytransactionsSummaryoftransactionsbetweenrelatedpartiesexplanatoryDetails",
     "longName": "9954565 - Disclosure - Related party transactions - Summary of transactions between related parties explanatory (Details)",
     "shortName": "Related party transactions - Summary of transactions between related parties explanatory (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "138",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:DueFromDueToRelatedPartyTransactions",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfTransactionsBetweenRelatedPartiesExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:DueFromDueToRelatedPartyTransactions",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfTransactionsBetweenRelatedPartiesExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R139": {
     "role": "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofotherprovisionsDetails",
     "longName": "9954566 - Disclosure - Provisions and contingent liabilities - Summary of other provisions (Details)",
     "shortName": "Provisions and contingent liabilities - Summary of other provisions (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "139",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:OtherProvisions",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfChangesInOtherProvisionsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:JudicialDeposits",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfOtherProvisionsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R140": {
     "role": "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofchangesinotherprovisionsDetails",
     "longName": "9954567 - Disclosure - Provisions and contingent liabilities - Summary of changes in other provisions (Details)",
     "shortName": "Provisions and contingent liabilities - Summary of changes in other provisions (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "140",
     "firstAnchor": {
      "contextRef": "c-6",
      "name": "ifrs-full:OtherProvisions",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfOtherProvisionsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:IncreaseDecreaseInProvisionBusinessCombination",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfChangesInOtherProvisionsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R141": {
     "role": "http://xpinc.com/role/ProvisionsandcontingentliabilitiesAdditionalinformationDetails",
     "longName": "9954568 - Disclosure - Provisions and contingent liabilities - Additional information (Details)",
     "shortName": "Provisions and contingent liabilities - Additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "141",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:OtherProvisions",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfChangesInOtherProvisionsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1388",
      "name": "ifrs-full:OtherProvisions",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R142": {
     "role": "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofcontingentliabilitiesDetails",
     "longName": "9954569 - Disclosure - Provisions and contingent liabilities - Summary of contingent liabilities (Details)",
     "shortName": "Provisions and contingent liabilities - Summary of contingent liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "142",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:EstimatedFinancialEffectOfContingentLiabilities",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfContingentLiabilitiesExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:EstimatedFinancialEffectOfContingentLiabilities",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfContingentLiabilitiesExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R143": {
     "role": "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails",
     "longName": "9954570 - Disclosure - Total revenue and income - Disaggregation of revenue by major service lines (Details)",
     "shortName": "Total revenue and income - Disaggregation of revenue by major service lines (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "143",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:BrokerageFeeIncome",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisaggregationOfRevenueByMajorServiceLinesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:BrokerageFeeIncome",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisaggregationOfRevenueByMajorServiceLinesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R144": {
     "role": "http://xpinc.com/role/TotalrevenueandincomeSummaryofnetincomefromfinancialinstrumentsDetails",
     "longName": "9954571 - Disclosure - Total revenue and income - Summary of net income from financial instruments (Details)",
     "shortName": "Total revenue and income - Summary of net income from financial instruments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "144",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:InterestIncomeOnFinancialAssetsDesignatedAtFairValueThroughProfitOrLossBeforeTaxes",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfNetIncomeFromFinancialInstrumentsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:InterestIncomeOnFinancialAssetsDesignatedAtFairValueThroughProfitOrLossBeforeTaxes",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfNetIncomeFromFinancialInstrumentsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R145": {
     "role": "http://xpinc.com/role/TotalrevenueandincomeSummaryofdisaggregationbygeographiclocationDetails",
     "longName": "9954572 - Disclosure - Total revenue and income - Summary of disaggregation by geographic location (Details)",
     "shortName": "Total revenue and income - Summary of disaggregation by geographic location (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "145",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:RevenueAndOperatingIncome",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfDisaggregationByGeographicLocationTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:SelectedAssets",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfDisaggregationByGeographicLocationTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R146": {
     "role": "http://xpinc.com/role/OperatingcostsDetails",
     "longName": "9954573 - Disclosure - Operating costs (Details)",
     "shortName": "Operating costs (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "146",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:FeeAndCommissionExpense",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "xp:SummaryOfOperatingCostsTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:FeeAndCommissionExpense",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "xp:SummaryOfOperatingCostsTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R147": {
     "role": "http://xpinc.com/role/OperatingexpensesbynatureDetails",
     "longName": "9954574 - Disclosure - Operating expenses by nature (Details)",
     "shortName": "Operating expenses by nature (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "147",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:SellingExpense",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:AdvertisingExpense",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "xp:DisclosureOfOperatingExpensesByNatureTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R148": {
     "role": "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails",
     "longName": "9954575 - Disclosure - Other operating income/(expenses), net (Details)",
     "shortName": "Other operating income/(expenses), net (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "148",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:MiscellaneousOtherOperatingIncome",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "xp:DisclosureOfOtherOperatingIncomeNetTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:MiscellaneousOtherOperatingIncome",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "xp:DisclosureOfOtherOperatingIncomeNetTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R149": {
     "role": "http://xpinc.com/role/SharebasedplanAdditionalinformationDetails",
     "longName": "9954576 - Disclosure - Share-based plan - Additional information (Details)",
     "shortName": "Share-based plan - Additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "149",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:MaximumNumberOfSharesAvailableForIssuanceUnderTheShareBasedPlan",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:MaximumNumberOfSharesAvailableForIssuanceUnderTheShareBasedPlan",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R150": {
     "role": "http://xpinc.com/role/SharebasedplanActivityofRSUsandPSUsDetails",
     "longName": "9954577 - Disclosure - Share-based plan - Activity of RSUs and PSUs (Details)",
     "shortName": "Share-based plan - Activity of RSUs and PSUs (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "150",
     "firstAnchor": {
      "contextRef": "c-6",
      "name": "ifrs-full:NumberOfOtherEquityInstrumentsOutstandingInSharebasedPaymentArrangement",
      "unitRef": "shares2",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfNumberAndWeightedAverageExercisePricesOfOtherEquityInstrumentsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-33",
      "name": "ifrs-full:NumberOfOtherEquityInstrumentsOutstandingInSharebasedPaymentArrangement",
      "unitRef": "shares2",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfNumberAndWeightedAverageExercisePricesOfOtherEquityInstrumentsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R151": {
     "role": "http://xpinc.com/role/EarningspersharebasicanddilutedDetails",
     "longName": "9954578 - Disclosure - Earnings per share (basic and diluted) (Details)",
     "shortName": "Earnings per share (basic and diluted) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "151",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:ProfitLossAttributableToOwnersOfParent",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:WeightedAverageShares",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:EarningsPerShareExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R152": {
     "role": "http://xpinc.com/role/DeterminationoffairvalueDetails",
     "longName": "9954579 - Disclosure - Determination of fair value (Details)",
     "shortName": "Determination of fair value (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "152",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:FinancialAssetsAtFairValueThroughProfitOrLossClassifiedAsHeldForTrading",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:FinancialAssetsAtFairValueThroughProfitOrLossDerivativeFinancialInstruments",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R153": {
     "role": "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails",
     "longName": "9954580 - Disclosure - Management of financial risks and financial instruments (Details)",
     "shortName": "Management of financial risks and financial instruments (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "153",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:FinancialAssetsAtAmortizedCostSecuritiesPurchasedUnderAgreementsToResell",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfCreditRiskExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:Securities",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfCreditRiskExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R154": {
     "role": "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails",
     "longName": "9954581 - Disclosure - Management of financial risks and financial instruments - Summary of financial liabilities into groupings based on their contractual maturities (Details)",
     "shortName": "Management of financial risks and financial instruments - Summary of financial liabilities into groupings based on their contractual maturities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "154",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:FinancialLiabilitiesAtFairValueThroughProfitOrLossSecuritiesLoaned",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfFinancialLiabilitiesIntoGroupingsBasedOnTheirContractualMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1249",
      "name": "xp:FinancialLiabilitiesAtFairValueThroughProfitOrLossSecuritiesLoaned",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:DisclosureOfFinancialLiabilitiesIntoGroupingsBasedOnTheirContractualMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R155": {
     "role": "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsAdditionalinformationDetails",
     "longName": "9954582 - Disclosure - Management of financial risks and financial instruments - Additional information (Details)",
     "shortName": "Management of financial risks and financial instruments - Additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "155",
     "firstAnchor": {
      "contextRef": "c-1448",
      "name": "xp:ForeignCurrencyRisk",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1448",
      "name": "xp:ForeignCurrencyRisk",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R156": {
     "role": "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails",
     "longName": "9954583 - Disclosure - Management of financial risks and financial instruments - Summary of sensitivity analysis (Details)",
     "shortName": "Management of financial risks and financial instruments - Summary of sensitivity analysis (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "156",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:SensitivityAnalysisIncreaseDecreaseInOnePercent",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:SensitivityAnalysisForEachTypeOfMarketRisk",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:SensitivityAnalysisIncreaseDecreaseInOnePercent",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:SensitivityAnalysisForEachTypeOfMarketRisk",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R157": {
     "role": "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails",
     "longName": "9954584 - Disclosure - Capital management - Summary of net debt and corresponding gearing ratios (Details)",
     "shortName": "Capital management - Summary of net debt and corresponding gearing ratios (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "157",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "xp:FinancialLiabilitiesAtAmortizedCostGroupDebt",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:CapitalManagementTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "xp:FinancialLiabilitiesAtAmortizedCostGroupDebt",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "xp:CapitalManagementTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R158": {
     "role": "http://xpinc.com/role/CapitalmanagementAdditionalinformationDetails",
     "longName": "9954585 - Disclosure - Capital management - Additional information (Details)",
     "shortName": "Capital management - Additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "158",
     "firstAnchor": {
      "contextRef": "c-6",
      "name": "xp:ContractsUnderFinancialCovenants",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-6",
      "name": "xp:ContractsUnderFinancialCovenants",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R159": {
     "role": "http://xpinc.com/role/CashflowinformationDetails",
     "longName": "9954586 - Disclosure - Cash flow information (Details)",
     "shortName": "Cash flow information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "159",
     "firstAnchor": {
      "contextRef": "c-6",
      "name": "xp:LiabilitiesArisingFromFinancingActivitiesExcludingStructuredFinancing",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-17",
      "name": "xp:LiabilitiesArisingFromFinancingActivitiesExcludingStructuredFinancing",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    },
    "R160": {
     "role": "http://xpinc.com/role/CashflowinformationAdditionalinformationDetails",
     "longName": "9954587 - Disclosure - Cash flow information - Additional information (Details)",
     "shortName": "Cash flow information - Additional information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "160",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "xp:NonCashInvestingAndFinancingActivitiesRelatedToBusinessAcquisitionsThroughContingentConsideration",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "xp:NonCashInvestingAndFinancingActivitiesRelatedToBusinessAcquisitionsThroughContingentConsideration",
      "unitRef": "brl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true,
      "unique": true
     }
    },
    "R161": {
     "role": "http://xpinc.com/role/SubsequenteventsDetails",
     "longName": "9954588 - Disclosure - Subsequent events (Details)",
     "shortName": "Subsequent events (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "161",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:NumberOfSharesOutstanding",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfClassesOfShareCapitalExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1494",
      "name": "xp:NumberOfSharesToBeRepurchased",
      "unitRef": "shares",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "xp-20231231.htm",
      "unique": true
     }
    }
   },
   "tag": {
    "xp_A100LargestDebtorsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "A100LargestDebtorsMember",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "100 largest debtors",
        "label": "100 Largest Debtors [Member]",
        "documentation": "100 Largest Debtors"
       }
      }
     },
     "auth_ref": []
    },
    "xp_A10LargestDebtorsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "A10LargestDebtorsMember",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "10 largest debtors",
        "label": "10 Largest Debtors [Member]",
        "documentation": "10 Largest Debtors"
       }
      }
     },
     "auth_ref": []
    },
    "xp_A20LargestDebtorsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "A20LargestDebtorsMember",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "20 largest debtors",
        "label": "20 Largest Debtors [Member]",
        "documentation": "20 Largest Debtors"
       }
      }
     },
     "auth_ref": []
    },
    "xp_A50LargestDebtorsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "A50LargestDebtorsMember",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "50 largest debtors",
        "label": "50 Largest Debtors [Member]",
        "documentation": "50 Largest Debtors"
       }
      }
     },
     "auth_ref": []
    },
    "xp_AccountsPayablesOnSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AccountsPayablesOnSubsidiaries",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts payables on subsidiaries",
        "label": "Accounts payables on subsidiaries",
        "documentation": "Accounts payables on subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "xp_AccountsReceivableDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AccountsReceivableDomain",
     "presentation": [
      "http://xpinc.com/role/RelatedpartytransactionsSummaryoftransactionsbetweenrelatedpartiesexplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts receivable and Loans operations",
        "label": "Accounts receivable [Domain]",
        "documentation": "Accounts receivable"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AccumulatedFairValueHedgeAdjustmentOnHedgedItemIncludedInCarryingAmountAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AccumulatedFairValueHedgeAdjustmentOnHedgedItemIncludedInCarryingAmountAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingHedgediteminformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value adjustments",
        "label": "Accumulated fair value hedge adjustment on hedged item included in carrying amount, assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The accumulated amount of fair value hedge adjustment on a hedged item that is included in the carrying amount of the hedged item, recognised in the statement of financial position as an asset. [Refer: Hedged items [member]]"
       }
      }
     },
     "auth_ref": [
      "r223"
     ]
    },
    "ifrs-full_AccumulatedImpairmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AccumulatedImpairmentMember",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails",
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated depreciation",
        "verboseLabel": "Accumulated amortization",
        "label": "Accumulated impairment [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for accumulated impairment. [Refer: Impairment loss]"
       }
      }
     },
     "auth_ref": [
      "r213",
      "r237",
      "r332",
      "r375",
      "r381",
      "r388",
      "r389"
     ]
    },
    "ifrs-full_AccumulatedOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AccumulatedOtherComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other comprehensive income",
        "label": "Accumulated other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of accumulated items of income and expense (including reclassification adjustments) that are not recognised in profit or loss as required or permitted by other IFRSs. [Refer: IFRSs [member]; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "ifrs-full_AccumulatedOtherComprehensiveIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other comprehensive income and Other",
        "label": "Accumulated other comprehensive income [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for accumulated other comprehensive income. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r365"
     ]
    },
    "xp_AcquisitionOfCompaniesUsingSharesIssuedByTheCompany": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AcquisitionOfCompaniesUsingSharesIssuedByTheCompany",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Acquisition of companies using shares issued by the company",
        "label": "Acquisition of companies using shares issued by the company",
        "documentation": "Acquisition of companies using shares issued by the company"
       }
      }
     },
     "auth_ref": []
    },
    "xp_AcquisitionOfSubsidiariesNetCashAcquiredOnSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AcquisitionOfSubsidiariesNetCashAcquiredOnSubsidiaries",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Acquisition of subsidiaries, net cash acquired on subsidiaries",
        "label": "Acquisition of subsidiaries, net cash acquired on subsidiaries",
        "documentation": "Acquisition of subsidiaries, net cash acquired on subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AcquisitiondateFairValueOfTotalConsiderationTransferred",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchase consideration transferred",
        "label": "Consideration transferred, acquisition-date fair value"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value, at acquisition date, of the consideration transferred in a business combination. [Refer: Business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r207"
     ]
    },
    "ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business combinations",
        "label": "Acquisitions through business combinations, intangible assets and goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in intangible assets and goodwill resulting from acquisitions through business combinations. [Refer: Business combinations [member]; Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r382"
     ]
    },
    "ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Business combinations",
        "label": "Acquisitions through business combinations, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in property, plant and equipment resulting from acquisitions through business combinations. [Refer: Business combinations [member]; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r64"
     ]
    },
    "xp_AdditionalAmountPaidForTheInstallmentReferringToTheAcquiredSubsidiary": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AdditionalAmountPaidForTheInstallmentReferringToTheAcquiredSubsidiary",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additional amount paid for the installment referring to the acquired subsidiary",
        "label": "Additional amount paid for the installment referring to the acquired subsidiary",
        "documentation": "Additional amount paid for the installment referring to the acquired subsidiary"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdditionalPaidinCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdditionalPaidinCapitalMember",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additional paid-in capital",
        "label": "Additional paid-in capital [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for amounts received from issuance of the entity's shares in excess of nominal value and amounts received from other transactions involving the entity's stock or stockholders."
       }
      }
     },
     "auth_ref": [
      "r365"
     ]
    },
    "ifrs-full_AdditionsOtherThanThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdditionsOtherThanThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additions",
        "label": "Additions other than through business combinations, intangible assets other than goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additions to intangible assets other than goodwill, other than those acquired through business combinations. [Refer: Business combinations [member]; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r113"
     ]
    },
    "ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additions",
        "label": "Additions other than through business combinations, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additions to property, plant and equipment other than those acquired through business combinations. [Refer: Business combinations [member]; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r63"
     ]
    },
    "xp_AdditionsToLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AdditionsToLeaseLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additions",
        "label": "Additions to Lease Liabilities",
        "documentation": "Additions to Lease Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdditionsToRightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdditionsToRightofuseAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additions",
        "label": "Additions to right-of-use assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additions to right-of-use assets. [Refer: Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r186"
     ]
    },
    "dei_AddressTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AddressTypeDomain",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Address Type [Domain]",
        "label": "Address Type [Domain]",
        "documentation": "An entity may have several addresses for different purposes and this domain represents all such types."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustedWeightedAverageShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustedWeightedAverageShares",
     "presentation": [
      "http://xpinc.com/role/EarningspersharebasicanddilutedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Diluted weighted average number of outstanding shares (in shares)",
        "label": "Weighted average number of ordinary shares used in calculating diluted earnings per share"
       }
      },
      "en": {
       "role": {
        "documentation": "The weighted average number of ordinary shares outstanding plus the weighted average number of ordinary shares that would be issued on the conversion of all the dilutive potential ordinary shares into ordinary shares. [Refer: Ordinary shares [member]; Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r95"
     ]
    },
    "ifrs-full_AdjustmentsForAmortisationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForAmortisationExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortization of intangible assets",
        "label": "Adjustments for amortisation expense"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for amortisation expense to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss); Depreciation and amortisation expense]"
       }
      }
     },
     "auth_ref": [
      "r393"
     ]
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInDerivativeFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInDerivativeFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative financial instruments (assets and liabilities)",
        "label": "Adjustments for decrease (increase) in derivative financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for decrease (increase) in derivative financial assets to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Derivative financial assets; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r393"
     ]
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInFinancialAssetsHeldForTrading": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInFinancialAssetsHeldForTrading",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities trading and intermediation (assets and liabilities)",
        "label": "Adjustments for decrease (increase) in financial assets held for trading"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for decrease (increase) in financial assets held for trading to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Financial assets; Financial assets at fair value through profit or loss, classified as held for trading; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r393"
     ]
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInLoansAndAdvancesToBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInLoansAndAdvancesToBanks",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loan operations",
        "label": "Adjustments for decrease (increase) in loans and advances to banks"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for decrease (increase) in loans and advances to banks to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Loans and advances to banks; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r393"
     ]
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInOtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInOtherAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other assets and other financial assets",
        "label": "Adjustments for decrease (increase) in other assets"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for decrease (increase) in other assets to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Other assets; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r393"
     ]
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInPrepaidExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInPrepaidExpenses",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 23.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prepaid expenses",
        "label": "Adjustments for decrease (increase) in prepaid expenses"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for the decrease (increase) in prepaid expenses to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Current prepaid expenses; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r393"
     ]
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInReverseRepurchaseAgreementsAndCashCollateralOnSecuritiesBorrowed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInReverseRepurchaseAgreementsAndCashCollateralOnSecuritiesBorrowed",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities purchased under agreements to resell",
        "label": "Adjustments for decrease (increase) in reverse repurchase agreements and cash collateral on securities borrowed"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for decrease (increase) in reverse repurchase agreements and cash collateral on securities borrowed to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Reverse repurchase agreements and cash collateral on securities borrowed; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r393"
     ]
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAccountReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInTradeAccountReceivable",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 18.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts receivable",
        "label": "Adjustments for decrease (increase) in trade accounts receivable"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for decrease (increase) in trade accounts receivable to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r391"
     ]
    },
    "ifrs-full_AdjustmentsForDepreciationAndAmortisationExpenseAndImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForDepreciationAndAmortisationExpenseAndImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "ifrs-full_AdministrativeExpense",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortization of intangible assets",
        "label": "Adjustments for depreciation and amortisation expense and impairment loss (reversal of impairment loss) recognised in profit or loss"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for depreciation and amortisation expense and impairment loss (reversal of impairment loss) to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Impairment loss; Depreciation and amortisation expense; Impairment loss (reversal of impairment loss) recognised in profit or loss; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r393"
     ]
    },
    "ifrs-full_AdjustmentsForDepreciationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForDepreciationExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Depreciation of property, equipment and right-of-use assets",
        "label": "Adjustments for depreciation expense"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for depreciation expense to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r393"
     ]
    },
    "ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loss or write-off of property, equipment, intangible assets and leases, net",
        "label": "Adjustments for impairment loss (reversal of impairment loss) recognised in profit or loss"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for impairment loss (reversal of impairment loss) recognised in profit or loss to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Impairment loss (reversal of impairment loss) recognised in profit or loss]"
       }
      }
     },
     "auth_ref": [
      "r392"
     ]
    },
    "ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossTradeAndOtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossTradeAndOtherReceivables",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 21.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expected credit losses on financial assets",
        "label": "Adjustments for impairment loss (reversal of impairment loss) recognised in profit or loss, trade and other receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for impairment loss (reversal of impairment loss) on trade and other receivables recognised in profit or loss to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Trade and other receivables; Impairment loss; Adjustments for impairment loss (reversal of impairment loss) recognised in profit or loss; Impairment loss (reversal of impairment loss) recognised in profit or loss]"
       }
      }
     },
     "auth_ref": [
      "r393"
     ]
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInDepositsFromBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInDepositsFromBanks",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 22.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing instruments payable",
        "label": "Adjustments for increase (decrease) in deposits from banks"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for increase (decrease) in deposits from banks to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Deposits from banks; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r393"
     ]
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 25.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Retirement plans liabilities",
        "label": "Adjustments for increase (decrease) in employee benefit liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for increase (decrease) in employee benefit liabilities to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r393"
     ]
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInOtherLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other liabilities and other financial liabilities",
        "label": "Adjustments for increase (decrease) in other liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for increase (decrease) in other liabilities to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Other liabilities; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r393"
     ]
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInRepurchaseAgreementsAndCashCollateralOnSecuritiesLent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInRepurchaseAgreementsAndCashCollateralOnSecuritiesLent",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 26.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities sold under repurchase agreements",
        "label": "Adjustments for increase (decrease) in repurchase agreements and cash collateral on securities lent"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for increase (decrease) in repurchase agreements and cash collateral on securities lent to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Repurchase agreements and cash collateral on securities lent; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r393"
     ]
    },
    "xp_AdjustmentsForIncreaseDecreaseInSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AdjustmentsForIncreaseDecreaseInSecurities",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities (assets and liabilities)",
        "label": "Adjustments For Increase decrease In Securities",
        "documentation": "Adjustments For Increase decrease In Securities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_AdjustmentsForIncreaseDecreaseInSocialAndStatutoryObligations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AdjustmentsForIncreaseDecreaseInSocialAndStatutoryObligations",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 24.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Social and statutory obligations",
        "label": "Adjustments For Increase decrease In Social And Statutory Obligations",
        "documentation": "Adjustments For Increase decrease In Social And Statutory Obligations"
       }
      }
     },
     "auth_ref": []
    },
    "xp_AdjustmentsForIncreaseDecreaseInTaxAndSocialSecurityObligations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AdjustmentsForIncreaseDecreaseInTaxAndSocialSecurityObligations",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 27.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax and social security obligations",
        "label": "Adjustments For Increase decrease In Tax And Social Security Obligations",
        "documentation": "Adjustments For Increase decrease In Tax And Social Security Obligations"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInTradeAccountPayable",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts payable",
        "label": "Adjustments for increase (decrease) in trade accounts payable"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for increase (decrease) in trade accounts payable to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r391"
     ]
    },
    "ifrs-full_AdjustmentsForInterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForInterestExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest accrued",
        "label": "Adjustments for interest expense"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for interest expense to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Interest expense; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r393"
     ]
    },
    "ifrs-full_AdjustmentsForProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForProvisions",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "(Reversal of) Provision for contingencies, net",
        "label": "Adjustments for provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for provisions to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Provisions; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r392"
     ]
    },
    "ifrs-full_AdjustmentsForReconcileProfitLossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForReconcileProfitLossAbstract",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Adjustments to reconcile income before income taxes",
        "label": "Adjustments to reconcile profit (loss) [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForSharebasedPayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForSharebasedPayments",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share based plan",
        "label": "Adjustments for share-based payments"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for share-based payments to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r392"
     ]
    },
    "ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdjustmentsForUnrealisedForeignExchangeLossesGains",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 19.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net foreign exchange differences",
        "label": "Adjustments for unrealised foreign exchange losses (gains)"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for unrealised foreign exchange losses (gains) to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r318",
      "r392"
     ]
    },
    "ifrs-full_AdministrativeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdministrativeExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "ifrs-full_OperatingExpenseExcludingCostOfSales",
       "weight": 1.0,
       "order": 1.0
      },
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Administrative expenses",
        "totalLabel": "Administrative expenses",
        "label": "Administrative expenses"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expenses that the entity classifies as being administrative."
       }
      }
     },
     "auth_ref": [
      "r49",
      "r81",
      "r298"
     ]
    },
    "ifrs-full_AdvertisingExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AdvertisingExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "ifrs-full_SellingExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Advertising and publicity",
        "label": "Advertising expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense arising from advertising."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "xp_AetosEnergiaFundoDeInvestimentoEmDireitosCreditoriosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AetosEnergiaFundoDeInvestimentoEmDireitosCreditoriosMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aetos Energia Fundo de Investimento em Direitos Credit\u00f3rios [Member]",
        "label": "Aetos Energia Fundo de Investimento em Direitos Credit\u00f3rios [Member]",
        "documentation": "Aetos Energia Fundo de Investimento em Direitos Credit\u00f3rios"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AggregatedMeasurementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AggregatedMeasurementMember",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesEvaluatedatAmortizedCostDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesatFairValueThroughOtherComprehensiveIncomeDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregated measurement",
        "label": "Aggregated measurement [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all types of measurement. It also represents the standard value for the 'Measurement' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r121",
      "r125",
      "r168"
     ]
    },
    "ifrs-full_AggregatedTimeBandsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AggregatedTimeBandsMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails",
      "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbymaturityDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregated time bands",
        "label": "Aggregated time bands [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated time bands. It also represents the standard value for the 'Maturity' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r23",
      "r178",
      "r189",
      "r190",
      "r191",
      "r192",
      "r193",
      "r199",
      "r220",
      "r305",
      "r338",
      "r342"
     ]
    },
    "xp_AgribusinessCreditBillMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AgribusinessCreditBillMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Agribusiness Credit Bill (LCAs) (ii)",
        "label": "Agribusiness Credit Bill [Member]",
        "documentation": "Agribusiness Credit Bill"
       }
      }
     },
     "auth_ref": []
    },
    "xp_AgribusinessCreditBillsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AgribusinessCreditBillsMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Agribusiness credit bills [Member]",
        "label": "Agribusiness credit bills [Member]",
        "documentation": "Agribusiness credit bills"
       }
      }
     },
     "auth_ref": []
    },
    "xp_AgribusinessReceivablesCertificatesCRAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AgribusinessReceivablesCertificatesCRAMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Agribusiness Receivables Certificates (CRAs) (ii)",
        "label": "Agribusiness Receivables Certificates (CRA) [Member]",
        "documentation": "Agribusiness Receivables Certificates (CRA)"
       }
      }
     },
     "auth_ref": []
    },
    "xp_AgribusinessReceivablesCertificatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AgribusinessReceivablesCertificatesMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Agribusiness receivables certificates",
        "label": "Agribusiness Receivables Certificates [Member]",
        "documentation": "Agribusiness Receivables Certificates"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AllLevelsOfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AllLevelsOfFairValueHierarchyMember",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "All levels of fair value hierarchy [member]",
        "label": "All levels of fair value hierarchy [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all levels of the fair value hierarchy. It also represents the standard value for the 'Levels of fair value hierarchy' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r76",
      "r169"
     ]
    },
    "ifrs-full_AllowanceAccountForCreditLossesOfFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AllowanceAccountForCreditLossesOfFinancialAssets",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails": {
       "parentTag": "xp_FinancialAssetsNetOfAllowanceAccountForCreditLosses",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossusingsimplifiedmethodDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Expected Credit Loss",
        "periodStartLabel": "Expected credit loss, beginning balance",
        "periodEndLabel": "Expected credit loss, ending balance",
        "terseLabel": "Expected Credit Loss",
        "label": "Allowance account for credit losses of financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of an allowance account used to record impairments to financial assets due to credit losses. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r272"
     ]
    },
    "xp_AllowanceAccountForCreditLossesOfFinancialAssetsDercecognized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AllowanceAccountForCreditLossesOfFinancialAssetsDercecognized",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Allowance Account For Credit Losses Of Financial Assets, Dercecognized",
        "label": "Allowance Account For Credit Losses Of Financial Assets, Dercecognized",
        "documentation": "Allowance Account For Credit Losses Of Financial Assets, Dercecognized"
       }
      }
     },
     "auth_ref": []
    },
    "xp_AllowanceAccountForCreditLossesOfReverseRepurchaseAgreementsAndCashCollateralOnSecuritiesBorrowed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AllowanceAccountForCreditLossesOfReverseRepurchaseAgreementsAndCashCollateralOnSecuritiesBorrowed",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Expected credit loss",
        "label": "Allowance Account For Credit Losses Of Reverse Repurchase Agreements And Cash Collateral On Securities Borrowed",
        "documentation": "Allowance Account For Credit Losses Of Reverse Repurchase Agreements And Cash Collateral On Securities Borrowed"
       }
      }
     },
     "auth_ref": []
    },
    "xp_AllowanceAccountForCreditLossesOnOtherFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AllowanceAccountForCreditLossesOnOtherFinancialAssets",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails_1": {
       "parentTag": "ifrs-full_OtherFinancialAssets",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "(-) Expected losses on other financial assets",
        "label": "Allowance Account For Credit Losses On Other Financial Assets",
        "documentation": "Allowance Account For Credit Losses On Other Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AllowanceForCreditLossesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AllowanceForCreditLossesMember",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expected credit losses (ii)",
        "label": "Allowance for credit losses [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for an allowance account used to record impairments to financial assets due to credit losses."
       }
      }
     },
     "auth_ref": [
      "r372"
     ]
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amendment Flag",
        "label": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AmortisationIntangibleAssetsOtherThanGoodwill",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Amortization in the year",
        "label": "Amortisation, intangible assets other than goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of amortisation of intangible assets other than goodwill. [Refer: Depreciation and amortisation expense; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r114"
     ]
    },
    "xp_AmortizationOfGoodwillMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AmortizationOfGoodwillMember",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofcontingentliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortization of Goodwill",
        "label": "Amortization of Goodwill [Member]",
        "documentation": "Represents amortization of Goodwill."
       }
      }
     },
     "auth_ref": []
    },
    "xp_AmountPaidForTheAcquisionOfTheSubsidiaryToDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AmountPaidForTheAcquisionOfTheSubsidiaryToDate",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amount paid for the acquision of the subsidiary to date",
        "label": "Amount paid for the acquision of the subsidiary to date",
        "documentation": "Amount paid for the acquision of the subsidiary to date"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AnalysisOfIncomeAndExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AnalysisOfIncomeAndExpenseAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Analysis of income and expense [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_AnnualMinimumIncomeForSurcharge": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AnnualMinimumIncomeForSurcharge",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Annual minimum income for surcharge",
        "label": "Annual Minimum Income For Surcharge",
        "documentation": "Annual Minimum Income For Surcharge"
       }
      }
     },
     "auth_ref": []
    },
    "xp_AntecipaSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AntecipaSAMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Antecipa S.A.",
        "label": "Antecipa S.A. [Member]",
        "documentation": "Antecipa S.A."
       }
      }
     },
     "auth_ref": []
    },
    "xp_ApplicableSurchargeTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ApplicableSurchargeTaxRate",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Applicable surcharge tax rate",
        "label": "Applicable Surcharge Tax Rate",
        "documentation": "Applicable Surcharge Tax Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ApplicableTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ApplicableTaxRate",
     "presentation": [
      "http://xpinc.com/role/IncometaxAdditionalinformationDetails",
      "http://xpinc.com/role/IncometaxSummaryofincometaxcalculationDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Combined tax rate in Brazil",
        "terseLabel": "Applicable tax rate",
        "label": "Applicable tax rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The applicable income tax rate."
       }
      }
     },
     "auth_ref": [
      "r55"
     ]
    },
    "ifrs-full_Assets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Assets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total assets",
        "label": "Assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of a present economic resource controlled by the entity as a result of past events. Economic resource is a right that has the potential to produce economic benefits."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r168",
      "r169",
      "r171",
      "r260",
      "r263"
     ]
    },
    "ifrs-full_AssetsAndLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AssetsAndLiabilitiesAxis",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets and liabilities [axis]",
        "label": "Assets and liabilities [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r8"
     ]
    },
    "ifrs-full_AssetsAndLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AssetsAndLiabilitiesMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets and liabilities [member]",
        "label": "Assets and liabilities [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for assets and liabilities. It also represents the standard value for the 'Assets and liabilities' axis if no other member is used. [Refer: Assets; Liabilities]"
       }
      }
     },
     "auth_ref": [
      "r8"
     ]
    },
    "xp_AssociationsAndRegulatoryFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AssociationsAndRegulatoryFees",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails": {
       "parentTag": "ifrs-full_MiscellaneousOtherOperatingExpense",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Associations and regulatory fees",
        "label": "Associations and regulatory fees",
        "documentation": "Associations and regulatory fees"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AtFairValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "AtFairValueMember",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesatFairValueThroughOtherComprehensiveIncomeDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value",
        "label": "At fair value [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for measurement based on fair value. Fair value is the price that would be received to sell an asset or paid to transfer a liability in an orderly transaction between market participants at the measurement date."
       }
      }
     },
     "auth_ref": [
      "r121",
      "r125",
      "r168"
     ]
    },
    "xp_AuditInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AuditInformationAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Audit Information [Abstract]",
        "label": "Audit Information [Abstract]",
        "documentation": "Audit Information"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AuditorFirmId": {
     "xbrltype": "nonemptySequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorFirmId",
     "presentation": [
      "http://xpinc.com/role/AuditInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Auditor Firm ID",
        "label": "Auditor Firm ID",
        "documentation": "PCAOB issued Audit Firm Identifier"
       }
      }
     },
     "auth_ref": [
      "r356",
      "r357",
      "r358"
     ]
    },
    "dei_AuditorLocation": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorLocation",
     "presentation": [
      "http://xpinc.com/role/AuditInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Auditor Location",
        "label": "Auditor Location"
       }
      }
     },
     "auth_ref": [
      "r356",
      "r357",
      "r358"
     ]
    },
    "dei_AuditorName": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "AuditorName",
     "presentation": [
      "http://xpinc.com/role/AuditInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Auditor Name",
        "label": "Auditor Name"
       }
      }
     },
     "auth_ref": [
      "r356",
      "r357",
      "r358"
     ]
    },
    "xp_AuthorizedShareCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AuthorizedShareCapital",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Authorized share capital",
        "label": "Authorized Share Capital",
        "documentation": "Authorized Share Capital"
       }
      }
     },
     "auth_ref": []
    },
    "xp_AuthorizedSharesButUnissued": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AuthorizedSharesButUnissued",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Authorized shares but unissued",
        "label": "Authorized shares but unissued",
        "documentation": "Authorized shares but unissued"
       }
      }
     },
     "auth_ref": []
    },
    "xp_AvailablePortfolioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "AvailablePortfolioMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available portfolio",
        "label": "Available Portfolio [Member]",
        "documentation": "Available Portfolio"
       }
      }
     },
     "auth_ref": []
    },
    "country_BR": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2023",
     "localname": "BR",
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofdisaggregationbygeographiclocationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Brazil",
        "label": "BRAZIL"
       }
      }
     },
     "auth_ref": []
    },
    "xp_BTRAdministracaoECorretagemDeSegurosSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BTRAdministracaoECorretagemDeSegurosSAMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails",
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "BTR Administra\u00e7\u00e3o e Corretagem de Seguros S.A.",
        "label": "BTR Administra\u00e7\u00e3o e Corretagem de Seguros S.A. [Member]",
        "documentation": "BTR Administra\u00e7\u00e3o e Corretagem de Seguros S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BalancesOnDemandDepositsFromCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BalancesOnDemandDepositsFromCustomers",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails": {
       "parentTag": "xp_FinancingInstrumentsPayables",
       "weight": 1.0,
       "order": 7.0
      },
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails": {
       "parentTag": "xp_DepositsFinancialBillsAndStructuredOperationsCertificates",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Demand deposits",
        "label": "Balances on demand deposits from customers"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of balances in customers' demand deposits held by the entity."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "ifrs-full_BalancesOnTermDepositsFromCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BalancesOnTermDepositsFromCustomers",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails": {
       "parentTag": "xp_FinancingInstrumentsPayables",
       "weight": 1.0,
       "order": 5.0
      },
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails": {
       "parentTag": "xp_DepositsFinancialBillsAndStructuredOperationsCertificates",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Time deposits",
        "label": "Balances on term deposits from customers"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of balances in customers' term deposits held by the entity."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "xp_BalistaDebenturesIncentivadasFundoDeInvestimentoMultimercadoCrditoPrivadoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BalistaDebenturesIncentivadasFundoDeInvestimentoMultimercadoCrditoPrivadoMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Balista Debentures Incentivadas Fundo de Investimento Multimercado Cr\u00e9dito Privado",
        "label": "Balista Debentures Incentivadas Fundo de Investimento Multimercado Cr\u00e9dito Privado [Member]",
        "documentation": "Balista Debentures Incentivadas Fundo de Investimento Multimercado Cr\u00e9dito Privado"
       }
      }
     },
     "auth_ref": []
    },
    "xp_BancoDaycovalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BancoDaycovalMember",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Banco Daycoval",
        "label": "Banco Daycoval [Member]",
        "documentation": "Represents Banco Daycoval"
       }
      }
     },
     "auth_ref": []
    },
    "xp_BancoModalSAEmployeesProfitSharingPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BancoModalSAEmployeesProfitSharingPlanMember",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofcontingentliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Banco Modal SA Employees Profit Sharing Plan",
        "label": "Banco Modal SA Employees Profit Sharing Plan [Member]",
        "documentation": "Represents Banco Modal SA Employees Profit Sharing Plan"
       }
      }
     },
     "auth_ref": []
    },
    "xp_BancoModalSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BancoModalSAMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails",
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
      "http://xpinc.com/role/GroupstructureSummaryofintangibleassetsacquiredDetails",
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Banco Modal S.A.",
        "label": "Banco Modal S.A. [Member]",
        "documentation": "Banco Modal S.A."
       }
      }
     },
     "auth_ref": []
    },
    "xp_BancoNacionalDeMexico.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BancoNacionalDeMexico.Member",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Banco Nacional de M\u00e9xico",
        "label": "Banco Nacional de M\u00e9xico. [Member]",
        "documentation": "Represents Banco Nacional de M\u00e9xico."
       }
      }
     },
     "auth_ref": []
    },
    "xp_BancoNacionalDeMxicoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BancoNacionalDeMxicoMember",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Banco Nacional de M\u00e9xico",
        "label": "Banco Nacional de M\u00e9xico [Member]",
        "documentation": "Banco Nacional de M\u00e9xico"
       }
      }
     },
     "auth_ref": []
    },
    "xp_BancoXPSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BancoXPSAMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Banco XP S.A.",
        "label": "Banco XP S.A. [Member]",
        "documentation": "Banco XP S.A."
       }
      }
     },
     "auth_ref": []
    },
    "xp_BankDepositCertificatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BankDepositCertificatesMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bank deposit certificates",
        "label": "Bank Deposit Certificates [Member]",
        "documentation": "Bank Deposit Certificates"
       }
      }
     },
     "auth_ref": []
    },
    "xp_BankingAndTradingDesenvolvimentoDeSistemasLtda.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BankingAndTradingDesenvolvimentoDeSistemasLtda.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Banking and Trading Desenvolvimento de Sistemas Ltda. [Member]",
        "label": "Banking and Trading Desenvolvimento de Sistemas Ltda. [Member]",
        "documentation": "Banking and Trading Desenvolvimento de Sistemas Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BasicEarningsLossPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BasicEarningsLossPerShare",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/EarningspersharebasicanddilutedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Basic earnings per share (in R$ per share)",
        "label": "Basic earnings (loss) per share"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of profit (loss) attributable to ordinary equity holders of the parent entity (the numerator) divided by the weighted average number of ordinary shares outstanding during the period (the denominator)."
       }
      }
     },
     "auth_ref": [
      "r93",
      "r94"
     ]
    },
    "xp_Benefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "Benefits",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "xp_PersonnelExpenses",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Benefits",
        "label": "Benefits",
        "documentation": "Benefits"
       }
      }
     },
     "auth_ref": []
    },
    "xp_Blue3S.A.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "Blue3S.A.Member",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Blue3 S.A.",
        "label": "Blue3 S.A. [Member]",
        "documentation": "Represents Blue3 S.A."
       }
      }
     },
     "auth_ref": []
    },
    "xp_BondsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BondsDomain",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesEvaluatedatAmortizedCostDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesatFairValueThroughOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bonds",
        "label": "Bonds [Domain]",
        "documentation": "Bonds"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BondsIssued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BondsIssued",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails": {
       "parentTag": "ifrs-full_DebtSecurities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bond",
        "label": "Bonds issued"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of bonds issued by the entity."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "xp_BookValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BookValueMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesEvaluatedatAmortizedCostDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Book value [Member]",
        "label": "Book value [Member]",
        "documentation": "Book value"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Borrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Borrowings",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialLiabilitiesAtAmortisedCost",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails",
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Borrowings",
        "terseLabel": "Current",
        "label": "Borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of outstanding funds that the entity is obligated to repay."
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "ifrs-full_BorrowingsAdjustmentToInterestRateBasis": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BorrowingsAdjustmentToInterestRateBasis",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate, adjustment to basis",
        "label": "Borrowings, adjustment to interest rate basis"
       }
      },
      "en": {
       "role": {
        "documentation": "The adjustment to the basis (reference rate) used for calculation of the interest rate on borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r399"
     ]
    },
    "xp_BorrowingsAndLeaseLiabilitiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BorrowingsAndLeaseLiabilitiesCurrent",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-current",
        "label": "Borrowings and lease liabilities, current",
        "documentation": "Borrowings and lease liabilities, current"
       }
      }
     },
     "auth_ref": []
    },
    "xp_BorrowingsAndLeaseLiabilitiesNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BorrowingsAndLeaseLiabilitiesNoncurrent",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Borrowings and lease liabilities, noncurrent",
        "label": "Borrowings and lease liabilities, noncurrent",
        "documentation": "Borrowings and lease liabilities, noncurrent"
       }
      }
     },
     "auth_ref": []
    },
    "xp_BorrowingsByLenderAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BorrowingsByLenderAxis",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Borrowings by Lender [Axis]",
        "label": "Borrowings by Lender [Axis]",
        "documentation": "Borrowings by Lender"
       }
      }
     },
     "auth_ref": []
    },
    "xp_BorrowingsByLenderDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BorrowingsByLenderDomain",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Borrowings by Lender [Domain]",
        "label": "Borrowings by Lender [Domain]",
        "documentation": "Borrowings by Lender"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BorrowingsByNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BorrowingsByNameAxis",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Borrowings by name [axis]",
        "label": "Borrowings by name [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r399"
     ]
    },
    "ifrs-full_BorrowingsByNameMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BorrowingsByNameMember",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Borrowings by name",
        "label": "Borrowings by name [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all borrowings when disaggregated by name. It also represents the standard value for the 'Borrowings by name' axis if no other member is used. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r399"
     ]
    },
    "xp_BorrowingsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BorrowingsDomain",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Borrowings",
        "label": "Borrowings [Domain]",
        "documentation": "Borrowings"
       }
      }
     },
     "auth_ref": []
    },
    "xp_BorrowingsInterestPayablePeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BorrowingsInterestPayablePeriod",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest payable period",
        "label": "Borrowings, Interest Payable Period",
        "documentation": "Borrowings, Interest Payable Period"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BorrowingsInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BorrowingsInterestRate",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate",
        "label": "Borrowings, interest rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The interest rate on borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r399"
     ]
    },
    "ifrs-full_BorrowingsMaturity": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BorrowingsMaturity",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maturity",
        "label": "Borrowings, maturity"
       }
      },
      "en": {
       "role": {
        "documentation": "The maturity of borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r399"
     ]
    },
    "ifrs-full_BottomOfRangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BottomOfRangeMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingAdditionalInformationDetails",
      "http://xpinc.com/role/OperationsAdditionalinformationDetails",
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofusefullivesofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bottom of range",
        "label": "Bottom of range [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the bottom of a range."
       }
      }
     },
     "auth_ref": [
      "r175",
      "r193",
      "r202",
      "r322",
      "r323",
      "r399"
     ]
    },
    "ifrs-full_BrandNamesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BrandNamesMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
      "http://xpinc.com/role/GroupstructureSummaryofintangibleassetsacquiredDetails",
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofusefullivesofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Trademarks",
        "label": "Brand names [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets representing rights to a group of complementary assets such as a trademark (or service mark) and its related trade name, formulas, recipes and technological expertise. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r307"
     ]
    },
    "xp_BrazilianGovernmentBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BrazilianGovernmentBondsMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Brazilian onshore sovereign bonds",
        "label": "Brazilian Government Bonds [Member]",
        "documentation": "Brazilian Government Bonds"
       }
      }
     },
     "auth_ref": []
    },
    "xp_BrazilianOnshoreSovereignBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BrazilianOnshoreSovereignBondsMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesEvaluatedatAmortizedCostDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Brazilian onshore sovereign bonds",
        "label": "Brazilian onshore sovereign bonds [Member]",
        "documentation": "Brazilian onshore sovereign bonds"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BrokerageFeeIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BrokerageFeeIncome",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails": {
       "parentTag": "xp_RevenueBeforeSalesTaxesAndContributionsOnRevenue",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Brokerage commission",
        "label": "Brokerage fee income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income recognised for brokerage fees charged by the entity."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "xp_BusinessAcquisitionCashAcquired": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BusinessAcquisitionCashAcquired",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash Acquired From Acquisition",
        "label": "Business Acquisition Cash Acquired",
        "documentation": "Business Acquisition Cash Acquired"
       }
      }
     },
     "auth_ref": []
    },
    "xp_BusinessAcquisitionPerSharePrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "BusinessAcquisitionPerSharePrice",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business Acquisition per share price",
        "label": "Business Acquisition per share price",
        "documentation": "Business Acquisition per share price"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BusinessCombinationsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "BusinessCombinationsAxis",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
      "http://xpinc.com/role/GroupstructureSummaryofintangibleassetsacquiredDetails",
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business combinations [axis]",
        "label": "Business combinations [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r211"
     ]
    },
    "dei_BusinessContactMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "BusinessContactMember",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business Contact",
        "label": "Business Contact [Member]",
        "documentation": "Business contact for the entity"
       }
      }
     },
     "auth_ref": [
      "r357",
      "r358"
     ]
    },
    "xp_CDIRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CDIRateMember",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CDI Rate",
        "label": "CDI Rate [Member]",
        "documentation": "CDI Rate"
       }
      }
     },
     "auth_ref": []
    },
    "xp_COFINSTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "COFINSTaxRate",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "COFINS tax rate",
        "label": "COFINS Tax Rate",
        "documentation": "COFINS Tax Rate"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CSLLAppliedForBanksRegularLevel": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CSLLAppliedForBanksRegularLevel",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CSLL applied for banks regular level",
        "label": "CSLL applied for banks regular level",
        "documentation": "CSLL applied for banks regular level"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CSLLRegularLevelAppliedForAllOtherFinancialsEntities": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CSLLRegularLevelAppliedForAllOtherFinancialsEntities",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CSLL regular level applied for all other financials entities",
        "label": "CSLL regular level applied for all other financials entities",
        "documentation": "CSLL regular level applied for all other financials entities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CancellationOfTreasuryShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CancellationOfTreasuryShares",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cancellation of treasury shares",
        "label": "Cancellation of treasury shares"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of treasury stock cancelled during the period. [Refer: Treasury shares]"
       }
      }
     },
     "auth_ref": [
      "r364"
     ]
    },
    "xp_CapitalManagement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CapitalManagement",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total capital",
        "label": "Capital Management",
        "documentation": "Capital Management"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CapitalManagementTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CapitalManagementTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/CapitalmanagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of net debt and corresponding gearing ratios",
        "label": "Capital Management [Table Text Block]",
        "documentation": "Capital Management"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CapitalManagementTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CapitalManagementTextBlock",
     "presentation": [
      "http://xpinc.com/role/Capitalmanagement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Capital management",
        "label": "Capital Management [Text Block]",
        "documentation": "Capital Management"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CapitalReserve": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CapitalReserve",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Capital reserve",
        "label": "Capital reserve"
       }
      },
      "en": {
       "role": {
        "documentation": "A component of equity representing the capital reserves."
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails",
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Carrying amount, accumulated depreciation, amortisation and impairment and gross carrying amount [axis]",
        "label": "Carrying amount, accumulated depreciation, amortisation and impairment and gross carrying amount [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r62",
      "r68",
      "r112",
      "r115",
      "r122",
      "r123",
      "r124",
      "r125",
      "r126",
      "r213",
      "r237",
      "r238"
     ]
    },
    "ifrs-full_CarryingAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CarryingAmountMember",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails",
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Carrying amount",
        "label": "Carrying amount [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the amount at which an asset is recognised in the statement of financial position (after deducting any accumulated depreciation or amortisation and accumulated impairment losses). It also represents the standard value for the 'Carrying amount, accumulated depreciation, amortisation and impairment and gross carrying amount' axis if no other member is used. [Refer: Depreciation and amortisation expense; Impairment loss]"
       }
      }
     },
     "auth_ref": [
      "r68",
      "r115",
      "r122",
      "r124",
      "r125",
      "r213",
      "r237",
      "r238"
     ]
    },
    "xp_CarteiraOnlineControleDeInvestimentosLtdaMEMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CarteiraOnlineControleDeInvestimentosLtdaMEMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Carteira Online Controle de Investimentos Ltda. - ME",
        "label": "Carteira Online Controle de Investimentos Ltda. - ME [Member]",
        "documentation": "Carteira Online Controle de Investimentos Ltda. - ME"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Cash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Cash",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 2.0
      },
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails": {
       "parentTag": "ifrs-full_NetDebt",
       "weight": -1.0,
       "order": 2.0
      },
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashAndCashEquivalents",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails",
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash",
        "negatedTerseLabel": "Cash",
        "label": "Cash"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash on hand and demand deposits. [Refer: Cash on hand]"
       }
      }
     },
     "auth_ref": [
      "r394"
     ]
    },
    "ifrs-full_CashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Cash and cash equivalents at the beginning of the fiscal year",
        "periodEndLabel": "Cash and cash equivalents at the end of the fiscal year",
        "label": "Cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash on hand and demand deposits, along with short-term, highly liquid investments that are readily convertible to known amounts of cash and that are subject to an insignificant risk of changes in value. [Refer: Cash; Cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r12",
      "r137",
      "r160"
     ]
    },
    "xp_CashAndSettlementRecordsAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CashAndSettlementRecordsAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails": {
       "parentTag": "xp_FinancialAssetsAtAmortizedCostSecuritiesTradingAndIntermediation",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and settlement records",
        "label": "Cash and settlement records assets",
        "documentation": "Cash and settlement records assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CashAndSettlementRecordsLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CashAndSettlementRecordsLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails": {
       "parentTag": "xp_SecuritiesTradingAndIntermediationLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and settlement records",
        "label": "Cash and settlement records liabilities",
        "documentation": "Cash and settlement records liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowHedgesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowHedgesMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingHedgediteminformationDetails",
      "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails",
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash flow hedges",
        "verboseLabel": "Hedge of cash flow",
        "label": "Cash flow hedges [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for hedges of the exposure to variability in cash flows that (a) are attributable to a particular risk associated with a recognised asset or liability (such as all or some future interest payments on variable rate debt) or a highly probable forecast transaction; and (b) could affect profit or loss. [Refer: Hedges [member]]"
       }
      }
     },
     "auth_ref": [
      "r119",
      "r221",
      "r226",
      "r230"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowsFromUsedInFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalentsBeforeEffectOfExchangeRateChanges",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash flows from/(used in) financing activities",
        "label": "Cash flows from (used in) financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from (used in) financing activities, which are activities that result in changes in the size and composition of the contributed equity and borrowings of the entity."
       }
      }
     },
     "auth_ref": [
      "r127",
      "r139"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowsFromUsedInFinancingActivitiesAbstract",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing activities",
        "label": "Cash flows from (used in) financing activities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowsFromUsedInInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalentsBeforeEffectOfExchangeRateChanges",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash flows from/(used in) investing activities",
        "label": "Cash flows from (used in) investing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from (used in) investing activities, which are the acquisition and disposal of long-term assets and other investments not included in cash equivalents."
       }
      }
     },
     "auth_ref": [
      "r127",
      "r139"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowsFromUsedInInvestingActivitiesAbstract",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment activities",
        "label": "Cash flows from (used in) investing activities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowsFromUsedInOperatingActivities",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalentsBeforeEffectOfExchangeRateChanges",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash flows from/(used in) operating activities",
        "label": "Cash flows from (used in) operating activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from (used in) operating activities, which are the principal revenue-producing activities of the entity and other activities that are not investing or financing activities. [Refer: Revenue]"
       }
      }
     },
     "auth_ref": [
      "r127",
      "r139"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowsFromUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating activities",
        "label": "Cash flows from (used in) operating activities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowsFromUsedInOperations",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Cash from/(used in) operations",
        "label": "Cash flows from (used in) operations"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash from (used in) the entity's operations."
       }
      }
     },
     "auth_ref": [
      "r315",
      "r318"
     ]
    },
    "ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Acquisition of subsidiaries, net of cash acquired",
        "label": "Cash flows used in obtaining control of subsidiaries or other businesses, classified as investing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The aggregate cash flows used in obtaining control of subsidiaries or other businesses, classified as investing activities. [Refer: Subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r133"
     ]
    },
    "xp_CashOnSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CashOnSubsidiaries",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash on subsidiaries",
        "label": "Cash on subsidiaries",
        "documentation": "Cash on subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashOutflowForLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CashOutflowForLeases",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "As of December 31, 2022",
        "label": "Cash outflow for leases"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for leases."
       }
      }
     },
     "auth_ref": [
      "r185"
     ]
    },
    "ifrs-full_CategoriesOfFinancialAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CategoriesOfFinancialAssetsAxis",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountECLsmeasuredusingsimplifiedapproachDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossusingsimplifiedmethodDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbymaturityDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesEvaluatedatAmortizedCostDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesatFairValueThroughOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Categories of financial assets [axis]",
        "label": "Categories of financial assets [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r252"
     ]
    },
    "ifrs-full_CategoriesOfFinancialLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CategoriesOfFinancialLiabilitiesAxis",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Categories of financial liabilities [axis]",
        "label": "Categories of financial liabilities [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r252"
     ]
    },
    "ifrs-full_CategoriesOfRelatedPartiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CategoriesOfRelatedPartiesAxis",
     "presentation": [
      "http://xpinc.com/role/RelatedpartytransactionsSummaryoftransactionsbetweenrelatedpartiesexplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Categories of related parties [axis]",
        "label": "Categories of related parties [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r79"
     ]
    },
    "xp_CertificateOfRealEstateReceivableMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CertificateOfRealEstateReceivableMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Real estate receivable certificates",
        "label": "Certificate of Real Estate Receivable [Member]",
        "documentation": "Certificate of Real Estate Receivable"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ChamaleonBraveryUnipessoalLDAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ChamaleonBraveryUnipessoalLDAMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Chamaleon Bravery Unipessoal LDA",
        "label": "Chamaleon Bravery Unipessoal LDA [Member]",
        "documentation": "Chamaleon Bravery Unipessoal LDA"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ChangesInAllowanceAccountForCreditLossesOfFinancialAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ChangesInAllowanceAccountForCreditLossesOfFinancialAssetsAbstract",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Changes in allowance account for credit losses of financial assets [abstract]",
        "label": "Changes in allowance account for credit losses of financial assets [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ChangesInAssetsAndLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ChangesInAssetsAndLiabilitiesAbstract",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Changes in assets and liabilities",
        "label": "Changes In Assets And Liabilities [Abstract]",
        "documentation": "Changes In Assets And Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ChangesInOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ChangesInOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/RetirementplansliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other provisions (Constitution/Reversion)",
        "label": "Increase (decrease) in other provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in other provisions. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r106"
     ]
    },
    "xp_Charity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "Charity",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails": {
       "parentTag": "ifrs-full_MiscellaneousOtherOperatingExpense",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Charity",
        "label": "Charity",
        "documentation": "Charity"
       }
      }
     },
     "auth_ref": []
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CityAreaCode",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "City Area Code",
        "label": "City Area Code",
        "documentation": "Area code of city"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CivilContingentLiabilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CivilContingentLiabilityMember",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesAdditionalinformationDetails",
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofcontingentliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Civil",
        "label": "Civil Contingent Liability [Member]",
        "documentation": "Civil Contingent Liability"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CivilProvisionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CivilProvisionsMember",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofotherprovisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Civil contingencies",
        "label": "Civil Provisions [Member]",
        "documentation": "Civil Provisions"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ClassACommonShareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ClassACommonShareMember",
     "presentation": [
      "http://xpinc.com/role/Cover",
      "http://xpinc.com/role/EquitySummaryofissuancesandconversationsofsharesDetails",
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class A Common Share",
        "label": "Class A Common Share [Member]",
        "documentation": "Class A Common Share"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ClassACommonSharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ClassACommonSharesMember",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class A Common Shares",
        "label": "Class A Common Shares [Member]",
        "documentation": "Class A Common Shares"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ClassAOrdinarySharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ClassAOrdinarySharesMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class A ordinary Shares",
        "label": "Class A ordinary Shares [Member]",
        "documentation": "Class A ordinary Shares"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ClassAStockThroughPrivatePlacementWarrantMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ClassAStockThroughPrivatePlacementWarrantMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class A Stock Through Private Placement Warrant [Member]",
        "label": "Class A Stock Through Private Placement Warrant [Member]",
        "documentation": "Class A Stock Through Private Placement Warrant"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ClassBCommonSharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ClassBCommonSharesMember",
     "presentation": [
      "http://xpinc.com/role/Cover",
      "http://xpinc.com/role/EquityAdditionalinformationDetails",
      "http://xpinc.com/role/EquitySummaryofissuancesandconversationsofsharesDetails",
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class B Common Shares",
        "label": "Class B Common Shares [Member]",
        "documentation": "Class B Common Shares"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ClassesOfAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfAssetsAxis",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of assets [axis]",
        "label": "Classes of assets [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r97",
      "r98",
      "r173",
      "r188"
     ]
    },
    "ifrs-full_ClassesOfAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfAssetsMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets",
        "label": "Assets [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a present economic resource controlled by the entity as a result of past events. Economic resource is a right that has the potential to produce economic benefits. It also represents the standard value for the 'Classes of assets' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r97",
      "r173",
      "r188"
     ]
    },
    "ifrs-full_ClassesOfContingentLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfContingentLiabilitiesAxis",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesAdditionalinformationDetails",
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofcontingentliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of contingent liabilities [axis]",
        "label": "Classes of contingent liabilities [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r108",
      "r212"
     ]
    },
    "ifrs-full_ClassesOfFinancialAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfFinancialAssetsAxis",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountECLsmeasuredusingsimplifiedapproachDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossusingsimplifiedmethodDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of financial assets [axis]",
        "label": "Classes of financial assets [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r200",
      "r244",
      "r245",
      "r270",
      "r271"
     ]
    },
    "ifrs-full_ClassesOfFinancialLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfFinancialLiabilitiesAxis",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of financial liabilities [axis]",
        "label": "Classes of financial liabilities [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r244",
      "r245",
      "r270",
      "r271"
     ]
    },
    "ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfIntangibleAssetsAndGoodwillAxis",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofusefullivesofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of intangible assets and goodwill [axis]",
        "label": "Classes of intangible assets and goodwill [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r386"
     ]
    },
    "ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfIntangibleAssetsOtherThanGoodwillAxis",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
      "http://xpinc.com/role/GroupstructureSummaryofintangibleassetsacquiredDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of intangible assets other than goodwill [axis]",
        "label": "Classes of intangible assets other than goodwill [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r116"
     ]
    },
    "ifrs-full_ClassesOfOrdinarySharesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfOrdinarySharesAxis",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
      "http://xpinc.com/role/SharebasedplanAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of ordinary shares [axis]",
        "label": "Classes of ordinary shares [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r93"
     ]
    },
    "ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfPropertyPlantAndEquipmentAxis",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofdepreciationofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of property, plant and equipment [axis]",
        "label": "Classes of property, plant and equipment [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r69"
     ]
    },
    "ifrs-full_ClassesOfProvisionsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfProvisionsAxis",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofotherprovisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of other provisions [axis]",
        "label": "Classes of other provisions [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r106"
     ]
    },
    "ifrs-full_ClassesOfShareCapitalAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfShareCapitalAxis",
     "presentation": [
      "http://xpinc.com/role/Cover",
      "http://xpinc.com/role/EquityAdditionalinformationDetails",
      "http://xpinc.com/role/EquitySummaryofissuancesandconversationsofsharesDetails",
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of share capital [axis]",
        "label": "Classes of share capital [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r32"
     ]
    },
    "ifrs-full_ClassesOfShareCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ClassesOfShareCapitalMember",
     "presentation": [
      "http://xpinc.com/role/Cover",
      "http://xpinc.com/role/EquityAdditionalinformationDetails",
      "http://xpinc.com/role/EquitySummaryofissuancesandconversationsofsharesDetails",
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share capital",
        "label": "Share capital [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for share capital of the entity. It also represents the standard value for the 'Classes of share capital' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r32"
     ]
    },
    "xp_ClearingHouseFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ClearingHouseFees",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingcostsDetails": {
       "parentTag": "xp_OtherCosts",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingcostsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Clearing house fees",
        "label": "Clearing House Fees",
        "documentation": "Clearing House Fees"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ClientPortfoliosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ClientPortfoliosMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Client Portfolios [Member]",
        "label": "Client Portfolios [Member]",
        "documentation": "Client Portfolios"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ColiseuFundoDeInvestimentoMultimercadoCrditoPrivadoInvestimentoNoExteriorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ColiseuFundoDeInvestimentoMultimercadoCrditoPrivadoInvestimentoNoExteriorMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Coliseu Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior",
        "label": "Coliseu Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior [Member]",
        "documentation": "Coliseu Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CollateralHeldMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CollateralHeldMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Collateral held",
        "label": "Collateral held [Member]",
        "documentation": "Collateral held"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CommercialNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CommercialNotesMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesEvaluatedatAmortizedCostDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commercial notes",
        "label": "Commercial notes [Member]",
        "documentation": "Commercial notes"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CommissionsAndPremiumsPaidInAdvanceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CommissionsAndPremiumsPaidInAdvanceMember",
     "presentation": [
      "http://xpinc.com/role/PrepaidexpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commissions and premiums paid in advance",
        "label": "Commissions and premiums paid in advance [Member]",
        "documentation": "Commissions and premiums paid in advance"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CommitmentToSellMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CommitmentToSellMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitments to sell",
        "label": "Commitment to sell [Member]",
        "documentation": "Commitment to sell"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CommitmentsSubjectToRedemption": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CommitmentsSubjectToRedemption",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails": {
       "parentTag": "ifrs-full_OtherFinancialLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitments subject to possible redemption",
        "label": "Commitments Subject To Redemption",
        "documentation": "Commitments Subject To Redemption"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CommoditiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CommoditiesMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commodities",
        "label": "Commodities [Member]",
        "documentation": "Commodities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CommunicationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CommunicationExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "ifrs-full_OtherExpenseByNature",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Communication",
        "label": "Communication expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense arising from communication."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "ifrs-full_ComponentsOfEquityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ComponentsOfEquityAxis",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Components of equity [axis]",
        "label": "Components of equity [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Items that can be subsequently reclassified to income",
        "label": "Components of other comprehensive income that will be reclassified to profit or loss, net of tax [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome_1": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total comprehensive income for the year",
        "label": "Comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of change in equity resulting from transactions and other events, other than those changes resulting from transactions with owners in their capacity as owners."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r37",
      "r142",
      "r144",
      "r157",
      "r320"
     ]
    },
    "ifrs-full_ComprehensiveIncomeAttributableToAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ComprehensiveIncomeAttributableToAbstract",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total comprehensive income attributable to:",
        "label": "Comprehensive income attributable to [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ComprehensiveIncomeAttributableToOwnersOfParent",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Owners of the Parent company",
        "label": "Comprehensive income, attributable to owners of parent"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of comprehensive income attributable to owners of the parent. [Refer: Comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r1",
      "r40"
     ]
    },
    "xp_CompulsoryAndOtherDepositsAtCentralBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CompulsoryAndOtherDepositsAtCentralBanks",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails_1": {
       "parentTag": "ifrs-full_OtherFinancialAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Compulsory and other deposits at Central Bank",
        "label": "Compulsory and other deposits at central banks",
        "documentation": "Compulsory and other deposits at central banks"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ComputerSoftwareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ComputerSoftwareMember",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofusefullivesofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Software",
        "label": "Computer software [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets representing computer software. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r308"
     ]
    },
    "ifrs-full_ConcentrationsOfRiskAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ConcentrationsOfRiskAxis",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Concentrations of risk [axis]",
        "label": "Concentrations of risk [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r196"
     ]
    },
    "ifrs-full_ConcentrationsOfRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ConcentrationsOfRiskMember",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Concentrations of risk [member]",
        "label": "Concentrations of risk [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the concentrations of risk. It also represents the standard value for the 'Concentrations of risk' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r196"
     ]
    },
    "xp_ConsignadoPublicoXPFundoDeInvestimentoEmDireitosCreditoriosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ConsignadoPublicoXPFundoDeInvestimentoEmDireitosCreditoriosMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consignado P\u00fablico XP Fundo de Investimento em Direitos Credit\u00f3rios [Member]",
        "label": "Consignado P\u00fablico XP Fundo de Investimento em Direitos Credit\u00f3rios [Member]",
        "documentation": "Consignado P\u00fablico XP Fundo de Investimento em Direitos Credit\u00f3rios"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ConsolidatedStagesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ConsolidatedStagesMember",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidated Stages",
        "label": "Consolidated Stages [Member]",
        "documentation": "Consolidated Stages"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ConstructionInProgressMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ConstructionInProgressMember",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed assets in progress",
        "label": "Construction in progress [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for expenditure capitalised during the construction of items of property, plant and equipment that are not yet available for use (ie not yet in the location and condition necessary for it to be capable of operating in the manner intended by the management). [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r374"
     ]
    },
    "ifrs-full_ConsumerLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ConsumerLoansMember",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pledged asset loan",
        "label": "Loans to consumers [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for loans that are made to individuals for personal use."
       }
      }
     },
     "auth_ref": [
      "r333",
      "r344",
      "r347"
     ]
    },
    "dei_ContactPersonnelName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "ContactPersonnelName",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contact Personnel Name",
        "label": "Contact Personnel Name",
        "documentation": "Name of contact personnel"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ContingenciesPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ContingenciesPaid",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Contingencies paid",
        "label": "Contingencies Paid",
        "documentation": "Contingencies Paid"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ContingentConsiderationInAnalysisOfCashFlowsOnAcquisition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ContingentConsiderationInAnalysisOfCashFlowsOnAcquisition",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contingent consideration in analysis of cash flows on acquisition",
        "label": "Contingent consideration in analysis of cash flows on acquisition",
        "documentation": "Contingent consideration in analysis of cash flows on acquisition"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ContingentConsiderationOfSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ContingentConsiderationOfSubsidiaries",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contingent consideration of subsidiaries",
        "label": "Contingent consideration of subsidiaries",
        "documentation": "Contingent consideration of subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ContingentConsiderationPayableInInstallmentsAsPartOfAcquisition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ContingentConsiderationPayableInInstallmentsAsPartOfAcquisition",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contingent Consideration Payable in Installments as Part of Acquisition",
        "label": "Contingent Consideration Payable in Installments as Part of Acquisition",
        "documentation": "Contingent Consideration Payable in Installments as Part of Acquisition"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ContingentConsiderationRecognisedAsOfAcquisitionDate",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails": {
       "parentTag": "ifrs-full_OtherFinancialLiabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contingent consideration",
        "label": "Contingent consideration recognised as of acquisition date"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount, at acquisition date, of contingent consideration arrangements recognised as consideration transferred in a business combination. [Refer: Business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r208"
     ]
    },
    "ifrs-full_ContingentLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ContingentLiabilitiesMember",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesAdditionalinformationDetails",
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofcontingentliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contingent liabilities",
        "label": "Contingent liabilities [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for possible obligations that arise from past events and whose existence will be confirmed only by the occurrence or non-occurrence of one or more uncertain future events not wholly within the control of the entity; or, present obligations that arise from past events but are not recognised because (a) it is probable that an outflow of resources embodying economic benefits will be required to settle the obligations; or (b) the amount of the obligations cannot be measured with sufficient reliability. It also represents the standard value for the 'Classes of contingent liabilities' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r109",
      "r212"
     ]
    },
    "xp_ContractsUnderFinancialCovenants": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ContractsUnderFinancialCovenants",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CapitalmanagementAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contracts under financial covenants",
        "label": "Contracts under financial covenants",
        "documentation": "Contracts under financial covenants"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ContractualMaximumAmountPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ContractualMaximumAmountPayable",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contractual maximum amount payable",
        "label": "Contractual maximum amount payable",
        "documentation": "Contractual maximum amount payable"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ContributionsOverRevenuePISAndCOFINSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ContributionsOverRevenuePISAndCOFINSMember",
     "presentation": [
      "http://xpinc.com/role/RecoverabletaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contributions over revenue (PIS and COFINS)",
        "label": "Contributions Over Revenue PIS and COFINS [Member]",
        "documentation": "Contributions Over Revenue PIS and COFINS"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ContributionsToPlanNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ContributionsToPlanNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/RetirementplansliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contributions received",
        "label": "Decrease (increase) in net defined benefit liability (asset) resulting from contributions to plan"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in the net defined benefit liability (asset) resulting from contributions to a defined benefit plan. [Refer: Net defined benefit liability (asset); Defined benefit plans [member]]"
       }
      }
     },
     "auth_ref": [
      "r74"
     ]
    },
    "xp_CoreDeposits.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CoreDeposits.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
      "http://xpinc.com/role/GroupstructureSummaryofintangibleassetsacquiredDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Core Deposits",
        "label": "Core Deposits. [Member]",
        "documentation": "Core Deposits."
       }
      }
     },
     "auth_ref": []
    },
    "xp_CorporateBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CorporateBondsMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesatFairValueThroughOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Corporate bonds",
        "label": "Corporate bonds [Member]",
        "documentation": "Corporate bonds"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CorporateIncomeTaxLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CorporateIncomeTaxLiability",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/TaxandsocialsecurityobligationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Corporate income tax liability",
        "label": "Corporate income tax liability",
        "documentation": "Corporate income tax liability"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CorporateIncomeTaxPrepaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CorporateIncomeTaxPrepaid",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/TaxandsocialsecurityobligationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Corporate income tax prepaid",
        "label": "Corporate Income Tax Prepaid",
        "documentation": "Corporate Income Tax Prepaid"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CountryOfIncorporationOrResidenceOfSubsidiary": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CountryOfIncorporationOrResidenceOfSubsidiary",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Country of incorporation",
        "label": "Country of incorporation of subsidiary"
       }
      },
      "en": {
       "role": {
        "documentation": "The country in which a subsidiary of the entity is incorporated. [Refer: Subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r85",
      "r89",
      "r148",
      "r152"
     ]
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CoverAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cover [Abstract]",
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "xp_CreditCardCashback": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CreditCardCashback",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingcostsDetails": {
       "parentTag": "xp_OtherCosts",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingcostsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit card cashback",
        "label": "Credit card cashback",
        "documentation": "Credit card cashback"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CreditCardsOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CreditCardsOperations",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails": {
       "parentTag": "ifrs-full_OtherFinancialLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit cards operations",
        "label": "Credit cards operations",
        "documentation": "Credit cards operations"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CreditRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CreditRiskMember",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit risk",
        "label": "Credit risk [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the risk that one party to a financial instrument will cause a financial loss for the other party by failing to discharge an obligation. [Refer: Financial instruments, class [member]]"
       }
      }
     },
     "auth_ref": [
      "r194",
      "r195",
      "r196",
      "r328"
     ]
    },
    "xp_CreditorsPendingSettlement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CreditorsPendingSettlement",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails": {
       "parentTag": "xp_SecuritiesTradingAndIntermediationLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Creditors pending settlement",
        "label": "Creditors pending settlement",
        "documentation": "Creditors pending settlement"
       }
      }
     },
     "auth_ref": []
    },
    "xp_CtrleParticipacoesLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CtrleParticipacoesLtdaMember",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ctrl+e Participa\u00e7\u00f5es Ltda",
        "label": "Ctrl+e Participa\u00e7\u00f5es Ltda [Member]",
        "documentation": "Represents Ctrl+e Participa\u00e7\u00f5es Ltda"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrencyRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrencyRiskMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign exchange risk",
        "label": "Currency risk [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a type of market risk representing the risk that the fair value or future cash flows of a financial instrument will fluctuate because of changes in foreign exchange rates. [Refer: Financial instruments, class [member]]"
       }
      }
     },
     "auth_ref": [
      "r194",
      "r195",
      "r196",
      "r197",
      "r256"
     ]
    },
    "ifrs-full_CurrentDebtInstrumentsIssued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentDebtInstrumentsIssued",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesDetails": {
       "parentTag": "ifrs-full_DebtSecurities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current",
        "label": "Current debt instruments issued"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current debt instruments issued. [Refer: Debt instruments issued]"
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "ifrs-full_CurrentDepositsFromCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentDepositsFromCustomers",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails_1": {
       "parentTag": "ifrs-full_DepositsFromCustomers",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "lang": {
      "en": {
       "role": {
        "documentation": "The amount of current deposits from customers. [Refer: Deposits from customers]"
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "ifrs-full_CurrentFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails": {
       "parentTag": "ifrs-full_FinancialAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current financial assets",
        "label": "Current financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current financial assets. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r232"
     ]
    },
    "ifrs-full_CurrentFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentFinancialLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails": {
       "parentTag": "ifrs-full_FinancialLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current financial liabilities",
        "label": "Current financial liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current financial liabilities. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r232"
     ]
    },
    "xp_CurrentFinancingInstrumentsPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CurrentFinancingInstrumentsPayables",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails_1": {
       "parentTag": "xp_FinancingInstrumentsPayables",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current",
        "label": "Current Financing Instruments Payables",
        "documentation": "Current Financing Instruments Payables"
       }
      }
     },
     "auth_ref": []
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current Fiscal Year End Date",
        "label": "Current Fiscal Year End Date",
        "documentation": "End date of current fiscal year in the format --MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentLeaseLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails": {
       "parentTag": "ifrs-full_LeaseLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current",
        "label": "Current lease liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current lease liabilities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r180"
     ]
    },
    "xp_CurrentPayablesOnSocialSecurityAndTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CurrentPayablesOnSocialSecurityAndTaxes",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails_1": {
       "parentTag": "xp_PayablesOnSocialSecurityAndTaxes",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current",
        "label": "Current Payables On Social Security And Taxes",
        "documentation": "Current Payables On Social Security And Taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentPrepayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentPrepayments",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/PrepaidexpensesDetails": {
       "parentTag": "ifrs-full_Prepayments",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/PrepaidexpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current",
        "label": "Current prepayments"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current prepayments. [Refer: Prepayments]"
       }
      }
     },
     "auth_ref": [
      "r300"
     ]
    },
    "ifrs-full_CurrentTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentTaxAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_OtherAssets",
       "weight": 1.0,
       "order": 2.0
      },
      "http://xpinc.com/role/RecoverabletaxesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/RecoverabletaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Recoverable taxes",
        "totalLabel": "Recoverable taxes",
        "label": "Current tax assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The excess of amount paid for current tax in respect of current and prior periods over the amount due for those periods. Current tax is the amount of income taxes payable (recoverable) in respect of the taxable profit (tax loss) for a period."
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "ifrs-full_CurrentTaxAssetsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentTaxAssetsCurrent",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/RecoverabletaxesDetails": {
       "parentTag": "ifrs-full_CurrentTaxAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/RecoverabletaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current",
        "label": "Current tax assets, current"
       }
      },
      "en": {
       "role": {
        "documentation": "The current amount of current tax assets. [Refer: Current tax assets]"
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "ifrs-full_CurrentTaxAssetsNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentTaxAssetsNoncurrent",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/RecoverabletaxesDetails": {
       "parentTag": "ifrs-full_CurrentTaxAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/RecoverabletaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-current",
        "label": "Current tax assets, non-current"
       }
      },
      "en": {
       "role": {
        "documentation": "The non-current amount of current tax assets. [Refer: Current tax assets]"
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "ifrs-full_CurrentTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentTaxExpenseIncome",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofincometaxcalculationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current",
        "label": "Current tax expense (income)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income taxes payable (recoverable) in respect of the taxable profit (tax loss) for a period."
       }
      }
     },
     "auth_ref": [
      "r303"
     ]
    },
    "ifrs-full_CurrentTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CurrentTaxLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails": {
       "parentTag": "xp_PayablesOnSocialSecurityAndTaxes",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income Tax (IRPJ and CSLL) (i)",
        "label": "Current tax liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current tax for current and prior periods to the extent unpaid. Current tax is the amount of income taxes payable (recoverable) in respect of the taxable profit (tax loss) for a period."
       }
      }
     },
     "auth_ref": [
      "r15"
     ]
    },
    "ifrs-full_CustomerrelatedIntangibleAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "CustomerrelatedIntangibleAssetsMember",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofusefullivesofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Customer list",
        "label": "Customer-related intangible assets [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets representing assets related to customers. Such assets may include customer lists, order or production backlog, customer contracts and related customer relationships as well as non-contractual customer relationships."
       }
      }
     },
     "auth_ref": [
      "r387"
     ]
    },
    "xp_CustomersCashOnInvestmentAccount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "CustomersCashOnInvestmentAccount",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails": {
       "parentTag": "xp_SecuritiesTradingAndIntermediationLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Customer's cash on investment account",
        "label": "Customer's cash on investment account",
        "documentation": "Customer's cash on investment account"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DM10CorretoraDeSegurosLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DM10CorretoraDeSegurosLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "DM10 Corretora de Seguros Ltda.",
        "label": "DM10 Corretora de Seguros Ltda. [Member]",
        "documentation": "DM10 Corretora de Seguros Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_DataProcessingExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DataProcessingExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "ifrs-full_OtherExpenseByNature",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Data processing",
        "label": "Data processing expense",
        "documentation": "Data processing expense"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DataProcessingSystemsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DataProcessingSystemsMember",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofdepreciationofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Data processing system",
        "label": "Data Processing Systems [Member]",
        "documentation": "Data Processing Systems"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DebenturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DebenturesMember",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesEvaluatedatAmortizedCostDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debentures",
        "label": "Debentures [Member]",
        "documentation": "Debentures"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DebenturesSeriesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DebenturesSeriesAxis",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debentures series [Axis]",
        "label": "Debentures series [Axis]",
        "documentation": "Debentures series"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DebenturesSeriesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DebenturesSeriesDomain",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debentures series [Domain]",
        "label": "Debentures series [Domain]",
        "documentation": "Debentures series"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DebtSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DebtSecurities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails": {
       "parentTag": "xp_FinancingInstrumentsPayables",
       "weight": 1.0,
       "order": 1.0
      },
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total",
        "label": "Debt instruments issued"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of instruments issued by the entity that represent indebtedness."
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "xp_DebtorsPendingSettlement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DebtorsPendingSettlement",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails": {
       "parentTag": "xp_FinancialAssetsAtAmortizedCostSecuritiesTradingAndIntermediation",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debtors pending settlement",
        "label": "Debtors pending settlement",
        "documentation": "Debtors pending settlement"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DecreaseThroughWriteOffLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DecreaseThroughWriteOffLeases",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Write off",
        "label": "Decrease through write off leases",
        "documentation": "Represents decrease through write of leases"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DecreaseThroughWriteOffRightOfUseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DecreaseThroughWriteOffRightOfUseAssets",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Decrease Through Write-Off, Right-Of-Use Assets",
        "label": "Decrease Through Write-Off, Right-Of-Use Assets",
        "documentation": "Decrease Through Write-Off, Right-Of-Use Assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DecreaseThroughWriteoffFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DecreaseThroughWriteoffFinancialAssets",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Decrease through write-off, financial assets",
        "label": "Decrease through write-off, financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease in financial assets resulting from write-off. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r329",
      "r330",
      "r343"
     ]
    },
    "ifrs-full_DeferredTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DeferredTaxAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred tax assets",
        "label": "Deferred tax assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amounts of income taxes recoverable in future periods in respect of: (a) deductible temporary differences; (b) the carryforward of unused tax losses; and (c) the carryforward of unused tax credits. [Refer: Temporary differences [member]; Unused tax credits [member]; Unused tax losses [member]]"
       }
      }
     },
     "auth_ref": [
      "r16",
      "r20",
      "r57"
     ]
    },
    "ifrs-full_DeferredTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DeferredTaxExpenseIncome",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred tax expense (income)",
        "label": "Deferred tax expense (income)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of tax expense (income) relating to changes in deferred tax liabilities and deferred tax assets. [Refer: Deferred tax assets; Deferred tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "ifrs-full_DeferredTaxExpenseIncomeRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DeferredTaxExpenseIncomeRecognisedInProfitOrLoss",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofincometaxcalculationDetails",
      "http://xpinc.com/role/IncometaxSummaryofreconciliationofchangesindeferredtaxliabilityassetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Charges to statement of income",
        "negatedTerseLabel": "Deferred",
        "label": "Deferred tax expense (income) recognised in profit or loss"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of tax expense or income relating to changes in deferred tax liabilities and deferred tax assets, recognised in profit or loss. [Refer: Deferred tax assets; Deferred tax expense (income); Deferred tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "ifrs-full_DeferredTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DeferredTaxLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_Liabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred tax liabilities",
        "negatedTerseLabel": "Deferred tax liabilities",
        "label": "Deferred tax liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amounts of income taxes payable in future periods in respect of taxable temporary differences. [Refer: Temporary differences [member]]"
       }
      }
     },
     "auth_ref": [
      "r16",
      "r20",
      "r57"
     ]
    },
    "ifrs-full_DeferredTaxLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DeferredTaxLiabilityAsset",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails",
      "http://xpinc.com/role/IncometaxSummaryofreconciliationofchangesindeferredtaxliabilityassetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred tax liability (asset)",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "Deferred tax liability (asset)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of deferred tax liabilities or assets. [Refer: Deferred tax liabilities; Deferred tax assets]"
       }
      }
     },
     "auth_ref": [
      "r57"
     ]
    },
    "xp_DepositsAtCentralBank": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DepositsAtCentralBank",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails": {
       "parentTag": "ifrs-full_NetDebt",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Deposits at Central Bank",
        "label": "Deposits at Central Bank",
        "documentation": "Deposits at Central Bank"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DepositsFinancialBillsAndStructuredOperationsCertificates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DepositsFinancialBillsAndStructuredOperationsCertificates",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Market funding operations",
        "label": "Deposits, Financial Bills And Structured Operations Certificates",
        "documentation": "Deposits, Financial Bills And Structured Operations Certificates"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DepositsFromBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DepositsFromBanks",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails": {
       "parentTag": "xp_DepositsFinancialBillsAndStructuredOperationsCertificates",
       "weight": 1.0,
       "order": 1.0
      },
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails": {
       "parentTag": "xp_FinancingInstrumentsPayables",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interbank deposits",
        "label": "Deposits from banks"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of deposit liabilities from banks held by the entity."
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "xp_DepositsFromBanksAndCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DepositsFromBanksAndCustomers",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Deposits",
        "label": "Deposits From Banks And Customers",
        "documentation": "Deposits From Banks And Customers"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DepositsFromCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DepositsFromCustomers",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails_1": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "lang": {
      "en": {
       "role": {
        "documentation": "The amount of deposit liabilities from customers held by the entity."
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "ifrs-full_DepreciationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DepreciationExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "ifrs-full_AdministrativeExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Depreciation of property and equipment and right-of-use assets",
        "label": "Depreciation expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of depreciation expense. Depreciation is the systematic allocation of depreciable amounts of tangible assets over their useful lives."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "ifrs-full_DepreciationPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DepreciationPropertyPlantAndEquipment",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Depreciation in the year",
        "label": "Depreciation, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of depreciation of property, plant and equipment. [Refer: Depreciation and amortisation expense; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r66",
      "r70"
     ]
    },
    "ifrs-full_DepreciationRatePropertyPlantAndEquipment": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DepreciationRatePropertyPlantAndEquipment",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofdepreciationofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Depreciation annual rate",
        "label": "Depreciation rate, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The depreciation rate used for property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "ifrs-full_DepreciationRightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DepreciationRightofuseAssets",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Depreciation expense",
        "label": "Depreciation, right-of-use assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of depreciation of right-of-use assets. [Refer: Depreciation and amortisation expense; Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r181"
     ]
    },
    "ifrs-full_DerivativeFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DerivativeFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss",
       "weight": 1.0,
       "order": 1.0
      },
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails": {
       "parentTag": "xp_FinancialAssetsIncludingOffBalanceSheetAmounts",
       "weight": 1.0,
       "order": 1.0
      },
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails": {
       "parentTag": "xp_DerivativeFinancialAssetsLiabilitiesNet",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Derivative financial instruments",
        "terseLabel": "Assets, fair value",
        "label": "Derivative financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial assets classified as derivative instruments. [Refer: Financial assets; Derivatives [member]]"
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "xp_DerivativeFinancialAssetsLiabilitiesNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DerivativeFinancialAssetsLiabilitiesNet",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net, fair value",
        "label": "Derivative financial assets liabilities net",
        "documentation": "Derivative financial assets liabilities net"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DerivativeFinancialAssetsNotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DerivativeFinancialAssetsNotionalAmount",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets, notional amount",
        "label": "Derivative Financial Assets Notional Amount",
        "documentation": "Derivative Financial Assets Notional Amount"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DerivativeFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DerivativeFinancialLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss",
       "weight": 1.0,
       "order": 1.0
      },
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails": {
       "parentTag": "xp_DerivativeFinancialAssetsLiabilitiesNet",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails",
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative financial instruments",
        "verboseLabel": "Liabilities, fair value",
        "negatedLabel": "Liabilities, fair value",
        "label": "Derivative financial liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial liabilities classified as derivative instruments. [Refer: Financial assets; Derivatives [member]]"
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "xp_DerivativeFinancialLiabilitiesNotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DerivativeFinancialLiabilitiesNotionalAmount",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liabilities, notional amount",
        "label": "Derivative financial liabilities notional amount.",
        "documentation": "Derivative financial liabilities notional amount."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfAccountingPolicyForAvailableforsaleFinancialAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForAvailableforsaleFinancialAssetsExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities purchased under agreements to resell and obligations related to securities sold under repurchase agreements",
        "label": "Description of accounting policy for available-for-sale financial assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's accounting policy for available-for-sale financial assets. [Refer: Financial assets available-for-sale]"
       }
      }
     },
     "auth_ref": [
      "r400"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForBorrowingsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForBorrowingsExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt securities and Borrowings",
        "label": "Description of accounting policy for borrowings [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForBusinessCombinationsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForBusinessCombinationsExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business combinations",
        "label": "Description of accounting policy for business combinations [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for business combinations. [Refer: Business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForDerivativeFinancialInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForDerivativeFinancialInstrumentsExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative financial instruments",
        "label": "Description of accounting policy for derivative financial instruments [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for derivative financial instruments. [Refer: Financial instruments, class [member]; Derivatives [member]]"
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForEarningsPerShareExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForEarningsPerShareExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Earnings per share",
        "label": "Description of accounting policy for earnings per share [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for earnings per share."
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForEmployeeBenefitsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForEmployeeBenefitsExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee benefits",
        "label": "Description of accounting policy for employee benefits [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for employee benefits. Employee benefits are all forms of consideration given by an entity in exchange for services rendered by employees or for the termination of employment."
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "xp_DescriptionOfAccountingPolicyForEquitySecurityLoansPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DescriptionOfAccountingPolicyForEquitySecurityLoansPolicyTextBlock",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity security loans",
        "label": "Description Of Accounting Policy For Equity Security Loans [Policy Text Block]",
        "documentation": "Description Of Accounting Policy For Equity Security Loans"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial instruments",
        "label": "Description of accounting policy for financial instruments [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for financial instruments. [Refer: Financial instruments, class [member]]"
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForForeignCurrencyTranslationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForForeignCurrencyTranslationExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign currency translation",
        "label": "Description of accounting policy for foreign currency translation [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for foreign currency translation."
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForImpairmentOfAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForImpairmentOfAssetsExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Impairment test for goodwill",
        "label": "Description of accounting policy for impairment of assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for the impairment of assets."
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForImpairmentOfNonfinancialAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForImpairmentOfNonfinancialAssetsExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Impairment of non-financial assets",
        "label": "Description of accounting policy for impairment of non-financial assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for the impairment of non-financial assets. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForIncomeTaxExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForIncomeTaxExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Taxes",
        "label": "Description of accounting policy for income tax [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for income tax."
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForIntangibleAssetsAndGoodwillExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForIntangibleAssetsAndGoodwillExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Intangible assets",
        "label": "Description of accounting policy for intangible assets and goodwill [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for intangible assets and goodwill. [Refer: Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForIssuedCapitalExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForIssuedCapitalExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share capital",
        "label": "Description of accounting policy for issued capital [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for issued capital. [Refer: Issued capital]"
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForLeasesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForLeasesExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Leases",
        "label": "Description of accounting policy for leases [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for leases. A lease is an agreement whereby the lessor conveys to the lessee in return for a payment or series of payments the right to use an asset for an agreed period of time."
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForLoansAndReceivablesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForLoansAndReceivablesExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loan operations",
        "label": "Description of accounting policy for loans and receivables [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's accounting policy for loans and receivables. [Refer: Loans and receivables]"
       }
      }
     },
     "auth_ref": [
      "r400"
     ]
    },
    "xp_DescriptionOfAccountingPolicyForPrepaidExpensesPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DescriptionOfAccountingPolicyForPrepaidExpensesPolicyTextBlock",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prepaid expenses",
        "label": "Description Of Accounting Policy For Prepaid Expenses [Policy Text Block]",
        "documentation": "Description Of Accounting Policy For Prepaid Expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Property and equipment",
        "label": "Description of accounting policy for property, plant and equipment [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForProvisionsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForProvisionsExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provisions",
        "label": "Description of accounting policy for provisions [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for provisions. [Refer: Provisions]"
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForRecognitionOfRevenue": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForRecognitionOfRevenue",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revenue and income",
        "label": "Description of accounting policy for recognition of revenue [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for recognising revenue. [Refer: Revenue]"
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForSegmentReportingExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForSegmentReportingExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Segment reporting",
        "label": "Description of accounting policy for segment reporting [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for segment reporting."
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForTerminationBenefits": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForTerminationBenefits",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Private pension liabilities",
        "label": "Description of accounting policy for termination benefits [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for termination benefits. [Refer: Termination benefits expense]"
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForTradeAndOtherPayablesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForTradeAndOtherPayablesExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts payables",
        "label": "Description of accounting policy for trade and other payables [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for trade and other payables. [Refer: Trade and other payables]"
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForTradingIncomeAndExpenseExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForTradingIncomeAndExpenseExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities trading and intermediation (receivable and payable)",
        "label": "Description of accounting policy for trading income and expense [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for trading income and expense. [Refer: Trading income (expense)]"
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForTreasurySharesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForTreasurySharesExplanatory",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Treasury shares",
        "label": "Description of accounting policy for treasury shares [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for treasury shares. [Refer: Treasury shares]"
       }
      }
     },
     "auth_ref": [
      "r367"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyToDetermineComponentsOfCashAndCashEquivalents": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyToDetermineComponentsOfCashAndCashEquivalents",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and cash equivalents",
        "label": "Description of accounting policy for determining components of cash and cash equivalents [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's accounting policy used to determine the components of cash and cash equivalents. [Refer: Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r138"
     ]
    },
    "ifrs-full_DescriptionOfDiscountRatesAppliedToCashFlowProjections": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfDiscountRatesAppliedToCashFlowProjections",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesAdditionaldetailsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average pre-tax discount rate applied to cash flow projections",
        "label": "Discount rate applied to cash flow projections"
       }
      },
      "en": {
       "role": {
        "documentation": "The discount rate applied to cash flow projections for a cash-generating unit (group of units). [Refer: Cash-generating units [member]]"
       }
      }
     },
     "auth_ref": [
      "r100",
      "r102"
     ]
    },
    "ifrs-full_DescriptionOfGrowthRateUsedToExtrapolateCashFlowProjections": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfGrowthRateUsedToExtrapolateCashFlowProjections",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesAdditionaldetailsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-term growth rate utilized in the impairment test of goodwill",
        "label": "Growth rate used to extrapolate cash flow projections"
       }
      },
      "en": {
       "role": {
        "documentation": "The growth rate used to extrapolate cash flow projections beyond the period covered by the most recent budgets/forecasts for a cash-generating unit (group of units). [Refer: Cash-generating units [member]]"
       }
      }
     },
     "auth_ref": [
      "r99",
      "r101"
     ]
    },
    "ifrs-full_DescriptionOfNatureOfEntitysOperationsAndPrincipalActivities": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DescriptionOfNatureOfEntitysOperationsAndPrincipalActivities",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Principal activities",
        "label": "Description of nature of entity's operations and principal activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the nature of the entity's operations and principal activities."
       }
      }
     },
     "auth_ref": [
      "r9"
     ]
    },
    "ifrs-full_DilutedEarningsLossPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DilutedEarningsLossPerShare",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/EarningspersharebasicanddilutedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Diluted earnings per share (in R$ per share)",
        "label": "Diluted earnings (loss) per share"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of profit (loss) attributable to ordinary equity holders of the parent entity (the numerator), divided by the weighted average number of ordinary shares outstanding during the period (the denominator), both adjusted for the effects of all dilutive potential ordinary shares. [Refer: Ordinary shares [member]; Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r93",
      "r94"
     ]
    },
    "xp_DisaggregationOfRevenueByMajorServiceLinesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisaggregationOfRevenueByMajorServiceLinesTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disaggregation of revenue by major service lines",
        "label": "Disaggregation of Revenue by Major Service Lines [Table Text Block]",
        "documentation": "Disaggregation of Revenue by Major Service Lines"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfAccountingJudgementsAndEstimatesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfAccountingJudgementsAndEstimatesExplanatory",
     "presentation": [
      "http://xpinc.com/role/Significantaccountingjudgementsestimatesandassumptions"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Significant accounting judgements, estimates and assumptions",
        "label": "Disclosure of accounting judgements and estimates [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of judgements that management has made in the process of applying the entity's accounting policies that have the most significant effect on amounts recognised in the financial statements along with information about the assumptions that the entity makes about the future, and other major sources of estimation uncertainty at the end of the reporting period, that have a significant risk of resulting in a material adjustment to the carrying amounts of assets and liabilities within the next year. [Refer: Carrying amount [member]]"
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "xp_DisclosureOfAccountingPolicyForBasisOfConsolidationPolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfAccountingPolicyForBasisOfConsolidationPolicyTextBlock",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Basis of preparation",
        "label": "Disclosure Of Accounting Policy For Basis Of Consolidation [Policy Text Block]",
        "documentation": "Disclosure Of Accounting Policy For Basis Of Consolidation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfAllowanceForCreditLossesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfAllowanceForCreditLossesExplanatory",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamount"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expected Credit Losses on Financial Assets and Reconciliation of carrying amount",
        "label": "Disclosure of allowance for credit losses [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the allowance relating to impairments of financial assets due to credit losses. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "ifrs-full_DisclosureOfAnalysisOfOtherComprehensiveIncomeByItemExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfAnalysisOfOtherComprehensiveIncomeByItemExplanatory",
     "presentation": [
      "http://xpinc.com/role/IncometaxTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of analysis of other comprehensive income by item",
        "label": "Disclosure of analysis of other comprehensive income by item [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure of the analysis of other comprehensive income by item."
       }
      }
     },
     "auth_ref": [
      "r7"
     ]
    },
    "ifrs-full_DisclosureOfBasisOfConsolidationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfBasisOfConsolidationExplanatory",
     "presentation": [
      "http://xpinc.com/role/Groupstructure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Group structure",
        "label": "Disclosure of basis of consolidation [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the basis used for consolidation."
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "xp_DisclosureOfBasisOfPreparationOfFinancialStatementsAbstractAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfBasisOfPreparationOfFinancialStatementsAbstractAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Basis Of Preparation Of Financial Statements Abstract [Abstract]",
        "label": "Disclosure Of Basis Of Preparation Of Financial Statements Abstract [Abstract]",
        "documentation": "Disclosure Of Basis Of Preparation Of Financial Statements Abstract"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory",
     "presentation": [
      "http://xpinc.com/role/BasisofpreparationofthefinancialstatementsandchangestotheGroupsaccountingpolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Basis of preparation of the financial statements",
        "label": "Disclosure of basis of preparation of financial statements [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the basis used for the preparation of the financial statements."
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "ifrs-full_DisclosureOfBorrowingsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfBorrowingsExplanatory",
     "presentation": [
      "http://xpinc.com/role/Borrowings"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Borrowings",
        "label": "Disclosure of borrowings [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "ifrs-full_DisclosureOfCashFlowStatementExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfCashFlowStatementExplanatory",
     "presentation": [
      "http://xpinc.com/role/Cashflowinformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash flow information",
        "label": "Disclosure of cash flow statement [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for a statement of cash flows."
       }
      }
     },
     "auth_ref": [
      "r140"
     ]
    },
    "xp_DisclosureOfChangesInOtherProvisionsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfChangesInOtherProvisionsTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of changes in other provisions",
        "label": "Disclosure of Changes in Other Provisions [Table Text Block]",
        "documentation": "Disclosure of Changes in Other Provisions"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfClassesOfShareCapitalAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfClassesOfShareCapitalAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of classes of share capital [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfClassesOfShareCapitalExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfClassesOfShareCapitalExplanatory",
     "presentation": [
      "http://xpinc.com/role/EquityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of issuances and conversations of shares",
        "label": "Disclosure of classes of share capital [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of classes of share capital. [Refer: Share capital [member]]"
       }
      }
     },
     "auth_ref": [
      "r32"
     ]
    },
    "ifrs-full_DisclosureOfClassesOfShareCapitalLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfClassesOfShareCapitalLineItems",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails",
      "http://xpinc.com/role/EquitySummaryofissuancesandconversationsofsharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of classes of share capital [line items]",
        "label": "Disclosure of classes of share capital [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfClassesOfShareCapitalTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfClassesOfShareCapitalTable",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails",
      "http://xpinc.com/role/EquitySummaryofissuancesandconversationsofsharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of classes of share capital [table]",
        "label": "Disclosure of classes of share capital [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to classes of share capital."
       }
      }
     },
     "auth_ref": [
      "r32"
     ]
    },
    "ifrs-full_DisclosureOfContingentLiabilitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfContingentLiabilitiesExplanatory",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of contingent liabilities",
        "label": "Disclosure of contingent liabilities [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of contingent liabilities. [Refer: Contingent liabilities [member]]"
       }
      }
     },
     "auth_ref": [
      "r108"
     ]
    },
    "ifrs-full_DisclosureOfContingentLiabilitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfContingentLiabilitiesLineItems",
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails",
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesAdditionalinformationDetails",
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofcontingentliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of contingent liabilities [line items]",
        "label": "Disclosure of contingent liabilities [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfContingentLiabilitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfContingentLiabilitiesTable",
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails",
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesAdditionalinformationDetails",
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofcontingentliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of contingent liabilities [table]",
        "label": "Disclosure of contingent liabilities [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to contingent liabilities."
       }
      }
     },
     "auth_ref": [
      "r108"
     ]
    },
    "ifrs-full_DisclosureOfCreditRiskExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfCreditRiskExplanatory",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of financial assets representing the maximum exposure to credit risk",
        "label": "Disclosure of credit risk [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of credit risk. [Refer: Credit risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r255",
      "r363"
     ]
    },
    "ifrs-full_DisclosureOfCreditRiskExposureExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfCreditRiskExposureExplanatory",
     "presentation": [
      "http://xpinc.com/role/ExpectedcreditlossesonfinancialassetsandreconciliationofcarryingamountTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expected Credit Losses on Financial Assets and Reconciliation of carrying amount",
        "label": "Disclosure of credit risk exposure [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the credit risk exposure. Credit risk exposure is the credit risk inherent in an entity\u2019s financial assets and commitments to extend credit."
       }
      }
     },
     "auth_ref": [
      "r241"
     ]
    },
    "ifrs-full_DisclosureOfDebtSecuritiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDebtSecuritiesExplanatory",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of debt instruments [text block]",
        "label": "Disclosure of debt instruments [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of debt instruments. [Refer: Debt instruments issued; Debt instruments held]"
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "ifrs-full_DisclosureOfDeferredTaxesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDeferredTaxesExplanatory",
     "presentation": [
      "http://xpinc.com/role/IncometaxTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of reconciliation of changes in net deferred tax",
        "label": "Disclosure of deferred taxes [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of deferred taxes. [Refer: Deferred tax liabilities; Deferred tax assets]"
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "ifrs-full_DisclosureOfDefinedBenefitPlansAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDefinedBenefitPlansAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of defined benefit plans [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDefinedBenefitPlansExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDefinedBenefitPlansExplanatory",
     "presentation": [
      "http://xpinc.com/role/Retirementplansliabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Retirement plans liabilities",
        "label": "Disclosure of defined benefit plans [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of defined benefit plans. [Refer: Defined benefit plans [member]]"
       }
      }
     },
     "auth_ref": [
      "r72"
     ]
    },
    "ifrs-full_DisclosureOfDerivativeFinancialInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDerivativeFinancialInstrumentsExplanatory",
     "presentation": [
      "http://xpinc.com/role/Derivativefinancialinstruments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative financial instruments",
        "label": "Disclosure of derivative financial instruments [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of derivative financial instruments. [Refer: Derivatives [member]]"
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutBorrowingsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about borrowings [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
     "presentation": [
      "http://xpinc.com/role/BorrowingsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of borrowings",
        "label": "Disclosure of detailed information about borrowings [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r399"
     ]
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutBorrowingsLineItems",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about borrowings [line items]",
        "label": "Disclosure of detailed information about borrowings [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutBorrowingsTable",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about borrowings [table]",
        "label": "Disclosure of detailed information about borrowings [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of borrowings."
       }
      }
     },
     "auth_ref": [
      "r399"
     ]
    },
    "xp_DisclosureOfDetailedInformationAboutDepreciationRatesOfPropertyPlantAndEquipmentTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfDetailedInformationAboutDepreciationRatesOfPropertyPlantAndEquipmentTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Detailed Information About Depreciation Rates Of Property Plant And Equipment",
        "label": "Disclosure Of Detailed Information About Depreciation Rates Of Property Plant And Equipment [Table Text Block]",
        "documentation": "Disclosure Of Detailed Information About Depreciation Rates Of Property Plant And Equipment"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DisclosureOfDetailedInformationAboutFinancingInstrumentsPayableTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfDetailedInformationAboutFinancingInstrumentsPayableTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of financing instruments payable",
        "label": "Disclosure Of Detailed Information About Financing Instruments Payable [Table Text Block]",
        "documentation": "Disclosure Of Detailed Information About Financing Instruments Payable"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutHedgedItemsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutHedgedItemsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about hedged items [abstract]",
        "label": "Disclosure of detailed information about hedged items [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutHedgedItemsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutHedgedItemsLineItems",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingAdditionalInformationDetails",
      "http://xpinc.com/role/HedgeaccountingHedgediteminformationDetails",
      "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails",
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about hedged items [line items]",
        "label": "Disclosure of detailed information about hedged items [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutHedgedItemsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutHedgedItemsTable",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingAdditionalInformationDetails",
      "http://xpinc.com/role/HedgeaccountingHedgediteminformationDetails",
      "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails",
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about hedged items [table]",
        "label": "Disclosure of detailed information about hedged items [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of hedged items."
       }
      }
     },
     "auth_ref": [
      "r226"
     ]
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutHedgingInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutHedgingInstrumentsExplanatory",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of detailed information about hedging instruments",
        "label": "Disclosure of detailed information about hedging instruments [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about hedging instruments. [Refer: Hedging instruments [member]]"
       }
      }
     },
     "auth_ref": [
      "r221"
     ]
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of property and equipment",
        "label": "Disclosure of detailed information about property, plant and equipment [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r69"
     ]
    },
    "xp_DisclosureOfDetailedInformationAboutReceivableTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfDetailedInformationAboutReceivableTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/AccountsreceivableTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of accounts receivable",
        "label": "Disclosure of detailed information about receivable [Table Text Block]",
        "documentation": "Disclosure of detailed information about receivable"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DisclosureOfDetailedInformationAboutTaxesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfDetailedInformationAboutTaxesTable",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Detailed Information About Taxes [Table]",
        "label": "Disclosure Of Detailed Information About Taxes [Table]",
        "documentation": "Disclosure Of Detailed Information About Taxes"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DisclosureOfDetailedInformationAboutUsefulLifeOfIntangibleAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfDetailedInformationAboutUsefulLifeOfIntangibleAssetsTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Detailed Information About Useful Life Of Intangible Assets",
        "label": "Disclosure Of Detailed Information About Useful Life Of Intangible Assets [Table Text Block]",
        "documentation": "Disclosure Of Detailed Information About Useful Life Of Intangible Assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DisclosureOfDetailedInformationOnSecuritiesSoldUnderRepurchaseAgreementsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfDetailedInformationOnSecuritiesSoldUnderRepurchaseAgreementsTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of securities sold under repurchase agreements",
        "label": "Disclosure of Detailed Information on Securities Sold under Repurchase Agreements. [Table Text Block]",
        "documentation": "Disclosure of Detailed Information on Securities Sold under Repurchase Agreements."
       }
      }
     },
     "auth_ref": []
    },
    "xp_DisclosureOfDisaggregationByGeographicLocationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfDisaggregationByGeographicLocationLineItems",
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofdisaggregationbygeographiclocationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of disaggregation by geographic location [Line Items]",
        "label": "Disclosure of disaggregation by geographic location [Line Items]",
        "documentation": "Disclosure of disaggregation by geographic location"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DisclosureOfDisaggregationByGeographicLocationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfDisaggregationByGeographicLocationTable",
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofdisaggregationbygeographiclocationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of disaggregation by geographic location [Table]",
        "label": "Disclosure of disaggregation by geographic location [Table]",
        "documentation": "Disclosure of disaggregation by geographic location [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DisclosureOfDisaggregationByGeographicLocationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfDisaggregationByGeographicLocationTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of disaggregation by geographic location",
        "label": "Disclosure of Disaggregation by Geographic Location [Table Text Block]",
        "documentation": "Disclosure of Disaggregation by Geographic Location"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfEarningsPerShareExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfEarningsPerShareExplanatory",
     "presentation": [
      "http://xpinc.com/role/Earningspersharebasicanddiluted"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Earnings per share (basic and diluted)",
        "label": "Disclosure of earnings per share [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for earnings per share."
       }
      }
     },
     "auth_ref": [
      "r96"
     ]
    },
    "xp_DisclosureOfEventsAfterReportingPeriodAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfEventsAfterReportingPeriodAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of events after reporting period [Abstract]",
        "documentation": "Disclosure of events after reporting period [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfEventsAfterReportingPeriodExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfEventsAfterReportingPeriodExplanatory",
     "presentation": [
      "http://xpinc.com/role/Subsequentevents"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsequent events",
        "label": "Disclosure of events after reporting period [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for events after the reporting period."
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "ifrs-full_DisclosureOfExpensesByNatureExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfExpensesByNatureExplanatory",
     "presentation": [
      "http://xpinc.com/role/Operatingexpensesbynature"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating expenses by nature",
        "label": "Disclosure of expenses by nature [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of expenses by nature. [Refer: Expenses, by nature]"
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "ifrs-full_DisclosureOfFairValueMeasurementExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFairValueMeasurementExplanatory",
     "presentation": [
      "http://xpinc.com/role/Determinationoffairvalue"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Determination of fair value",
        "label": "Disclosure of fair value measurement [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for fair value measurement."
       }
      }
     },
     "auth_ref": [
      "r174"
     ]
    },
    "ifrs-full_DisclosureOfFairValueMeasurementOfAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFairValueMeasurementOfAssetsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of fair value measurement of assets [abstract]",
        "label": "Disclosure of fair value measurement of assets [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DisclosureOfFairValueMeasurementOfAssetsAndLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfFairValueMeasurementOfAssetsAndLiabilitiesTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of fair value measurement of assets and liabilities",
        "label": "Disclosure Of Fair Value Measurement Of Assets And Liabilities [Table Text Block]",
        "documentation": "Disclosure Of Fair Value Measurement Of Assets And Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsAbstract",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Assets",
        "label": "Disclosure of financial assets [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsExplanatory",
     "presentation": [
      "http://xpinc.com/role/Securities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities",
        "label": "Disclosure of financial assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of financial assets. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "ifrs-full_DisclosureOfFinancialAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsLineItems",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbymaturityDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesEvaluatedatAmortizedCostDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesatFairValueThroughOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of financial assets [line items]",
        "label": "Disclosure of financial assets [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsTable",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbymaturityDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesEvaluatedatAmortizedCostDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesatFairValueThroughOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of financial assets [table]",
        "label": "Disclosure of financial assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to financial assets."
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedLineItems",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountECLsmeasuredusingsimplifiedapproachDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossusingsimplifiedmethodDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of financial assets that are either past due or impaired [line items]",
        "label": "Disclosure of financial assets that are either past due or impaired [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountECLsmeasuredusingsimplifiedapproachDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossusingsimplifiedmethodDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of financial assets that are either past due or impaired [table]",
        "label": "Disclosure of financial assets that are either past due or impaired [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to financial assets that are either past due or impaired."
       }
      }
     },
     "auth_ref": [
      "r275"
     ]
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsAtFairValueThroughProfitOrLossExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsAtFairValueThroughProfitOrLossExplanatory",
     "presentation": [
      "http://xpinc.com/role/SecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Securities on the Financial Liabilities Classified at Fair Value through Profit or Loss",
        "label": "Disclosure of financial instruments at fair value through profit or loss [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of financial instruments measured at fair value through profit or loss. [Refer: At fair value [member]; Financial instruments, class [member]]"
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsLineItems",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about financial instruments [line items]",
        "label": "Disclosure of detailed information about financial instruments [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsTable",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about financial instruments [table]",
        "label": "Disclosure of detailed information about financial instruments [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of financial instruments."
       }
      }
     },
     "auth_ref": [
      "r233",
      "r239",
      "r246"
     ]
    },
    "ifrs-full_DisclosureOfFinancialLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialLiabilitiesAbstract",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial liabilities",
        "label": "Disclosure of financial liabilities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialLiabilitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialLiabilitiesExplanatory",
     "presentation": [
      "http://xpinc.com/role/Financinginstrumentspayable"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing instruments payable",
        "label": "Disclosure of financial liabilities [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of financial liabilities. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "xp_DisclosureOfFinancialLiabilitiesIntoGroupingsBasedOnTheirContractualMaturitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfFinancialLiabilitiesIntoGroupingsBasedOnTheirContractualMaturitiesTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of financial liabilities into groupings based on their contractual maturities",
        "label": "Disclosure Of Financial Liabilities Into Groupings Based on Their Contractual Maturities [Table Text Block]",
        "documentation": "Disclosure Of Financial Liabilities Into Groupings Based on Their Contractual Maturities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialLiabilitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialLiabilitiesLineItems",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of financial assets [line items]",
        "label": "Disclosure of financial liabilities [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialLiabilitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialLiabilitiesTable",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of financial liabilities [table]",
        "label": "Disclosure of financial liabilities [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to financial liabilities."
       }
      }
     },
     "auth_ref": [
      "r246"
     ]
    },
    "ifrs-full_DisclosureOfFinancialRiskManagementExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfFinancialRiskManagementExplanatory",
     "presentation": [
      "http://xpinc.com/role/Managementoffinancialrisksandfinancialinstruments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Management of financial risks and financial instruments",
        "label": "Disclosure of financial risk management [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the entity's financial risk management practices and policies."
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "ifrs-full_DisclosureOfHedgeAccountingExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfHedgeAccountingExplanatory",
     "presentation": [
      "http://xpinc.com/role/Hedgeaccounting"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hedge accounting",
        "label": "Disclosure of hedge accounting [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of hedge accounting."
       }
      }
     },
     "auth_ref": [
      "r273"
     ]
    },
    "xp_DisclosureOfIncomeTaxCalculationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfIncomeTaxCalculationTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/IncometaxTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of income tax calculation",
        "label": "Disclosure of Income Tax Calculation [Table Text Block]",
        "documentation": "Disclosure of Income Tax Calculation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfIncomeTaxExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfIncomeTaxExplanatory",
     "presentation": [
      "http://xpinc.com/role/Incometax"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income tax",
        "label": "Disclosure of income tax [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for income taxes."
       }
      }
     },
     "auth_ref": [
      "r60"
     ]
    },
    "ifrs-full_DisclosureOfInformationAboutAmountsThatAffectedStatementOfComprehensiveIncomeAsResultOfHedgeAccountingExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfInformationAboutAmountsThatAffectedStatementOfComprehensiveIncomeAsResultOfHedgeAccountingExplanatory",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Effects of hedge accounting",
        "label": "Disclosure of information about amounts that affected statement of comprehensive income as result of hedge accounting [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of information about amounts that affected the statement of comprehensive income as a result of hedge accounting."
       }
      }
     },
     "auth_ref": [
      "r230"
     ]
    },
    "ifrs-full_DisclosureOfIntangibleAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfIntangibleAssetsLineItems",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofusefullivesofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about intangible assets [line items]",
        "label": "Disclosure of detailed information about intangible assets [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfIntangibleAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfIntangibleAssetsTable",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofusefullivesofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about intangible assets [table]",
        "label": "Disclosure of detailed information about intangible assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of intangible assets."
       }
      }
     },
     "auth_ref": [
      "r116"
     ]
    },
    "ifrs-full_DisclosureOfInterestsInOtherEntitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfInterestsInOtherEntitiesExplanatory",
     "presentation": [
      "http://xpinc.com/role/Investmentsinassociatesandjointventures"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments in associates and joint ventures",
        "label": "Disclosure of interests in other entities [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for interests in other entities."
       }
      }
     },
     "auth_ref": [
      "r146"
     ]
    },
    "ifrs-full_DisclosureOfInterestsInSubsidiariesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfInterestsInSubsidiariesExplanatory",
     "presentation": [
      "http://xpinc.com/role/GroupstructureTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of direct and indirect interests of company in its subsidiaries",
        "label": "Disclosure of interests in subsidiaries [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of interests in subsidiaries. [Refer: Subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r154"
     ]
    },
    "xp_DisclosureOfKeyManagementPersonnelCompensationExpenseTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfKeyManagementPersonnelCompensationExpenseTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/RelatedpartytransactionsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of key management personnel compensation expense",
        "label": "Disclosure Of Key Management Personnel Compensation Expense. [Table Text Block]",
        "documentation": "Disclosure Of Key Management Personnel Compensation Expense."
       }
      }
     },
     "auth_ref": []
    },
    "xp_DisclosureOfLoanOperationsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfLoanOperationsTextBlock",
     "presentation": [
      "http://xpinc.com/role/Loanoperations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loan Operations",
        "label": "Disclosure of loan operations [Text Block]",
        "documentation": "Disclosure of loan operations"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DisclosureOfMaturityAnalysisOfDepositsFinancialBillsAndStructuredOperationsCertificatesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfMaturityAnalysisOfDepositsFinancialBillsAndStructuredOperationsCertificatesTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maturity schedule",
        "label": "Disclosure Of Maturity Analysis Of Deposits, Financial Bills And Structured Operations Certificates [Table Text Block]",
        "documentation": "Disclosure Of Maturity Analysis Of Deposits, Financial Bills And Structured Operations Certificates"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNetDefinedBenefitLiabilityAssetExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfNetDefinedBenefitLiabilityAssetExplanatory",
     "presentation": [
      "http://xpinc.com/role/RetirementplansliabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of net defined benefit liability (asset)",
        "label": "Disclosure of net defined benefit liability (asset) [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of a net defined benefit liability (asset). [Refer: Net defined benefit liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r73"
     ]
    },
    "xp_DisclosureOfNetIncomeFromFinancialInstrumentsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfNetIncomeFromFinancialInstrumentsTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of net income from financial instruments",
        "label": "Disclosure Of Net Income From Financial Instruments [Table Text Block]",
        "documentation": "Disclosure Of Net Income From Financial Instruments"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfNonadjustingEventsAfterReportingPeriodAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of non-adjusting events after reporting period [abstract]",
        "label": "Disclosure of non-adjusting events after reporting period [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems",
     "presentation": [
      "http://xpinc.com/role/SubsequenteventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of non-adjusting events after reporting period [line items]",
        "label": "Disclosure of non-adjusting events after reporting period [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfNonadjustingEventsAfterReportingPeriodTable",
     "presentation": [
      "http://xpinc.com/role/SubsequenteventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of non-adjusting events after reporting period [table]",
        "label": "Disclosure of non-adjusting events after reporting period [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to non-adjusting events after the reporting period."
       }
      }
     },
     "auth_ref": [
      "r50"
     ]
    },
    "ifrs-full_DisclosureOfNumberAndWeightedAverageExercisePricesOfOtherEquityInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfNumberAndWeightedAverageExercisePricesOfOtherEquityInstrumentsExplanatory",
     "presentation": [
      "http://xpinc.com/role/SharebasedplanTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of RSU and PSU activity",
        "label": "Disclosure of number and weighted average exercise prices of other equity instruments [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the number and weighted average exercise prices of other equity instruments (ie other than share options)."
       }
      }
     },
     "auth_ref": [
      "r397"
     ]
    },
    "xp_DisclosureOfOperatingCostsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfOperatingCostsTextBlock",
     "presentation": [
      "http://xpinc.com/role/Operatingcosts"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating costs",
        "label": "Disclosure of Operating Costs [Text Block]",
        "documentation": "Disclosure of Operating Costs"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DisclosureOfOperatingExpensesByNatureTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfOperatingExpensesByNatureTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of operating expenses by nature",
        "label": "Disclosure of Operating Expenses by Nature [Table Text Block]",
        "documentation": "Disclosure of Operating Expenses by Nature"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DisclosureOfOperationsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfOperationsTextBlock",
     "presentation": [
      "http://xpinc.com/role/Operations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operations",
        "label": "Disclosure of Operations [Text Block]",
        "documentation": "Disclosure of Operations"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DisclosureOfOtherFinancialAssetsAndOtherFinancialLiabilitiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfOtherFinancialAssetsAndOtherFinancialLiabilitiesTextBlock",
     "presentation": [
      "http://xpinc.com/role/Otherfinancialassetsandfinancialliabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other financial assets and financial liabilities",
        "label": "Disclosure Of Other Financial Assets And Other Financial Liabilities [Text Block]",
        "documentation": "Disclosure Of Other Financial Assets And Other Financial Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DisclosureOfOtherFinancialAssetsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfOtherFinancialAssetsTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of other financial assets",
        "label": "Disclosure Of Other Financial Assets [Table Text Block]",
        "documentation": "Disclosure Of Other Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOtherOperatingIncomeExpenseExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfOtherOperatingIncomeExpenseExplanatory",
     "presentation": [
      "http://xpinc.com/role/Otheroperatingincomeexpensesnet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other operating income, net",
        "label": "Disclosure of other operating income (expense) [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of other operating income or expense. [Refer: Other operating income (expense)]"
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "xp_DisclosureOfOtherOperatingIncomeNetTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfOtherOperatingIncomeNetTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of other operating income, net",
        "label": "Disclosure Of Other Operating Income Net [Table Text Block]",
        "documentation": "Disclosure Of Other Operating Income Net"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOtherProvisionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfOtherProvisionsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of other provisions [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfOtherProvisionsContingentLiabilitiesAndContingentAssetsExplanatory",
     "presentation": [
      "http://xpinc.com/role/Provisionsandcontingentliabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provisions and contingent liabilities",
        "label": "Disclosure of other provisions, contingent liabilities and contingent assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for other provisions, contingent liabilities and contingent assets."
       }
      }
     },
     "auth_ref": [
      "r110"
     ]
    },
    "ifrs-full_DisclosureOfOtherProvisionsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfOtherProvisionsExplanatory",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of other provisions",
        "label": "Disclosure of other provisions [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of other provisions. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r106"
     ]
    },
    "ifrs-full_DisclosureOfOtherProvisionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfOtherProvisionsLineItems",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofotherprovisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of other provisions [line items]",
        "label": "Disclosure of other provisions [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOtherProvisionsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfOtherProvisionsTable",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofotherprovisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of other provisions [table]",
        "label": "Disclosure of other provisions [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to other provisions."
       }
      }
     },
     "auth_ref": [
      "r106"
     ]
    },
    "ifrs-full_DisclosureOfPrepaymentsAndOtherAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfPrepaymentsAndOtherAssetsExplanatory",
     "presentation": [
      "http://xpinc.com/role/Prepaidexpenses"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prepaid expenses",
        "label": "Disclosure of prepayments and other assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of prepayments and other assets. [Refer: Other assets; Prepayments]"
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about property, plant and equipment [abstract]",
        "label": "Disclosure of detailed information about property, plant and equipment [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://xpinc.com/role/Propertyequipmentintangibleassetsandleases"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Property, equipment, intangible assets and leases",
        "label": "Disclosure of property, plant and equipment [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for property, plant and equipment."
       }
      }
     },
     "auth_ref": [
      "r71"
     ]
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentLineItems",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails",
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofdepreciationofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about property, plant and equipment [line items]",
        "label": "Disclosure of detailed information about property, plant and equipment [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentTable",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails",
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofdepreciationofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about property, plant and equipment [table]",
        "label": "Disclosure of detailed information about property, plant and equipment [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of property, plant and equipment."
       }
      }
     },
     "auth_ref": [
      "r69"
     ]
    },
    "ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Right-of-use assets",
        "label": "Disclosure of quantitative information about right-of-use assets [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of quantitative information about right-of-use assets [text block]",
        "label": "Disclosure of quantitative information about right-of-use assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of quantitative information about right-of-use assets. [Refer: Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r188"
     ]
    },
    "ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of intangible assets",
        "label": "Disclosure of reconciliation of changes in intangible assets and goodwill [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the reconciliation of changes in intangible assets and goodwill. [Refer: Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r386"
     ]
    },
    "ifrs-full_DisclosureOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of reconciliation of liabilities arising from financing activities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesExplanatory",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of debt reconciliation",
        "label": "Disclosure of reconciliation of liabilities arising from financing activities [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the reconciliation of liabilities arising from financing activities. [Refer: Liabilities arising from financing activities]"
       }
      }
     },
     "auth_ref": [
      "r317"
     ]
    },
    "ifrs-full_DisclosureOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesLineItems",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of reconciliation of liabilities arising from financing activities [line items]",
        "label": "Disclosure of reconciliation of liabilities arising from financing activities [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesTable",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of reconciliation of liabilities arising from financing activities [table]",
        "label": "Disclosure of reconciliation of liabilities arising from financing activities [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the reconciliation of liabilities arising from financing activities."
       }
      }
     },
     "auth_ref": [
      "r317"
     ]
    },
    "ifrs-full_DisclosureOfRelatedPartyExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfRelatedPartyExplanatory",
     "presentation": [
      "http://xpinc.com/role/Relatedpartytransactions"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Related party transactions",
        "label": "Disclosure of related party [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for related parties."
       }
      }
     },
     "auth_ref": [
      "r80"
     ]
    },
    "ifrs-full_DisclosureOfRepurchaseAndReverseRepurchaseAgreementsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfRepurchaseAndReverseRepurchaseAgreementsExplanatory",
     "presentation": [
      "http://xpinc.com/role/Securitiespurchasedsoldunderresalerepurchaseagreements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities purchased (sold) under resale (repurchase) agreements",
        "label": "Disclosure of repurchase and reverse repurchase agreements [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of repurchase and reverse repurchase agreements."
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "ifrs-full_DisclosureOfRevenueExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfRevenueExplanatory",
     "presentation": [
      "http://xpinc.com/role/Totalrevenueandincome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total revenue and income",
        "label": "Disclosure of revenue [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for revenue."
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "xp_DisclosureOfSensitivityAnalysisLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfSensitivityAnalysisLineItems",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsAdditionalinformationDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of sensitivity analysis [Line Items]",
        "label": "Disclosure of sensitivity analysis [Line Items]",
        "documentation": "Disclosure of sensitivity analysis"
       }
      }
     },
     "auth_ref": []
    },
    "xp_DisclosureOfSensitivityAnalysisTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfSensitivityAnalysisTable",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsAdditionalinformationDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of sensitivity analysis [Table]",
        "label": "Disclosure of sensitivity analysis [Table]",
        "documentation": "Disclosure of sensitivity analysis [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory",
     "presentation": [
      "http://xpinc.com/role/Equity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity",
        "label": "Disclosure of share capital, reserves and other equity interest [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for share capital, reserves and other equity interest."
       }
      }
     },
     "auth_ref": [
      "r34"
     ]
    },
    "ifrs-full_DisclosureOfSharebasedPaymentArrangementsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfSharebasedPaymentArrangementsExplanatory",
     "presentation": [
      "http://xpinc.com/role/Sharebasedplan"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share-based plan",
        "label": "Disclosure of share-based payment arrangements [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for share-based payment arrangements."
       }
      }
     },
     "auth_ref": [
      "r201"
     ]
    },
    "ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfSignificantInvestmentsInAssociatesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of associates [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfSignificantInvestmentsInAssociatesExplanatory",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments in associates and joint ventures",
        "label": "Disclosure of associates [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of associates. [Refer: Associates [member]]"
       }
      }
     },
     "auth_ref": [
      "r87",
      "r91",
      "r167"
     ]
    },
    "ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfSignificantInvestmentsInAssociatesLineItems",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of associates [line items]",
        "label": "Disclosure of associates [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfSignificantInvestmentsInAssociatesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfSignificantInvestmentsInAssociatesTable",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of associates [table]",
        "label": "Disclosure of associates [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to associates."
       }
      }
     },
     "auth_ref": [
      "r87",
      "r91",
      "r167"
     ]
    },
    "ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfSignificantInvestmentsInSubsidiariesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of subsidiaries [abstract]",
        "label": "Disclosure of subsidiaries [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfSignificantInvestmentsInSubsidiariesLineItems",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails",
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
      "http://xpinc.com/role/GroupstructureSummaryofintangibleassetsacquiredDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of subsidiaries [line items]",
        "label": "Disclosure of subsidiaries [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfSignificantInvestmentsInSubsidiariesTable",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails",
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of subsidiaries [table]",
        "label": "Disclosure of subsidiaries [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to subsidiaries."
       }
      }
     },
     "auth_ref": [
      "r87",
      "r91",
      "r165"
     ]
    },
    "xp_DisclosureOfSummaryOfSignificantAccountingPoliciesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DisclosureOfSummaryOfSignificantAccountingPoliciesExplanatory",
     "presentation": [
      "http://xpinc.com/role/Summaryofsignificantaccountingpolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of significant accounting policies",
        "label": "Disclosure of significant accounting policies [text block]",
        "documentation": "The entire disclosure for significant accounting policies applied by the entity."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTaxReceivablesAndPayablesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfTaxReceivablesAndPayablesExplanatory",
     "presentation": [
      "http://xpinc.com/role/Recoverabletaxes"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Recoverable taxes",
        "label": "Disclosure of tax receivables and payables [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of tax receivables and payables."
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsExplanatory",
     "presentation": [
      "http://xpinc.com/role/IncometaxTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of components of deferred tax assets and deferred tax liabilities",
        "label": "Disclosure of temporary difference, unused tax losses and unused tax credits [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of types of temporary differences, unused tax losses and unused tax credits. [Refer: Unused tax credits [member]; Unused tax losses [member]; Temporary differences [member]]"
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of temporary difference, unused tax losses and unused tax credits [line items]",
        "label": "Disclosure of temporary difference, unused tax losses and unused tax credits [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of temporary difference, unused tax losses and unused tax credits [table]",
        "label": "Disclosure of temporary difference, unused tax losses and unused tax credits [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to temporary differences, unused tax losses and unused tax credits."
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of terms and conditions of share-based payment arrangement [abstract]",
        "label": "Disclosure of terms and conditions of share-based payment arrangement [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems",
     "presentation": [
      "http://xpinc.com/role/SharebasedplanActivityofRSUsandPSUsDetails",
      "http://xpinc.com/role/SharebasedplanAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of terms and conditions of share-based payment arrangement [line items]",
        "label": "Disclosure of terms and conditions of share-based payment arrangement [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable",
     "presentation": [
      "http://xpinc.com/role/SharebasedplanActivityofRSUsandPSUsDetails",
      "http://xpinc.com/role/SharebasedplanAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of terms and conditions of share-based payment arrangement [table]",
        "label": "Disclosure of terms and conditions of share-based payment arrangement [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to terms and conditions of share-based payment arrangements."
       }
      }
     },
     "auth_ref": [
      "r203"
     ]
    },
    "ifrs-full_DisclosureOfTradeAndOtherReceivablesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfTradeAndOtherReceivablesExplanatory",
     "presentation": [
      "http://xpinc.com/role/Accountsreceivable"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts receivable",
        "label": "Disclosure of trade and other receivables [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of trade and other receivables. [Refer: Trade and other receivables]"
       }
      }
     },
     "auth_ref": [
      "r363"
     ]
    },
    "ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfTransactionsBetweenRelatedPartiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of transactions between related parties [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfTransactionsBetweenRelatedPartiesExplanatory",
     "presentation": [
      "http://xpinc.com/role/RelatedpartytransactionsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of transactions between related parties explanatory",
        "label": "Disclosure of transactions between related parties [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of transactions between the entity and its related parties. [Refer: Related parties [member]]"
       }
      }
     },
     "auth_ref": [
      "r78"
     ]
    },
    "ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfTransactionsBetweenRelatedPartiesLineItems",
     "presentation": [
      "http://xpinc.com/role/RelatedpartytransactionsSummaryoftransactionsbetweenrelatedpartiesexplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of transactions between related parties [line items]",
        "label": "Disclosure of transactions between related parties [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DisclosureOfTransactionsBetweenRelatedPartiesTable",
     "presentation": [
      "http://xpinc.com/role/RelatedpartytransactionsSummaryoftransactionsbetweenrelatedpartiesexplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of transactions between related parties [table]",
        "label": "Disclosure of transactions between related parties [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to transactions between related parties."
       }
      }
     },
     "auth_ref": [
      "r79"
     ]
    },
    "ifrs-full_DiscountRateMeasurementInputMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DiscountRateMeasurementInputMember",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Discount rate",
        "label": "Discount rate, measurement input [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a discount rate used as a measurement input used in valuation techniques based on a present value calculation."
       }
      }
     },
     "auth_ref": [
      "r395"
     ]
    },
    "xp_DividendDeclared": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DividendDeclared",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividend declared",
        "label": "Dividend declared",
        "documentation": "Represents Dividend declared."
       }
      }
     },
     "auth_ref": []
    },
    "xp_DividendPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DividendPaid",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividend paid",
        "label": "Dividend paid",
        "documentation": "Represents Dividend paid"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DividendsPaidClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DividendsPaidClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Dividends paid",
        "label": "Dividends paid, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for dividends paid by the entity, classified as financing activities."
       }
      }
     },
     "auth_ref": [
      "r131"
     ]
    },
    "ifrs-full_DividendsPaidToNoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DividendsPaidToNoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Dividends paid to non-controlling interests",
        "label": "Dividends paid to non-controlling interests"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends paid to non-controlling interests. [Refer: Non-controlling interests]"
       }
      }
     },
     "auth_ref": [
      "r156"
     ]
    },
    "ifrs-full_DividendsRecognisedAsDistributionsToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "DividendsRecognisedAsDistributionsToOwnersOfParent",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Dividends distributed",
        "label": "Dividends recognised as distributions to owners of parent"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends recognised as distributions to owners of the parent. [Refer: Parent [member]]"
       }
      }
     },
     "auth_ref": [
      "r364"
     ]
    },
    "dei_DocumentAccountingStandard": {
     "xbrltype": "accountingStandardItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentAccountingStandard",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Accounting Standard",
        "label": "Document Accounting Standard",
        "documentation": "The basis of accounting the registrant has used to prepare the financial statements included in this filing This can either be 'U.S. GAAP', 'International Financial Reporting Standards', or 'Other'."
       }
      }
     },
     "auth_ref": [
      "r357"
     ]
    },
    "dei_DocumentAnnualReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentAnnualReport",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Annual Report",
        "label": "Document Annual Report",
        "documentation": "Boolean flag that is true only for a form used as an annual report."
       }
      }
     },
     "auth_ref": [
      "r356",
      "r357",
      "r358"
     ]
    },
    "dei_DocumentFinStmtErrorCorrectionFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFinStmtErrorCorrectionFlag",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Financial Statement Error Correction [Flag]",
        "label": "Document Financial Statement Error Correction [Flag]",
        "documentation": "Indicates whether any of the financial statement period in the filing include a restatement due to error correction."
       }
      }
     },
     "auth_ref": [
      "r356",
      "r357",
      "r358",
      "r360"
     ]
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Fiscal Period Focus",
        "label": "Document Fiscal Period Focus",
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3.  1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentFiscalYearFocus": {
     "xbrltype": "gYearItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentFiscalYearFocus",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Fiscal Year Focus",
        "label": "Document Fiscal Year Focus",
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentInformationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentInformationLineItems",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Information [Line Items]",
        "label": "Document Information [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentInformationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentInformationTable",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Information [Table]",
        "label": "Document Information [Table]",
        "documentation": "Container to support the formal attachment of each official or unofficial, public or private document as part of a submission package."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentPeriodEndDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Period End Date",
        "label": "Document Period End Date",
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period.  The format of the date is YYYY-MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentRegistrationStatement": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentRegistrationStatement",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Registration Statement",
        "label": "Document Registration Statement",
        "documentation": "Boolean flag that is true only for a form used as a registration statement."
       }
      }
     },
     "auth_ref": [
      "r352"
     ]
    },
    "dei_DocumentShellCompanyReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentShellCompanyReport",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Shell Company Report",
        "label": "Document Shell Company Report",
        "documentation": "Boolean flag that is true for a Shell Company Report pursuant to section 13 or 15(d) of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r357"
     ]
    },
    "dei_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Transition Report",
        "label": "Document Transition Report",
        "documentation": "Boolean flag that is true only for a form used as a transition report."
       }
      }
     },
     "auth_ref": [
      "r359"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "DocumentType",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Type",
        "label": "Document Type",
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'."
       }
      }
     },
     "auth_ref": []
    },
    "xp_DuAgroHoldingsSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DuAgroHoldingsSAMember",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Du Agro Holdings S.A.",
        "label": "Du Agro Holdings S.A. [Member]",
        "documentation": "Du Agro Holdings S.A."
       }
      }
     },
     "auth_ref": []
    },
    "xp_DueFromDueToRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "DueFromDueToRelatedPartyTransactions",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/RelatedpartytransactionsSummaryoftransactionsbetweenrelatedpartiesexplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets/(Liabilities)",
        "label": "Due from due to related party transactions",
        "documentation": "Due from due to related party transactions"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EarningsPerShareAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EarningsPerShareAbstract",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Earnings per share from total income attributable to the ordinary equity holders of the company",
        "label": "Earnings per share [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EarningsPerShareExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EarningsPerShareExplanatory",
     "presentation": [
      "http://xpinc.com/role/EarningspersharebasicanddilutedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of earnings per share",
        "label": "Earnings per share [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of earnings per share."
       }
      }
     },
     "auth_ref": [
      "r93"
     ]
    },
    "xp_EducationalServicesIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "EducationalServicesIncome",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails": {
       "parentTag": "xp_RevenueBeforeSalesTaxesAndContributionsOnRevenue",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Educational services income",
        "label": "Educational services income",
        "documentation": "Educational services income"
       }
      }
     },
     "auth_ref": []
    },
    "xp_EffectFromSocialContributionOnNetEquityRateIncrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "EffectFromSocialContributionOnNetEquityRateIncrease",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofincometaxcalculationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Effect from Social Contribution on net equity rate increase",
        "label": "Effect from Social Contribution on net equity rate increase",
        "documentation": "Effect from Social Contribution on net equity rate increase"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EffectOfExchangeRateChangesOnCashAndCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Effects of exchange rate changes on cash and cash equivalents",
        "label": "Effect of exchange rate changes on cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The effect of exchange rate changes on cash and cash equivalents held or due in a foreign currency. [Refer: Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r129",
      "r130"
     ]
    },
    "xp_EffectsOfHedgeAccountingTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "EffectsOfHedgeAccountingTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Effects of hedge accounting",
        "label": "Effects of Hedge Accounting [Table Text Block]",
        "documentation": "Effects of Hedge Accounting"
       }
      }
     },
     "auth_ref": []
    },
    "xp_EffectsOnExchangeRateOnLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "EffectsOnExchangeRateOnLeaseLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Payment of lease liabilities",
        "label": "Effects on Exchange Rate on Lease Liabilities",
        "documentation": "Effects on Exchange Rate on Lease Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ElevenServicosDeConsultoriaEAnaliseS.A.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ElevenServicosDeConsultoriaEAnaliseS.A.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Eleven Servi\u00e7os de Consultoria e An\u00e1lise S.A. [Member]",
        "label": "Eleven Servi\u00e7os de Consultoria e An\u00e1lise S.A. [Member]",
        "documentation": "Eleven Servi\u00e7os de Consultoria e An\u00e1lise S.A."
       }
      }
     },
     "auth_ref": []
    },
    "xp_EmployeeProfitSharingAndBonus": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "EmployeeProfitSharingAndBonus",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "xp_PersonnelExpenses",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee profit-sharing and bonus",
        "label": "Employee Profit-sharing and Bonus",
        "documentation": "Employee Profit-sharing and Bonus"
       }
      }
     },
     "auth_ref": []
    },
    "xp_EmployeeProfitSharingLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "EmployeeProfitSharingLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/SocialandstatutoryobligationsSummaryofsocialandstatutoryobligationsDetails": {
       "parentTag": "xp_SocialAndStatutoryObligations",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/SocialandstatutoryobligationsSummaryofsocialandstatutoryobligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee profit-sharing liabilities",
        "label": "Employee profit-sharing liabilities",
        "documentation": "Employee profit-sharing liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_EmployeesProfitSharingPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "EmployeesProfitSharingPlanMember",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofcontingentliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employees Profit Sharing Plan",
        "label": "Employees Profit Sharing Plan [Member]",
        "documentation": "Represents employees profit sharing plan ."
       }
      }
     },
     "auth_ref": []
    },
    "xp_EndorFundoDeInvestimentoEmParticipaesMultiestratgiaInvestimentoNoExteriorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "EndorFundoDeInvestimentoEmParticipaesMultiestratgiaInvestimentoNoExteriorMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Endor Fundo de Investimento em Participa\u00e7\u00f5es Multiestrat\u00e9gia Investimento no Exterior",
        "label": "Endor Fundo de Investimento em Participa\u00e7\u00f5es Multiestrat\u00e9gia Investimento no Exterior [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_EntitiesOutsideTheGroupMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "EntitiesOutsideTheGroupMember",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entities outside the Group [Member]",
        "label": "Entities outside the Group [Member]",
        "documentation": "Entities outside the Group"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, Address Line One",
        "label": "Entity Address, Address Line One",
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine2": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressAddressLine2",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, Address Line Two",
        "label": "Entity Address, Address Line Two",
        "documentation": "Address Line 2 such as Street or Suite number"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCityOrTown": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, City or Town",
        "label": "Entity Address, City or Town",
        "documentation": "Name of the City or Town"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCountry": {
     "xbrltype": "countryCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressCountry",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, Country",
        "label": "Entity Address, Country",
        "documentation": "ISO 3166-1 alpha-2 country code."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressPostalZipCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressPostalZipCode",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, Postal Zip Code",
        "label": "Entity Address, Postal Zip Code",
        "documentation": "Code for the postal or zip code"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressesAddressTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityAddressesAddressTypeAxis",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Addresses, Address Type [Axis]",
        "label": "Entity Addresses, Address Type [Axis]",
        "documentation": "The axis of a table defines the relationship between the domain members or categories in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Central Index Key",
        "label": "Entity Central Index Key",
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK."
       }
      }
     },
     "auth_ref": [
      "r354"
     ]
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCommonStockSharesOutstanding",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Common Stock, Shares Outstanding",
        "label": "Entity Common Stock, Shares Outstanding",
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCurrentReportingStatus": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Current Reporting Status",
        "label": "Entity Current Reporting Status",
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityEmergingGrowthCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityEmergingGrowthCompany",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Emerging Growth Company",
        "label": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r354"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity File Number",
        "label": "Entity File Number",
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityFilerCategory": {
     "xbrltype": "filerCategoryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityFilerCategory",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Filer Category",
        "label": "Entity Filer Category",
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": [
      "r354"
     ]
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Incorporation, State or Country Code",
        "label": "Entity Incorporation, State or Country Code",
        "documentation": "Two-character EDGAR code representing the state or country of incorporation."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityInteractiveDataCurrent": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityInteractiveDataCurrent",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Interactive Data Current",
        "label": "Entity Interactive Data Current",
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files)."
       }
      }
     },
     "auth_ref": [
      "r361"
     ]
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Registrant Name",
        "label": "Entity Registrant Name",
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC."
       }
      }
     },
     "auth_ref": [
      "r354"
     ]
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Shell Company",
        "label": "Entity Shell Company",
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r354"
     ]
    },
    "dei_EntityVoluntaryFilers": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityVoluntaryFilers",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Voluntary Filers",
        "label": "Entity Voluntary Filers",
        "documentation": "Indicate 'Yes' or 'No' if the registrant is not required to file reports pursuant to Section 13 or Section 15(d) of the Act."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityWellKnownSeasonedIssuer": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "EntityWellKnownSeasonedIssuer",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Well-known Seasoned Issuer",
        "label": "Entity Well-known Seasoned Issuer",
        "documentation": "Indicate 'Yes' or 'No' if the registrant is a well-known seasoned issuer, as defined in Rule 405 of the Securities Act. Is used on Form Type: 10-K, 10-Q, 8-K, 20-F, 6-K, 10-K/A, 10-Q/A, 20-F/A, 6-K/A, N-CSR, N-Q, N-1A."
       }
      }
     },
     "auth_ref": [
      "r362"
     ]
    },
    "ifrs-full_EntitysTotalForAssociatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EntitysTotalForAssociatesMember",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity's total for associates [member]",
        "label": "Entity's total for associates [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Associates' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r87",
      "r91",
      "r167"
     ]
    },
    "ifrs-full_EntitysTotalForBusinessCombinationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EntitysTotalForBusinessCombinationsMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
      "http://xpinc.com/role/GroupstructureSummaryofintangibleassetsacquiredDetails",
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity's total for business combinations",
        "label": "Entity's total for business combinations [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Business combinations' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r211",
      "r214"
     ]
    },
    "ifrs-full_EntitysTotalForImpairmentOfFinancialAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EntitysTotalForImpairmentOfFinancialAssetsMember",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountECLsmeasuredusingsimplifiedapproachDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossusingsimplifiedmethodDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity's total for impairment of financial assets [member]",
        "label": "Entity's total for impairment of financial assets [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Impairment of financial assets' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r275"
     ]
    },
    "ifrs-full_EntitysTotalForInternalCreditGradesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EntitysTotalForInternalCreditGradesMember",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity's total for internal credit grades [member]",
        "label": "Entity's total for internal credit grades [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Internal credit grades' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r331",
      "r344"
     ]
    },
    "ifrs-full_EntitysTotalForJointVenturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EntitysTotalForJointVenturesMember",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity's total for joint ventures [member]",
        "label": "Entity's total for joint ventures [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Joint ventures' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r87",
      "r91",
      "r166"
     ]
    },
    "ifrs-full_EntitysTotalForRelatedPartiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EntitysTotalForRelatedPartiesMember",
     "presentation": [
      "http://xpinc.com/role/RelatedpartytransactionsSummaryoftransactionsbetweenrelatedpartiesexplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity's total for related parties",
        "label": "Entity's total for related parties [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Categories of related parties' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r79"
     ]
    },
    "ifrs-full_EntitysTotalForSubsidiariesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EntitysTotalForSubsidiariesMember",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails",
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsAdditionalinformationDetails",
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity's total for subsidiaries",
        "label": "Entity's total for subsidiaries [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Subsidiaries' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r87",
      "r91",
      "r165"
     ]
    },
    "ifrs-full_Equity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Equity",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_EquityAndLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total equity",
        "periodStartLabel": "Balance at beginning of period",
        "periodEndLabel": "Balance at end of period",
        "label": "Equity"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of residual interest in the assets of the entity after deducting all its liabilities."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r26",
      "r141",
      "r143",
      "r168",
      "r169",
      "r171"
     ]
    },
    "ifrs-full_EquityAndLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EquityAndLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total liabilities and equity",
        "label": "Equity and liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of the entity's equity and liabilities. [Refer: Equity; Liabilities]"
       }
      }
     },
     "auth_ref": [
      "r19"
     ]
    },
    "ifrs-full_EquityAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EquityAttributableToOwnersOfParent",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_Equity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails",
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Equity attributable to owners of the Parent company",
        "verboseLabel": "Total equity attributable to owners of the parent company",
        "label": "Equity attributable to owners of parent"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of equity attributable to the owners of the parent. This specifically excludes non-controlling interest."
       }
      }
     },
     "auth_ref": [
      "r18"
     ]
    },
    "ifrs-full_EquityAttributableToOwnersOfParentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EquityAttributableToOwnersOfParentMember",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total",
        "label": "Equity attributable to owners of parent [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for equity attributable to the owners of the parent."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "ifrs-full_EquityInterestsOfAcquirer": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EquityInterestsOfAcquirer",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity interests of acquirer",
        "label": "Equity interests of acquirer"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value, at the acquisition date, of equity interests of the acquirer transferred as consideration in a business combination. [Refer: Business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r206"
     ]
    },
    "ifrs-full_EquityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EquityMember",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity [member]",
        "label": "Equity [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the residual interest in the assets of the entity after deducting all its liabilities. It also represents the standard value for the 'Components of equity' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "ifrs-full_EstimatedFinancialEffectOfContingentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "EstimatedFinancialEffectOfContingentLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofcontingentliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Estimated financial effect of contingent liabilities",
        "label": "Estimated financial effect of contingent liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of the estimated financial effect of contingent liabilities. [Refer: Contingent liabilities [member]]"
       }
      }
     },
     "auth_ref": [
      "r107"
     ]
    },
    "srt_EuropeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "EuropeMember",
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofdisaggregationbygeographiclocationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Europe",
        "label": "Europe [Member]"
       }
      }
     },
     "auth_ref": [
      "r403",
      "r404",
      "r405",
      "r406"
     ]
    },
    "xp_ExchangeCouponsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ExchangeCouponsMember",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exchange coupons",
        "label": "Exchange coupons [Member]",
        "documentation": "Exchange coupons"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ExchangeRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ExchangeRateMember",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exchange rates",
        "label": "Exchange rate [Member]",
        "documentation": "Exchange rate"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ExecutivesProfitSharing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ExecutivesProfitSharing",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "xp_PersonnelExpenses",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Executives profit-sharing",
        "label": "Executives profit-sharing",
        "documentation": "Executives profit-sharing"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ExpectedCreditLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ExpectedCreditLoss",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesEvaluatedatAmortizedCostDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Expected credit losses",
        "terseLabel": "Expected credit losses",
        "label": "Expected Credit Loss",
        "documentation": "Expected Credit Loss"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ExpectedLossesOnAccountsReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ExpectedLossesOnAccountsReceivable",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/AccountsreceivableDetails": {
       "parentTag": "ifrs-full_TradeReceivables",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/AccountsreceivableDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Expected credit losses on accounts receivable (Note 14)",
        "label": "Expected losses on accounts receivable",
        "documentation": "Expected losses on accounts receivable"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ExpectedLossesOnSecuritiesTrainingAndIntermediation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ExpectedLossesOnSecuritiesTrainingAndIntermediation",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails": {
       "parentTag": "xp_FinancialAssetsAtAmortizedCostSecuritiesTradingAndIntermediation",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "(-) Expected losses on Securities trading and intermediation (a)",
        "label": "Expected losses on securities training and intermediation",
        "documentation": "Expected losses on securities training and intermediation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ExpenseFromSharebasedPaymentTransactionsWithEmployees",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/SharebasedplanAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expense from share-based payment transactions with employees",
        "label": "Expense from share-based payment transactions with employees"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense from share-based payment transactions with employees. [Refer: Expense from share-based payment transactions]"
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "ifrs-full_ExpenseRelatingToLeasesOfLowvalueAssetsForWhichRecognitionExemptionHasBeenUsed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ExpenseRelatingToLeasesOfLowvalueAssetsForWhichRecognitionExemptionHasBeenUsed",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesAdditionaldetailsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rent expense from short-term leases and low-value assets",
        "label": "Expense relating to leases of low-value assets for which recognition exemption has been used"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of the expense relating to leases of low-value assets accounted for applying paragraph 6 of IFRS 16. This expense shall not include the expense relating to short-term leases of low-value assets."
       }
      }
     },
     "auth_ref": [
      "r183"
     ]
    },
    "ifrs-full_ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesAdditionaldetailsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rent expense on lease liabilities",
        "label": "Expense relating to variable lease payments not included in measurement of lease liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of the expense relating to variable lease payments not included in the measurement of lease liabilities. Variable lease payments are the portion of payments made by a lessee to a lessor for the right to use an underlying asset during the lease term that varies because of changes in facts or circumstances occurring after the commencement date, other than the passage of time. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r184"
     ]
    },
    "xp_FacilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FacilitiesMember",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofdepreciationofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Facilities",
        "label": "Facilities [Member]",
        "documentation": "Facilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FairValueHedgesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FairValueHedgesMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingHedgediteminformationDetails",
      "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails",
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Fair value hedge",
        "terseLabel": "Hedge of fair value",
        "label": "Fair value hedges [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for hedges of the exposure to changes in fair value of a recognised asset or liability or an unrecognised firm commitment, or an identified portion of such an asset, liability or firm commitment, that is attributable to a particular risk and could affect profit or loss. [Refer: Hedges [member]]"
       }
      }
     },
     "auth_ref": [
      "r118",
      "r221",
      "r226",
      "r230"
     ]
    },
    "xp_FairValueOfIdentifiedAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FairValueOfIdentifiedAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value of Identified assets",
        "label": "Fair value of Identified assets",
        "documentation": "Fair value of Identified assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FairValueOfInvestmentsInEquityInstrumentsDesignatedAsMeasuredAtFairValueThroughOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FairValueOfInvestmentsInEquityInstrumentsDesignatedAsMeasuredAtFairValueThroughOtherComprehensiveIncome",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialAssetsAtFairValueThroughOtherComprehensiveIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities",
        "label": "Investments in equity instruments designated at fair value through other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of investments in equity instruments that the entity has designated at fair value through other comprehensive income. [Refer: At fair value [member]; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r216",
      "r251"
     ]
    },
    "xp_FairValueOfTheIdentifiableAssetsAcquiredAndLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FairValueOfTheIdentifiableAssetsAcquiredAndLiabilitiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value of the identifiable assets acquired and liabilities [Abstract]",
        "label": "Fair value of the identifiable assets acquired and liabilities [Abstract]",
        "documentation": "Fair value of the identifiable assets acquired and liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FairValueUnderContractualPrincipalOutstandingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FairValueUnderContractualPrincipalOutstandingMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value/(under) contractual principal outstanding",
        "label": "Fair Value/(Under) Contractual Principal Outstanding [Member]",
        "documentation": "Fair Value/(Under) Contractual Principal Outstanding"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FalxFundoDeInvestimentoMultimercadoCrditoPrivadoInvestimentoNoExteriorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FalxFundoDeInvestimentoMultimercadoCrditoPrivadoInvestimentoNoExteriorMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Falx Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior",
        "label": "Falx Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior [Member]",
        "documentation": "Falx Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FederalIncomeTaxMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FederalIncomeTaxMember",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal Income Tax",
        "label": "Federal Income Tax [Member]",
        "documentation": "Federal Income Tax"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FederalRevenueOfBrazilVCompanyRegardingBrazilianLaw1010100Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FederalRevenueOfBrazilVCompanyRegardingBrazilianLaw1010100Member",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofcontingentliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal Revenue of Brazil v. Company re. Brazilian Law 10,101/00",
        "label": "Federal Revenue of Brazil v. Company Regarding Brazilian Law 10,101/00 [Member]",
        "documentation": "Federal Revenue of Brazil v. Company Regarding Brazilian Law 10,101/00"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FeeAndCommissionExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FeeAndCommissionExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingcostsDetails": {
       "parentTag": "xp_OperatingCosts",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingcostsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commission and incentive costs",
        "label": "Fee and commission expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense relating to fees and commissions."
       }
      }
     },
     "auth_ref": [
      "r371"
     ]
    },
    "ifrs-full_FeeAndCommissionIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FeeAndCommissionIncome",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails": {
       "parentTag": "xp_RevenueBeforeSalesTaxesAndContributionsOnRevenue",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commissions Fees",
        "label": "Fee and commission income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income relating to fees and commissions."
       }
      }
     },
     "auth_ref": [
      "r371"
     ]
    },
    "ifrs-full_FinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails": {
       "parentTag": "xp_FinancialAssetsNetOfAllowanceAccountForCreditLosses",
       "weight": 1.0,
       "order": 1.0
      },
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 6.0
      },
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountECLsmeasuredusingsimplifiedapproachDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbymaturityDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Financial assets",
        "terseLabel": "Financial assets",
        "periodStartLabel": "Financial assets at beginning of period",
        "periodEndLabel": "Financial assets at end of period",
        "label": "Financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that are: (a) cash; (b) an equity instrument of another entity; (c) a contractual right: (i) to receive cash or another financial asset from another entity; or (ii) to exchange financial assets or financial liabilities with another entity under conditions that are potentially favourable to the entity; or (d) a contract that will, or may be, settled in the entity\u2019s own equity instruments and is: (i) a non-derivative for which the entity is, or may be, obliged to receive a variable number of the entity\u2019s own equity instruments; or (ii) a derivative that will, or may be, settled other than by the exchange of a fixed amount of cash or another financial asset for a fixed number of the entity\u2019s own equity instruments. For this purpose the entity\u2019s own equity instruments do not include puttable financial instruments classified as equity instruments in accordance with paragraphs 16A-16B of IAS 32, instruments that impose on the entity an obligation to deliver to another party a pro rata share of the net assets of the entity only on liquidation and are classified as equity instruments in accordance with paragraphs 16C-16D of IAS 32, or instruments that are contracts for the future receipt or delivery of the entity\u2019s own equity instruments. [Refer: Financial instruments, class [member]; Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r232",
      "r237",
      "r238",
      "r241",
      "r332"
     ]
    },
    "xp_FinancialAssetsAcquisitionsSettlementsDuringPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialAssetsAcquisitionsSettlementsDuringPeriod",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Acquisition / (Settlements)",
        "label": "Financial Assets, Acquisitions (Settlements) During Period",
        "documentation": "Financial Assets, Acquisitions (Settlements) During Period"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssetsAtAmortisedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialAssetsAtAmortisedCost",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Evaluated at amortized cost",
        "label": "Financial assets at amortised cost"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial assets at amortised cost. The amortised cost is the amount at which financial assets are measured at initial recognition minus principal repayments, plus or minus the cumulative amortisation using the effective interest method of any difference between that initial amount and the maturity amount, and adjusted for any impairment. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r249"
     ]
    },
    "ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialAssetsAtAmortisedCostCategoryMember",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountECLsmeasuredusingsimplifiedapproachDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossusingsimplifiedmethodDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Evaluated at amortized cost",
        "verboseLabel": "Financial assets amortized cost",
        "label": "Financial assets at amortised cost, category [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the financial assets at amortised cost category. [Refer: Financial assets at amortised cost]"
       }
      }
     },
     "auth_ref": [
      "r249"
     ]
    },
    "xp_FinancialAssetsAtAmortizedCostAccountsReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialAssetsAtAmortizedCostAccountsReceivable",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Assets At Amortized Cost Accounts Receivable",
        "label": "Financial Assets At Amortized Cost Accounts Receivable",
        "documentation": "Financial Assets At Amortized Cost Accounts Receivable"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialAssetsAtAmortizedCostAccountsReceivableOnSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialAssetsAtAmortizedCostAccountsReceivableOnSubsidiaries",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Assets At Amortized Cost Accounts Receivable On Subsidiaries",
        "label": "Financial Assets At Amortized Cost Accounts Receivable On Subsidiaries",
        "documentation": "Financial Assets At Amortized Cost Accounts Receivable On Subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialAssetsAtAmortizedCostLoanOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialAssetsAtAmortizedCostLoanOperations",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialAssetsAtAmortisedCost",
       "weight": 1.0,
       "order": 1.0
      },
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails": {
       "parentTag": "xp_FinancialAssetsIncludingOffBalanceSheetAmounts",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loan operations",
        "verboseLabel": "Total loans operations, net of Expected Loss",
        "label": "Financial Assets At Amortized Cost Loan Operations",
        "documentation": "Financial Assets At Amortized Cost Loan Operations"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialAssetsAtAmortizedCostOtherFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialAssetsAtAmortizedCostOtherFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Assets At Amortized Cost Other Financial Assets",
        "label": "Financial Assets At Amortized Cost Other Financial Assets",
        "documentation": "Financial Assets At Amortized Cost Other Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialAssetsAtAmortizedCostSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialAssetsAtAmortizedCostSecurities",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialAssetsAtAmortisedCost",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesEvaluatedatAmortizedCostDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities",
        "verboseLabel": "Financial assets at amortized cost",
        "label": "Financial Assets At Amortized Cost Securities",
        "documentation": "Financial Assets At Amortized Cost Securities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialAssetsAtAmortizedCostSecuritiesPurchasedUnderAgreementsToResell": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialAssetsAtAmortizedCostSecuritiesPurchasedUnderAgreementsToResell",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialAssetsAtAmortisedCost",
       "weight": 1.0,
       "order": 5.0
      },
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails": {
       "parentTag": "xp_FinancialAssetsIncludingOffBalanceSheetAmounts",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities purchased under agreements to resell",
        "label": "Financial Assets At Amortized Cost Securities Purchased Under Agreements To Resell",
        "documentation": "Financial Assets At Amortized Cost Securities Purchased Under Agreements To Resell"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialAssetsAtAmortizedCostSecuritiesTradingAndIntermediation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialAssetsAtAmortizedCostSecuritiesTradingAndIntermediation",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails": {
       "parentTag": "xp_FinancialAssetsIncludingOffBalanceSheetAmounts",
       "weight": 1.0,
       "order": 2.0
      },
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialAssetsAtAmortisedCost",
       "weight": 1.0,
       "order": 3.0
      },
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails",
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities trading and intermediation",
        "totalLabel": "Total Assets",
        "label": "Financial Assets At Amortized Cost Securities Trading And Intermediation",
        "documentation": "Financial Assets At Amortized Cost Securities Trading And Intermediation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssetsAtFairValueThroughOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialAssetsAtFairValueThroughOtherComprehensiveIncome",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesatFairValueThroughOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Fair value through other comprehensive income",
        "terseLabel": "Fair value through other comprehensive income",
        "label": "Financial assets at fair value through other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial assets at fair value through other comprehensive income. [Refer: At fair value [member]; Financial assets; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r251"
     ]
    },
    "ifrs-full_FinancialAssetsAtFairValueThroughOtherComprehensiveIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialAssetsAtFairValueThroughOtherComprehensiveIncomeAbstract",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value through other comprehensive income",
        "label": "Financial assets at fair value through other comprehensive income [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssetsAtFairValueThroughOtherComprehensiveIncomeCategoryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialAssetsAtFairValueThroughOtherComprehensiveIncomeCategoryMember",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial assets at fair value through other comprehensive income",
        "label": "Financial assets at fair value through other comprehensive income, category [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the financial assets at fair value through other comprehensive income category. [Refer: Financial assets at fair value through other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r251"
     ]
    },
    "ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialAssetsAtFairValueThroughProfitOrLoss",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Fair value through profit or loss",
        "label": "Financial assets at fair value through profit or loss"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial assets that are measured at fair value and for which gains (losses) are recognised in profit or loss. A financial asset shall be measured at fair value through profit or loss unless it is measured at amortised cost or at fair value through other comprehensive income. A gain (loss) on a financial asset measured at fair value shall be recognised in profit or loss unless it is part of a hedging relationship, it is an investment in an equity instrument for which the entity has elected to present gains and losses in other comprehensive income or it is a financial asset measured at fair value through other comprehensive income. [Refer: At fair value [member]; Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r247"
     ]
    },
    "ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialAssetsAtFairValueThroughProfitOrLossAbstract",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial assets at Fair value through profit or loss",
        "label": "Financial assets at fair value through profit or loss [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialAssetsAtFairValueThroughProfitOrLossAndOtherComprehensiveIncomeCategoryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialAssetsAtFairValueThroughProfitOrLossAndOtherComprehensiveIncomeCategoryMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "At fair value through PL and at OCI",
        "label": "Financial Assets At Fair Value Through Profit Or Loss And Other Comprehensive Income Category [Member]",
        "documentation": "Financial Assets At Fair Value Through Profit Or Loss And Other Comprehensive Income Category"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossClassifiedAsHeldForTrading": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialAssetsAtFairValueThroughProfitOrLossClassifiedAsHeldForTrading",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities",
        "label": "Financial assets at fair value through profit or loss, classified as held for trading"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial assets at fair value through profit or loss classified as held for trading. A financial asset is classified as held for trading if: (a) it is acquired principally for the purpose of selling it in the near term; (b) on initial recognition it is part of a portfolio of identified financial instruments that are managed together and for which there is evidence of a recent actual pattern of short-term profit-taking; or (c) it is a derivative (except for a derivative that is a financial guarantee contract or a designated and effective hedging instrument). [Refer: At fair value [member]; Financial assets at fair value through profit or loss]"
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "xp_FinancialAssetsAtFairValueThroughProfitOrLossDerivativeFinancialInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialAssetsAtFairValueThroughProfitOrLossDerivativeFinancialInstruments",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Assets at Fair Value Through Profit or Loss, Derivative Financial Instruments",
        "label": "Financial Assets at Fair Value Through Profit or Loss, Derivative Financial Instruments",
        "documentation": "Financial Assets at Fair Value Through Profit or Loss, Derivative Financial Instruments"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialAssetsBusinessCombinationDuringPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialAssetsBusinessCombinationDuringPeriod",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business Combination",
        "label": "Financial Assets, Business Combination During Period",
        "documentation": "Financial Assets, Business Combination During Period"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssetsCategoryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialAssetsCategoryMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountECLsmeasuredusingsimplifiedapproachDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossusingsimplifiedmethodDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbymaturityDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesEvaluatedatAmortizedCostDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesatFairValueThroughOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial assets, category [member]",
        "label": "Financial assets, category [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated categories of financial assets. It also represents the standard value for the 'Categories of financial assets' axis if no other member is used. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r252"
     ]
    },
    "xp_FinancialAssetsDerecognized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialAssetsDerecognized",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Assets, Derecognized",
        "label": "Financial Assets, Derecognized",
        "documentation": "Financial Assets, Derecognized"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialAssetsEvaluatedAtAmortizedCostAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialAssetsEvaluatedAtAmortizedCostAbstract",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Evaluated at amortized cost",
        "label": "Financial Assets Evaluated at Amortized Cost [Abstract]",
        "documentation": "Financial Assets Evaluated at Amortized Cost"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialAssetsIncludingOffBalanceSheetAmounts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialAssetsIncludingOffBalanceSheetAmounts",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total",
        "label": "Financial Assets Including Off Balance Sheet Amounts",
        "documentation": "Financial Assets Including Off Balance Sheet Amounts"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialAssetsMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountECLsmeasuredusingsimplifiedapproachDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossusingsimplifiedmethodDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial assets, class [member]",
        "label": "Financial assets, class [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated classes of financial assets. It also represents the standard value for the 'Classes of financial assets' axis if no other member is used. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r200",
      "r244",
      "r245",
      "r270",
      "r271"
     ]
    },
    "xp_FinancialAssetsNetOfAllowanceAccountForCreditLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialAssetsNetOfAllowanceAccountForCreditLosses",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssetsTypeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialAssetsTypeMember",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial assets, type [member]",
        "label": "Financial assets, type [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated types of financial assets. It also represents the standard value for the 'Types of financial assets' axis if no other member is used. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r253",
      "r254"
     ]
    },
    "xp_FinancialBills": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialBills",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails": {
       "parentTag": "xp_FinancingInstrumentsPayables",
       "weight": 1.0,
       "order": 4.0
      },
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails": {
       "parentTag": "xp_DepositsFinancialBillsAndStructuredOperationsCertificates",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial bills",
        "label": "Financial Bills",
        "documentation": "Financial Bills"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialCreditBillsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialCreditBillsMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Financial credit bills",
        "terseLabel": "Financial credit bills",
        "label": "Financial Credit Bills [Member]",
        "documentation": "Financial Credit Bills"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialInstitutionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialInstitutionMember",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Institution",
        "label": "Financial Institution [Member]",
        "documentation": "Financial Institution"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialInstitutionsAndInsuranceCompaniesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialInstitutionsAndInsuranceCompaniesMember",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Institutions and Insurance Companies",
        "label": "Financial Institutions and Insurance Companies [Member]",
        "documentation": "Financial Institutions and Insurance Companies"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialInstitutionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialInstitutionsMember",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Institutions",
        "label": "Financial Institutions [Member]",
        "documentation": "Financial Institutions"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_Liabilities",
       "weight": 1.0,
       "order": 2.0
      },
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Financial liabilities",
        "terseLabel": "Financial liabilities",
        "label": "Financial liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities that are: (a) a contractual obligation: (i) to deliver cash or another financial asset to another entity; or (ii) to exchange financial assets or financial liabilities with another entity under conditions that are potentially unfavourable to the entity; or (b) a contract that will, or may be, settled in the entity\u2019s own equity instruments and is: (i) a non-derivative for which the entity is, or may be, obliged to deliver a variable number of the entity\u2019s own equity instruments; or (ii) a derivative that will, or may be, settled other than by the exchange of a fixed amount of cash or another financial asset for a fixed number of the entity\u2019s own equity instruments. For this purpose, rights, options or warrants to acquire a fixed number of the entity\u2019s own equity instruments for a fixed amount of any currency are equity instruments if the entity offers the rights, options or warrants pro rata to all of its existing owners of the same class of its own non-derivative equity instruments. Also, for those purposes the entity\u2019s own equity instruments do not include puttable financial instruments that are classified as equity instruments in accordance with paragraphs 16A-16B of IAS 32, instruments that impose on the entity an obligation to deliver to another party a pro rata share of the net assets of the entity only on liquidation and are classified as equity instruments in accordance with paragraphs 16C-16D of IAS 32, or instruments that are contracts for the future receipt or delivery of the entity\u2019s own equity instruments. As an exception, an instrument that meets the definition of a financial liability is classified as an equity instrument if it has all the features and meets the conditions in paragraphs 16A-16B or paragraphs 16C-16D of IAS 32. [Refer: Financial instruments, class [member]; Financial assets; Derivatives [member]]"
       }
      }
     },
     "auth_ref": [
      "r232"
     ]
    },
    "ifrs-full_FinancialLiabilitiesAtAmortisedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialLiabilitiesAtAmortisedCost",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Evaluated at amortized cost",
        "label": "Financial liabilities at amortised cost"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial liabilities at amortised cost. The amortised cost is the amount at which financial liabilities are measured at initial recognition minus principal repayments, plus or minus the cumulative amortisation using the effective interest method of any difference between that initial amount and the maturity amount. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r250"
     ]
    },
    "ifrs-full_FinancialLiabilitiesAtAmortisedCostCategoryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialLiabilitiesAtAmortisedCostCategoryMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Evaluated at amortized cost",
        "label": "Financial liabilities at amortised cost, category [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the financial liabilities at amortised cost category. [Refer: Financial liabilities at amortised cost]"
       }
      }
     },
     "auth_ref": [
      "r250"
     ]
    },
    "xp_FinancialLiabilitiesAtAmortizedCostAccountsPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialLiabilitiesAtAmortizedCostAccountsPayables",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Liabilities At Amortized Cost Accounts Payables",
        "label": "Financial Liabilities At Amortized Cost Accounts Payables",
        "documentation": "Financial Liabilities At Amortized Cost Accounts Payables"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialLiabilitiesAtAmortizedCostBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialLiabilitiesAtAmortizedCostBorrowings",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Liabilities At Amortized Cost Borrowings",
        "label": "Financial Liabilities At Amortized Cost Borrowings",
        "documentation": "Financial Liabilities At Amortized Cost Borrowings"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialLiabilitiesAtAmortizedCostFinancialInstrumentsPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialLiabilitiesAtAmortizedCostFinancialInstrumentsPayable",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing instruments payable",
        "label": "Financial Liabilities At Amortized Cost, Financial Instruments Payable",
        "documentation": "Financial Liabilities At Amortized Cost, Financial Instruments Payable"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialLiabilitiesAtAmortizedCostGroupDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialLiabilitiesAtAmortizedCostGroupDebt",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails": {
       "parentTag": "ifrs-full_LiabilitiesArisingFromFinancingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Group debt",
        "label": "Financial Liabilities at Amortized Cost, Group Debt",
        "documentation": "Financial Liabilities at Amortized Cost, Group Debt"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialLiabilitiesAtAmortizedCostOtherFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialLiabilitiesAtAmortizedCostOtherFinancialLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Liabilities At Amortized Cost Other Financial Liabilities",
        "label": "Financial Liabilities At Amortized Cost Other Financial Liabilities",
        "documentation": "Financial Liabilities At Amortized Cost Other Financial Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialLiabilitiesAtAmortizedCostSecuritiesSoldUnderRepurchaseAgreements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialLiabilitiesAtAmortizedCostSecuritiesSoldUnderRepurchaseAgreements",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialLiabilitiesAtAmortisedCost",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities sold under repurchase agreements",
        "label": "Financial Liabilities At Amortized Cost Securities Sold Under Repurchase Agreements",
        "documentation": "Financial Liabilities At Amortized Cost Securities Sold Under Repurchase Agreements"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialLiabilitiesAtAmortizedCostSecuritiesTradingAndIntermediation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialLiabilitiesAtAmortizedCostSecuritiesTradingAndIntermediation",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialLiabilitiesAtAmortisedCost",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities trading and intermediation",
        "label": "Financial Liabilities At Amortized Cost Securities Trading And Intermediation",
        "documentation": "Financial Liabilities At Amortized Cost Securities Trading And Intermediation"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialLiabilitiesAtAmortizedCostStructuredFinancing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialLiabilitiesAtAmortizedCostStructuredFinancing",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails": {
       "parentTag": "ifrs-full_LiabilitiesArisingFromFinancingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Structured financing",
        "label": "Financial liabilities at amortized cost structured financing",
        "documentation": "Financial liabilities at amortized cost structured financing"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialLiabilitiesAtAmortizedCostStructuredOperationsCertificates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialLiabilitiesAtAmortizedCostStructuredOperationsCertificates",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails": {
       "parentTag": "xp_DepositsFinancialBillsAndStructuredOperationsCertificates",
       "weight": 1.0,
       "order": 2.0
      },
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails": {
       "parentTag": "xp_FinancingInstrumentsPayables",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Liabilities At Amortized Cost, Structured Operations Certificates",
        "label": "Financial Liabilities At Amortized Cost, Structured Operations Certificates",
        "documentation": "Financial Liabilities At Amortized Cost, Structured Operations Certificates"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialLiabilitiesAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialLiabilitiesAtFairValue",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial liabilities, at fair value",
        "label": "Financial liabilities, at fair value"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value of financial liabilities. [Refer: At fair value [member]; Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r232"
     ]
    },
    "ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialLiabilitiesAtFairValueThroughProfitOrLoss",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Fair value through profit or loss",
        "label": "Financial liabilities at fair value through profit or loss"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial liabilities that meet either of the following conditions: (a) they meet the definition of held for trading; or (b) upon initial recognition they are designated by the entity as at fair value through profit or loss. An entity may use this designation only when permitted by paragraph 4.3.5 of IFRS 9 (embedded derivatives) or when doing so results in more relevant information, because either: (a) it eliminates or significantly reduces a measurement or recognition inconsistency (sometimes referred to as \u2018an accounting mismatch\u2019) that would otherwise arise from measuring assets or liabilities or recognising the gains and losses on them on different bases; or (b) a group of financial liabilities or financial assets and financial liabilities is managed and its performance is evaluated on a fair value basis, in accordance with a documented risk management or investment strategy, and information about the group is provided internally on that basis to the entity\u2019s key management personnel (as defined in IAS 24). [Refer: At fair value [member]; Key management personnel of entity or parent [member]; Derivatives [member]; Financial assets; Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r248"
     ]
    },
    "ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialLiabilitiesAtFairValueThroughProfitOrLossAbstract",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value through profit or loss",
        "label": "Financial liabilities at fair value through profit or loss [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancialLiabilitiesAtFairValueThroughProfitOrLossAndOtherComprehensiveIncomeCategoryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialLiabilitiesAtFairValueThroughProfitOrLossAndOtherComprehensiveIncomeCategoryMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "At fair value through PL and at OCI",
        "label": "Financial Liabilities At Fair Value Through Profit Or Loss And Other Comprehensive Income Category [Member]",
        "documentation": "Financial Liabilities At Fair Value Through Profit Or Loss And Other Comprehensive Income Category"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLossDesignatedUponInitialRecognitionCategoryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialLiabilitiesAtFairValueThroughProfitOrLossDesignatedUponInitialRecognitionCategoryMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial liabilities at fair value through profit or loss",
        "label": "Financial liabilities at fair value through profit or loss, designated upon initial recognition or subsequently, category [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the financial liabilities at fair value through profit or loss designated as such upon initial recognition or subsequently category. [Refer: Financial liabilities at fair value through profit or loss, designated upon initial recognition or subsequently]"
       }
      }
     },
     "auth_ref": [
      "r248"
     ]
    },
    "xp_FinancialLiabilitiesAtFairValueThroughProfitOrLossSecuritiesLoaned": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialLiabilitiesAtFairValueThroughProfitOrLossSecuritiesLoaned",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities",
        "verboseLabel": "Securities",
        "label": "Financial Liabilities At Fair Value Through Profit Or Loss Securities Loaned",
        "documentation": "Financial Liabilities At Fair Value Through Profit Or Loss Securities Loaned"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialLiabilitiesCategoryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialLiabilitiesCategoryMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial liabilities, category",
        "label": "Financial liabilities, category [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated categories of financial liabilities. It also represents the standard value for the 'Categories of financial liabilities' axis if no other member is used. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r252"
     ]
    },
    "xp_FinancialLiabilitiesEvaluatedAtAmortizedCostAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialLiabilitiesEvaluatedAtAmortizedCostAbstract",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Evaluated at amortized cost",
        "label": "Financial Liabilities Evaluated at Amortized Cost [Abstract]",
        "documentation": "Financial Liabilities Evaluated at Amortized Cost"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialLiabilitiesMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial liabilities, class",
        "label": "Financial liabilities, class [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated classes financial liabilities. It also represents the standard value for the 'Classes of financial liabilities' axis if no other member is used. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r244",
      "r245",
      "r270",
      "r271"
     ]
    },
    "xp_FinancialLiabilitiesOtherMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialLiabilitiesOtherMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Others",
        "label": "Financial Liabilities, Other [Member]",
        "documentation": "Financial Liabilities, Other"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialLiabilitiesRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialLiabilitiesRecognisedAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/Cover",
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial liabilities recognised as of acquisition date",
        "label": "Financial liabilities recognised as of acquisition date"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for financial liabilities assumed in a business combination. [Refer: Financial liabilities; Business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r326",
      "r327"
     ]
    },
    "ifrs-full_FinancialLiabilitiesTypeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FinancialLiabilitiesTypeMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial liabilities, type [member]",
        "label": "Financial liabilities, type [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated types of financial liabilities. It also represents the standard value for the 'Types of financial liabilities' axis if no other member is used. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r253",
      "r254"
     ]
    },
    "xp_FinancialTreasuryBillsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancialTreasuryBillsMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Treasury Bills",
        "label": "Financial Treasury Bills [Member]",
        "documentation": "Financial Treasury Bills"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinancingInstrumentsPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinancingInstrumentsPayables",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialLiabilitiesAtAmortisedCost",
       "weight": 1.0,
       "order": 3.0
      },
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails_1": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing instruments payable",
        "totalLabel": "Total",
        "label": "Financing Instruments Payables",
        "documentation": "Financing Instruments Payables"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FinesAndPenalties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FinesAndPenalties",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails": {
       "parentTag": "ifrs-full_MiscellaneousOtherOperatingExpense",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Fines and penalties",
        "label": "Fines and penalties",
        "documentation": "Fines and penalties"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FixturesAndFittingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FixturesAndFittingsMember",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofdepreciationofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Furniture and equipment",
        "label": "Fixtures and fittings [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing fixtures and fittings that are not permanently attached to real property. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r304"
     ]
    },
    "xp_FollowingOnOffering": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FollowingOnOffering",
     "presentation": [
      "http://xpinc.com/role/EquitySummaryofissuancesandconversationsofsharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Follow on offering",
        "label": "Following on offering",
        "documentation": "Following on offering"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ForeignCurrenciesCouponRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ForeignCurrenciesCouponRateMember",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign currencies coupon rate",
        "label": "Foreign currencies coupon rate [Member]",
        "documentation": "Foreign currencies coupon rate"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ForeignCurrenciesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ForeignCurrenciesMember",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign currencies",
        "label": "Foreign currencies [Member]",
        "documentation": "Foreign currencies"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ForeignCurrencyRisk": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ForeignCurrencyRisk",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign Currency Risk",
        "label": "Foreign Currency Risk",
        "documentation": "Foreign Currency Risk"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ForeignExchangeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ForeignExchangeDomain",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign exchange",
        "label": "Foreign exchange [Domain]",
        "documentation": "Foreign exchange"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ForeignExchangeLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ForeignExchangeLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails": {
       "parentTag": "ifrs-full_OtherFinancialLiabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign exchange portfolio",
        "label": "Foreign exchange liabilities",
        "documentation": "Foreign exchange liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ForeignPortfolioInvestment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ForeignPortfolioInvestment",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails_1": {
       "parentTag": "ifrs-full_OtherFinancialAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign exchange portfolio",
        "label": "Foreign Portfolio Investment",
        "documentation": "Foreign Portfolio Investment"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ForeignSovereignBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ForeignSovereignBondsMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesatFairValueThroughOtherComprehensiveIncomeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign sovereign bonds",
        "label": "Foreign sovereign bonds [Member]",
        "documentation": "Foreign sovereign bonds"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ForwardContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ForwardContractMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Forward contracts",
        "netLabel": "Forward Contracts",
        "label": "Forward contract [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a contract between two parties for the purchase or sale of an underlying asset at a specified future date for a settlement price determined in advance."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "xp_FradeFundoDeInvestimentoEmCotasDeFundosDeInvestimentoEmDireitosCreditriosNPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FradeFundoDeInvestimentoEmCotasDeFundosDeInvestimentoEmDireitosCreditriosNPMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Frade Fundo de Investimento em Cotas de Fundos de Investimento em Direitos Credit\u00f3rios NP",
        "label": "Frade Fundo de Investimento em Cotas de Fundos de Investimento em Direitos Credit\u00f3rios NP [Member]",
        "documentation": "Frade Fundo de Investimento em Cotas de Fundos de Investimento em Direitos Credit\u00f3rios NP"
       }
      }
     },
     "auth_ref": []
    },
    "xp_FradeIIIFundoDeInvestimentoEmCotasDeFundoDeInvestimentoMultimercadoCrditoPrivadoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "FradeIIIFundoDeInvestimentoEmCotasDeFundoDeInvestimentoMultimercadoCrditoPrivadoMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Frade III Fundo de Investimento em Cotas de Fundo de Investimento Multimercado Cr\u00e9dito Privado",
        "label": "Frade III Fundo de Investimento em Cotas de Fundo de Investimento Multimercado Cr\u00e9dito Privado [Member]",
        "documentation": "Frade III Fundo de Investimento em Cotas de Fundo de Investimento Multimercado Cr\u00e9dito Privado"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FuturesContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "FuturesContractMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails",
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Future contracts",
        "netLabel": "Future Contracts",
        "terseLabel": "Futures contract [member]",
        "label": "Futures contract [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a standardised, exchange-traded contract for the purchase or sale of an underlying asset at a specified future date for a settlement price determined in advance."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "ifrs-full_GainLossOnChangeInFairValueOfHedgedItemUsedAsBasisForRecognisingHedgeIneffectiveness": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GainLossOnChangeInFairValueOfHedgedItemUsedAsBasisForRecognisingHedgeIneffectiveness",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variation in the amounts used to calculate hedge ineffectiveness",
        "label": "Gain (loss) on change in fair value of hedged item used as basis for recognising hedge ineffectiveness"
       }
      },
      "en": {
       "role": {
        "documentation": "The gain (loss) on the change in fair value of the hedged item used as a basis for recognising hedge ineffectiveness. Hedge ineffectiveness is the extent to which the changes in the fair value or the cash flows of the hedging instrument are greater or less than those on the hedged item."
       }
      }
     },
     "auth_ref": [
      "r224",
      "r225"
     ]
    },
    "ifrs-full_GainLossOnHedgeIneffectivenessRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GainLossOnHedgeIneffectivenessRecognisedInProfitOrLoss",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hedge ineffectiveness recognized in income",
        "label": "Gain (loss) on hedge ineffectiveness recognised in profit or loss"
       }
      },
      "en": {
       "role": {
        "documentation": "The gain (loss) recognised in profit or loss on hedge ineffectiveness. [Refer: Gain (loss) on hedge ineffectiveness]"
       }
      }
     },
     "auth_ref": [
      "r227",
      "r229"
     ]
    },
    "ifrs-full_GainsLossesOnDisposalsOfInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GainsLossesOnDisposalsOfInvestments",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gains (losses) on disposals of investments",
        "label": "Gains (losses) on disposals of investments"
       }
      },
      "en": {
       "role": {
        "documentation": "The gains (losses) on disposals of investments."
       }
      }
     },
     "auth_ref": [
      "r48"
     ]
    },
    "ifrs-full_GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GainsLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": -1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Income from share in the net income of associates measured at fair value",
        "label": "Gains (losses) on financial assets measured at fair value through other comprehensive income, net of tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The gains (losses) recognised in other comprehensive income on financial assets measured at fair value through other comprehensive income applying paragraph 4.1.2A of IFRS 9, net of tax, before reclassification adjustments. [Refer: Financial assets measured at fair value through other comprehensive income; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r45"
     ]
    },
    "ifrs-full_GainsLossesOnHedgesOfNetInvestmentsInForeignOperationsNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GainsLossesOnHedgesOfNetInvestmentsInForeignOperationsNetOfTax",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variation in value recognized in Other comprehensive income",
        "label": "Gains (losses) on hedges of net investments in foreign operations, net of tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The gains (losses) recognised in other comprehensive income on hedges of net investments in foreign operations, net of tax, before reclassification adjustments. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r45",
      "r117",
      "r228",
      "r231",
      "r269"
     ]
    },
    "ifrs-full_GainsLossesOnHedgingInstrument": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GainsLossesOnHedgingInstrument",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variation in value recognized in income",
        "label": "Gains (losses) on hedging instrument, fair value hedges"
       }
      },
      "en": {
       "role": {
        "documentation": "The gains (losses) on hedging instruments in fair value hedges. [Refer: Fair value hedges [member]]"
       }
      }
     },
     "auth_ref": [
      "r274"
     ]
    },
    "xp_GalaposConsultoriaEParticipacoesLtda.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "GalaposConsultoriaEParticipacoesLtda.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Galapos Consultoria e Participa\u00e7\u00f5es Ltda. [Member]",
        "label": "Galapos Consultoria e Participa\u00e7\u00f5es Ltda. [Member]",
        "documentation": "Galapos Consultoria e Participa\u00e7\u00f5es Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_GaleaFundoDeInvestimentoMultimercadoCrditoPrivadoInvestimentoNoExteriorViMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "GaleaFundoDeInvestimentoMultimercadoCrditoPrivadoInvestimentoNoExteriorViMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Galea Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior",
        "label": "Galea Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior (vi) [Member]",
        "documentation": "Galea Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior (vi)"
       }
      }
     },
     "auth_ref": []
    },
    "xp_GearingRatioPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "GearingRatioPercent",
     "presentation": [
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gearing ratio %",
        "label": "Gearing ratio percent",
        "documentation": "Gearing ratio percent"
       }
      }
     },
     "auth_ref": []
    },
    "xp_GladiusFundoDeInvestimentoMultimercadoInvestimentoNoExteriorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "GladiusFundoDeInvestimentoMultimercadoInvestimentoNoExteriorMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gladius Fundo de Investimento Multimercado Investimento no Exterior",
        "label": "Gladius Fundo de Investimento Multimercado Investimento no Exterior [Member]",
        "documentation": "Gladius Fundo de Investimento Multimercado Investimento no Exterior"
       }
      }
     },
     "auth_ref": []
    },
    "xp_GoodwillAndIntangibleAssetsOnSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "GoodwillAndIntangibleAssetsOnSubsidiaries",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Goodwill and Intangible assets on subsidiaries",
        "label": "Goodwill and Intangible assets on subsidiaries",
        "documentation": "Goodwill and Intangible assets on subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "xp_GoodwillArisingOnAcquisitionOfSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "GoodwillArisingOnAcquisitionOfSubsidiaries",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Goodwill arising on acquisition of subsidiaries",
        "label": "Goodwill arising on acquisition of subsidiaries",
        "documentation": "Goodwill arising on acquisition of subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GoodwillMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GoodwillMember",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Goodwill",
        "label": "Goodwill [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for goodwill. [Refer: Goodwill]"
       }
      }
     },
     "auth_ref": [
      "r306"
     ]
    },
    "xp_GoodwillOnBusinessCombinationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "GoodwillOnBusinessCombinationsMember",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Goodwill on business combinations",
        "label": "Goodwill on Business Combinations [Member]",
        "documentation": "Goodwill on Business Combinations"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GrossCarryingAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "GrossCarryingAmountMember",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails",
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesEvaluatedatAmortizedCostDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesatFairValueThroughOtherComprehensiveIncomeDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gross carrying amount",
        "verboseLabel": "Cost",
        "label": "Gross carrying amount [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the amount at which an asset is recognised before deducting any accumulated depreciation (amortisation) and accumulated impairment losses thereon. [Refer: Depreciation and amortisation expense; Impairment loss]"
       }
      }
     },
     "auth_ref": [
      "r62",
      "r112",
      "r123",
      "r126",
      "r213",
      "r238",
      "r241",
      "r332"
     ]
    },
    "xp_GroupPortfolioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "GroupPortfolioMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Group portfolio",
        "label": "Group portfolio [Member]",
        "documentation": "Group portfolio"
       }
      }
     },
     "auth_ref": []
    },
    "xp_HabitatCapitalPartnersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "HabitatCapitalPartnersMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails",
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Habitat Capital Partners",
        "label": "Habitat Capital Partners [Member]",
        "documentation": "Habitat Capital Partners"
       }
      }
     },
     "auth_ref": []
    },
    "xp_HedgeOfFixedIncomeSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "HedgeOfFixedIncomeSecuritiesMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed income bonds",
        "label": "Hedge Of Fixed-Income Securities [Member]",
        "documentation": "Hedge Of Fixed-Income Securities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_HedgedItemAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "HedgedItemAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets",
        "label": "Hedged item, assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of a hedged item, recognised as an asset. [Refer: Hedged items [member]]"
       }
      }
     },
     "auth_ref": [
      "r222"
     ]
    },
    "ifrs-full_HedgedItemLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "HedgedItemLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liabilities",
        "label": "Hedged item, liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of a hedged item, recognised as a liability. [Refer: Hedged items [member]]"
       }
      }
     },
     "auth_ref": [
      "r222"
     ]
    },
    "xp_HedgedItemNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "HedgedItemNet",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingHedgediteminformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Book value",
        "label": "Hedged Item, Net",
        "documentation": "Hedged Item, Net"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_HedgedItemsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "HedgedItemsAxis",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hedged items [axis]",
        "label": "Hedged items [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r226"
     ]
    },
    "ifrs-full_HedgedItemsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "HedgedItemsMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hedged items [member]",
        "label": "Hedged items [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for hedged items. A hedged item can be a recognised asset or liability, an unrecognised firm commitment, a forecast transaction or a net investment in a foreign operation. The hedged item can be: (a) a single item; or (b) a group of items (subject to paragraphs 6.6.1\u20136.6.6 and B6.6.1\u2013B6.6.16 of IFRS 9). A hedged item can also be a component of such an item or group of items (see paragraphs 6.3.7 and B6.3.7\u2013B6.3.25 of IFRS 9). This member also represents the standard value for the 'Hedged items' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r226"
     ]
    },
    "ifrs-full_HedgesOfNetInvestmentInForeignOperationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "HedgesOfNetInvestmentInForeignOperationsMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingHedgediteminformationDetails",
      "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails",
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hedge of net investment in foreign operations",
        "label": "Hedges of net investment in foreign operations [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for hedges of the entity's monetary items that are receivable from or payable to a foreign operation, for which settlement is neither planned nor likely to occur in the foreseeable future. A foreign operation is an entity that is a subsidiary, associate, joint venture or branch of a reporting entity, the activities of which are based or conducted in a country or currency other than those of the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r120",
      "r221",
      "r226",
      "r230"
     ]
    },
    "xp_HumBilhaoEducacaoFinanceiraLtda.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "HumBilhaoEducacaoFinanceiraLtda.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hum Bilh\u00e3o Educa\u00e7\u00e3o Financeira Ltda. [Member]",
        "label": "Hum Bilh\u00e3o Educa\u00e7\u00e3o Financeira Ltda. [Member]",
        "documentation": "Hum Bilh\u00e3o Educa\u00e7\u00e3o Financeira Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "dei_IcfrAuditorAttestationFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "IcfrAuditorAttestationFlag",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ICFR Auditor Attestation Flag",
        "label": "ICFR Auditor Attestation Flag"
       }
      }
     },
     "auth_ref": [
      "r356",
      "r357",
      "r358"
     ]
    },
    "ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
      "http://xpinc.com/role/GroupstructureSummaryofintangibleassetsacquiredDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Identifiable intangible assets recognised as of acquisition date",
        "label": "Identifiable intangible assets recognised as of acquisition date"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for identifiable intangible assets acquired in a business combination. [Refer: Intangible assets other than goodwill; Business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r326",
      "r327"
     ]
    },
    "xp_IdentifiedAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IdentifiedAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total identified assets",
        "label": "Identified assets",
        "documentation": "Identified assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ImpairmentLossRecognisedInProfitOrLossIntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ImpairmentLossRecognisedInProfitOrLossIntangibleAssetsAndGoodwill",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Write-offs",
        "label": "Impairment loss recognised in profit or loss, intangible assets and goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of impairment loss recognised in profit or loss for intangible assets and goodwill. [Refer: Impairment loss recognised in profit or loss; Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r383"
     ]
    },
    "ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Write-offs",
        "label": "Impairment loss recognised in profit or loss, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of impairment loss recognised in profit or loss for property, plant and equipment. [Refer: Impairment loss recognised in profit or loss; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r47",
      "r65"
     ]
    },
    "ifrs-full_ImpairmentOfFinancialAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ImpairmentOfFinancialAssetsAxis",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountECLsmeasuredusingsimplifiedapproachDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossusingsimplifiedmethodDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Impairment of financial assets [axis]",
        "label": "Impairment of financial assets [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r275"
     ]
    },
    "xp_IncomeExpenseFromRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncomeExpenseFromRelatedPartyTransactions",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/RelatedpartytransactionsSummaryoftransactionsbetweenrelatedpartiesexplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revenue/(Expenses)",
        "label": "Income expense from related party transactions",
        "documentation": "Income expense from related party transactions"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncomeLossFromFinancialInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncomeLossFromFinancialInstruments",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofnetincomefromfinancialinstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Income from financial instruments",
        "label": "Income loss from financial instruments",
        "documentation": "Represents Income loss from financial instruments"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeStatementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncomeStatementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit or loss [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeTaxExpenseContinuingOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncomeTaxExpenseContinuingOperations",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/IncometaxSummaryofincometaxcalculationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Income tax credit / (expense)",
        "terseLabel": "Income tax credit / (expense)",
        "label": "Tax expense (income)"
       }
      },
      "en": {
       "role": {
        "documentation": "The aggregate amount included in the determination of profit (loss) for the period in respect of current tax and deferred tax. [Refer: Current tax expense (income); Deferred tax expense (income)]"
       }
      }
     },
     "auth_ref": [
      "r43",
      "r52",
      "r54",
      "r55",
      "r82",
      "r163",
      "r259"
     ]
    },
    "ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncomeTaxRelatingToComponentsOfOtherComprehensiveIncome",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails",
      "http://xpinc.com/role/IncometaxSummaryofreconciliationofchangesindeferredtaxliabilityassetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax relating to components of other comprehensive income",
        "label": "Income tax relating to components of other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income tax relating to amounts recognised in other comprehensive income. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r44",
      "r53"
     ]
    },
    "ifrs-full_IncomeTaxRelatingToExchangeDifferencesOnTranslationOfOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncomeTaxRelatingToExchangeDifferencesOnTranslationOfOtherComprehensiveIncome",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "(Charge) / Credit",
        "label": "Income tax relating to exchange differences on translation of foreign operations included in other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income tax relating to amounts recognised in other comprehensive income in relation to exchange differences on the translation of financial statements of foreign operations. [Refer: Other comprehensive income; Reserve of exchange differences on translation]"
       }
      }
     },
     "auth_ref": [
      "r44",
      "r53"
     ]
    },
    "ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "(Charge) / Credit",
        "label": "Income tax relating to financial assets measured at fair value through other comprehensive income included in other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income tax relating to amounts recognised in other comprehensive income in relation to financial assets measured at fair value through other comprehensive income applying paragraph 4.1.2A of IFRS 9. [Refer: Financial assets measured at fair value through other comprehensive income; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r44",
      "r53"
     ]
    },
    "ifrs-full_IncomeTaxRelatingToHedgesOfNetInvestmentsInForeignOperationsOfOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncomeTaxRelatingToHedgesOfNetInvestmentsInForeignOperationsOfOtherComprehensiveIncome",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "(Charge) / Credit",
        "label": "Income tax relating to hedges of net investments in foreign operations included in other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income tax relating to amounts recognised in other comprehensive income in relation to hedges of net investments in foreign operations. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r44",
      "r53"
     ]
    },
    "ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncomeTaxesPaidRefundClassifiedAsOperatingActivities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Income tax paid",
        "label": "Income taxes paid (refund), classified as operating activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from income taxes paid or refunded, classified as operating activities. [Refer: Income taxes paid (refund)]"
       }
      }
     },
     "auth_ref": [
      "r132",
      "r309"
     ]
    },
    "xp_IncreaseDecreaseFromTransactionsWithNonControllingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseFromTransactionsWithNonControllingInterests",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Transactions with non-controlling interests",
        "label": "Increase Decrease From Transactions With Non Controlling Interests",
        "documentation": "Increase Decrease From Transactions With Non Controlling Interests"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseInAllowanceAccountForCreditLossesOfFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseInAllowanceAccountForCreditLossesOfFinancialAssets",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Acquisition / (Settlements)",
        "label": "Increase (decrease) in allowance account for credit losses of financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in the allowance account used to record the impairment of financial assets due to credit losses. [Refer: Financial assets; Allowance account for credit losses of financial assets]"
       }
      }
     },
     "auth_ref": [
      "r272"
     ]
    },
    "xp_IncreaseDecreaseInBusinessCombinationForCreditLossesOfFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseInBusinessCombinationForCreditLossesOfFinancialAssets",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business Combination",
        "label": "Increase (Decrease) in Business Combination for credit losses of financial assets",
        "documentation": "Increase (Decrease) in Business Combination for credit losses of financial assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseInCashAndCashEquivalentsBeforeEffectOfExchangeRateChanges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseInCashAndCashEquivalentsBeforeEffectOfExchangeRateChanges",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net increase/(decrease) in cash and cash equivalents",
        "label": "Increase (decrease) in cash and cash equivalents before effect of exchange rate changes"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in cash and cash equivalents before the effect of exchange rate changes on cash and cash equivalents held in foreign currencies. [Refer: Cash and cash equivalents; Effect of exchange rate changes on cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r137"
     ]
    },
    "ifrs-full_IncreaseDecreaseInExistingProvisionsOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseInExistingProvisionsOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofchangesinotherprovisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Monetary correction",
        "label": "Increase in existing provisions, other provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in existing other provisions. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r104"
     ]
    },
    "ifrs-full_IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleIncreaseInUnobservableInputAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleIncreaseInUnobservableInputAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase (decrease) in fair value due to change in discount rate by 100 bps, asset",
        "label": "Increase (decrease) in fair value measurement due to reasonably possible increase in unobservable input, assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of increase (decrease) in the fair value measurement of assets due to a reasonably possible increase in an unobservable input."
       }
      }
     },
     "auth_ref": [
      "r172"
     ]
    },
    "ifrs-full_IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleIncreaseInUnobservableInputLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseInFairValueMeasurementDueToReasonablyPossibleIncreaseInUnobservableInputLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase (decrease) in fair value due to change in discount rate, liability",
        "label": "Increase (decrease) in fair value measurement due to reasonably possible increase in unobservable input, liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of increase (decrease) in the fair value measurement of liabilities due to a reasonably possible increase in an unobservable input."
       }
      }
     },
     "auth_ref": [
      "r172"
     ]
    },
    "xp_IncreaseDecreaseInNetDefinedBenefitLiabilityAssetResultingFromClaimsPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseInNetDefinedBenefitLiabilityAssetResultingFromClaimsPaid",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/RetirementplansliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Claims paid",
        "label": "Increase (decrease) in net defined benefit liability (asset) resulting from claims paid",
        "documentation": "Increase (decrease) in net defined benefit liability (asset) resulting from claims paid"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseInNumberOfOrdinarySharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseInNumberOfOrdinarySharesIssued",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Issuance of shares",
        "label": "Increase (decrease) in number of ordinary shares issued"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in the number of ordinary shares issued. [Refer: Ordinary shares [member]]"
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "ifrs-full_IncreaseDecreaseInNumberOfSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseInNumberOfSharesOutstanding",
     "presentation": [
      "http://xpinc.com/role/SubsequenteventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase (decrease) in number of shares outstanding",
        "label": "Increase (decrease) in number of shares outstanding"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in the number of shares outstanding. [Refer: Number of shares outstanding]"
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "xp_IncreaseDecreaseInProvisionBusinessCombination": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseInProvisionBusinessCombination",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofchangesinotherprovisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business combination",
        "label": "Increase decrease in provision business combination",
        "documentation": "Represents increase decrease in provision due to business combination"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDecreaseInWriteOffForCreditLossesOfFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseInWriteOffForCreditLossesOfFinancialAssets",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Write-Off",
        "label": "Increase (Decrease) in Write-Off for credit losses of financial assets",
        "documentation": "Increase (Decrease) in Write-Off for credit losses of financial assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughAppropriationOfRetainedEarnings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughAppropriationOfRetainedEarnings",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfer to capital reserves",
        "label": "Increase (decrease) through appropriation of retained earnings, equity"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in equity resulting from the appropriation of retained earnings. [Refer: Retained earnings]"
       }
      }
     },
     "auth_ref": [
      "r364"
     ]
    },
    "xp_IncreaseDecreaseThroughBusinessCombination": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughBusinessCombination",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business combination",
        "label": "Increase decrease through Business combination",
        "documentation": "Represents Increase decrease through Business combination."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughBusinessCombinationsDeferredTaxLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughBusinessCombinationsDeferredTaxLiabilityAsset",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofreconciliationofchangesindeferredtaxliabilityassetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business combination",
        "label": "Increase (decrease) through business combinations, deferred tax liability (asset)"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in deferred tax liability (asset) resulting from business combinations. [Refer: Deferred tax liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r373"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughChangesInFairValuesLiabilitiesArisingFromFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughChangesInFairValuesLiabilitiesArisingFromFinancingActivities",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value adjustments, liabilities arising from financing activities",
        "label": "Increase (decrease) through changes in fair values, liabilities arising from financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in liabilities arising from financing activities resulting from changes in fair values. [Refer: Liabilities arising from financing activities]"
       }
      }
     },
     "auth_ref": [
      "r136"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughEffectOfChangesInForeignExchangeRatesLiabilitiesArisingFromFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughEffectOfChangesInForeignExchangeRatesLiabilitiesArisingFromFinancingActivities",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net foreign exchange differences",
        "label": "Increase (decrease) through effect of changes in foreign exchange rates, liabilities arising from financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in liabilities arising from financing activities resulting from the effect of changes in foreign exchange rates. [Refer: Liabilities arising from financing activities]"
       }
      }
     },
     "auth_ref": [
      "r135"
     ]
    },
    "xp_IncreaseDecreaseThroughInterestAccrued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughInterestAccrued",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest accrued",
        "label": "Increase decrease through interest accrued",
        "documentation": "Increase decrease through interest accrued"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDecreaseThroughInterestPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughInterestPaid",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Interest paid",
        "label": "Increase decrease through interest paid",
        "documentation": "Increase decrease through interest paid"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesDeferredTaxLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesDeferredTaxLiabilityAsset",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofreconciliationofchangesindeferredtaxliabilityassetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign exchange variations",
        "label": "Increase (decrease) through net exchange differences, deferred tax liability (asset)"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in deferred tax liability (asset) resulting from the net exchange differences arising when the financial statements are translated from the functional currency into a different presentation currency, including the translation of a foreign operation into the presentation currency of the reporting entity. [Refer: Deferred tax liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r373"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign exchange",
        "label": "Increase (decrease) through net exchange differences, intangible assets and goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in intangible assets and goodwill resulting from the net exchange differences arising when the financial statements are translated from the functional currency into a different presentation currency, including the translation of a foreign operation into the presentation currency of the reporting entity. [Refer: Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r384"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign exchange",
        "label": "Increase (decrease) through net exchange differences, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in property, plant and equipment resulting from net exchange differences arising on the translation of the financial statements from the functional currency into a different presentation currency, including the translation of a foreign operation into the presentation currency of the reporting entity. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r67"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughObtainingOrLosingControlOfSubsidiariesOrOtherBusinessesLiabilitiesArisingFromFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughObtainingOrLosingControlOfSubsidiariesOrOtherBusinessesLiabilitiesArisingFromFinancingActivities",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Acquisitions/Issuance",
        "label": "Increase (decrease) through obtaining or losing control of subsidiaries or other businesses, liabilities arising from financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in liabilities arising from financing activities resulting from obtaining or losing control of subsidiaries or other businesses. [Refer: Liabilities arising from financing activities; Subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r134"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughOtherChangesNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughOtherChangesNetDefinedBenefitLiabilityAsset",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/RetirementplansliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfer with third party plans",
        "label": "Increase (decrease) in net defined benefit liability (asset) resulting from other changes"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in the net defined benefit liability (asset) resulting from changes that the entity does not separately disclose in the same statement or note. [Refer: Net defined benefit liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r377"
     ]
    },
    "xp_IncreaseDecreaseThroughPayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughPayments",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Payments/repurchase",
        "label": "Increase decrease through payments",
        "documentation": "Increase decrease through payments"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDecreaseThroughRepurchaseOfDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughRepurchaseOfDebt",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Increase (Decrease) Through Repurchase Of Debt",
        "label": "Increase (Decrease) Through Repurchase Of Debt",
        "documentation": "Increase (Decrease) Through Repurchase Of Debt"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDecreaseThroughRevaluation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughRevaluation",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Write-offs",
        "label": "Increase decrease through revaluation",
        "documentation": "Increase decrease through revaluation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughSharebasedPaymentTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughSharebasedPaymentTransactions",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share based plan",
        "label": "Increase (decrease) through share-based payment transactions, equity"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in equity resulting from share-based payment transactions. [Refer: Equity]"
       }
      }
     },
     "auth_ref": [
      "r4"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughTransfersAndOtherChangesEquity",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other changes in equity",
        "label": "Increase (decrease) through other changes, equity"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in equity resulting from changes that the entity does not separately disclose in the same statement or note. [Refer: Equity]"
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "xp_IncreaseDecreaseThroughTransfersFromStage1ToStage2CreditLossOnFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughTransfersFromStage1ToStage2CreditLossOnFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 1 to Stage 2",
        "label": "Increase (Decrease) Through Transfers From Stage 1 To Stage 2 Credit Loss On Financial Assets",
        "documentation": "Increase (Decrease) Through Transfers From Stage 1 To Stage 2 Credit Loss On Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDecreaseThroughTransfersFromStage1ToStage2FinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughTransfersFromStage1ToStage2FinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase (Decrease) Through Transfers From Stage 1 To Stage 2 Financial Assets",
        "label": "Increase (Decrease) Through Transfers From Stage 1 To Stage 2 Financial Assets",
        "documentation": "Increase (Decrease) Through Transfers From Stage 1 To Stage 2 Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDecreaseThroughTransfersFromStage1ToStage3CreditLossOnFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughTransfersFromStage1ToStage3CreditLossOnFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 1 to Stage 3",
        "label": "Increase (Decrease) Through Transfers From Stage 1 To Stage 3 Credit Loss On Financial Assets",
        "documentation": "Increase (Decrease) Through Transfers From Stage 1 To Stage 3 Credit Loss On Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDecreaseThroughTransfersFromStage1ToStage3FinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughTransfersFromStage1ToStage3FinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 1 to Stage 3",
        "label": "Increase (Decrease) Through Transfers From Stage 1 To Stage 3 Financial Assets",
        "documentation": "Increase (Decrease) Through Transfers From Stage 1 To Stage 3 Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDecreaseThroughTransfersFromStage2ToStage1CreditLossOnFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughTransfersFromStage2ToStage1CreditLossOnFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 2 to Stage 1",
        "label": "Increase (Decrease) Through Transfers From Stage 2 To Stage 1 Credit Loss On Financial Assets",
        "documentation": "Increase (Decrease) Through Transfers From Stage 2 To Stage 1 Credit Loss On Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDecreaseThroughTransfersFromStage2ToStage1FinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughTransfersFromStage2ToStage1FinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 2 to Stage 1",
        "label": "Increase (Decrease) Through Transfers From Stage 2 To Stage 1 Financial Assets",
        "documentation": "Increase (Decrease) Through Transfers From Stage 2 To Stage 1 Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDecreaseThroughTransfersFromStage2ToStage3CreditLossOnFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughTransfersFromStage2ToStage3CreditLossOnFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 2 to Stage 3",
        "label": "Increase (Decrease) Through Transfers From Stage 2 To Stage 3 Credit Loss On Financial Assets",
        "documentation": "Increase (Decrease) Through Transfers From Stage 2 To Stage 3 Credit Loss On Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDecreaseThroughTransfersFromStage2ToStage3FinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughTransfersFromStage2ToStage3FinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 2 to Stage 3",
        "label": "Increase (Decrease) Through Transfers From Stage 2 To Stage 3 Financial Assets",
        "documentation": "Increase (Decrease) Through Transfers From Stage 2 To Stage 3 Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDecreaseThroughTransfersFromStage3ToStage1CreditLossOnFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughTransfersFromStage3ToStage1CreditLossOnFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 3 to Stage 1",
        "label": "Increase (Decrease) Through Transfers From Stage 3 To Stage 1 Credit Loss On Financial Assets",
        "documentation": "Increase (Decrease) Through Transfers From Stage 3 To Stage 1 Credit Loss On Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDecreaseThroughTransfersFromStage3ToStage1FinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughTransfersFromStage3ToStage1FinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 3 To Stage 1",
        "label": "Increase (Decrease) Through Transfers From Stage 3 To Stage 1 Financial Assets",
        "documentation": "Increase (Decrease) Through Transfers From Stage 3 To Stage 1 Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDecreaseThroughTransfersFromStage3ToStage2CreditLossOnFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughTransfersFromStage3ToStage2CreditLossOnFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 3 to Stage 2",
        "label": "Increase (Decrease) Through Transfers From Stage 3 To Stage 2 Credit Loss On Financial Assets",
        "documentation": "Increase (Decrease) Through Transfers From Stage 3 To Stage 2 Credit Loss On Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDecreaseThroughTransfersFromStage3ToStage2FinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughTransfersFromStage3ToStage2FinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 3 to Stage 2",
        "label": "Increase (Decrease) Through Transfers From Stage 3 To Stage 2 Financial Assets",
        "documentation": "Increase (Decrease) Through Transfers From Stage 3 To Stage 2 Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfers",
        "label": "Increase (decrease) through transfers, intangible assets and goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in intangible assets and goodwill resulting from transfers. [Refer: Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r385"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughTransfersPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughTransfersPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfers",
        "label": "Increase (decrease) through transfers, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in property, plant and equipment resulting from transfers. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r376"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughTreasuryShareTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IncreaseDecreaseThroughTreasuryShareTransactions",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows",
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Treasury shares",
        "label": "Increase (decrease) through treasury share transactions, equity"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in equity resulting from treasury share transactions. [Refer: Equity; Treasury shares]"
       }
      }
     },
     "auth_ref": [
      "r5"
     ]
    },
    "xp_IncreaseDecreaseThroughTreasuryStockTransactionsWithNoEffectOnCash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughTreasuryStockTransactionsWithNoEffectOnCash",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Treasury shares",
        "label": "Increase (decrease) through treasury stock transactions, with no effect on cash",
        "documentation": "Increase (decrease) through treasury stock transactions, with no effect on cash"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDecreaseThroughWriteOff": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDecreaseThroughWriteOff",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Increase decrease through write off",
        "label": "Increase decrease through write off",
        "documentation": "Increase decrease through write off"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDueToAcquisitionsOfAssociatesAndJointVentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDueToAcquisitionsOfAssociatesAndJointVentures",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity (iv)",
        "label": "Increase Due To Acquisitions Of Associates And Joint Ventures",
        "documentation": "Increase Due To Acquisitions Of Associates And Joint Ventures"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDueToAcquisitionsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDueToAcquisitionsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity (iv)",
        "label": "Increase Due To Acquisitions Of Associates And Joint Ventures Accounted For Using Equity Method",
        "documentation": "Increase Due To Acquisitions Of Associates And Joint Ventures Accounted For Using Equity Method"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseDueToAcquisitionsOfAssociatesAndJointVenturesMeasuredAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseDueToAcquisitionsOfAssociatesAndJointVenturesMeasuredAtFairValue",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity (iv)",
        "label": "Increase Due To Acquisitions Of Associates And Joint Ventures Measured At Fair Value",
        "documentation": "Increase Due To Acquisitions Of Associates And Joint Ventures Measured At Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseInGoodwillRelatedToAssociatesAndJointVentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseInGoodwillRelatedToAssociatesAndJointVentures",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Goodwill",
        "label": "Increase In Goodwill Related To Associates And Joint Ventures",
        "documentation": "Increase In Goodwill Related To Associates And Joint Ventures"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseInGoodwillRelatedToAssociatesAndJointVenturesAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseInGoodwillRelatedToAssociatesAndJointVenturesAccountedForUsingEquityMethod",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Goodwill",
        "label": "Increase In Goodwill Related To Associates And Joint Ventures Accounted For Using Equity Method",
        "documentation": "Increase In Goodwill Related To Associates And Joint Ventures Accounted For Using Equity Method"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreaseInGoodwillRelatedToAssociatesAndJointVenturesMeasuredAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreaseInGoodwillRelatedToAssociatesAndJointVenturesMeasuredAtFairValue",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Goodwill",
        "label": "Increase In Goodwill Related To Associates And Joint Ventures Measured At Fair Value",
        "documentation": "Increase In Goodwill Related To Associates And Joint Ventures Measured At Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IncreasedCreditRiskWhenContractualPaymentsArePastDue": {
     "xbrltype": "durationItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IncreasedCreditRiskWhenContractualPaymentsArePastDue",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increased credit risk when contractual payments are past due",
        "label": "Increased credit risk when contractual payments are past due",
        "documentation": "Increased credit risk when contractual payments are past due"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IndustryTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IndustryTypeAxis",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Industry Type [Axis]",
        "label": "Industry Type [Axis]",
        "documentation": "Industry Type"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IndustryTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IndustryTypeDomain",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Industry Type [Domain]",
        "label": "Industry Type [Domain]",
        "documentation": "Industry Type"
       }
      }
     },
     "auth_ref": []
    },
    "xp_InflationCouponRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InflationCouponRateMember",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Inflation coupon rates",
        "label": "Inflation coupon rate [Member]",
        "documentation": "Inflation coupon rate"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InformationAboutHowDesignatedRiskComponentRelatesToHedgedItemInItsEntiretyExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InformationAboutHowDesignatedRiskComponentRelatesToHedgedItemInItsEntiretyExplanatory",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Information about how designated risk component relates to hedged item in its entirety [text block]",
        "label": "Information about how designated risk component relates to hedged item in its entirety [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of information about how the designated risk component relates to the hedged item in its entirety. [Refer: Hedged items [member]]"
       }
      }
     },
     "auth_ref": [
      "r219"
     ]
    },
    "xp_InfostocksInformaesESistemasLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InfostocksInformaesESistemasLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Infostocks Informa\u00e7\u00f5es e Sistemas Ltda.",
        "label": "Infostocks Informa\u00e7\u00f5es e Sistemas Ltda. [Member]",
        "documentation": "Infostocks Informa\u00e7\u00f5es e Sistemas Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_InstitutionalCustomerRelatedIntangibleAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InstitutionalCustomerRelatedIntangibleAssetsMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofintangibleassetsacquiredDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Institutional Client portfolio",
        "label": "Institutional Customer related Intangible Assets [Member]",
        "documentation": "Institutional Customer related Intangible Assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_InstitutoDeGestoATecnologiaDeInformacoLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InstitutoDeGestoATecnologiaDeInformacoLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails",
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Instituto de Gestao a Tecnologia de Informacao Ltda.",
        "label": "Instituto de Gest\u00e3o a Tecnologia de Informac\u00e3o Ltda. [Member]",
        "documentation": "Instituto de Gest\u00e3o a Tecnologia de Informa\u00e7\u00e3o Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_InsuranceBrokerageFeeIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InsuranceBrokerageFeeIncome",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails": {
       "parentTag": "xp_RevenueBeforeSalesTaxesAndContributionsOnRevenue",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Insurance brokerage fee",
        "label": "Insurance brokerage fee income",
        "documentation": "Insurance brokerage fee income"
       }
      }
     },
     "auth_ref": []
    },
    "xp_InsuranceCompaniesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InsuranceCompaniesMember",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Insurance Companies",
        "label": "Insurance Companies [Member]",
        "documentation": "Insurance Companies"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IntangibleAssetsAcquiredAmortizationPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IntangibleAssetsAcquiredAmortizationPeriod",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofintangibleassetsacquiredDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Intangible Assets Acquired Amortization Period",
        "label": "Intangible Assets Acquired Amortization Period",
        "documentation": "Intangible Assets Acquired Amortization Period"
       }
      }
     },
     "auth_ref": []
    },
    "xp_IntangibleAssetsAcquiredValuationMethod": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IntangibleAssetsAcquiredValuationMethod",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofintangibleassetsacquiredDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Intangible Assets Acquired Valuation Method",
        "label": "Intangible Assets Acquired Valuation Method",
        "documentation": "Intangible Assets Acquired Valuation Method"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Goodwill and Intangible assets",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "Intangible assets and goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of intangible assets and goodwill held by the entity. [Refer: Goodwill; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "ifrs-full_IntangibleAssetsAndGoodwillMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IntangibleAssetsAndGoodwillMember",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofusefullivesofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Intangible assets and goodwill",
        "label": "Intangible assets and goodwill [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for intangible assets and goodwill. It also represents the standard value for the 'Classes of intangible assets and goodwill' axis if no other member is used. [Refer: Goodwill; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r386"
     ]
    },
    "ifrs-full_IntangibleAssetsOtherThanGoodwillMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IntangibleAssetsOtherThanGoodwillMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
      "http://xpinc.com/role/GroupstructureSummaryofintangibleassetsacquiredDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Intangible assets other than goodwill",
        "label": "Intangible assets other than goodwill [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for intangible assets other than goodwill. It also represents the standard value for the 'Classes of intangible assets other than goodwill' axis if no other member is used. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r116",
      "r306",
      "r324"
     ]
    },
    "xp_InterbankDepositsCertificatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InterbankDepositsCertificatesMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interbank Deposits Certificates [Member]",
        "label": "Interbank Deposits Certificates [Member]",
        "documentation": "Interbank Deposits Certificates"
       }
      }
     },
     "auth_ref": []
    },
    "xp_InterestAndDividendReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InterestAndDividendReceivable",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/AccountsreceivableDetails": {
       "parentTag": "ifrs-full_TradeReceivables",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/AccountsreceivableDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dividends and interest receivable on equity capital - Funds",
        "label": "Interest and dividend receivable",
        "documentation": "Interest and dividend receivable"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestExpenseOnDebtInstrumentsIssued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InterestExpenseOnDebtInstrumentsIssued",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Interest expense on debt",
        "label": "Interest expense on debt instruments issued"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of interest expense on debt instruments issued. [Refer: Interest expense; Debt instruments issued]"
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "ifrs-full_InterestExpenseOnLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InterestExpenseOnLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest expense on lease liabilities",
        "label": "Interest expense on lease liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of interest expense on lease liabilities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r182"
     ]
    },
    "xp_InterestExpenseOnRightUseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InterestExpenseOnRightUseAssets",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest expense on Right-use assets",
        "label": "Interest expense on Right-use assets",
        "documentation": "Interest expense on Right-use assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_InterestIncomeLossOnFinancialAssetsHeldForTrading": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InterestIncomeLossOnFinancialAssetsHeldForTrading",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": "ifrs-full_RevenueAndOperatingIncome",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net income (loss) from financial instruments at amortized cost and at fair value through other comprehensive income",
        "label": "Interest Income (Loss) on Financial Assets Held for Trading",
        "documentation": "Interest Income (Loss) on Financial Assets Held for Trading"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestIncomeOnFinancialAssetsDesignatedAtFairValueThroughProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InterestIncomeOnFinancialAssetsDesignatedAtFairValueThroughProfitOrLoss",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": "ifrs-full_RevenueAndOperatingIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net income from financial instruments at fair value through profit or loss",
        "label": "Interest income on financial assets designated at fair value through profit or loss"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of interest income on financial assets designated at fair value through profit or loss. [Refer: Interest income; Financial assets at fair value through profit or loss, designated upon initial recognition or subsequently]"
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "xp_InterestIncomeOnFinancialAssetsDesignatedAtFairValueThroughProfitOrLossBeforeTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InterestIncomeOnFinancialAssetsDesignatedAtFairValueThroughProfitOrLossBeforeTaxes",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofnetincomefromfinancialinstrumentsDetails": {
       "parentTag": "xp_NetIncomeFromFinancialInstruments",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofnetincomefromfinancialinstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net income/(loss) from financial instruments at fair value through profit or loss",
        "label": "Interest income on financial assets designated at fair value through profit or loss before taxes",
        "documentation": "Interest income on financial assets designated at fair value through profit or loss before taxes"
       }
      }
     },
     "auth_ref": []
    },
    "xp_InterestIncomeOnFinancialAssetsHeldForTradingGross": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InterestIncomeOnFinancialAssetsHeldForTradingGross",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofnetincomefromfinancialinstrumentsDetails": {
       "parentTag": "xp_NetIncomeFromFinancialInstruments",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofnetincomefromfinancialinstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net income (loss) from financial instruments at amortized cost and at fair value through other comprehensive income",
        "label": "Interest Income On Financial Assets Held For Trading, Gross",
        "documentation": "Interest Income On Financial Assets Held For Trading, Gross"
       }
      }
     },
     "auth_ref": []
    },
    "xp_InterestMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InterestMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest",
        "label": "Interest [Member]",
        "documentation": "Interest"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestPaidClassifiedAsOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InterestPaidClassifiedAsOperatingActivities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Interest paid",
        "label": "Interest paid, classified as operating activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for interest paid, classified as operating activities."
       }
      }
     },
     "auth_ref": [
      "r131"
     ]
    },
    "xp_InterestRateAndForeignExchangeRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InterestRateAndForeignExchangeRiskMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate and foreign exchange risk",
        "label": "Interest Rate And Foreign Exchange Risk [Member]",
        "documentation": "Interest Rate And Foreign Exchange Risk"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestRateRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InterestRateRiskMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate risk",
        "label": "Interest rate risk [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the type of risk that the fair value or future cash flows of a financial instrument will fluctuate because of changes in market interest rates. [Refer: Financial instruments, class [member]]"
       }
      }
     },
     "auth_ref": [
      "r194",
      "r195",
      "r196",
      "r197",
      "r256"
     ]
    },
    "ifrs-full_InterestRateTypesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InterestRateTypesMember",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate types [member]",
        "label": "Interest rate types [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all types of interest rates. It also represents the standard value for the 'Types of interest rates' axis if no other member is used. [Refer: Interest rate risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r398"
     ]
    },
    "ifrs-full_InternalCreditGradesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InternalCreditGradesAxis",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Internal credit grades [axis]",
        "label": "Internal credit grades [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r331",
      "r344"
     ]
    },
    "xp_InternallyDevelopedIntangibleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InternallyDevelopedIntangibleMember",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofusefullivesofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Internally developed intangible",
        "label": "Internally developed intangible [Member]",
        "documentation": "Internally developed intangible"
       }
      }
     },
     "auth_ref": []
    },
    "xp_InternationalFinanceCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InternationalFinanceCorporationMember",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "International Finance Corporation",
        "label": "International Finance Corporation [Member]",
        "documentation": "International Finance Corporation"
       }
      }
     },
     "auth_ref": []
    },
    "xp_InvestingCashflowReconciliationFromPriorPeriodsTransactionsRelatedInstallmentsOfBusinessAcquisitions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InvestingCashflowReconciliationFromPriorPeriodsTransactionsRelatedInstallmentsOfBusinessAcquisitions",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investing cashflow reconciliation from prior periods transactions related installments of business acquisitions",
        "label": "Investing cashflow reconciliation from prior periods transactions related installments of business acquisitions",
        "documentation": "Investing cashflow reconciliation from prior periods transactions related installments of business acquisitions"
       }
      }
     },
     "auth_ref": []
    },
    "xp_InvestmentContractsWithLegalFormOfRetirementPlans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InvestmentContractsWithLegalFormOfRetirementPlans",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment contracts with legal form of retirement plans",
        "label": "Investment contracts with legal form of retirement plans",
        "documentation": "Investment contracts with legal form of retirement plans"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InvestmentFundsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InvestmentFundsMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment funds",
        "label": "Investment funds [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for investment funds."
       }
      }
     },
     "auth_ref": [
      "r321"
     ]
    },
    "xp_InvestmentsHeldInTrustsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InvestmentsHeldInTrustsMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments held in trust accounts",
        "label": "Investments Held in Trusts [Member]",
        "documentation": "Investments Held in Trusts"
       }
      }
     },
     "auth_ref": []
    },
    "xp_InvestmentsInAssociatesMeasuredAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InvestmentsInAssociatesMeasuredAtFairValue",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments in associates measured at fair value",
        "label": "Investments in associates measured at fair value",
        "documentation": "Investments in associates measured at fair value"
       }
      }
     },
     "auth_ref": []
    },
    "xp_InvestmentsInPurchaseAndSaleCommitmentsInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InvestmentsInPurchaseAndSaleCommitmentsInterestRate",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments in purchase and sale commitments, interest rate",
        "label": "Investments In Purchase And Sale Commitments Interest Rate",
        "documentation": "Investments In Purchase And Sale Commitments Interest Rate"
       }
      }
     },
     "auth_ref": []
    },
    "xp_InvestmentsInSubsidiariesJointVenturesAndAssociatedMeasuredAtFairValueRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InvestmentsInSubsidiariesJointVenturesAndAssociatedMeasuredAtFairValueRollForward",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measured at fair value",
        "label": "Investments In Subsidiaries, Joint Ventures And Associated Measured At Fair Value [Roll Forward]",
        "documentation": "Investments In Subsidiaries, Joint Ventures And Associated Measured At Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InvestmentsInSubsidiariesJointVenturesAndAssociates",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments in associates and joint ventures",
        "periodStartLabel": "Balance at beginning of period",
        "periodEndLabel": "Balance at end of period",
        "label": "Investments in subsidiaries, joint ventures and associates reported in separate financial statements"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of investments in subsidiaries, joint ventures and associates in an entity's separate financial statements. [Refer: Associates [member]; Joint ventures [member]; Subsidiaries [member]; Investments in subsidiaries reported in separate financial statements]"
       }
      }
     },
     "auth_ref": [
      "r83"
     ]
    },
    "ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociatesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "InvestmentsInSubsidiariesJointVenturesAndAssociatesAbstract",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments in subsidiaries, joint ventures and associates [abstract]",
        "label": "Investments in subsidiaries, joint ventures and associates reported in separate financial statements [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_InvestmentsInSubsidiariesJointVenturesAndAssociatesAccountedForUsingEquityMethodRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "InvestmentsInSubsidiariesJointVenturesAndAssociatesAccountedForUsingEquityMethodRollForward",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity-accounted method",
        "label": "Investments In Subsidiaries, Joint Ventures And Associates Accounted For Using Equity Method [Roll Forward]",
        "documentation": "Investments In Subsidiaries, Joint Ventures And Associates Accounted For Using Equity Method"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IssueOfEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IssueOfEquity",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity",
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Private issuance of shares",
        "terseLabel": "Issue of equity",
        "label": "Issue of equity"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in equity through the issue of equity instruments."
       }
      }
     },
     "auth_ref": [
      "r4"
     ]
    },
    "xp_IssuedBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "IssuedBondsMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Issued bonds",
        "label": "Issued bonds [Member]",
        "documentation": "Issued bonds"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IssuedCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IssuedCapital",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Issued capital",
        "label": "Issued capital"
       }
      },
      "en": {
       "role": {
        "documentation": "The nominal value of capital issued."
       }
      }
     },
     "auth_ref": [
      "r301"
     ]
    },
    "ifrs-full_IssuedCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "IssuedCapitalMember",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Issued Capital",
        "label": "Issued capital [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing issued capital."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "xp_ItauClassBCommonShareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ItauClassBCommonShareMember",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Itau Class B Common Share [Member]",
        "label": "Itau Class B Common Share [Member]",
        "documentation": "Itau Class B Common Share"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ItauUnibancoClassASharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ItauUnibancoClassASharesMember",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ita\u00fa Unibanco class A shares [Member]",
        "label": "Ita\u00fa Unibanco class A shares [Member]",
        "documentation": "Ita\u00fa Unibanco class A shares"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ItausaClassASharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ItausaClassASharesMember",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Itausa class A shares [Member]",
        "label": "Itausa class A shares [Member]",
        "documentation": "Itausa class A shares"
       }
      }
     },
     "auth_ref": []
    },
    "xp_JavelinFundoDeInvestimentoMultimercadoCrditoPrivadoInvestimentoNoExteriorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "JavelinFundoDeInvestimentoMultimercadoCrditoPrivadoInvestimentoNoExteriorMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Javelin Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior",
        "label": "Javelin Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior [Member]",
        "documentation": "Javelin Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_JointVenturesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "JointVenturesAxis",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Joint ventures [axis]",
        "label": "Joint ventures [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r87",
      "r91",
      "r166"
     ]
    },
    "xp_JudicialDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "JudicialDeposits",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofotherprovisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Judicial deposits",
        "label": "Judicial Deposits",
        "documentation": "Judicial Deposits"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_KeyManagementPersonnelCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "KeyManagementPersonnelCompensation",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/RelatedpartytransactionsSummaryofkeymanagementpersonnelcompensationexpenseDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/RelatedpartytransactionsSummaryofkeymanagementpersonnelcompensationexpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total",
        "label": "Key management personnel compensation"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of compensation to key management personnel. [Refer: Key management personnel of entity or parent [member]]"
       }
      }
     },
     "auth_ref": [
      "r77"
     ]
    },
    "xp_KeyManagementPersonnelFixedCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "KeyManagementPersonnelFixedCompensation",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/RelatedpartytransactionsSummaryofkeymanagementpersonnelcompensationexpenseDetails": {
       "parentTag": "ifrs-full_KeyManagementPersonnelCompensation",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/RelatedpartytransactionsSummaryofkeymanagementpersonnelcompensationexpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed compensation",
        "label": "Key management personnel fixed compensation",
        "documentation": "Key management personnel fixed compensation"
       }
      }
     },
     "auth_ref": []
    },
    "xp_KeyManagementPersonnelVariableCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "KeyManagementPersonnelVariableCompensation",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/RelatedpartytransactionsSummaryofkeymanagementpersonnelcompensationexpenseDetails": {
       "parentTag": "ifrs-full_KeyManagementPersonnelCompensation",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/RelatedpartytransactionsSummaryofkeymanagementpersonnelcompensationexpenseDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable compensation",
        "label": "Key management personnel variable compensation",
        "documentation": "Key management personnel variable compensation"
       }
      }
     },
     "auth_ref": []
    },
    "xp_LaborContingentLiabilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LaborContingentLiabilityMember",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesAdditionalinformationDetails",
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofcontingentliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Labor (v)",
        "label": "Labor Contingent Liability [Member]",
        "documentation": "Labor Contingent Liability"
       }
      }
     },
     "auth_ref": []
    },
    "xp_LaborProvisionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LaborProvisionsMember",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofotherprovisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Labor contingencies",
        "label": "Labor Provisions [Member]",
        "documentation": "Labor Provisions"
       }
      }
     },
     "auth_ref": []
    },
    "xp_LargestDebtorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LargestDebtorMember",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Largest debtor",
        "label": "Largest Debtor [Member]",
        "documentation": "Largest Debtor"
       }
      }
     },
     "auth_ref": []
    },
    "xp_LaterThan180DaysAndNotLaterThan360DaysMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LaterThan180DaysAndNotLaterThan360DaysMember",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "From 181 to\u00a0360\u00a0days",
        "label": "Later Than 180 Days And Not Later Than 360 Days [Member]",
        "documentation": "Later Than 180 Days And Not Later Than 360 Days"
       }
      }
     },
     "auth_ref": []
    },
    "xp_LaterThan360DaysMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LaterThan360DaysMember",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "After 360 days",
        "label": "Later Than 360 Days [Member]",
        "documentation": "Later Than 360 Days"
       }
      }
     },
     "auth_ref": []
    },
    "xp_LaterThan90DaysAndNotLaterThan180DaysMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LaterThan90DaysAndNotLaterThan180DaysMember",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "From 91\u00a0to\u00a0180\u00a0days",
        "label": "Later Than 90 Days And Not Later Than 180 Days [Member]",
        "documentation": "Later Than 90 Days And Not Later Than 180 Days"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LaterThanFiveYearsAndNotLaterThanTenYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanFiveYearsAndNotLaterThanTenYearsMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "5-10 years",
        "label": "Later than five years and not later than ten years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than five years and not later than ten years."
       }
      }
     },
     "auth_ref": [
      "r338",
      "r346",
      "r366"
     ]
    },
    "ifrs-full_LaterThanFiveYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanFiveYearsMember",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Above 5 years",
        "label": "Later than five years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than five years."
       }
      }
     },
     "auth_ref": [
      "r189",
      "r190",
      "r199",
      "r338",
      "r341",
      "r346"
     ]
    },
    "xp_LaterThanFourMonthsAndNotLaterThanOneYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LaterThanFourMonthsAndNotLaterThanOneYearMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "From 4 to 12 months",
        "label": "Later Than Four Months And Not Later Than One Year [Member]",
        "documentation": "Later Than Four Months And Not Later Than One Year"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanFourYearsAndNotLaterThanFiveYearsMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "4-5 years",
        "label": "Later than four years and not later than five years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than four years and not later than five years."
       }
      }
     },
     "auth_ref": [
      "r189",
      "r190",
      "r199",
      "r338",
      "r346",
      "r366"
     ]
    },
    "ifrs-full_LaterThanOneMonthAndNotLaterThanThreeMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanOneMonthAndNotLaterThanThreeMonthsMember",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "From 2 to 3 months",
        "label": "Later than one month and not later than three months [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than one month and not later than three months."
       }
      }
     },
     "auth_ref": [
      "r335",
      "r340",
      "r346"
     ]
    },
    "ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanOneMonthAndNotLaterThanTwoMonthsMember",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "From 31\u00a0to\u00a060\u00a0days",
        "label": "Later than one month and not later than two months [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than one month and not later than two months."
       }
      }
     },
     "auth_ref": [
      "r332",
      "r345",
      "r366"
     ]
    },
    "ifrs-full_LaterThanOneYearAndNotLaterThanFiveYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanOneYearAndNotLaterThanFiveYearsMember",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "From 1 to 5 years",
        "label": "Later than one year and not later than five years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than one year and not later than five years."
       }
      }
     },
     "auth_ref": [
      "r337",
      "r346"
     ]
    },
    "ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanOneYearAndNotLaterThanTwoYearsMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "1-2 years",
        "label": "Later than one year and not later than two years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than one year and not later than two years."
       }
      }
     },
     "auth_ref": [
      "r189",
      "r190",
      "r199",
      "r338",
      "r346",
      "r366"
     ]
    },
    "ifrs-full_LaterThanOneYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanOneYearMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbymaturityDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "After one year",
        "netLabel": "Above 12 months",
        "verboseLabel": "Due after 12 months",
        "label": "Later than one year [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than one year."
       }
      }
     },
     "auth_ref": [
      "r22"
     ]
    },
    "xp_LaterThanThreeHundredAndSixtyDaysMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LaterThanThreeHundredAndSixtyDaysMember",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "360 days",
        "label": "Later than three hundred and sixty days [Member]",
        "documentation": "Later than three hundred and sixty days"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LaterThanThreeMonthsAndNotLaterThanOneYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanThreeMonthsAndNotLaterThanOneYearMember",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsLoanoperationsbymaturityDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "From 4 to 12 months",
        "verboseLabel": "Due after 3 months through 12 months",
        "label": "Later than three months and not later than one year [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than three months and not later than one year."
       }
      }
     },
     "auth_ref": [
      "r336"
     ]
    },
    "ifrs-full_LaterThanThreeMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanThreeMonthsMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Up to 3 months",
        "label": "Later than three months [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than three months."
       }
      }
     },
     "auth_ref": [
      "r332",
      "r345"
     ]
    },
    "ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanThreeYearsAndNotLaterThanFourYearsMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "3-4 years",
        "label": "Later than three years and not later than four years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than three years and not later than four years."
       }
      }
     },
     "auth_ref": [
      "r189",
      "r190",
      "r199",
      "r338",
      "r346",
      "r366"
     ]
    },
    "ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "From 61\u00a0to\u00a090\u00a0days",
        "label": "Later than two months and not later than three months [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than two months and not later than three months."
       }
      }
     },
     "auth_ref": [
      "r332",
      "r345",
      "r366"
     ]
    },
    "ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LaterThanTwoYearsAndNotLaterThanThreeYearsMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2-3 years",
        "label": "Later than two years and not later than three years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than two years and not later than three years."
       }
      }
     },
     "auth_ref": [
      "r189",
      "r190",
      "r199",
      "r338",
      "r346",
      "r366"
     ]
    },
    "xp_LeadrServiosOnlineLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LeadrServiosOnlineLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Leadr Servi\u00e7os Online Ltda.",
        "label": "Leadr Servi\u00e7os Online Ltda. [Member]",
        "documentation": "Leadr Servi\u00e7os Online Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LeaseLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails": {
       "parentTag": "ifrs-full_OtherFinancialLiabilities",
       "weight": 1.0,
       "order": 2.0
      },
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails",
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "terseLabel": "Lease liabilities",
        "label": "Lease liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities related to the entity's leases. Lease is a contract, or part of a contract, that conveys the right to use an underlying asset for a period of time in exchange for consideration."
       }
      }
     },
     "auth_ref": [
      "r180"
     ]
    },
    "ifrs-full_LeaseLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LeaseLiabilitiesAbstract",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lease liabilities",
        "label": "Lease liabilities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_LeaseLiabilitiesIncreaseDecreaseFromRevaluation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LeaseLiabilitiesIncreaseDecreaseFromRevaluation",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revaluation",
        "label": "Lease Liabilities, Increase (Decrease) From Revaluation",
        "documentation": "Lease Liabilities, Increase (Decrease) From Revaluation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LeaseLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LeaseLiabilitiesMember",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lease liabilities",
        "label": "Lease liabilities [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for lease liabilities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r316",
      "r319"
     ]
    },
    "xp_LeasesAdditionThroughBusinessCombination": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LeasesAdditionThroughBusinessCombination",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business combination",
        "label": "Leases addition through business combination",
        "documentation": "Represents Leases addition through business combination."
       }
      }
     },
     "auth_ref": []
    },
    "xp_LegalAndJudicialExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LegalAndJudicialExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "ifrs-full_OtherExpenseByNature",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Legal and judicial",
        "label": "Legal and judicial expense",
        "documentation": "Legal and judicial expense"
       }
      }
     },
     "auth_ref": []
    },
    "xp_LegalProceedingsAndAgreementWithCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LegalProceedingsAndAgreementWithCustomers",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails": {
       "parentTag": "ifrs-full_MiscellaneousOtherOperatingExpense",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Legal, administrative proceedings and agreement with customers",
        "label": "Legal proceedings and agreement with customers",
        "documentation": "Legal proceedings and agreement with customers"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Level1OfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Level1OfFairValueHierarchyMember",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Level 1",
        "label": "Level 1 of fair value hierarchy [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a category of the fair value hierarchy where inputs to the valuation techniques are quoted prices (unadjusted) in active markets for identical assets or liabilities that the entity can access at the measurement date."
       }
      }
     },
     "auth_ref": [
      "r76",
      "r169"
     ]
    },
    "ifrs-full_Level2OfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Level2OfFairValueHierarchyMember",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Level 2",
        "label": "Level 2 of fair value hierarchy [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a category of the fair value hierarchy where inputs to the valuation techniques are inputs other than quoted prices included within Level 1 that are observable for the asset or liability, either directly or indirectly."
       }
      }
     },
     "auth_ref": [
      "r169"
     ]
    },
    "ifrs-full_Level3OfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Level3OfFairValueHierarchyMember",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Level 3",
        "label": "Level 3 of fair value hierarchy [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a category of the fair value hierarchy where inputs to the valuation techniques are unobservable inputs for the asset or liability. Unobservable inputs are inputs for which market data are not available and that are developed using the best information available about the assumptions that the market participants would use when pricing the asset or liability."
       }
      }
     },
     "auth_ref": [
      "r169"
     ]
    },
    "ifrs-full_LevelsOfFairValueHierarchyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LevelsOfFairValueHierarchyAxis",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Levels of fair value hierarchy [axis]",
        "label": "Levels of fair value hierarchy [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r76",
      "r169"
     ]
    },
    "ifrs-full_Liabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Liabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_EquityAndLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total liabilities",
        "label": "Liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of a present obligation of the entity to transfer an economic resource as a result of past events. Economic resource is a right that has the potential to produce economic benefits."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r168",
      "r169",
      "r171",
      "r260",
      "r264"
     ]
    },
    "ifrs-full_LiabilitiesArisingFromFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LiabilitiesArisingFromFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails": {
       "parentTag": "ifrs-full_NetDebt",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total debt",
        "label": "Liabilities arising from financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities for which cash flows were, or future cash flows will be, classified in the statement of cash flows as cash flows from financing activities. [Refer: Cash flows from (used in) financing activities; Liabilities]"
       }
      }
     },
     "auth_ref": [
      "r317"
     ]
    },
    "ifrs-full_LiabilitiesArisingFromFinancingActivitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LiabilitiesArisingFromFinancingActivitiesAxis",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liabilities arising from financing activities [axis]",
        "label": "Liabilities arising from financing activities [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r317"
     ]
    },
    "xp_LiabilitiesArisingFromFinancingActivitiesExcludingStructuredFinancing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LiabilitiesArisingFromFinancingActivitiesExcludingStructuredFinancing",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Total debt, beginning balance",
        "periodEndLabel": "Total debt, ending balance",
        "label": "Liabilities Arising From Financing Activities Excluding Structured Financing",
        "documentation": "Liabilities Arising From Financing Activities Excluding Structured Financing"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LiabilitiesArisingFromFinancingActivitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LiabilitiesArisingFromFinancingActivitiesMember",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liabilities arising from financing activities [member]",
        "label": "Liabilities arising from financing activities [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for liabilities arising from financing activities. It also represents the standard value for the 'Liabilities arising from financing activities' axis if no other member is used. [Refer: Liabilities arising from financing activities]"
       }
      }
     },
     "auth_ref": [
      "r317"
     ]
    },
    "xp_LiabilitiesOnContributionsForSocialSecurity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LiabilitiesOnContributionsForSocialSecurity",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails": {
       "parentTag": "xp_PayablesOnSocialSecurityAndTaxes",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contributions for Social Security (INSS)",
        "label": "Liabilities on Contributions for Social Security",
        "documentation": "Liabilities on Contributions for Social Security"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LiabilityAssetOfDefinedBenefitPlans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LiabilityAssetOfDefinedBenefitPlans",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/RetirementplansliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "Net defined benefit liability (asset)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of deficit or surplus in a defined benefit plan, adjusted for any effect of limiting a net defined benefit asset to the asset ceiling. [Refer: Defined benefit plans [member]]"
       }
      }
     },
     "auth_ref": [
      "r73"
     ]
    },
    "srt_LitigationCaseAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "LitigationCaseAxis",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofcontingentliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Litigation Case [Axis]",
        "label": "Litigation Case [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_LitigationCaseTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "LitigationCaseTypeDomain",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofcontingentliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Litigation Case [Domain]",
        "label": "Litigation Case [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_LoansAndCreditCardOperationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LoansAndCreditCardOperationsMember",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loans and credit card operations",
        "label": "Loans and credit card operations [Member]",
        "documentation": "Loans and credit card operations"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LoansAndReceivablesCategoryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LoansAndReceivablesCategoryMember",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbymaturityDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loans operations",
        "label": "Loans and receivables, category [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the loans and receivables category of financial assets. [Refer: Loans and receivables]"
       }
      }
     },
     "auth_ref": [
      "r276"
     ]
    },
    "xp_LoansAndReceivablesCreditCardMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LoansAndReceivablesCreditCardMember",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit card",
        "label": "Loans And Receivables, Credit Card [Member]",
        "documentation": "Loans And Receivables, Credit Card"
       }
      }
     },
     "auth_ref": []
    },
    "xp_LoansAndReceivablesNonPledgedLoanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LoansAndReceivablesNonPledgedLoanMember",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Companies",
        "label": "Loans And Receivables, Non-Pledged Loan [Member]",
        "documentation": "Loans And Receivables, Non-Pledged Loan"
       }
      }
     },
     "auth_ref": []
    },
    "xp_LoansAndReceivablesPledgedAssetLoanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LoansAndReceivablesPledgedAssetLoanMember",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Retail",
        "label": "Loans And Receivables, Pledged Asset Loan [Member]",
        "documentation": "Loans And Receivables, Pledged Asset Loan"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LoansToGovernmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LoansToGovernmentMember",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsLoanoperationsbytypeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-pledged loan",
        "label": "Loans to government [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for loans made to government."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Local Phone Number",
        "label": "Local Phone Number",
        "documentation": "Local phone number for entity."
       }
      }
     },
     "auth_ref": []
    },
    "xp_LongTermIncentivePlanTaxesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LongTermIncentivePlanTaxesMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long term incentive plan taxes [Member]",
        "label": "Long term incentive plan taxes [Member]",
        "documentation": "Long term incentive plan taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LongtermBorrowingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LongtermBorrowingsMember",
     "presentation": [
      "http://xpinc.com/role/RelatedpartytransactionsSummaryoftransactionsbetweenrelatedpartiesexplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Borrowings",
        "label": "Long-term borrowings [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for long-term borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r316",
      "r319"
     ]
    },
    "xp_LossCarryforwardsUsedToOffsetTaxableProfit": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LossCarryforwardsUsedToOffsetTaxableProfit",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loss carryforwards used to offset taxable profit",
        "label": "Loss Carryforwards Used to Offset Taxable Profit",
        "documentation": "Loss Carryforwards Used to Offset Taxable Profit"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LossesOnDisposalsOfInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "LossesOnDisposalsOfInvestments",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disposal of investments",
        "label": "Losses on disposals of investments"
       }
      },
      "en": {
       "role": {
        "documentation": "The losses on the disposal of investments."
       }
      }
     },
     "auth_ref": [
      "r48"
     ]
    },
    "xp_LossesOnWriteOffAndDisposalOfAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "LossesOnWriteOffAndDisposalOfAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails": {
       "parentTag": "ifrs-full_MiscellaneousOtherOperatingExpense",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Losses on write-off and disposal of assets",
        "label": "Losses on Write-off and disposal of assets",
        "documentation": "Losses on Write-off and disposal of assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_MMHedgeIconMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "MMHedgeIconMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MM Hedge Icon [Member]",
        "label": "MM Hedge Icon [Member]",
        "documentation": "MM Hedge Icon"
       }
      }
     },
     "auth_ref": []
    },
    "xp_MMMacadamiaFIMCPIEMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "MMMacadamiaFIMCPIEMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MM Macad\u00e2mia FIM CP IE [Member]",
        "label": "MM Macad\u00e2mia FIM CP IE [Member]",
        "documentation": "MM Macad\u00e2mia FIM CP IE"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MajorComponentsOfTaxExpenseIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "MajorComponentsOfTaxExpenseIncomeAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Major components of tax expense (income) [abstract]",
        "label": "Major components of tax expense (income) [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MajorOrdinaryShareTransactionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "MajorOrdinaryShareTransactionsMember",
     "presentation": [
      "http://xpinc.com/role/SubsequenteventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Class A Common shares",
        "label": "Major ordinary share transactions [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for major ordinary share transactions. [Refer: Ordinary shares [member]]"
       }
      }
     },
     "auth_ref": [
      "r302"
     ]
    },
    "xp_ManagementFeesIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ManagementFeesIncome",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails": {
       "parentTag": "xp_RevenueBeforeSalesTaxesAndContributionsOnRevenue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Management fees",
        "label": "Management fees income",
        "documentation": "Management fees income"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MarketRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "MarketRiskMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Market price risk",
        "label": "Market risk [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the risk that the fair value or future cash flows of a financial instrument will fluctuate because of changes in market prices. Market risk comprises three types of risk: currency risk, interest rate risk and other price risk. [Refer: Currency risk [member]; Interest rate risk [member]; Other price risk [member]; Financial instruments, class [member]]"
       }
      }
     },
     "auth_ref": [
      "r194",
      "r195",
      "r196",
      "r197",
      "r328"
     ]
    },
    "xp_MarketingExpensesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "MarketingExpensesMember",
     "presentation": [
      "http://xpinc.com/role/PrepaidexpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Marketing expenses",
        "label": "Marketing expenses [Member]",
        "documentation": "Marketing expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MaturityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "MaturityAxis",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails",
      "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbymaturityDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maturity [axis]",
        "label": "Maturity [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r23",
      "r178",
      "r189",
      "r190",
      "r191",
      "r192",
      "r193",
      "r199",
      "r220",
      "r243",
      "r305",
      "r338"
     ]
    },
    "xp_MaturityPeriodForContingentConsiderationRecognisedAsOfAcquisitionDate": {
     "xbrltype": "durationItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "MaturityPeriodForContingentConsiderationRecognisedAsOfAcquisitionDate",
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maturity period for the total contingent consideration payment",
        "label": "Maturity Period For Contingent Consideration Recognised As Of Acquisition Date",
        "documentation": "Maturity Period For Contingent Consideration Recognised As Of Acquisition Date"
       }
      }
     },
     "auth_ref": []
    },
    "xp_MaximumNumberOfSharesAvailableForIssuanceUnderTheShareBasedPlan": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "MaximumNumberOfSharesAvailableForIssuanceUnderTheShareBasedPlan",
     "presentation": [
      "http://xpinc.com/role/SharebasedplanAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maximum number of shares available for issuance under the share-based plan",
        "label": "Maximum number of shares available for issuance under the share-based plan",
        "documentation": "Maximum number of shares available for issuance under the share-based plan"
       }
      }
     },
     "auth_ref": []
    },
    "xp_MaximumPercentageOfShares": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "MaximumPercentageOfShares",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maximum Percentage Of Shares",
        "label": "Maximum Percentage Of Shares",
        "documentation": "Represents maximum percentage of shares."
       }
      }
     },
     "auth_ref": []
    },
    "xp_MeasuredUsingSimplifiedApproachMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "MeasuredUsingSimplifiedApproachMember",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountECLsmeasuredusingsimplifiedapproachDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossusingsimplifiedmethodDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measured Using Simplified Approach",
        "label": "Measured Using Simplified Approach [Member]",
        "documentation": "Measured Using Simplified Approach"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MeasurementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "MeasurementAxis",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesEvaluatedatAmortizedCostDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesatFairValueThroughOtherComprehensiveIncomeDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measurement [axis]",
        "label": "Measurement [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r121",
      "r125",
      "r168"
     ]
    },
    "xp_MinorityStakeAcquisitionsInAssociatesAmountPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "MinorityStakeAcquisitionsInAssociatesAmountPaid",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Minority stake acquisitions in associates amount paid in Jan 2024",
        "label": "Minority stake acquisitions in associates amount paid",
        "documentation": "Represents Minority stake acquisitions in associates amount paid"
       }
      }
     },
     "auth_ref": []
    },
    "xp_MinorityStakeAcquisitionsInAssociatesPayableTrancheOne": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "MinorityStakeAcquisitionsInAssociatesPayableTrancheOne",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Minority stake acquisitions in associates payable January 2025",
        "label": "Minority stake acquisitions in associates payable tranche one",
        "documentation": "Represents Minority stake acquisitions in associates payable tranche one"
       }
      }
     },
     "auth_ref": []
    },
    "xp_MinorityStakeAcquisitionsInAssociatesPayableTrancheTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "MinorityStakeAcquisitionsInAssociatesPayableTrancheTwo",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Minority stake acquisitions in associates payable in January 2026",
        "label": "Minority stake acquisitions in associates payable tranche two",
        "documentation": "Represents Minority stake acquisitions in associates payable tranche two"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MiscellaneousOtherOperatingExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "MiscellaneousOtherOperatingExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails": {
       "parentTag": "ifrs-full_OtherOperatingIncomeExpense",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTotalLabel": "Other operating expenses",
        "label": "Miscellaneous other operating expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of miscellaneous other operating expenses. [Refer: Other operating income (expense)]"
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "ifrs-full_MiscellaneousOtherOperatingIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "MiscellaneousOtherOperatingIncome",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails": {
       "parentTag": "ifrs-full_OtherOperatingIncomeExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other operating income",
        "label": "Miscellaneous other operating income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of miscellaneous other operating income. [Refer: Other operating income (expense)]"
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "xp_ModalAsAServiceS.A.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ModalAsAServiceS.A.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Modal As a Service S.A. [Member]",
        "label": "Modal As a Service S.A. [Member]",
        "documentation": "Modal As a Service S.A."
       }
      }
     },
     "auth_ref": []
    },
    "xp_ModalAssessoriaFinanceiraLtda.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ModalAssessoriaFinanceiraLtda.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Modal Assessoria Financeira Ltda. [Member]",
        "label": "Modal Assessoria Financeira Ltda. [Member]",
        "documentation": "Modal Assessoria Financeira Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_ModalCorretoraDeSegurosLtda.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ModalCorretoraDeSegurosLtda.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Modal Corretora de Seguros Ltda. [Member]",
        "label": "Modal Corretora de Seguros Ltda. [Member]",
        "documentation": "Modal Corretora de Seguros Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_ModalDistribuidoraDeTitulosEValoresMobiliariosLtda.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ModalDistribuidoraDeTitulosEValoresMobiliariosLtda.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Modal Distribuidora de T\u00edtulos e Valores Mobili\u00e1rios Ltda. [Member]",
        "label": "Modal Distribuidora de T\u00edtulos e Valores Mobili\u00e1rios Ltda. [Member]",
        "documentation": "Modal Distribuidora de T\u00edtulos e Valores Mobili\u00e1rios Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_ModalmaisTreinamentoEDesenvolvimentoLtda.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ModalmaisTreinamentoEDesenvolvimentoLtda.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Modalmais Treinamento e Desenvolvimento Ltda. [Member]",
        "label": "Modalmais Treinamento e Desenvolvimento Ltda. [Member]",
        "documentation": "Modalmais Treinamento e Desenvolvimento Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_MonetaryCorrectionAndInterestIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "MonetaryCorrectionAndInterestIncome",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/RetirementplansliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Monetary correction and interest income",
        "label": "Monetary correction and interest income",
        "documentation": "Monetary correction and interest income"
       }
      }
     },
     "auth_ref": []
    },
    "xp_MonteBravoHoldingJVS.A.AndBlue3S.A.AndCtrleParticipacoesLtda.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "MonteBravoHoldingJVS.A.AndBlue3S.A.AndCtrleParticipacoesLtda.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Monte Bravo Holding JV S.A. And Blue3 S.A.And Ctrl+e Participa\u00e7\u00f5es Ltda. [Member]",
        "label": "Monte Bravo Holding JV S.A. And Blue3 S.A.And Ctrl+e Participa\u00e7\u00f5es Ltda. [Member]",
        "documentation": "Monte Bravo Holding JV S.A. And Blue3 S.A.And Ctrl+e Participa\u00e7\u00f5es Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_MonteBravoHoldingJVS.AMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "MonteBravoHoldingJVS.AMember",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Monte Bravo Holding JV S.A",
        "label": "Monte Bravo Holding JV S.A [Member]",
        "documentation": "Represents Monte Bravo Holding JV S.A"
       }
      }
     },
     "auth_ref": []
    },
    "xp_MonthlyMinimumIncomeForSurcharge": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "MonthlyMinimumIncomeForSurcharge",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Monthly minimum income for surcharge",
        "label": "Monthly Minimum Income for Surcharge",
        "documentation": "Monthly Minimum Income for Surcharge"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NIMRODFundoDeInvestimentoMultimercadoCrditoPrivadoInvestimentoNoExteriorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NIMRODFundoDeInvestimentoMultimercadoCrditoPrivadoInvestimentoNoExteriorMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NIMROD Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior",
        "label": "NIMROD Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior [Member]",
        "documentation": "NIMROD Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NK112EmpreendimentosEParticipaesSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NK112EmpreendimentosEParticipaesSAMember",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NK112 Empreendimentos e Participa\u00e7\u00f5es S.A.",
        "label": "NK112 Empreendimentos e Participa\u00e7\u00f5es S.A. [Member]",
        "documentation": "NK112 Empreendimentos e Participa\u00e7\u00f5es S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NameOfSubsidiary": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NameOfSubsidiary",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Name of subsidiary",
        "label": "Name of subsidiary"
       }
      },
      "en": {
       "role": {
        "documentation": "The name of a subsidiary. [Refer: Subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r84",
      "r88",
      "r147",
      "r151"
     ]
    },
    "xp_NationalTreasuryBillsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NationalTreasuryBillsMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesatFairValueThroughOtherComprehensiveIncomeDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "National Treasury Bills",
        "label": "National Treasury Bills [Member]",
        "documentation": "National Treasury Bills"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NationalTreasuryNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NationalTreasuryNotesMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "National Treasury Notes",
        "label": "National Treasury Notes [Member]",
        "documentation": "National Treasury Notes"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NetDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NetDebt",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net debt",
        "label": "Net debt"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of net debt of the entity."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "xp_NetGainOnHedgeInstrumentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NetGainOnHedgeInstrumentsMember",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net gain on hedge instruments",
        "label": "Net Gain on Hedge Instruments [Member]",
        "documentation": "Net Gain on Hedge Instruments"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NetIncomeFromFinancialInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NetIncomeFromFinancialInstruments",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofnetincomefromfinancialinstrumentsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofnetincomefromfinancialinstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net income from financial instruments",
        "label": "Net income from financial instruments",
        "documentation": "Net income from financial instruments"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NewProvisionsOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NewProvisionsOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofchangesinotherprovisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provision",
        "label": "New provisions, other provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised for new other provisions. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r379"
     ]
    },
    "xp_NewaveFundoDeInvestimentoEmParticipaesMultiestratgiaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NewaveFundoDeInvestimentoEmParticipaesMultiestratgiaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Newave Fundo de Investimento em Participa\u00e7\u00f5es Multiestrat\u00e9gia (v)",
        "label": "Newave Fundo de Investimento em Participa\u00e7\u00f5es Multiestrat\u00e9gia [Member]",
        "documentation": "Newave Fundo de Investimento em Participa\u00e7\u00f5es Multiestrat\u00e9gia"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NonCashInvestingAndFinancingActivitiesForAcquisitionOfInvestmentInAssociatesAccountsPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NonCashInvestingAndFinancingActivitiesForAcquisitionOfInvestmentInAssociatesAccountsPayable",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-cash investing and financing activities related to acquisition of investment in associates through accounts payables",
        "label": "Non-Cash Investing And Financing Activities For Acquisition Of Investment In Associates, Accounts Payable",
        "documentation": "Non-Cash Investing And Financing Activities For Acquisition Of Investment In Associates, Accounts Payable"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NonCashInvestingAndFinancingActivitiesForAcquisitionOfInvestmentInAssociatesContingentConsideration": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NonCashInvestingAndFinancingActivitiesForAcquisitionOfInvestmentInAssociatesContingentConsideration",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-Cash Investing And Financing Activities For Acquisition Of Investment In Associates, Contingent consideration",
        "label": "Non-Cash Investing And Financing Activities For Acquisition Of Investment In Associates, Contingent consideration",
        "documentation": "Non-Cash Investing And Financing Activities For Acquisition Of Investment In Associates, Contingent consideration"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NonCashInvestingAndFinancingActivitiesForAcquisitionOfInvestmentInAssociatesIssuanceOfShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NonCashInvestingAndFinancingActivitiesForAcquisitionOfInvestmentInAssociatesIssuanceOfShares",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-cash investing and financing activities related to acquisition of investment in associates through private issuance of shares",
        "label": "Non-Cash Investing And Financing Activities For Acquisition Of Investment In Associates, Issuance of Shares",
        "documentation": "Non-Cash Investing And Financing Activities For Acquisition Of Investment In Associates, Issuance of Shares"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NonCashInvestingAndFinancingActivitiesRelatedToBusinessAcquisitionsThroughAccountsPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NonCashInvestingAndFinancingActivitiesRelatedToBusinessAcquisitionsThroughAccountsPayables",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-cash investing and financing activities related to business acquisitions through accounts payables",
        "label": "Non-cash investing and financing activities related to business acquisitions through accounts payables",
        "documentation": "Non-cash investing and financing activities related to business acquisitions through accounts payables"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NonCashInvestingAndFinancingActivitiesRelatedToBusinessAcquisitionsThroughContingentConsideration": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NonCashInvestingAndFinancingActivitiesRelatedToBusinessAcquisitionsThroughContingentConsideration",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/CashflowinformationAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-cash investing and financing activities related to business acquisitions through contingent consideration",
        "label": "Non-cash investing and financing activities related to business acquisitions through contingent consideration",
        "documentation": "Non-cash investing and financing activities related to business acquisitions through contingent consideration"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NonConvertibleDebenturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NonConvertibleDebenturesMember",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-Convertible Debentures",
        "label": "Non-Convertible Debentures [Member]",
        "documentation": "Non-Convertible Debentures"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NonCurrentFinancingInstrumentsPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NonCurrentFinancingInstrumentsPayables",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails_1": {
       "parentTag": "xp_FinancingInstrumentsPayables",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-Current",
        "label": "Non-Current Financing Instruments Payables",
        "documentation": "Non-Current Financing Instruments Payables"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NonCurrentPayablesOnSocialSecurityAndTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NonCurrentPayablesOnSocialSecurityAndTaxes",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails_1": {
       "parentTag": "xp_PayablesOnSocialSecurityAndTaxes",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-current",
        "label": "Non-Current Payables On Social Security And Taxes",
        "documentation": "Non-Current Payables On Social Security And Taxes"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NonStatedMaturityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NonStatedMaturityMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-stated maturity",
        "label": "Non-stated maturity [Member]",
        "documentation": "Non-stated maturity"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NonadjustingEventsAfterReportingPeriodAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NonadjustingEventsAfterReportingPeriodAxis",
     "presentation": [
      "http://xpinc.com/role/SubsequenteventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-adjusting events after reporting period [axis]",
        "label": "Non-adjusting events after reporting period [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r50"
     ]
    },
    "ifrs-full_NonadjustingEventsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NonadjustingEventsMember",
     "presentation": [
      "http://xpinc.com/role/SubsequenteventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-adjusting events after reporting period [member]",
        "label": "Non-adjusting events after reporting period [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for events that occur between the end of the reporting period and the date when the financial statements are authorised for issue and are indicative of conditions that arose after the reporting period. It also represents the standard value for the 'Non-adjusting events after reporting period' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r50"
     ]
    },
    "ifrs-full_NoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_Equity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-controlling interest",
        "label": "Non-controlling interests"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of equity in a subsidiary not attributable, directly or indirectly, to a parent. [Refer: Subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r17",
      "r145",
      "r150"
     ]
    },
    "ifrs-full_NoncontrollingInterestsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncontrollingInterestsMember",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-Controlling interest",
        "label": "Non-controlling interests [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for equity in a subsidiary not attributable, directly or indirectly, to the parent."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "ifrs-full_NoncurrentDebtInstrumentsIssued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncurrentDebtInstrumentsIssued",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesDetails": {
       "parentTag": "ifrs-full_DebtSecurities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non- Current",
        "label": "Non-current debt instruments issued"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current debt instruments issued. [Refer: Debt instruments issued]"
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "ifrs-full_NoncurrentDepositsFromCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncurrentDepositsFromCustomers",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails_1": {
       "parentTag": "ifrs-full_DepositsFromCustomers",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "lang": {
      "en": {
       "role": {
        "documentation": "The amount of non-current deposits from customers. [Refer: Deposits from customers]"
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "ifrs-full_NoncurrentFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncurrentFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails": {
       "parentTag": "ifrs-full_FinancialAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-current financial assets",
        "label": "Non-current financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current financial assets. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r232"
     ]
    },
    "ifrs-full_NoncurrentFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncurrentFinancialLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails": {
       "parentTag": "ifrs-full_FinancialLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-current financial liabilities",
        "label": "Non-current financial liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current financial liabilities. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r232"
     ]
    },
    "ifrs-full_NoncurrentLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncurrentLeaseLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails": {
       "parentTag": "ifrs-full_LeaseLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-current",
        "label": "Non-current lease liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current lease liabilities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r180"
     ]
    },
    "ifrs-full_NoncurrentPrepayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NoncurrentPrepayments",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/PrepaidexpensesDetails": {
       "parentTag": "ifrs-full_Prepayments",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/PrepaidexpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-current",
        "label": "Non-current prepayments"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current prepayments. [Refer: Prepayments]"
       }
      }
     },
     "auth_ref": [
      "r300"
     ]
    },
    "xp_NotLaterThan1DayOrMoreMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NotLaterThan1DayOrMoreMember",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsLoanoperationsbymaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Not LaterThan 1 Day Or More [Member]",
        "label": "Not LaterThan 1 Day Or More [Member]",
        "documentation": "Not LaterThan 1 Day Or More"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NotLaterThanOneMonthMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NotLaterThanOneMonthMember",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryoffinancialliabilitiesintogroupingsbasedontheircontractualmaturitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Within 30 days",
        "terseLabel": "Up to 1 month",
        "label": "Not later than one month [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of not later than one month."
       }
      }
     },
     "auth_ref": [
      "r334",
      "r339",
      "r346"
     ]
    },
    "ifrs-full_NotLaterThanOneYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NotLaterThanOneYearMember",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesDetails",
      "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "0-1 year",
        "label": "Not later than one year [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of not later than one year."
       }
      }
     },
     "auth_ref": [
      "r21",
      "r189",
      "r190",
      "r199",
      "r338",
      "r346"
     ]
    },
    "ifrs-full_NotLaterThanThreeMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NotLaterThanThreeMonthsMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbymaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Up to 3 months",
        "verboseLabel": "Due in 3 months or less",
        "label": "Not later than three months [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of not later than three months."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "ifrs-full_NotesAndDebenturesIssued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NotesAndDebenturesIssued",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails": {
       "parentTag": "ifrs-full_DebtSecurities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "netLabel": "Debentures issued",
        "verboseLabel": "Debentures",
        "label": "Notes and debentures issued"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of notes and debentures issued by the entity."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "ifrs-full_NotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NotionalAmount",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails",
      "http://xpinc.com/role/HedgeaccountingHedgediteminformationDetails",
      "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails",
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Notional value",
        "verboseLabel": "Notional amount",
        "label": "Notional amount"
       }
      },
      "en": {
       "role": {
        "documentation": "The nominal or face amount of a financial instrument, used to calculate payments made on that instrument."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "xp_NovusCapitalGestoraDeRecursosLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NovusCapitalGestoraDeRecursosLtdaMember",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Novus Capital Gestora de Recursos Ltda",
        "label": "Novus Capital Gestora de Recursos Ltda [Member]",
        "documentation": "Represents Novus Capital Gestora de Recursos Ltda"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NumberOfCancelTreasuryShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumberOfCancelTreasuryShares",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of Cancel Treasury Shares",
        "label": "Number of Cancel Treasury Shares",
        "documentation": "Number of Cancel Treasury Shares"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NumberOfCancelledShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumberOfCancelledShares",
     "presentation": [
      "http://xpinc.com/role/SubsequenteventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of cancelled shares",
        "label": "Number of cancelled shares",
        "documentation": "Number of cancelled shares"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NumberOfClaimsForWhichTheLikelihoodOfLossIsProbable": {
     "xbrltype": "integerItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumberOfClaimsForWhichTheLikelihoodOfLossIsProbable",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of civil and administrative claims for which the likelihood of loss has been classified as probable",
        "label": "Number Of Claims For Which The Likelihood Of Loss Is Probable",
        "documentation": "Number Of Claims For Which The Likelihood Of Loss Is Probable"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NumberOfCorporateReorganizationAgreements": {
     "xbrltype": "integerItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumberOfCorporateReorganizationAgreements",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of corporate reorganization agreements",
        "label": "Number of Corporate Reorganization Agreements",
        "documentation": "Number of Corporate Reorganization Agreements"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NumberOfDepositaryReceiptsPerCommonShare": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumberOfDepositaryReceiptsPerCommonShare",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of depositary receipts per common share",
        "label": "Number of Depositary Receipts Per Common Share",
        "documentation": "Number of Depositary Receipts Per Common Share"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NumberOfInstrumentsOrInterestsIssuedOrIssuable": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NumberOfInstrumentsOrInterestsIssuedOrIssuable",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity interests of issuer (in shares)",
        "label": "Number of instruments or interests issued or issuable"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of instruments or interests issued or issuable at acquisition date for equity interests of the acquirer transferred as consideration in a business combination."
       }
      }
     },
     "auth_ref": [
      "r206"
     ]
    },
    "ifrs-full_NumberOfInstrumentsOtherEquityInstrumentsGranted": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NumberOfInstrumentsOtherEquityInstrumentsGranted",
     "presentation": [
      "http://xpinc.com/role/SharebasedplanActivityofRSUsandPSUsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Granted (shares)",
        "label": "Number of other equity instruments granted in share-based payment arrangement"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of other equity instruments (ie other than share options) granted in a share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r204",
      "r397"
     ]
    },
    "xp_NumberOfIssuedSharesAcquired": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumberOfIssuedSharesAcquired",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of Issued shares acquired",
        "label": "Number of Issued shares acquired",
        "documentation": "Number of Issued shares acquired"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NumberOfOtherEquityInstrumentsExercisedOrVestedInSharebasedPaymentArrangement": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NumberOfOtherEquityInstrumentsExercisedOrVestedInSharebasedPaymentArrangement",
     "presentation": [
      "http://xpinc.com/role/SharebasedplanActivityofRSUsandPSUsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Vested (shares)",
        "label": "Number of other equity instruments exercised or vested in share-based payment arrangement"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of other equity instruments (ie other than share options) exercised or vested in a share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r397"
     ]
    },
    "ifrs-full_NumberOfOtherEquityInstrumentsForfeitedInSharebasedPaymentArrangement": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NumberOfOtherEquityInstrumentsForfeitedInSharebasedPaymentArrangement",
     "presentation": [
      "http://xpinc.com/role/SharebasedplanActivityofRSUsandPSUsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Forfeited (shares)",
        "label": "Number of other equity instruments forfeited in share-based payment arrangement"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of other equity instruments (ie other than share options) forfeited in a share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r397"
     ]
    },
    "ifrs-full_NumberOfOtherEquityInstrumentsOutstandingInSharebasedPaymentArrangement": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NumberOfOtherEquityInstrumentsOutstandingInSharebasedPaymentArrangement",
     "presentation": [
      "http://xpinc.com/role/SharebasedplanActivityofRSUsandPSUsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Outstanding (shares)",
        "periodEndLabel": "Outstanding (shares)",
        "label": "Number of other equity instruments outstanding in share-based payment arrangement"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of other equity instruments (ie other than share options) outstanding in a share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r397"
     ]
    },
    "xp_NumberOfOtherEquityInstrumentsOutstandingRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumberOfOtherEquityInstrumentsOutstandingRollForward",
     "presentation": [
      "http://xpinc.com/role/SharebasedplanActivityofRSUsandPSUsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of units",
        "label": "Number Of Other Equity Instruments Outstanding [Roll Forward]",
        "documentation": "Number Of Other Equity Instruments Outstanding"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NumberOfPurchasedShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumberOfPurchasedShares",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of repurchased shares",
        "label": "Number of purchased shares",
        "documentation": "Number of purchased shares"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NumberOfSharesAuthorised": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NumberOfSharesAuthorised",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of shares authorised",
        "label": "Number of shares authorised"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of shares authorised."
       }
      }
     },
     "auth_ref": [
      "r27"
     ]
    },
    "xp_NumberOfSharesCancellationApproved": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumberOfSharesCancellationApproved",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of shares cancellation approved",
        "label": "Number of shares cancellation approved",
        "documentation": "Represents Number of shares cancellation approved."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NumberOfSharesIssued": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NumberOfSharesIssued",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of shares issued",
        "label": "Number of shares issued"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of shares issued by the entity."
       }
      }
     },
     "auth_ref": [
      "r364"
     ]
    },
    "xp_NumberOfSharesIssuedDuringThePeriod": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumberOfSharesIssuedDuringThePeriod",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of shares issued during the period",
        "label": "Number of shares issued during the period",
        "documentation": "Represents Number of shares issued during the period."
       }
      }
     },
     "auth_ref": []
    },
    "xp_NumberOfSharesIssuedNewShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumberOfSharesIssuedNewShares",
     "presentation": [
      "http://xpinc.com/role/EquitySummaryofissuancesandconversationsofsharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Issuance of shares",
        "label": "Number of Shares Issued New Shares",
        "documentation": "Number of Shares Issued New Shares"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NumberOfSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "NumberOfSharesOutstanding",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails",
      "http://xpinc.com/role/EquitySummaryofissuancesandconversationsofsharesDetails",
      "http://xpinc.com/role/SubsequenteventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of shares outstanding",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "Number of shares outstanding"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of shares that have been authorised and issued, reduced by treasury shares held. [Refer: Treasury shares]"
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "xp_NumberOfSharesRepurchasedAndHeldInTreasury": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumberOfSharesRepurchasedAndHeldInTreasury",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of shares repurchased and held in treasury",
        "label": "Number of shares repurchased and held in treasury",
        "documentation": "Represents Number of shares repurchased and held in treasury."
       }
      }
     },
     "auth_ref": []
    },
    "xp_NumberOfSharesToBeRepurchased": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumberOfSharesToBeRepurchased",
     "presentation": [
      "http://xpinc.com/role/SubsequenteventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of shares to be Repurchased",
        "label": "Number of shares to be Repurchased",
        "documentation": "Number of shares to be Repurchased"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NumberOfTotalSharesOutstandingAfterCancellation": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumberOfTotalSharesOutstandingAfterCancellation",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of total shares Outstanding After Cancellation",
        "label": "Number of total shares Outstanding After Cancellation",
        "documentation": "Number of total shares Outstanding After Cancellation"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NumberOfTotalSharesOutstandingBeforeCancellation": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumberOfTotalSharesOutstandingBeforeCancellation",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of total shares Outstanding Before Cancellation",
        "label": "Number of total shares Outstanding Before Cancellation",
        "documentation": "Number of total shares Outstanding Before Cancellation"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NumberOfVotesPerShare": {
     "xbrltype": "integerItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumberOfVotesPerShare",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of votes per share",
        "label": "Number of votes per share",
        "documentation": "Number of votes per share"
       }
      }
     },
     "auth_ref": []
    },
    "xp_NumbersOfOperatingSegments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "NumbersOfOperatingSegments",
     "presentation": [
      "http://xpinc.com/role/BasisofpreparationofthefinancialstatementsandchangestotheGroupsaccountingpoliciesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of operating segment",
        "label": "Numbers Of Operating Segments",
        "documentation": "Numbers Of Operating Segments"
       }
      }
     },
     "auth_ref": []
    },
    "xp_OPrimoRicoMdiaEducacionalEParticipaesLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OPrimoRicoMdiaEducacionalEParticipaesLtdaMember",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "O Primo Rico M\u00eddia, Educacional e Participa\u00e7\u00f5es Ltda.",
        "label": "O Primo Rico M\u00eddia, Educacional E Participa\u00e7\u00f5es Ltda. [Member]",
        "documentation": "O Primo Rico M\u00eddia, Educacional E Participa\u00e7\u00f5es Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_ObligationsToNonControllingInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ObligationsToNonControllingInterest",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/SocialandstatutoryobligationsSummaryofsocialandstatutoryobligationsDetails": {
       "parentTag": "xp_SocialAndStatutoryObligations",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/SocialandstatutoryobligationsSummaryofsocialandstatutoryobligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Obligations to non-controlling interest",
        "label": "Obligations to non-controlling interest",
        "documentation": "Obligations to non-controlling interest"
       }
      }
     },
     "auth_ref": []
    },
    "xp_OffBalanceExposures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OffBalanceExposures",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails": {
       "parentTag": "xp_FinancialAssetsIncludingOffBalanceSheetAmounts",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Off-balance exposures",
        "label": "Off-balance exposures",
        "documentation": "Off-balance exposures"
       }
      }
     },
     "auth_ref": []
    },
    "xp_OffBalanceExposuresMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OffBalanceExposuresMember",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Off-balance exposures (credit card limits)",
        "label": "Off-Balance Exposures [Member]",
        "documentation": "Off-Balance Exposures"
       }
      }
     },
     "auth_ref": []
    },
    "xp_OnBalanceExposuresMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OnBalanceExposuresMember",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total on-balance exposures",
        "label": "On-balance exposures [Member]",
        "documentation": "On-balance exposures"
       }
      }
     },
     "auth_ref": []
    },
    "xp_OperatingCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OperatingCosts",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingcostsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OperatingExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OperatingExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": -1.0,
       "order": 3.0
      },
      "http://xpinc.com/role/OperatingcostsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/OperatingcostsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Operating costs",
        "totalLabel": "Total",
        "label": "Operating expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of all operating expenses."
       }
      }
     },
     "auth_ref": [
      "r371"
     ]
    },
    "ifrs-full_OperatingExpenseExcludingCostOfSales": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OperatingExpenseExcludingCostOfSales",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total",
        "label": "Operating expense excluding cost of sales"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of operating expense excluding the cost of sales. [Refer: Cost of sales]"
       }
      }
     },
     "auth_ref": [
      "r371"
     ]
    },
    "xp_OperatingLossesAndProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OperatingLossesAndProvisions",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingcostsDetails": {
       "parentTag": "xp_OperatingCosts",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingcostsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating losses",
        "label": "Operating Losses and Provisions",
        "documentation": "Operating Losses and Provisions"
       }
      }
     },
     "auth_ref": []
    },
    "xp_OperationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OperationsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Operations [Abstract]",
        "documentation": "Operations [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OptionContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OptionContractMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Options",
        "label": "Option contract [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a derivative financial instrument that gives the holder the right, but not the obligation, to purchase or sell an underlying asset for a specified price determined in advance. [Refer: Derivatives [member]]"
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "ifrs-full_OrdinarySharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OrdinarySharesMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
      "http://xpinc.com/role/SharebasedplanAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ordinary shares [member]",
        "label": "Ordinary shares [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for equity instruments that are subordinate to all other classes of equity instruments. It also represents the standard value for the 'Classes of ordinary shares' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r93",
      "r370"
     ]
    },
    "xp_OtherAdministrativeExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherAdministrativeExpenses",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "ifrs-full_OtherExpenseByNature",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Other administrative expenses",
        "documentation": "Other administrative expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other assets",
        "label": "Other assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that the entity does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "xp_OtherAssetsOnSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherAssetsOnSubsidiaries",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other assets on subsidiaries",
        "label": "Other assets on subsidiaries",
        "documentation": "Other assets on subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherCashPaymentsToAcquireInterestsInJointVenturesClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherCashPaymentsToAcquireInterestsInJointVenturesClassifiedAsInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Investment in associates and joint ventures",
        "label": "Other cash payments to acquire interests in joint ventures, classified as investing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow to acquire interests in joint ventures (other than payments for those instruments considered to be cash equivalents or those held for dealing or trading purposes), classified as investing activities. [Refer: Joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r311"
     ]
    },
    "ifrs-full_OtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity",
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other comprehensive income (loss) for the period, net of tax",
        "verboseLabel": "Other comprehensive income, net",
        "totalLabel": "Other comprehensive income (loss) for the period, net of tax",
        "label": "Other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income and expense (including reclassification adjustments) that is not recognised in profit or loss as required or permitted by IFRSs. [Refer: IFRSs [member]]"
       }
      }
     },
     "auth_ref": [
      "r3",
      "r36",
      "r45",
      "r159"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherComprehensiveIncomeAbstract",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other comprehensive income",
        "verboseLabel": "Balance",
        "label": "Other comprehensive income [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherComprehensiveIncomeBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherComprehensiveIncomeBeforeTax",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Before tax",
        "label": "Other comprehensive income, before tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, before tax. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeBeforeTax",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Before tax",
        "label": "Other comprehensive income, before tax, exchange differences on translation of foreign operations"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, before tax, after reclassification adjustments, related to exchange differences on translation of financial statements of foreign operations. [Refer: Other comprehensive income, before tax]"
       }
      }
     },
     "auth_ref": [
      "r24",
      "r46"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeBeforeTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherComprehensiveIncomeBeforeTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeBeforeTax",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Before tax",
        "label": "Other comprehensive income, before tax, financial assets measured at fair value through other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, before tax, after reclassification adjustments, related to financial assets measured at fair value through other comprehensive income applying paragraph 4.1.2A of IFRS 9. [Refer: Financial assets measured at fair value through other comprehensive income; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r24",
      "r46",
      "r217"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeBeforeTaxHedgesOfNetInvestmentsInForeignOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherComprehensiveIncomeBeforeTaxHedgesOfNetInvestmentsInForeignOperations",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails": {
       "parentTag": "ifrs-full_OtherComprehensiveIncomeBeforeTax",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Before tax",
        "label": "Other comprehensive income, before tax, hedges of net investments in foreign operations"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, before tax, after reclassification adjustments, related to hedges of net investments in foreign operations. [Refer: Other comprehensive income, before tax]"
       }
      }
     },
     "auth_ref": [
      "r46",
      "r117",
      "r269"
     ]
    },
    "xp_OtherComprehensiveIncomeChangesInTheFairValueOfFinancialAssetsAtFairValueAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherComprehensiveIncomeChangesInTheFairValueOfFinancialAssetsAtFairValueAbstract",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Changes in the fair value of financial assets at fair value",
        "label": "Other Comprehensive Income, Changes In The Fair Value Of Financial Assets At Fair Value [Abstract]",
        "documentation": "Other Comprehensive Income, Changes In The Fair Value Of Financial Assets At Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "xp_OtherComprehensiveIncomeExchangeDifferencesOnTranslationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherComprehensiveIncomeExchangeDifferencesOnTranslationAbstract",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign exchange variation of investees located abroad",
        "label": "Other Comprehensive Income, Exchange Differences On Translation [Abstract]",
        "documentation": "Other Comprehensive Income, Exchange Differences On Translation"
       }
      }
     },
     "auth_ref": []
    },
    "xp_OtherComprehensiveIncomeGainsLossesOnNetInvestmentHedgeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherComprehensiveIncomeGainsLossesOnNetInvestmentHedgeAbstract",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gains (losses) on net investment hedge",
        "label": "Other Comprehensive Income, Gains (Losses) On Net Investment Hedge [Abstract]",
        "documentation": "Other Comprehensive Income, Gains (Losses) On Net Investment Hedge"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome_1": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 2.0
      },
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails": {
       "parentTag": "ifrs-full_OtherComprehensiveIncome",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign exchange variation of investees located abroad",
        "label": "Other comprehensive income, net of tax, exchange differences on translation of foreign operations"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, net of tax, after reclassification adjustments, related to exchange differences when financial statements of foreign operations are translated. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r24",
      "r45"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherComprehensiveIncomeNetOfTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails": {
       "parentTag": "ifrs-full_OtherComprehensiveIncome",
       "weight": 1.0,
       "order": 2.0
      },
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome_1": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Changes in the fair value of financial assets at fair value through other comprehensive income",
        "label": "Other comprehensive income, net of tax, financial assets measured at fair value through other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, net of tax, after reclassification adjustments, related to financial assets measured at fair value through other comprehensive income applying paragraph 4.1.2A of IFRS 9. [Refer: Financial assets measured at fair value through other comprehensive income; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r24",
      "r45"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeNetOfTaxHedgesOfNetInvestmentsInForeignOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherComprehensiveIncomeNetOfTaxHedgesOfNetInvestmentsInForeignOperations",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome_1": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 1.0
      },
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails": {
       "parentTag": "ifrs-full_OtherComprehensiveIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails",
      "http://xpinc.com/role/IncometaxSummaryofanalysisofothercomprehensiveincomebyitemDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gains (losses) on net investment hedge",
        "verboseLabel": "Variation in the amounts used to calculate hedge ineffectiveness",
        "label": "Other comprehensive income, net of tax, hedges of net investments in foreign operations"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, net of tax, after reclassification adjustments, related to hedges of net investments in foreign operations. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r45",
      "r117",
      "r269"
     ]
    },
    "xp_OtherContingencyProvisionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherContingencyProvisionsMember",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofotherprovisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other provisions (i)",
        "label": "Other contingency provisions [Member]",
        "documentation": "Other contingency provisions"
       }
      }
     },
     "auth_ref": []
    },
    "xp_OtherCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherCosts",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingcostsDetails": {
       "parentTag": "ifrs-full_OperatingExpense",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingcostsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other costs",
        "label": "Other Costs",
        "documentation": "Other Costs"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherCurrentFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherCurrentFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails": {
       "parentTag": "ifrs-full_OtherFinancialAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current",
        "label": "Other current financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current financial assets that the entity does not separately disclose in the same statement or note. [Refer: Other financial assets; Current financial assets]"
       }
      }
     },
     "auth_ref": [
      "r11"
     ]
    },
    "ifrs-full_OtherCurrentFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherCurrentFinancialLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails_1": {
       "parentTag": "ifrs-full_OtherFinancialLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current",
        "label": "Other current financial liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current financial liabilities that the entity does not separately disclose in the same statement or note. [Refer: Other financial liabilities; Current financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r14",
      "r161"
     ]
    },
    "xp_OtherDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherDeposits",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashAndCashEquivalents",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other deposits at Central Bank",
        "label": "Other deposits",
        "documentation": "Other deposits"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherExpenseByNature": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherExpenseByNature",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "ifrs-full_AdministrativeExpense",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other administrative expenses",
        "label": "Other expenses, by nature"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expenses that the entity does not separately disclose in the same statement or note when the entity uses the 'nature of expense' form for its analysis of expenses. [Refer: Expenses, by nature]"
       }
      }
     },
     "auth_ref": [
      "r49",
      "r297"
     ]
    },
    "xp_OtherExpensesPaidInAdvanceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherExpensesPaidInAdvanceMember",
     "presentation": [
      "http://xpinc.com/role/PrepaidexpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other expenses paid in advance",
        "label": "Other expenses paid in advance [Member]",
        "documentation": "Other expenses paid in advance"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialAssetsAtAmortisedCost",
       "weight": 1.0,
       "order": 2.0
      },
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails": {
       "parentTag": "xp_FinancialAssetsIncludingOffBalanceSheetAmounts",
       "weight": 1.0,
       "order": 7.0
      },
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails_1": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails",
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other financial assets",
        "totalLabel": "Total",
        "label": "Other financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial assets that the entity does not separately disclose in the same statement or note. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r11"
     ]
    },
    "xp_OtherFinancialAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherFinancialAssetsMember",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountECLsmeasuredusingsimplifiedapproachDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossusingsimplifiedmethodDetails",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Others",
        "label": "Other Financial Assets [Member]",
        "documentation": "Other Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherFinancialLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialLiabilitiesAtAmortisedCost",
       "weight": 1.0,
       "order": 2.0
      },
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails_1": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other financial liabilities",
        "totalLabel": "Total",
        "label": "Other financial liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial liabilities that the entity does not separately disclose in the same statement or note. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r14"
     ]
    },
    "xp_OtherFinancingInstrumentsPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherFinancingInstrumentsPayables",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails": {
       "parentTag": "xp_FinancingInstrumentsPayables",
       "weight": 1.0,
       "order": 2.0
      },
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails": {
       "parentTag": "xp_DepositsFinancialBillsAndStructuredOperationsCertificates",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other financing instruments payables",
        "label": "Other financing instruments payables",
        "documentation": "Other financing instruments payables"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherIntangibleAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherIntangibleAssetsMember",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other intangible assets",
        "label": "Other intangible assets [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets that the entity does not separately disclose in the same statement or note. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r387"
     ]
    },
    "ifrs-full_OtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_Liabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Other liabilities",
        "label": "Other liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities that the entity does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "xp_OtherLiabilitiesOnSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherLiabilitiesOnSubsidiaries",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Other liabilities on subsidiaries",
        "label": "Other liabilities on subsidiaries",
        "documentation": "Other liabilities on subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "xp_OtherMiscellaneousFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherMiscellaneousFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails_1": {
       "parentTag": "ifrs-full_OtherFinancialAssets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other financial assets",
        "label": "Other Miscellaneous Financial Assets",
        "documentation": "Other Miscellaneous Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_OtherMiscellaneousFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherMiscellaneousFinancialLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails": {
       "parentTag": "ifrs-full_OtherFinancialLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Others",
        "label": "Other miscellaneous financial liabilities",
        "documentation": "Other miscellaneous financial liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherNoncurrentFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherNoncurrentFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails": {
       "parentTag": "ifrs-full_OtherFinancialAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-current",
        "label": "Other non-current financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current financial assets that the entity does not separately disclose in the same statement or note. [Refer: Other financial assets]"
       }
      }
     },
     "auth_ref": [
      "r11"
     ]
    },
    "ifrs-full_OtherNoncurrentFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherNoncurrentFinancialLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails_1": {
       "parentTag": "ifrs-full_OtherFinancialLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-current",
        "label": "Other non-current financial liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current financial liabilities that the entity does not separately disclose in the same statement or note. [Refer: Other financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r14",
      "r162"
     ]
    },
    "ifrs-full_OtherNonfinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherNonfinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_OtherAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Other non-financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-financial assets that the entity does not separately disclose in the same statement or note. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "ifrs-full_OtherNonfinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherNonfinancialLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_OtherLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Other non-financial liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-financial liabilities that the entity does not separately disclose in the same statement or note. [Refer: Other financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "xp_OtherOffBalanceExposuresMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherOffBalanceExposuresMember",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other off-balance exposures",
        "label": "Other off-balance exposures [Member]",
        "documentation": "Other off-balance exposures"
       }
      }
     },
     "auth_ref": []
    },
    "xp_OtherOperatingCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherOperatingCosts",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingcostsDetails": {
       "parentTag": "xp_OtherCosts",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingcostsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Other Operating Costs",
        "documentation": "Other Operating Costs"
       }
      }
     },
     "auth_ref": []
    },
    "xp_OtherOperatingExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherOperatingExpenses",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails": {
       "parentTag": "ifrs-full_MiscellaneousOtherOperatingExpense",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Other",
        "label": "Other operating expenses",
        "documentation": "Other operating expenses"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_OtherOperatingIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2023",
     "localname": "OtherOperatingIncome",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails": {
       "parentTag": "ifrs-full_MiscellaneousOtherOperatingIncome",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Other Operating Income",
        "documentation": "The total amount of other operating income, the components of which are not separately disclosed on the income statement, from items that are associated with the entity's normal revenue producing operation."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "ifrs-full_OtherOperatingIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherOperatingIncomeExpense",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 4.0
      },
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other operating income (expenses), net",
        "totalLabel": "Total",
        "label": "Other operating income (expense)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of operating income (expense) that the entity does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r371"
     ]
    },
    "xp_OtherPersonalExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherPersonalExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "xp_PersonnelExpenses",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Other Personal Expense",
        "documentation": "Other Personal Expense"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesAdditionalinformationDetails",
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofchangesinotherprovisionsDetails",
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofotherprovisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other provisions",
        "periodStartLabel": "Beginning of period",
        "periodEndLabel": "End of period",
        "label": "Other provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of provisions other than provisions for employee benefits. [Refer: Provisions]"
       }
      }
     },
     "auth_ref": [
      "r25",
      "r103"
     ]
    },
    "ifrs-full_OtherProvisionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherProvisionsMember",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails",
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofotherprovisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other provisions [member]",
        "label": "Other provisions [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for provisions other than provisions for employee benefits. It also represents the standard value for the 'Classes of other provisions' axis if no other member is used. [Refer: Provisions]"
       }
      }
     },
     "auth_ref": [
      "r106"
     ]
    },
    "ifrs-full_OtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherReceivables",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/AccountsreceivableDetails": {
       "parentTag": "ifrs-full_TradeReceivables",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/AccountsreceivableDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Other receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount receivable by the entity that it does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r300"
     ]
    },
    "xp_OtherRecoverableTaxesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherRecoverableTaxesMember",
     "presentation": [
      "http://xpinc.com/role/RecoverabletaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other recoverable taxes",
        "label": "Other Recoverable Taxes [Member]",
        "documentation": "Other Recoverable Taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherReservesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherReservesMember",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Reserves",
        "label": "Other reserves [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing reserves within equity, not including retained earnings. It also represents the standard value for the 'Reserves within equity' axis if no other member is used. [Refer: Retained earnings]"
       }
      }
     },
     "auth_ref": [
      "r6",
      "r33"
     ]
    },
    "xp_OtherSecuritiesPurchasedSoldUnderResaleRepurchaseAgreementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherSecuritiesPurchasedSoldUnderResaleRepurchaseAgreementsMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Other Securities purchased (sold) under resale (repurchase) agreements [Member]",
        "documentation": "Other Securities purchased (sold) under resale (repurchase) agreements"
       }
      }
     },
     "auth_ref": []
    },
    "xp_OtherSecuritiesTradingAndIntermediation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherSecuritiesTradingAndIntermediation",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails": {
       "parentTag": "xp_FinancialAssetsAtAmortizedCostSecuritiesTradingAndIntermediation",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Other securities trading and intermediation",
        "documentation": "Other securities trading and intermediation"
       }
      }
     },
     "auth_ref": []
    },
    "xp_OtherServicesIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherServicesIncome",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails": {
       "parentTag": "xp_RevenueBeforeSalesTaxesAndContributionsOnRevenue",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other services",
        "label": "Other services income",
        "documentation": "Other services income"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofincometaxcalculationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Others",
        "label": "Other tax effects for reconciliation between accounting profit and tax expense (income)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount that represents the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that the entity does not separately disclose in the same statement or note. [Refer: Accounting profit; Applicable tax rate]"
       }
      }
     },
     "auth_ref": [
      "r54"
     ]
    },
    "xp_OtherTaxesPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "OtherTaxesPayable",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails": {
       "parentTag": "xp_PayablesOnSocialSecurityAndTaxes",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Others",
        "label": "Other Taxes Payable",
        "documentation": "Other Taxes Payable"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PISTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PISTaxRate",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PIS tax rate",
        "label": "PIS Tax Rate",
        "documentation": "PIS Tax Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ParValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ParValuePerShare",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Par value per share",
        "label": "Par value per share"
       }
      },
      "en": {
       "role": {
        "documentation": "The nominal value per share."
       }
      }
     },
     "auth_ref": [
      "r28"
     ]
    },
    "ifrs-full_PastDueStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PastDueStatusAxis",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Past due status [axis]",
        "label": "Past due status [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r332"
     ]
    },
    "ifrs-full_PastDueStatusMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PastDueStatusMember",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Past due status [member]",
        "label": "Past due status [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all past-due statuses. It also represents the standard value for the 'Past due status' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r332"
     ]
    },
    "xp_PayablesOnSocialSecurityAndTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PayablesOnSocialSecurityAndTaxes",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_OtherLiabilities",
       "weight": 1.0,
       "order": 2.0
      },
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails_1": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Taxes and social security obligations",
        "totalLabel": "Total",
        "label": "Payables On Social Security And Taxes",
        "documentation": "Payables On Social Security And Taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PayablesOnSocialSecurityAndTaxesOtherThanIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PayablesOnSocialSecurityAndTaxesOtherThanIncomeTax",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails": {
       "parentTag": "xp_PayablesOnSocialSecurityAndTaxes",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Taxes on long term incentive plan",
        "label": "Payables on social security and taxes other than income tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of payment due on social security and taxes other than income tax. Income taxes include all domestic and foreign taxes that are based on taxable profits. Income taxes also include taxes, such as withholding taxes, that are payable by a subsidiary, associate or joint arrangement on distributions to the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r369"
     ]
    },
    "ifrs-full_PaymentsInRespectOfSettlementsNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PaymentsInRespectOfSettlementsNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/RetirementplansliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Withdraws",
        "label": "Decrease (increase) in net defined benefit liability (asset) resulting from payments in respect of settlements"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in the net defined benefit liability (asset) resulting from payments from the plan in respect of settlements. [Refer: Decrease (increase) in net defined benefit liability (asset) resulting from gains (losses) arising from settlements; Net defined benefit liability (asset); Defined benefit plans [member]]"
       }
      }
     },
     "auth_ref": [
      "r75"
     ]
    },
    "xp_PaymentsOfOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PaymentsOfOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofchangesinotherprovisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Payments",
        "label": "Payments of other provisions",
        "documentation": "Payments of other provisions"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PercentageOfDerivativeFinancialAssets": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PercentageOfDerivativeFinancialAssets",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of derivative financial assets",
        "label": "Percentage of Derivative Financial Assets",
        "documentation": "Percentage of Derivative Financial Assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PercentageOfDerivativeFinancialLiabilities": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PercentageOfDerivativeFinancialLiabilities",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of derivative financial liabilities",
        "label": "Percentage of Derivative Financial Liabilities",
        "documentation": "Percentage of Derivative Financial Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PercentageOfOutstandingSharesCancelled": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PercentageOfOutstandingSharesCancelled",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails",
      "http://xpinc.com/role/SubsequenteventsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of outstanding shares cancelled",
        "label": "Percentage of outstanding shares cancelled",
        "documentation": "Percentage of outstanding shares cancelled"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PercentageOfOwnershipHeldByHoldingCompany": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PercentageOfOwnershipHeldByHoldingCompany",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of Ownership held by holding company",
        "label": "Percentage Of Ownership Held By Holding Company",
        "documentation": "Percentage Of Ownership Held By Holding Company"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PercentageOfTaxesReducingGrossRevenues": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PercentageOfTaxesReducingGrossRevenues",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of taxes reducing gross revenues",
        "label": "Percentage of Taxes Reducing Gross Revenues",
        "documentation": "Percentage of Taxes Reducing Gross Revenues"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PercentageOfVotingEquityInterestsAcquired": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PercentageOfVotingEquityInterestsAcquired",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of voting equity interests acquired",
        "label": "Percentage of voting equity interests acquired"
       }
      },
      "en": {
       "role": {
        "documentation": "The percentage of voting equity interests acquired in a business combination. [Refer: Business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r205"
     ]
    },
    "xp_PerformanceStockUnitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PerformanceStockUnitsMember",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails",
      "http://xpinc.com/role/SharebasedplanActivityofRSUsandPSUsDetails",
      "http://xpinc.com/role/SharebasedplanAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PSUs",
        "label": "Performance Stock Units [Member]",
        "documentation": "Performance Stock Units"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PeriodForWriteOffOfLoansAndReceivables": {
     "xbrltype": "durationItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PeriodForWriteOffOfLoansAndReceivables",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Period for write-off of Loans and Receivables",
        "label": "Period for write-off of Loans and Receivables",
        "documentation": "Period for write-off of Loans and Receivables"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PersonnelExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PersonnelExpenses",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "ifrs-full_AdministrativeExpense",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Personnel expenses",
        "label": "Personnel Expenses",
        "documentation": "Personnel Expenses"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PossibleRepurchaseOfOutstandingClassACommonShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PossibleRepurchaseOfOutstandingClassACommonShares",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repurchase of outstanding class A common shares",
        "label": "Possible repurchase of outstanding class A common shares",
        "documentation": "Possible repurchase of outstanding class A common shares"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PotentialLossForContingentConsideration": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PotentialLossForContingentConsideration",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contractual amount payable for contingent consideration",
        "label": "Potential Loss For Contingent Consideration",
        "documentation": "Potential Loss For Contingent Consideration"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PreFixedInterestRateInReaisMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PreFixedInterestRateInReaisMember",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed interest rate in Reais",
        "label": "Pre-fixed interest rate in Reais [Member]",
        "documentation": "Pre-fixed interest rate in Reais"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PreFixedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PreFixedMember",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed interest rate",
        "label": "Pre-fixed [Member]",
        "documentation": "Pre-fixed"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PremiumOverAveragePrice": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PremiumOverAveragePrice",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Premium over average price",
        "label": "Premium over average price",
        "documentation": "Premium over average price"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Prepayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Prepayments",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_OtherAssets",
       "weight": 1.0,
       "order": 1.0
      },
      "http://xpinc.com/role/PrepaidexpensesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/PrepaidexpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prepaid expenses",
        "totalLabel": "Prepaid expenses",
        "label": "Prepayments"
       }
      },
      "en": {
       "role": {
        "documentation": "Receivables that represent amounts paid for goods and services before they have been delivered."
       }
      }
     },
     "auth_ref": [
      "r300"
     ]
    },
    "xp_PrepaymentsOfIncomeTaxesIRPJAndCSLLMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PrepaymentsOfIncomeTaxesIRPJAndCSLLMember",
     "presentation": [
      "http://xpinc.com/role/RecoverabletaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prepayments of income taxes (IRPJ and CSLL)",
        "label": "Prepayments of Income Taxes IRPJ and CSLL [Member]",
        "documentation": "Prepayments of Income Taxes IRPJ and CSLL"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PriceIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PriceIndexMember",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Price indexes",
        "label": "Price index [Member]",
        "documentation": "Price index"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PriceOfPurchasedSharesPerShare": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PriceOfPurchasedSharesPerShare",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Price of repurchased shares (per share)",
        "label": "Price of purchased shares (per share)",
        "documentation": "Price of purchased shares (per share)"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PrivatePlacementWarrantsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PrivatePlacementWarrantsMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Private placement warrants",
        "label": "Private placement warrants [Member]",
        "documentation": "Private placement warrants"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PrivateSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PrivateSecurities",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails": {
       "parentTag": "xp_Securities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Private securities",
        "label": "Private securities",
        "documentation": "Private securities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProceedsFromBorrowingsClassifiedAsFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows",
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from borrowings",
        "label": "Proceeds from borrowings, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from borrowings obtained. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r313"
     ]
    },
    "ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProceedsFromIssueOfBondsNotesAndDebentures",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Acquisitions of debt securities issued",
        "label": "Proceeds from issue of bonds, notes and debentures"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from the issuing of bonds, notes and debentures."
       }
      }
     },
     "auth_ref": [
      "r390"
     ]
    },
    "ifrs-full_ProceedsFromIssuingShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProceedsFromIssuingShares",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows",
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from SPAC issuance of shares",
        "label": "Proceeds from issuing shares"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from issuing shares."
       }
      }
     },
     "auth_ref": [
      "r312"
     ]
    },
    "ifrs-full_ProfitLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProfitLoss",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome_1": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 4.0
      },
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity",
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net income for the year",
        "terseLabel": "Net income for the year",
        "label": "Profit (loss)"
       }
      },
      "en": {
       "role": {
        "documentation": "The total of income less expenses from continuing and discontinued operations, excluding the components of other comprehensive income. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r2",
      "r35",
      "r128",
      "r142",
      "r144",
      "r260",
      "r262",
      "r320",
      "r325"
     ]
    },
    "ifrs-full_ProfitLossAttributableToAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProfitLossAttributableToAbstract",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net income attributable to:",
        "label": "Profit (loss), attributable to [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProfitLossAttributableToNoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProfitLossAttributableToNoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-controlling interest",
        "verboseLabel": "Non-controlling interest",
        "label": "Profit (loss), attributable to non-controlling interests"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) from continuing and discontinued operations attributable to non-controlling interests. [Refer: Profit (loss); Non-controlling interests]"
       }
      }
     },
     "auth_ref": [
      "r38",
      "r149"
     ]
    },
    "ifrs-full_ProfitLossAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProfitLossAttributableToOwnersOfParent",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/EarningspersharebasicanddilutedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Owners of the Parent company",
        "verboseLabel": "Net Income attributable to owners of the Parent",
        "label": "Profit (loss), attributable to owners of parent"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) from continuing and discontinued operations attributable to owners of the parent. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r39"
     ]
    },
    "ifrs-full_ProfitLossBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProfitLossBeforeTax",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": 1.0,
       "order": 2.0
      },
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows",
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/IncometaxSummaryofincometaxcalculationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Income before income tax",
        "terseLabel": "Income before income tax",
        "label": "Profit (loss) before tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) before tax expense or income. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r215",
      "r297",
      "r298",
      "r348",
      "r349"
     ]
    },
    "ifrs-full_ProfitLossOfAcquiree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProfitLossOfAcquiree",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Profit (loss) of acquiree since acquisition date",
        "label": "Profit (loss) of acquiree since acquisition date"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) of the acquiree, since the acquisition date, included in the consolidated statement of comprehensive income. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r209"
     ]
    },
    "ifrs-full_ProfitLossOfCombinedEntity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProfitLossOfCombinedEntity",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Profit (loss) of combined entity as if combination occurred at beginning of period",
        "label": "Profit (loss) of combined entity as if combination occurred at beginning of period"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) of the combined entity as though the acquisition date for all business combinations that occurred during the year had been as of the beginning of the annual reporting period. [Refer: Business combinations [member]; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r210"
     ]
    },
    "xp_ProfitSharingPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ProfitSharingPlanMember",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Profit sharing plan",
        "label": "Profit Sharing Plan [Member]",
        "documentation": "Profit Sharing Plan"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PropertyAndEquipmentOnSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PropertyAndEquipmentOnSubsidiaries",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Property and equipment on subsidiaries",
        "label": "Property and equipment on subsidiaries",
        "documentation": "Property and equipment on subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PropertyPlantAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Property and equipment",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "Property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of tangible assets that: (a) are held for use in the production or supply of goods or services, for rental to others, or for administrative purposes; and (b) are expected to be used during more than one period. Note that right-of-use assets are not included. [Contrast: Property, plant and equipment including right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r10",
      "r68"
     ]
    },
    "ifrs-full_PropertyPlantAndEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PropertyPlantAndEquipmentMember",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofdepreciationofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Property, plant and equipment",
        "label": "Property, plant and equipment [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for property, plant and equipment. It also represents the standard value for the 'Classes of property, plant and equipment' axis if no other member is used. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r69",
      "r306",
      "r324"
     ]
    },
    "ifrs-full_ProportionOfOwnershipInterestInAssociate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProportionOfOwnershipInterestInAssociate",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proportion of ownership interest in associate",
        "label": "Proportion of ownership interest in associate"
       }
      },
      "en": {
       "role": {
        "documentation": "The proportion of ownership interest in an associate attributable to the entity. [Refer: Associates [member]]"
       }
      }
     },
     "auth_ref": [
      "r86",
      "r90",
      "r155"
     ]
    },
    "ifrs-full_ProportionOfOwnershipInterestInSubsidiary": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ProportionOfOwnershipInterestInSubsidiary",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percent of group's interest",
        "label": "Proportion of ownership interest in subsidiary"
       }
      },
      "en": {
       "role": {
        "documentation": "The proportion of ownership interest in a subsidiary attributable to the entity. [Refer: Subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r86",
      "r90",
      "r153"
     ]
    },
    "xp_ProvisionOfExpectedCreditLossOnFinancialAssets": {
     "xbrltype": "durationItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ProvisionOfExpectedCreditLossOnFinancialAssets",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provision of Expected credit loss on financial assets",
        "label": "Provision of Expected credit loss on financial assets",
        "documentation": "Provision of Expected credit loss on financial assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Provisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Provisions",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_OtherLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provisions and contingent liabilities",
        "label": "Provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities of uncertain timing or amount, including provisions for employee benefits."
       }
      }
     },
     "auth_ref": [
      "r13"
     ]
    },
    "xp_ProvisionsForIFAsCoommissionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ProvisionsForIFAsCoommissionsMember",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provisions for IFAs\u2019 commissions",
        "label": "Provisions for IFA's Coommissions [Member]",
        "documentation": "Provisions for IFA's Coommissions"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PublicSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PublicSecurities",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails": {
       "parentTag": "xp_Securities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Public securities",
        "label": "Public Securities",
        "documentation": "Public Securities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PurchaseCommitmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PurchaseCommitmentsMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchase commitments",
        "label": "Purchase commitments [Member]",
        "documentation": "Purchase commitments"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PurchaseConsiderationTransferredOfSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PurchaseConsiderationTransferredOfSubsidiaries",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchase consideration transferred of subsidiaries",
        "label": "Purchase consideration transferred of subsidiaries",
        "documentation": "Purchase consideration transferred of subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PurchaseOfIntangibleAssetsClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PurchaseOfIntangibleAssetsClassifiedAsInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Acquisition of intangible assets",
        "label": "Purchase of intangible assets, classified as investing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for the purchases of intangible assets, classified as investing activities. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r310"
     ]
    },
    "ifrs-full_PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Acquisition of property and equipment",
        "label": "Purchase of property, plant and equipment, classified as investing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for the purchases of property, plant and equipment, classified as investing activities. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r310"
     ]
    },
    "xp_PurchasedShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PurchasedShares",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repurchased shares",
        "label": "Purchased shares",
        "documentation": "Purchased shares"
       }
      }
     },
     "auth_ref": []
    },
    "xp_PurchasedSharesPercentOfTheEntitysCapitalStock": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "PurchasedSharesPercentOfTheEntitysCapitalStock",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repurchased shares percent of the entity's capital stock",
        "label": "Purchased shares percent of the entity's capital stock",
        "documentation": "Purchased shares percent of the entity's capital stock"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RangeAxis",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails",
      "http://xpinc.com/role/HedgeaccountingAdditionalInformationDetails",
      "http://xpinc.com/role/OperationsAdditionalinformationDetails",
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofusefullivesofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Range [axis]",
        "label": "Range [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r175",
      "r193",
      "r202",
      "r322",
      "r323",
      "r399"
     ]
    },
    "ifrs-full_RangesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RangesMember",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails",
      "http://xpinc.com/role/HedgeaccountingAdditionalInformationDetails",
      "http://xpinc.com/role/OperationsAdditionalinformationDetails",
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofusefullivesofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ranges",
        "label": "Ranges [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregate ranges. It also represents the standard value for the 'Range' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r175",
      "r193",
      "r202",
      "r322",
      "r323",
      "r399"
     ]
    },
    "xp_RateApplicableToCompaniesUnderPPMCOFINS": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RateApplicableToCompaniesUnderPPMCOFINS",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rate applicable to companies under PPM COFINS",
        "label": "Rate Applicable to Companies Under PPM COFINS",
        "documentation": "Rate Applicable to Companies Under PPM COFINS"
       }
      }
     },
     "auth_ref": []
    },
    "xp_RateApplicableToCompaniesUnderPPMPIS": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RateApplicableToCompaniesUnderPPMPIS",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rate applicable to companies under PPM PIS",
        "label": "Rate Applicable to Companies Under PPMPIS",
        "documentation": "Rate Applicable to Companies Under PPMPIS"
       }
      }
     },
     "auth_ref": []
    },
    "xp_RealEstateCreditBillMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RealEstateCreditBillMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Real estate credit bill",
        "label": "Real estate credit bill [Member]",
        "documentation": "Real estate credit bill"
       }
      }
     },
     "auth_ref": []
    },
    "xp_RealEstateReceivableCertificatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RealEstateReceivableCertificatesMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Real Estate Receivable Certificates",
        "label": "Real Estate Receivable Certificates [Member]",
        "documentation": "Real Estate Receivable Certificates"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ReceivablesFromContractsWithCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ReceivablesFromContractsWithCustomers",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/AccountsreceivableDetails": {
       "parentTag": "ifrs-full_TradeReceivables",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/AccountsreceivableDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Customers",
        "label": "Receivables from contracts with customers"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of an entity\u2019s right to consideration in exchange for goods or services that the entity has transferred to a customer that is unconditional. A right to consideration is unconditional if only the passage of time is required before payment of that consideration is due."
       }
      }
     },
     "auth_ref": [
      "r176",
      "r177"
     ]
    },
    "xp_ReceivablesFromIndependentFinancialAdvisers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ReceivablesFromIndependentFinancialAdvisers",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails_1": {
       "parentTag": "ifrs-full_OtherFinancialAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Receivables from IFAs",
        "label": "Receivables From Independent Financial Advisers",
        "documentation": "Receivables From Independent Financial Advisers"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RecognisedLiabilitiesDefinedBenefitPlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RecognisedLiabilitiesDefinedBenefitPlan",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_OtherLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Retirement plans liabilities and insurance liabilities",
        "label": "Net defined benefit liability"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of deficit in a defined benefit plan. [Refer: Defined benefit plans [member]]"
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofincometaxcalculationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Reconciliation of accounting profit multiplied by applicable tax rates [abstract]",
        "label": "Reconciliation of accounting profit multiplied by applicable tax rates [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_RecoveryOfChargesAndExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RecoveryOfChargesAndExpenses",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails": {
       "parentTag": "ifrs-full_MiscellaneousOtherOperatingIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Recovery of charges and expenses",
        "label": "Recovery of charges and expenses.",
        "documentation": "Recovery of charges and expenses."
       }
      }
     },
     "auth_ref": []
    },
    "xp_RefinariaDeDadosAnaliseDeDadosLtda.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RefinariaDeDadosAnaliseDeDadosLtda.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Refinaria de Dados An\u00e1lise de Dados Ltda. [Member]",
        "label": "Refinaria de Dados An\u00e1lise de Dados Ltda. [Member]",
        "documentation": "Refinaria de Dados An\u00e1lise de Dados Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RentalExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RentalExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "ifrs-full_OtherExpenseByNature",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rent expenses",
        "label": "Rental expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense recognised on rental activities."
       }
      }
     },
     "auth_ref": [
      "r371"
     ]
    },
    "ifrs-full_RepaymentsOfBondsNotesAndDebentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RepaymentsOfBondsNotesAndDebentures",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Payment of debt securities",
        "label": "Repayments of bonds, notes and debentures"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for repayments of bonds, notes and debentures."
       }
      }
     },
     "auth_ref": [
      "r390"
     ]
    },
    "ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RepaymentsOfBorrowingsClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Payments of borrowings and lease liabilities",
        "label": "Repayments of borrowings, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow to settle borrowings, classified as financing activities. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r314"
     ]
    },
    "xp_RestrictedStockUnitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RestrictedStockUnitsMember",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails",
      "http://xpinc.com/role/SharebasedplanActivityofRSUsandPSUsDetails",
      "http://xpinc.com/role/SharebasedplanAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "RSUs",
        "label": "Restricted Stock Units [Member]",
        "documentation": "Restricted Stock Units"
       }
      }
     },
     "auth_ref": []
    },
    "xp_RetailClientPortfoliaMemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RetailClientPortfoliaMemberMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofintangibleassetsacquiredDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Retail client portfolio",
        "label": "Retail client portfolia Member [Member]",
        "documentation": "Retail client portfolia Member"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RetainedEarningsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RetainedEarningsMember",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Retained Earnings",
        "label": "Retained earnings [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing an entity's cumulative undistributed earnings or deficit."
       }
      }
     },
     "auth_ref": [
      "r6",
      "r299"
     ]
    },
    "xp_RetirementPlanAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RetirementPlanAssetsMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Retirement plan assets\u00a0(i)",
        "label": "Retirement plan assets [Member]",
        "documentation": "Retirement plan assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_RevaluationsOfFinancialAssetsAtFairValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RevaluationsOfFinancialAssetsAtFairValueMember",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revaluations of financial assets at fair value",
        "label": "Revaluations of Financial Assets at Fair Value [Member]",
        "documentation": "Revaluations of Financial Assets at Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Revenue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "Revenue",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": "ifrs-full_RevenueAndOperatingIncome",
       "weight": 1.0,
       "order": 3.0
      },
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net revenue from services rendered",
        "totalLabel": "Net revenue from services rendered",
        "label": "Revenue"
       }
      },
      "en": {
       "role": {
        "documentation": "The income arising in the course of an entity's ordinary activities. Income is increases in assets, or decreases in liabilities, that result in increases in equity, other than those relating to contributions from holders of equity claims."
       }
      }
     },
     "auth_ref": [
      "r41",
      "r158",
      "r215",
      "r257",
      "r261",
      "r266",
      "r267",
      "r268",
      "r297",
      "r298",
      "r320"
     ]
    },
    "ifrs-full_RevenueAndOperatingIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RevenueAndOperatingIncome",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofdisaggregationbygeographiclocationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total revenue and income",
        "terseLabel": "Total revenue and income",
        "label": "Revenue and other operating income"
       }
      },
      "en": {
       "role": {
        "documentation": "The aggregate amount of the entity's revenue and other operating income. [Refer: Revenue]"
       }
      }
     },
     "auth_ref": [
      "r371"
     ]
    },
    "xp_RevenueBeforeSalesTaxesAndContributionsOnRevenue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RevenueBeforeSalesTaxesAndContributionsOnRevenue",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails": {
       "parentTag": "ifrs-full_Revenue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Revenue before sales taxes and contributions on revenue",
        "label": "Revenue before sales taxes and contributions on revenue",
        "documentation": "Revenue before sales taxes and contributions on revenue"
       }
      }
     },
     "auth_ref": []
    },
    "xp_RevenueFromIncentivesFromTesouroDiretoAndB3": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RevenueFromIncentivesFromTesouroDiretoAndB3",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails": {
       "parentTag": "ifrs-full_MiscellaneousOtherOperatingIncome",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revenue from incentives from Tesouro Direto, B3 and others",
        "label": "Revenue from incentives from tesouro direto and B3",
        "documentation": "Revenue from incentives from tesouro direto and B3"
       }
      }
     },
     "auth_ref": []
    },
    "xp_RevenueFromInterestReceivedOnTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RevenueFromInterestReceivedOnTax",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails": {
       "parentTag": "ifrs-full_MiscellaneousOtherOperatingIncome",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest received on tax",
        "label": "Revenue from interest received on tax",
        "documentation": "Revenue from interest received on tax"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RevenueOfAcquiree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RevenueOfAcquiree",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revenue of acquiree since acquisition date",
        "label": "Revenue of acquiree since acquisition date"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of revenue of the acquiree since the acquisition date included in the consolidated statement of comprehensive income. [Refer: Revenue]"
       }
      }
     },
     "auth_ref": [
      "r209"
     ]
    },
    "ifrs-full_RevenueOfCombinedEntity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RevenueOfCombinedEntity",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revenue of combined entity as if combination occurred at beginning of period",
        "label": "Revenue of combined entity as if combination occurred at beginning of period"
       }
      },
      "en": {
       "role": {
        "documentation": "The revenue of the combined entity as though the acquisition date for all business combinations that occurred during the year had been as of the beginning of the annual reporting period. [Refer: Business combinations [member]; Revenue]"
       }
      }
     },
     "auth_ref": [
      "r210"
     ]
    },
    "xp_ReversalOfOperatingProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ReversalOfOperatingProvisions",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails": {
       "parentTag": "ifrs-full_MiscellaneousOtherOperatingIncome",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Reversal of operating provisions",
        "label": "Reversal of operating provisions",
        "documentation": "Reversal of operating provisions"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ReverseRepurchaseAgreementsAndCashCollateralOnSecuritiesBorrowed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ReverseRepurchaseAgreementsAndCashCollateralOnSecuritiesBorrowed",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities purchased under agreements to resell",
        "label": "Reverse repurchase agreements and cash collateral on securities borrowed"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of instruments purchased for resale in reverse repurchase agreements and cash collateral on securities borrowed. [Refer: Repurchase agreements and cash collateral on securities lent]"
       }
      }
     },
     "auth_ref": [
      "r368"
     ]
    },
    "xp_ReverseRepurchaseAgreementsAndCashCollateralOnSecuritiesBorrowedIncludedInCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ReverseRepurchaseAgreementsAndCashCollateralOnSecuritiesBorrowedIncludedInCashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashAndCashEquivalents",
       "weight": 1.0,
       "order": 1.0
      },
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails": {
       "parentTag": "ifrs-full_NetDebt",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails",
      "http://xpinc.com/role/Consolidatedstatementsofcashflows",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Securities purchased under agreements to resell",
        "terseLabel": "Securities purchased under agreements to resell presented as cash equivalents",
        "negatedTerseLabel": "Securities purchased under agreements to resell",
        "label": "Reverse Repurchase Agreements And Cash Collateral On Securities Borrowed Included In Cash And Cash Equivalents",
        "documentation": "Reverse Repurchase Agreements And Cash Collateral On Securities Borrowed Included In Cash And Cash Equivalents"
       }
      }
     },
     "auth_ref": []
    },
    "xp_RightOfUseAdditionThroughBusinessCombination": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RightOfUseAdditionThroughBusinessCombination",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business combination",
        "label": "Right of use addition through business combination",
        "documentation": "Right of use addition through business combination"
       }
      }
     },
     "auth_ref": []
    },
    "xp_RightOfUseAssetsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RightOfUseAssetsCurrent",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails": {
       "parentTag": "ifrs-full_RightofuseAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current",
        "label": "Right of Use Assets, Current",
        "documentation": "Right of Use Assets, Current"
       }
      }
     },
     "auth_ref": []
    },
    "xp_RightOfUseAssetsEffectsOfExchangeRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RightOfUseAssetsEffectsOfExchangeRate",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Effects of exchange rate",
        "label": "Right-of-Use Assets, Effects of Exchange Rate",
        "documentation": "Right-of-Use Assets, Effects of Exchange Rate"
       }
      }
     },
     "auth_ref": []
    },
    "xp_RightOfUseAssetsIncreaseDecreaseFromRevaluation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RightOfUseAssetsIncreaseDecreaseFromRevaluation",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revaluation",
        "label": "Right-Of-Use Assets, Increase (Decrease) From Revaluation",
        "documentation": "Right-Of-Use Assets, Increase (Decrease) From Revaluation"
       }
      }
     },
     "auth_ref": []
    },
    "xp_RightOfUseAssetsNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RightOfUseAssetsNoncurrent",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails": {
       "parentTag": "ifrs-full_RightofuseAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-current",
        "label": "Right-Of-Use Assets, Noncurrent",
        "documentation": "Right-Of-Use Assets, Noncurrent"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RightofuseAssets",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_OtherAssets",
       "weight": 1.0,
       "order": 4.0
      },
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofrightofuseassetsandleaseliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rights-of-use assets",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "Right-of-use assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that represent a lessee's right to use an underlying asset for the lease term that do not meet the definition of investment property. Underlying asset is an asset that is the subject of a lease, for which the right to use that asset has been provided by a lessor to a lessee."
       }
      }
     },
     "auth_ref": [
      "r179",
      "r187"
     ]
    },
    "ifrs-full_RiskExposuresAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RiskExposuresAxis",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Risk exposures [axis]",
        "label": "Risk variables [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r198"
     ]
    },
    "ifrs-full_RiskExposuresMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "RiskExposuresMember",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Risk exposures [member]",
        "label": "Risk variables [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the risk variables. It also represents the standard value for the 'Risk variables' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r198"
     ]
    },
    "xp_RuralProductNoteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "RuralProductNoteMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesEvaluatedatAmortizedCostDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rural product note",
        "label": "Rural Product Note [Member]",
        "documentation": "Rural Product Note"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SMFFundoDeInvestimentoMultimercadoCreditoPrivadoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SMFFundoDeInvestimentoMultimercadoCreditoPrivadoMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SMF Fundo de Investimento Multimercado Cr\u00e9dito Privado [Member]",
        "label": "SMF Fundo de Investimento Multimercado Cr\u00e9dito Privado [Member]",
        "documentation": "SMF Fundo de Investimento Multimercado Cr\u00e9dito Privado"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SOFRRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SOFRRateMember",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SOFR rate [Member]",
        "label": "SOFR rate [Member]",
        "documentation": "SOFR rate"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SalesTaxesAndContributionsOnRevenue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SalesTaxesAndContributionsOnRevenue",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails": {
       "parentTag": "ifrs-full_Revenue",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Sales taxes and contributions on revenue",
        "label": "Sales taxes and contributions on revenue",
        "documentation": "Sales taxes and contributions on revenue"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SartusCapitalLTDMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SartusCapitalLTDMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Holding UK Ltd",
        "label": "Sartus Capital LTD [Member]",
        "documentation": "Sartus Capital LTD"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ScheduleOfLoanOperationsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ScheduleOfLoanOperationsTextBlock",
     "presentation": [
      "http://xpinc.com/role/LoanoperationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loan operations by class, sector of debtor, maturity and concentration",
        "label": "Schedule Of Loan Operations [Text Block]",
        "documentation": "Schedule Of Loan Operations"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ScheduleOfSocialAndStatutoryObligationsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ScheduleOfSocialAndStatutoryObligationsTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/SocialandstatutoryobligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of social and statutory obligations",
        "label": "Schedule of Social and Statutory Obligations [Table Text Block]",
        "documentation": "Schedule of Social and Statutory Obligations"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ScorpioDebenturesIncentivadasFundoDeInvestimentoMultimercadoCrditoPrivadoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ScorpioDebenturesIncentivadasFundoDeInvestimentoMultimercadoCrditoPrivadoMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Scorpio Debentures Incentivadas Fundo de Investimento Multimercado Cr\u00e9dito Privado",
        "label": "Scorpio Debentures Incentivadas Fundo de Investimento Multimercado Cr\u00e9dito Privado [Member]",
        "documentation": "Scorpio Debentures Incentivadas Fundo de Investimento Multimercado Cr\u00e9dito Privado"
       }
      }
     },
     "auth_ref": []
    },
    "xp_Securities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "Securities",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails": {
       "parentTag": "xp_FinancialAssetsIncludingOffBalanceSheetAmounts",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Securities",
        "label": "Securities",
        "documentation": "Securities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SecuritiesClassifiedAsAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SecuritiesClassifiedAsAssetsMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets",
        "label": "Securities classified as assets [Member]",
        "documentation": "Securities classified as assets"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SecuritiesClassifiedAsLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SecuritiesClassifiedAsLiabilitiesMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedbyMaturityDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liabilities",
        "label": "Securities classified as liabilities [Member]",
        "documentation": "Securities classified as liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SecuritiesLoanedDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SecuritiesLoanedDomain",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities loaned",
        "label": "Securities Loaned [Domain]",
        "documentation": "Securities Loaned"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SecuritiesMember",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails",
      "http://xpinc.com/role/RelatedpartytransactionsSummaryoftransactionsbetweenrelatedpartiesexplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities",
        "label": "Securities [Member]",
        "documentation": "Securities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SecuritiesOnSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SecuritiesOnSubsidiaries",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities on Subsidiaries",
        "label": "Securities on Subsidiaries",
        "documentation": "Securities on Subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SecuritiesPlacementIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SecuritiesPlacementIncome",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails": {
       "parentTag": "xp_RevenueBeforeSalesTaxesAndContributionsOnRevenue",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeDisaggregationofrevenuebymajorservicelinesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities placement",
        "label": "Securities placement income",
        "documentation": "Securities placement income"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SecuritiesPurchasedSoldUnderResaleRepurchaseAgreementsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SecuritiesPurchasedSoldUnderResaleRepurchaseAgreementsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Securities purchased sold under resale repurchase agreements [Abstract]",
        "documentation": "Securities purchased under agreements to resell [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SecuritiesPurchasedUnderAgreementsToResellLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SecuritiesPurchasedUnderAgreementsToResellLineItems",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities Purchased Under Agreements to Resell [Line Items]",
        "label": "Securities Purchased Under Agreements to Resell [Line Items]",
        "documentation": "Securities Purchased Under Agreements to Resell [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SecuritiesPurchasedUnderAgreementsToResellTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SecuritiesPurchasedUnderAgreementsToResellTable",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails",
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities Purchased Under Agreements to Resell [Table]",
        "label": "Securities Purchased Under Agreements to Resell [Table]",
        "documentation": "Securities Purchased Under Agreements to Resell [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SecuritiesPurchasedUnderAgreementsToSellMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SecuritiesPurchasedUnderAgreementsToSellMember",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails",
      "http://xpinc.com/role/RelatedpartytransactionsSummaryoftransactionsbetweenrelatedpartiesexplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities purchased under agreements to resell",
        "label": "Securities purchased under agreements to sell [Member]",
        "documentation": "Securities purchased under agreements to sell"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SecuritiesSoldUnderRepurchaseAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SecuritiesSoldUnderRepurchaseAgreementMember",
     "presentation": [
      "http://xpinc.com/role/RelatedpartytransactionsSummaryoftransactionsbetweenrelatedpartiesexplanatoryDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities sold under repurchase agreements",
        "label": "Securities sold under repurchase agreement [Member]",
        "documentation": "Securities sold under repurchase agreement"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SecuritiesSoldUnderRepurchaseAgreementsInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SecuritiesSoldUnderRepurchaseAgreementsInterestRate",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities sold under repurchase agreements, interest rate",
        "label": "Securities sold under repurchase agreements, interest rate",
        "documentation": "Securities sold under repurchase agreements, interest rate"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SecuritiesTradingAndIntermediationLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SecuritiesTradingAndIntermediationLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/SecuritiestradingandintermediationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total Liabilities",
        "label": "Securities trading and intermediation liabilities.",
        "documentation": "Securities trading and intermediation liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "xp_SecuritiesTradingAndIntermediationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SecuritiesTradingAndIntermediationMember",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountECLsmeasuredusingsimplifiedapproachDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossusingsimplifiedmethodDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities trading and intermediation",
        "label": "Securities Trading And Intermediation [Member]",
        "documentation": "Securities Trading And Intermediation"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SecuritiesTradingAndIntermediationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SecuritiesTradingAndIntermediationTextBlock",
     "presentation": [
      "http://xpinc.com/role/Securitiestradingandintermediation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Securities trading and intermediation",
        "label": "Securities Trading and Intermediation [Text Block]",
        "documentation": "Securities Trading and Intermediation"
       }
      }
     },
     "auth_ref": []
    },
    "dei_Security12bTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "Security12bTitle",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Title of 12(b) Security",
        "label": "Title of 12(b) Security",
        "documentation": "Title of a 12(b) registered security."
       }
      }
     },
     "auth_ref": [
      "r353"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Security Exchange Name",
        "label": "Security Exchange Name",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r355"
     ]
    },
    "xp_SecuritySystemsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SecuritySystemsMember",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofdepreciationofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Security systems",
        "label": "Security Systems [Member]",
        "documentation": "Security Systems"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SeedMoneyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SeedMoneyMember",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Seed Money",
        "label": "Seed Money [Member]",
        "documentation": "Seed Money"
       }
      }
     },
     "auth_ref": []
    },
    "srt_SegmentGeographicalDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "SegmentGeographicalDomain",
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofdisaggregationbygeographiclocationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Geographical [Domain]",
        "label": "Geographical [Domain]"
       }
      }
     },
     "auth_ref": [
      "r277",
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r284",
      "r285",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r295",
      "r296",
      "r350",
      "r351",
      "r401",
      "r402"
     ]
    },
    "xp_SelectedAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SelectedAssets",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofdisaggregationbygeographiclocationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Selected assets",
        "label": "Selected assets",
        "documentation": "Selected assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SellingExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SellingExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": -1.0,
       "order": 1.0
      },
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "ifrs-full_OperatingExpenseExcludingCostOfSales",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Selling expenses",
        "totalLabel": "Selling expenses",
        "label": "Selling expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense relating to selling activities of the entity."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "xp_SeniorUnsecuredNotesDueOnJuly12026Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SeniorUnsecuredNotesDueOnJuly12026Member",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Senior Unsecured Notes Due on July 1, 2026",
        "label": "Senior Unsecured Notes Due On July 1, 2026 [Member]",
        "documentation": "Senior Unsecured Notes Due On July 1, 2026"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SensitivityAnalysisForEachTypeOfMarketRisk": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SensitivityAnalysisForEachTypeOfMarketRisk",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of sensitivity analysis",
        "label": "Sensitivity analysis for types of market risk [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the sensitivity analysis for types of market risk to which the entity is exposed, showing how profit or loss and equity would have been affected by changes in the relevant risk variable that were reasonably possible at that date. [Refer: Market risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r242"
     ]
    },
    "xp_SensitivityAnalysisForTypesOfMarketRiskReasonablyPossibleIncreaseDecreaseInRiskVariablePercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SensitivityAnalysisForTypesOfMarketRiskReasonablyPossibleIncreaseDecreaseInRiskVariablePercent",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Reasonably possible increase (decrease) in variable, percent",
        "label": "Sensitivity Analysis For Types Of Market Risk, Reasonably Possible Increase (Decrease) In Risk Variable, Percent",
        "documentation": "Sensitivity Analysis For Types Of Market Risk, Reasonably Possible Increase (Decrease) In Risk Variable, Percent"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SensitivityAnalysisIncreaseDecreaseInFiftyPercent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SensitivityAnalysisIncreaseDecreaseInFiftyPercent",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sensitivity analysis increase decrease in fifty percent",
        "label": "Sensitivity analysis increase decrease in fifty percent",
        "documentation": "Sensitivity analysis increase decrease in fifty percent"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SensitivityAnalysisIncreaseDecreaseInOnePercent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SensitivityAnalysisIncreaseDecreaseInOnePercent",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sensitivity analysis increase decrease in one percent",
        "label": "Sensitivity analysis increase decrease in one percent",
        "documentation": "Sensitivity analysis increase decrease in one percent"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SensitivityAnalysisIncreaseDecreaseInTwentyFivePercent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SensitivityAnalysisIncreaseDecreaseInTwentyFivePercent",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sensitivity analysis increase decrease in twenty five percent",
        "label": "Sensitivity analysis increase decrease in twenty five percent",
        "documentation": "Sensitivity analysis increase decrease in twenty five percent"
       }
      }
     },
     "auth_ref": []
    },
    "xp_Series1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "Series1Member",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Series 1 [Member]",
        "label": "Series 1 [Member]",
        "documentation": "Series 1"
       }
      }
     },
     "auth_ref": []
    },
    "xp_Series2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "Series2Member",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Series 2 [Member]",
        "label": "Series 2 [Member]",
        "documentation": "Series 2"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ServiceTaxPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ServiceTaxPayables",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails": {
       "parentTag": "xp_PayablesOnSocialSecurityAndTaxes",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Taxes on services (ISS)",
        "label": "Service Tax Payables",
        "documentation": "Service Tax Payables"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ServicesPaidInAdvanceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ServicesPaidInAdvanceMember",
     "presentation": [
      "http://xpinc.com/role/PrepaidexpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Services paid in advance",
        "label": "Services paid in advance [Member]",
        "documentation": "Services paid in advance"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ShareBaseCompensationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ShareBaseCompensationMember",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share-based compensation",
        "label": "Share-base Compensation [Member]",
        "documentation": "Share-base Compensation"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ShareBasedIncentiveProgram": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ShareBasedIncentiveProgram",
     "presentation": [
      "http://xpinc.com/role/EarningspersharebasicanddilutedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share-based plan and treasury shares (in shares)",
        "label": "Share Based Incentive Program",
        "documentation": "Share Based Incentive Program"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShareIssueRelatedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ShareIssueRelatedCost",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Share issue related cost",
        "label": "Share issue related cost"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cost related to the issuance of shares."
       }
      }
     },
     "auth_ref": [
      "r364"
     ]
    },
    "ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other comprehensive income",
        "label": "Share of other comprehensive income of associates and joint ventures accounted for using equity method, net of tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The entity's share of the other comprehensive income of associates and joint ventures accounted for using the equity method, net of tax. [Refer: Associates [member]; Investments accounted for using equity method; Joint ventures [member]; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r45",
      "r164"
     ]
    },
    "xp_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesMeasuredAtFairValueNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesMeasuredAtFairValueNetOfTax",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other comprehensive income",
        "label": "Share Of Other Comprehensive Income Of Associates And Joint Ventures Measured At Fair Value, Net Of Tax",
        "documentation": "Share Of Other Comprehensive Income Of Associates And Joint Ventures Measured At Fair Value, Net Of Tax"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesNetOfTax",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other comprehensive income",
        "label": "Share Of Other Comprehensive Income Of Associates And Joint Ventures, Net Of Tax",
        "documentation": "Share Of Other Comprehensive Income Of Associates And Joint Ventures, Net Of Tax"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ShareOfProfitLossOfAssociatesAndJointVentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ShareOfProfitLossOfAssociatesAndJointVentures",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity in earnings",
        "label": "Share Of Profit (Loss) Of Associates And Joint Ventures",
        "documentation": "Share Of Profit (Loss) Of Associates And Joint Ventures"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 5.0
      },
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperations",
       "weight": -1.0,
       "order": 20.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofcashflows",
      "http://xpinc.com/role/Consolidatedstatementsofincomeandofcomprehensiveincome",
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share of profit or (loss) in joint ventures and associates",
        "negatedTerseLabel": "Share of profit or (loss) in joint ventures and associates",
        "label": "Share of profit (loss) of associates and joint ventures accounted for using equity method"
       }
      },
      "en": {
       "role": {
        "documentation": "The entity's share of the profit (loss) of associates and joint ventures accounted for using the equity method. [Refer: Associates [member]; Investments accounted for using equity method; Joint ventures [member]; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r42",
      "r258",
      "r265"
     ]
    },
    "xp_ShareOfProfitLossOfAssociatesMeasuredAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ShareOfProfitLossOfAssociatesMeasuredAtFairValue",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity in earnings",
        "label": "Share Of Profit (Loss) Of Associates Measured At Fair Value",
        "documentation": "Share Of Profit (Loss) Of Associates Measured At Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ShareRepurchaseLimit": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ShareRepurchaseLimit",
     "presentation": [
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share repurchase limit",
        "label": "Share repurchase limit",
        "documentation": "Represents Share repurchase limit."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SharebasedPaymentArrangementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SharebasedPaymentArrangementsMember",
     "presentation": [
      "http://xpinc.com/role/SharebasedplanActivityofRSUsandPSUsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share-based payment arrangements [member]",
        "label": "Share-based payment arrangements [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for an agreement between the entity or another group entity or any shareholder of the group entity and another party (including an employee) that entitles the other party to receive (a) cash or other assets of the entity for amounts that are based on the price (or value) of equity instruments (including shares or share options) of the entity or another group entity; or (b) equity instruments (including shares or share options) of the entity or another group entity, provided that the specified vesting conditions, if any, are met. It also represents the standard value for the 'Types of share-based payment arrangements' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r203"
     ]
    },
    "xp_SharesCancellationApproved": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SharesCancellationApproved",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shares cancellation approved",
        "label": "Shares cancellation approved",
        "documentation": "Represents Shares cancellation approved."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SharesInEntityHeldByEntityOrByItsSubsidiariesOrAssociates": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SharesInEntityHeldByEntityOrByItsSubsidiariesOrAssociates",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of shares held in treasury",
        "label": "Number of shares in entity held by entity or by its subsidiaries or associates"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of shares in the entity held by the entity or by its subsidiaries or associates. [Refer: Associates [member]; Subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r30"
     ]
    },
    "xp_SharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SharesMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Share",
        "label": "Shares [Member]",
        "documentation": "Shares"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SharesPricesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SharesPricesMember",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shares prices",
        "label": "Shares prices [Member]",
        "documentation": "Shares prices"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SharesRedemptionPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SharesRedemptionPeriod",
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shares, redemption period",
        "label": "Shares, Redemption Period",
        "documentation": "Shares, Redemption Period"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SharesRepurchasedAndHeldInTreasury": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SharesRepurchasedAndHeldInTreasury",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shares repurchased and held in treasury",
        "label": "Shares repurchased and held in treasury",
        "documentation": "Represents shares repurchased and held in treasury"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SharesReservedForIssueUnderOptionsAndContractsForSaleOfShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SharesReservedForIssueUnderOptionsAndContractsForSaleOfShares",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails",
      "http://xpinc.com/role/SharebasedplanAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of shares reserved for issue under options and contracts for sale of shares",
        "label": "Number of shares reserved for issue under options and contracts for sale of shares"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of shares reserved for issue under options and contracts for the sale of shares."
       }
      }
     },
     "auth_ref": [
      "r31"
     ]
    },
    "ifrs-full_ShorttermDepositsClassifiedAsCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ShorttermDepositsClassifiedAsCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedstatementsofcashflows": {
       "parentTag": "ifrs-full_CashAndCashEquivalents",
       "weight": 1.0,
       "order": 3.0
      },
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails": {
       "parentTag": "ifrs-full_NetDebt",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/CapitalmanagementSummaryofnetdebtandcorrespondinggearingratiosDetails",
      "http://xpinc.com/role/Consolidatedstatementsofcashflows",
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interbank certificate deposits",
        "negatedLabel": "Certificate deposits (Securities)",
        "label": "Short-term deposits, classified as cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "A classification of cash equivalents representing short-term deposits. [Refer: Cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r394"
     ]
    },
    "ifrs-full_ShorttermEmployeeBenefitsAccruals": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ShorttermEmployeeBenefitsAccruals",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/SocialandstatutoryobligationsSummaryofsocialandstatutoryobligationsDetails": {
       "parentTag": "xp_SocialAndStatutoryObligations",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/SocialandstatutoryobligationsSummaryofsocialandstatutoryobligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Salaries and other benefits payable",
        "label": "Short-term employee benefits accruals"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of accruals for employee benefits (other than termination benefits) that are expected to be settled wholly within twelve months after the end of the annual reporting period in which the employees render the related services. [Refer: Accruals classified as current]"
       }
      }
     },
     "auth_ref": [
      "r369"
     ]
    },
    "xp_SignificantAndEstimatedJudgementsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SignificantAndEstimatedJudgementsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Significant and Estimated Judgements [Abstract]",
        "documentation": "Significant and Estimated Judgements"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SignificantInvestmentsInAssociatesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SignificantInvestmentsInAssociatesAxis",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Associates [axis]",
        "label": "Associates [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r87",
      "r91",
      "r167"
     ]
    },
    "ifrs-full_SignificantInvestmentsInSubsidiariesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SignificantInvestmentsInSubsidiariesAxis",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails",
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsAdditionalinformationDetails",
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsidiaries [axis]",
        "label": "Subsidiaries [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r87",
      "r91",
      "r165"
     ]
    },
    "ifrs-full_SignificantUnobservableInputLiabilities": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SignificantUnobservableInputLiabilities",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted average discount rate",
        "label": "Significant unobservable input, liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The value of significant unobservable input used in the measurement of the fair value of liabilities."
       }
      }
     },
     "auth_ref": [
      "r170"
     ]
    },
    "xp_SocialAndStatutoryObligations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SocialAndStatutoryObligations",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_OtherLiabilities",
       "weight": 1.0,
       "order": 5.0
      },
      "http://xpinc.com/role/SocialandstatutoryobligationsSummaryofsocialandstatutoryobligationsDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/SocialandstatutoryobligationsAdditionalinformationDetails",
      "http://xpinc.com/role/SocialandstatutoryobligationsSummaryofsocialandstatutoryobligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Social and statutory obligations",
        "totalLabel": "Social and statutory obligations",
        "label": "Social And Statutory Obligations",
        "documentation": "Social And Statutory Obligations"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SocialAndStatutoryObligationsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SocialAndStatutoryObligationsTextBlock",
     "presentation": [
      "http://xpinc.com/role/Socialandstatutoryobligations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Social and Statutory obligations",
        "label": "Social and Statutory Obligations [Text Block]",
        "documentation": "Social and Statutory Obligations"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SocialContributionTaxOnNetIncome": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SocialContributionTaxOnNetIncome",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Social contribution tax on net income",
        "label": "Social Contribution Tax on Net Income",
        "documentation": "Social Contribution Tax on Net Income"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SocialContributionTaxOnNetIncomeTemporaryIncrease": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SocialContributionTaxOnNetIncomeTemporaryIncrease",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Social contribution tax on net income temporary increase",
        "label": "Social Contribution Tax on Net Income Temporary Increase",
        "documentation": "Social Contribution Tax on Net Income Temporary Increase"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SocialSecurityContributions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SocialSecurityContributions",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "xp_PersonnelExpenses",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Social charges",
        "label": "Social security contributions"
       }
      },
      "en": {
       "role": {
        "documentation": "A class of employee benefits expense that represents social security contributions. [Refer: Employee benefits expense]"
       }
      }
     },
     "auth_ref": [
      "r378"
     ]
    },
    "xp_SpathaFundoDeInvestimentoMultimercadoCrditoPrivadoInvestimentoNoExteriorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SpathaFundoDeInvestimentoMultimercadoCrditoPrivadoInvestimentoNoExteriorMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Spatha Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior",
        "label": "Spatha Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior [Member]",
        "documentation": "Spatha Fundo de Investimento Multimercado Cr\u00e9dito Privado Investimento no Exterior"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SpeciallyConstitutedInvestmentFundMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SpeciallyConstitutedInvestmentFundMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Specially Constituted Investment Fund",
        "label": "Specially Constituted Investment Fund [Member]",
        "documentation": "Specially Constituted Investment Fund"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SpitiAnliseLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SpitiAnliseLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Spiti An\u00e1lise Ltda.",
        "label": "Spiti An\u00e1lise Ltda. [Member]",
        "documentation": "Spiti An\u00e1lise Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_Stage1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "Stage1Member",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 1",
        "label": "Stage 1 [Member]",
        "documentation": "Stage 1"
       }
      }
     },
     "auth_ref": []
    },
    "xp_Stage2Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "Stage2Member",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 2",
        "label": "Stage 2 [Member]",
        "documentation": "Stage 2"
       }
      }
     },
     "auth_ref": []
    },
    "xp_Stage3Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "Stage3Member",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 3",
        "label": "Stage 3 [Member]",
        "documentation": "Stage 3"
       }
      }
     },
     "auth_ref": []
    },
    "xp_StageOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "StageOneMember",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 1",
        "label": "Stage one [Member]",
        "documentation": "Stage one"
       }
      }
     },
     "auth_ref": []
    },
    "xp_StageThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "StageThreeMember",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 3",
        "label": "Stage three [Member]",
        "documentation": "Stage three"
       }
      }
     },
     "auth_ref": []
    },
    "xp_StageTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "StageTwoMember",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stage 2",
        "label": "Stage two [Member]",
        "documentation": "Stage two"
       }
      }
     },
     "auth_ref": []
    },
    "srt_StatementGeographicalAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2023",
     "localname": "StatementGeographicalAxis",
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofdisaggregationbygeographiclocationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Geographical [Axis]",
        "label": "Geographical [Axis]"
       }
      }
     },
     "auth_ref": [
      "r277",
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r284",
      "r285",
      "r286",
      "r287",
      "r288",
      "r289",
      "r290",
      "r291",
      "r292",
      "r293",
      "r294",
      "r295",
      "r296",
      "r350",
      "r351",
      "r401",
      "r402"
     ]
    },
    "ifrs-full_StatementOfCashFlowsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "StatementOfCashFlowsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of cash flows [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatementOfChangesInEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "StatementOfChangesInEquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of changes in equity [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatementOfChangesInEquityLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "StatementOfChangesInEquityLineItems",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity",
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement of changes in equity [line items]",
        "label": "Statement of changes in equity [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatementOfChangesInEquityTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "StatementOfChangesInEquityTable",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity",
      "http://xpinc.com/role/OperationsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement of changes in equity [table]",
        "label": "Statement of changes in equity [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to changes in equity."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "ifrs-full_StatementOfFinancialPositionAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "StatementOfFinancialPositionAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of financial position [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_StocksIssuesByPubliclyHeldCompanyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "StocksIssuesByPubliclyHeldCompanyMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Stocks issued by public-held company",
        "label": "Stocks Issues by Publicly-held Company [Member]",
        "documentation": "Stocks Issues by Publicly-held Company"
       }
      }
     },
     "auth_ref": []
    },
    "xp_StructuredFinancing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "StructuredFinancing",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails": {
       "parentTag": "ifrs-full_OtherFinancialLiabilities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Structured financing",
        "label": "Structured financing",
        "documentation": "Structured financing"
       }
      }
     },
     "auth_ref": []
    },
    "xp_StructuredNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "StructuredNotesMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Structured notes",
        "label": "Structured notes [Member]",
        "documentation": "Structured notes"
       }
      }
     },
     "auth_ref": []
    },
    "xp_StructuredTransactionCertificateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "StructuredTransactionCertificateMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Structured notes",
        "label": "Structured Transaction Certificate [Member]",
        "documentation": "Structured Transaction Certificate"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SubclassificationsOfAssetsLiabilitiesAndEquitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SubclassificationsOfAssetsLiabilitiesAndEquitiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Subclassifications of assets, liabilities and equities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SubclassificationsOfAssetsLiabilitiesAndEquitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SubclassificationsOfAssetsLiabilitiesAndEquitiesLineItems",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails",
      "http://xpinc.com/role/RecoverabletaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subclassifications of assets, liabilities and equities [Line Items]",
        "label": "Subclassifications of assets, liabilities and equities [Line Items]",
        "documentation": "Subclassifications of assets, liabilities and equities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SubclassificationsOfAssetsLiabilitiesAndEquityLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SubclassificationsOfAssetsLiabilitiesAndEquityLineItems",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subclassifications of Assets, Liabilities, and Equity [Line Items]",
        "label": "Subclassifications of Assets, Liabilities, and Equity [Line Items]",
        "documentation": "Subclassifications of Assets, Liabilities, and Equity [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SubclassificationsOfAssetsLiabilitiesAndEquityTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SubclassificationsOfAssetsLiabilitiesAndEquityTable",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableMaturityDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableScheduleDetails",
      "http://xpinc.com/role/RecoverabletaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subclassifications of Assets, Liabilities, and Equity [Table]",
        "label": "Subclassifications of Assets, Liabilities, and Equity [Table]",
        "documentation": "Subclassifications of Assets, Liabilities, and Equity [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SubsidiaryAcquisitionPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SubsidiaryAcquisitionPercentage",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsidiary acquisition percentage",
        "label": "Subsidiary acquisition percentage",
        "documentation": "Subsidiary acquisition percentage"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SueciaIFundoDeInvestimentoMultimercadoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SueciaIFundoDeInvestimentoMultimercadoMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Su\u00e9cia I Fundo de Investimento Multimercado [Member]",
        "label": "Su\u00e9cia I Fundo de Investimento Multimercado [Member]",
        "documentation": "Su\u00e9cia I Fundo de Investimento Multimercado"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SueciaIIFundoDeInvestimentoMultimercadoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SueciaIIFundoDeInvestimentoMultimercadoMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Su\u00e9cia II Fundo de Investimento Multimercado [Member]",
        "label": "Su\u00e9cia II Fundo de Investimento Multimercado [Member]",
        "documentation": "Su\u00e9cia II Fundo de Investimento Multimercado"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfDerivativeFinancialInstrumentsByIndexTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfDerivativeFinancialInstrumentsByIndexTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of derivative financial instruments by index",
        "label": "Summary of derivative financial instruments by index [Table Text Block]",
        "documentation": "Summary of derivative financial instruments by index"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfDerivativeFinancialInstrumentsByMaturityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfDerivativeFinancialInstrumentsByMaturityTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of derivative financial instruments by maturity",
        "label": "Summary of derivative financial instruments by maturity [Table Text Block]",
        "documentation": "Summary of derivative financial instruments by maturity"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfFairValueAndRemainingContractualPrincipalBalanceOutstandingTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfFairValueAndRemainingContractualPrincipalBalanceOutstandingTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/SecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Fair Value and Remaining Contractual Principal Balance Outstanding",
        "label": "Summary of Fair Value and Remaining Contractual Principal Balance Outstanding [Table Text Block]",
        "documentation": "Summary of Fair Value and Remaining Contractual Principal Balance Outstanding"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfFairValueOfTheIdentifiableAssetsAcquiredAndLiabilities1TableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfFairValueOfTheIdentifiableAssetsAcquiredAndLiabilities1TableTextBlock",
     "presentation": [
      "http://xpinc.com/role/GroupstructureTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of fair value of the identifiable assets acquired and liabilities1 [Table Text Block]",
        "label": "Summary of fair value of the identifiable assets acquired and liabilities1 [Table Text Block]",
        "documentation": "Summary of fair value of the identifiable assets acquired and liabilities1"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfFairValueOfTheIdentifiableAssetsAcquiredAndLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfFairValueOfTheIdentifiableAssetsAcquiredAndLiabilitiesTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/GroupstructureTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of fair value of the identifiable assets acquired and liabilities",
        "label": "Summary of fair value of the identifiable assets acquired and liabilities [Table Text Block]",
        "documentation": "Summary of fair value of the identifiable assets acquired and liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfFinancialAssetsAtAmortizedCostSecuritiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfFinancialAssetsAtAmortizedCostSecuritiesTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/SecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Financial Assets At Amortized Cost Securities",
        "label": "Summary of Financial Assets At Amortized Cost Securities [Table Text Block]",
        "documentation": "Summary of Financial Assets At Amortized Cost Securities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfOperatingCostsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfOperatingCostsTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/OperatingcostsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of operating costs",
        "label": "Summary of Operating Costs [Table Text Block]",
        "documentation": "Summary of Operating Costs"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfOtherFinancialLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfOtherFinancialLiabilitiesTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of other financial liabilities",
        "label": "Summary of Other Financial Liabilities [Table Text Block]",
        "documentation": "Summary of Other Financial Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfPrepaidExpensesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfPrepaidExpensesAxis",
     "presentation": [
      "http://xpinc.com/role/PrepaidexpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Prepaid Expenses [Axis]",
        "label": "Summary of Prepaid Expenses [Axis]",
        "documentation": "Summary of Prepaid Expenses"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfPrepaidExpensesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfPrepaidExpensesDomain",
     "presentation": [
      "http://xpinc.com/role/PrepaidexpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Prepaid Expenses [Domain]",
        "label": "Summary of Prepaid Expenses [Domain]",
        "documentation": "Summary of Prepaid Expenses"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfPrepaidExpensesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfPrepaidExpensesLineItems",
     "presentation": [
      "http://xpinc.com/role/PrepaidexpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Prepaid Expenses [Line Items]",
        "label": "Summary of Prepaid Expenses [Line Items]",
        "documentation": "Summary of Prepaid Expenses"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfPrepaidExpensesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfPrepaidExpensesTable",
     "presentation": [
      "http://xpinc.com/role/PrepaidexpensesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Prepaid Expenses [Table]",
        "label": "Summary of Prepaid Expenses [Table]",
        "documentation": "Summary of Prepaid Expenses [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfPrepaidExpensesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfPrepaidExpensesTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/PrepaidexpensesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of prepaid expenses",
        "label": "Summary of prepaid expenses [Table Text Block]",
        "documentation": "Summary of prepaid expenses"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfRecoverableTaxesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfRecoverableTaxesAxis",
     "presentation": [
      "http://xpinc.com/role/RecoverabletaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Recoverable Taxes [Axis]",
        "label": "Summary of Recoverable Taxes [Axis]",
        "documentation": "Summary of Recoverable Taxes"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfRecoverableTaxesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfRecoverableTaxesDomain",
     "presentation": [
      "http://xpinc.com/role/RecoverabletaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Recoverable Taxes [Domain]",
        "label": "Summary of Recoverable Taxes [Domain]",
        "documentation": "Summary of Recoverable Taxes"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfRecoverableTaxesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfRecoverableTaxesTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/RecoverabletaxesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of recoverable taxes",
        "label": "Summary of recoverable taxes [Table Text Block]",
        "documentation": "Summary of recoverable taxes"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfSecuritiesClassifiedAtFairValueThroughProfitAndLossAndAtFairValueThroughOtherComprehensiveIncomeTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfSecuritiesClassifiedAtFairValueThroughProfitAndLossAndAtFairValueThroughOtherComprehensiveIncomeTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/SecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Securities Classified At Fair Value Through Profit And Loss And At Fair Value Through Other Comprehensive Income",
        "label": "Summary of Securities Classified At Fair Value Through Profit And Loss And At Fair Value Through Other Comprehensive Income [Table Text Block]",
        "documentation": "Summary of Securities Classified At Fair Value Through Profit And Loss And At Fair Value Through Other Comprehensive Income"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfSecuritiesClassifiedAtFairValueThroughProfitAndLossTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfSecuritiesClassifiedAtFairValueThroughProfitAndLossTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/SecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Securities classified at fair value through profit and loss [Table Text Block]",
        "label": "Summary of Securities classified at fair value through profit and loss [Table Text Block]",
        "documentation": "Summary of Securities classified at fair value through profit and loss"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfSecuritiesClassifiedByMaturityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfSecuritiesClassifiedByMaturityTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/SecuritiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Securities classified by maturity",
        "label": "Summary of Securities classified by maturity [Table Text Block]",
        "documentation": "Summary of Securities classified by maturity"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfSecuritiesPurchasedUnderAgreementsToResellLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfSecuritiesPurchasedUnderAgreementsToResellLineItems",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSummaryofsecuritiespurchasedunderagreementstoresellDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Securities Purchased Under Agreements to Resell [Line Items]",
        "label": "Summary of Securities Purchased Under Agreements to Resell [Line Items]",
        "documentation": "Summary of Securities Purchased Under Agreements to Resell"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfSecuritiesPurchasedUnderAgreementsToResellTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfSecuritiesPurchasedUnderAgreementsToResellTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of securities purchased under agreements to resell",
        "label": "Summary of Securities Purchased Under Agreements To Resell [Table Text Block]",
        "documentation": "Summary of Securities Purchased Under Agreements To Resell"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfSecuritiesTradingAndIntermediationAssetsAndLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfSecuritiesTradingAndIntermediationAssetsAndLiabilitiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Summary of Securities, Trading and Intermediation Assets and Liabilities [Abstract]",
        "documentation": "Summary of Securities, Trading and Intermediation Assets and Liabilities [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfSecuritiesTradingAndIntermediationAssetsAndLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfSecuritiesTradingAndIntermediationAssetsAndLiabilitiesTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/SecuritiestradingandintermediationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of securities trading and intermediation assets and liabilities",
        "label": "Summary of Securities Trading and Intermediation Assets and Liabilities [Table Text Block]",
        "documentation": "Summary of Securities Trading and Intermediation Assets and Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfSignificantAccountingPoliciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfSignificantAccountingPoliciesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Significant Accounting Policies [Abstract]",
        "label": "Summary of Significant Accounting Policies [Abstract]",
        "documentation": "Summary of Significant Accounting Policies [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfSignificantAccountingPoliciesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfSignificantAccountingPoliciesLineItems",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Significant Accounting Policies [Line Items]",
        "label": "Summary of Significant Accounting Policies [Line Items]",
        "documentation": "Summary of Significant Accounting Policies"
       }
      }
     },
     "auth_ref": []
    },
    "xp_SummaryOfTaxAndSocialSecurityObligationsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "SummaryOfTaxAndSocialSecurityObligationsTableTextBlock",
     "presentation": [
      "http://xpinc.com/role/TaxandsocialsecurityobligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of tax and social security obligations",
        "label": "Summary of Tax and Social Security Obligations [Table Text Block]",
        "documentation": "Summary of Tax and Social Security Obligations"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SwapContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "SwapContractMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsbyindexDetails",
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails",
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Swap contracts",
        "netLabel": "Swap Contracts",
        "terseLabel": "Swap contract [member]",
        "label": "Swap contract [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a derivative financial instrument that involves the exchange of cash flow streams between the parties of the contract over a specified period. [Refer: Derivatives [member]]"
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "xp_TaxAndSocialSecurityObligationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TaxAndSocialSecurityObligationsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax and Social Security Obligations [Abstract]",
        "documentation": "Tax and Social Security Obligations [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "xp_TaxAndSocialSecurityObligationsOfSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TaxAndSocialSecurityObligationsOfSubsidiaries",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax and social security obligations of subsidiaries",
        "label": "Tax and social security obligations of subsidiaries",
        "documentation": "Tax and social security obligations of subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "xp_TaxAndSocialSecurityObligationsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TaxAndSocialSecurityObligationsTextBlock",
     "presentation": [
      "http://xpinc.com/role/Taxandsocialsecurityobligations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax and social security obligations",
        "label": "Tax and Social Security Obligations [Text Block]",
        "documentation": "Tax and Social Security Obligations"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TaxContingentLiabilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TaxContingentLiabilityMember",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesAdditionalinformationDetails",
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofcontingentliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax",
        "label": "Tax contingent liability [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a contingent liability for taxes. [Refer: Contingent liabilities [member]]"
       }
      }
     },
     "auth_ref": [
      "r380"
     ]
    },
    "ifrs-full_TaxEffectFromChangeInTaxRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TaxEffectFromChangeInTaxRate",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofincometaxcalculationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loss (income) from entities not subject to deferred taxation",
        "label": "Tax effect from change in tax rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount that represents the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that relates to changes in the tax rate. [Refer: Accounting profit]"
       }
      }
     },
     "auth_ref": [
      "r54"
     ]
    },
    "ifrs-full_TaxEffectOfExpenseNotDeductibleInDeterminingTaxableProfitTaxLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TaxEffectOfExpenseNotDeductibleInDeterminingTaxableProfitTaxLoss",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofincometaxcalculationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Non-deductible expenses (non-taxable income)",
        "label": "Tax effect of expense not deductible in determining taxable profit (tax loss)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount that represents the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that relates to expenses not deductible in determining taxable profit (tax loss). [Refer: Accounting profit]"
       }
      }
     },
     "auth_ref": [
      "r54"
     ]
    },
    "ifrs-full_TaxEffectOfForeignTaxRates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TaxEffectOfForeignTaxRates",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofincometaxcalculationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Effects from entities taxed at different rates",
        "label": "Tax effect of foreign tax rates"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount that represents the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that relates to foreign tax rates. [Refer: Accounting profit]"
       }
      }
     },
     "auth_ref": [
      "r54"
     ]
    },
    "xp_TaxEffectOfInterCompanyTransactionsWithDifferentTaxation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TaxEffectOfInterCompanyTransactionsWithDifferentTaxation",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofincometaxcalculationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Effects from entities taxed at different taxation regimes",
        "label": "Tax Effect Of Inter company Transactions with Different Taxation",
        "documentation": "Tax Effect Of Inter company Transactions with Different Taxation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TaxEffectOfRevenuesExemptFromTaxation2011": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TaxEffectOfRevenuesExemptFromTaxation2011",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofincometaxcalculationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Intercompany transactions with different taxation regimes",
        "label": "Tax effect of revenues exempt from taxation"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount that represents the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that relates to revenues that are exempt from taxation. [Refer: Accounting profit]"
       }
      }
     },
     "auth_ref": [
      "r54"
     ]
    },
    "ifrs-full_TaxExpenseIncomeAtApplicableTaxRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TaxExpenseIncomeAtApplicableTaxRate",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofincometaxcalculationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax expense at the combined rate",
        "label": "Tax expense (income) at applicable tax rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The product of the accounting profit multiplied by the applicable tax rate(s). [Refer: Accounting profit; Applicable tax rate]"
       }
      }
     },
     "auth_ref": [
      "r54"
     ]
    },
    "ifrs-full_TaxExpenseOtherThanIncomeTaxExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TaxExpenseOtherThanIncomeTaxExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "ifrs-full_AdministrativeExpense",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other taxes expenses",
        "label": "Tax expense other than income tax expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of tax expense exclusive of income tax expense."
       }
      }
     },
     "auth_ref": [
      "r371"
     ]
    },
    "xp_TaxIncentiveExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TaxIncentiveExpenses",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails": {
       "parentTag": "ifrs-full_MiscellaneousOtherOperatingExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OtheroperatingincomeexpensesnetDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Tax incentive expenses",
        "label": "Tax incentive expenses",
        "documentation": "Tax incentive expenses"
       }
      }
     },
     "auth_ref": []
    },
    "xp_TaxIncentives": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TaxIncentives",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofincometaxcalculationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax incentives",
        "label": "Tax incentives",
        "documentation": "Tax incentives"
       }
      }
     },
     "auth_ref": []
    },
    "xp_TaxProvisionsAndDoesNotIncludeAnyTaxBenefitsOnTotalShareBasedCompensationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TaxProvisionsAndDoesNotIncludeAnyTaxBenefitsOnTotalShareBasedCompensationExpense",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/SharebasedplanAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax provisions and does not include any tax benefits on total share based compensation expense",
        "label": "Tax Provisions And Does Not Include Any Tax Benefits On Total Share Based Compensation Expense",
        "documentation": "Tax Provisions And Does Not Include Any Tax Benefits On Total Share Based Compensation Expense"
       }
      }
     },
     "auth_ref": []
    },
    "xp_TaxProvisionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TaxProvisionsMember",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofotherprovisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax contingencies",
        "label": "Tax Provisions [Member]",
        "documentation": "Tax Provisions"
       }
      }
     },
     "auth_ref": []
    },
    "xp_TaxTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TaxTypeAxis",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax Type [Axis]",
        "label": "Tax Type [Axis]",
        "documentation": "Tax Type"
       }
      }
     },
     "auth_ref": []
    },
    "xp_TaxTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TaxTypeDomain",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax Type [Domain]",
        "label": "Tax Type [Domain]",
        "documentation": "Tax Type"
       }
      }
     },
     "auth_ref": []
    },
    "xp_TaxesAndContributionsOnFinancialIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TaxesAndContributionsOnFinancialIncome",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofnetincomefromfinancialinstrumentsDetails": {
       "parentTag": "xp_NetIncomeFromFinancialInstruments",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofnetincomefromfinancialinstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Taxes and contributions on financial income",
        "label": "Taxes and contributions on financial income",
        "documentation": "Taxes and contributions on financial income"
       }
      }
     },
     "auth_ref": []
    },
    "xp_TaxesAndSocialSecurityObligationsOnSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TaxesAndSocialSecurityObligationsOnSubsidiaries",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Taxes and social security obligations on subsidiaries",
        "label": "Taxes and social security obligations on subsidiaries",
        "documentation": "Taxes and social security obligations on subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "xp_TaxesOnServiceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TaxesOnServiceMember",
     "presentation": [
      "http://xpinc.com/role/RecoverabletaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Taxes on service",
        "label": "Taxes on service [Member]",
        "documentation": "Represents taxes on service."
       }
      }
     },
     "auth_ref": []
    },
    "xp_TaxesOnServicesISSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TaxesOnServicesISSMember",
     "presentation": [
      "http://xpinc.com/role/RecoverabletaxesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ISS",
        "label": "Taxes on Services ISS [Member]",
        "documentation": "Taxes on Services ISS"
       }
      }
     },
     "auth_ref": []
    },
    "xp_TecfinanceInformticaEProjetosDeSistemasLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TecfinanceInformticaEProjetosDeSistemasLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tecfinance Inform\u00e1tica e Projetos de Sistemas Ltda.",
        "label": "Tecfinance Inform\u00e1tica e Projetos de Sistemas Ltda. [Member]",
        "documentation": "Tecfinance Inform\u00e1tica e Projetos de Sistemas Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_TechnicalServiceExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TechnicalServiceExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "ifrs-full_OtherExpenseByNature",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Technical services",
        "label": "Technical service expense",
        "documentation": "Technical service expense"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TechnologybasedIntangibleAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TechnologybasedIntangibleAssetsMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
      "http://xpinc.com/role/GroupstructureSummaryofintangibleassetsacquiredDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Software",
        "label": "Technology-based intangible assets [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets representing assets based on technology. Such assets may include patented and unpatented technology, databases as well as trade secrets. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r387"
     ]
    },
    "ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Temporary difference, unused tax losses and unused tax credits [axis]",
        "label": "Temporary difference, unused tax losses and unused tax credits [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsMember",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Temporary difference, unused tax losses and unused tax credits",
        "label": "Temporary difference, unused tax losses and unused tax credits [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for temporary differences, unused tax losses and unused tax credits. It also represents the standard value for the 'Temporary difference, unused tax losses and unused tax credits' axis if no other member is used. [Refer: Temporary differences [member]; Unused tax credits [member]; Unused tax losses [member]]"
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "xp_TheEffectivenessOfTheHedgeEligibleRiskFactorsDesignatedCoverageRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TheEffectivenessOfTheHedgeEligibleRiskFactorsDesignatedCoverageRate",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "The effectiveness of the hedge-eligible risk factor's designated coverage rate",
        "label": "The effectiveness of the hedge-eligible risk factor's designated coverage rate",
        "documentation": "The effectiveness of the hedge-eligible risk factor's designated coverage rate"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ThirdPartiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ThirdPartiesMember",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Third Parties",
        "label": "Third Parties [Member]",
        "documentation": "Third Parties"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ThirdPartyServiceExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ThirdPartyServiceExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "ifrs-full_OtherExpenseByNature",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Third parties' services",
        "label": "Third party service expense",
        "documentation": "Third party service expense"
       }
      }
     },
     "auth_ref": []
    },
    "xp_ThirdPartyServices": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ThirdPartyServices",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingcostsDetails": {
       "parentTag": "xp_OtherCosts",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingcostsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Third parties\u2019 services",
        "label": "Third Party Services",
        "documentation": "Third Party Services"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TopOfRangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TopOfRangeMember",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails",
      "http://xpinc.com/role/HedgeaccountingAdditionalInformationDetails",
      "http://xpinc.com/role/OperationsAdditionalinformationDetails",
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofusefullivesofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Top of range",
        "label": "Top of range [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for top of a range."
       }
      }
     },
     "auth_ref": [
      "r175",
      "r193",
      "r202",
      "r322",
      "r323",
      "r399"
     ]
    },
    "xp_TotalAssetsOnSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TotalAssetsOnSubsidiaries",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total assets on subsidiaries",
        "label": "Total assets on subsidiaries",
        "documentation": "Total assets on subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "xp_TotalFinancialLiabilitiesRecognizedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TotalFinancialLiabilitiesRecognizedAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Financial liabilities recognized as of acquisition date",
        "label": "Total Financial liabilities recognized as of acquisition date",
        "documentation": "Total Financial liabilities recognized as of acquisition date"
       }
      }
     },
     "auth_ref": []
    },
    "xp_TotalIdentifiableNetAssetsAtFairValueOnSubsidiaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TotalIdentifiableNetAssetsAtFairValueOnSubsidiaries",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total identifiable net assets at fair value on subsidiaries",
        "label": "Total identifiable net assets at fair value on subsidiaries",
        "documentation": "Total identifiable net assets at fair value on subsidiaries"
       }
      }
     },
     "auth_ref": []
    },
    "xp_TrackNdicesConsultoriaLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TrackNdicesConsultoriaLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Track \u00cdndices Consultoria Ltda. (v)",
        "label": "Track \u00cdndices Consultoria Ltda. [Member]",
        "documentation": "Track \u00cdndices Consultoria Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TradeAndOtherPayablesToTradeSuppliers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TradeAndOtherPayablesToTradeSuppliers",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialLiabilitiesAtAmortisedCost",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts payables",
        "label": "Trade payables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of payment due to suppliers for goods and services used in the entity's business."
       }
      }
     },
     "auth_ref": [
      "r369"
     ]
    },
    "ifrs-full_TradeAndOtherReceivablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TradeAndOtherReceivablesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other receivables [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TradeReceivables",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails": {
       "parentTag": "xp_FinancialAssetsIncludingOffBalanceSheetAmounts",
       "weight": 1.0,
       "order": 3.0
      },
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_FinancialAssetsAtAmortisedCost",
       "weight": 1.0,
       "order": 6.0
      },
      "http://xpinc.com/role/AccountsreceivableDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://xpinc.com/role/AccountsreceivableDetails",
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Accounts receivable",
        "totalLabel": "Total",
        "label": "Trade receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount due from customers for goods and services sold."
       }
      }
     },
     "auth_ref": [
      "r300"
     ]
    },
    "ifrs-full_TradeReceivablesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TradeReceivablesMember",
     "presentation": [
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountECLsmeasuredusingsimplifiedapproachDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlosssegregatedbyproductDetails",
      "http://xpinc.com/role/ExpectedCreditLossesonFinancialAssetsandReconciliationofcarryingamountExpectedcreditlossusingsimplifiedmethodDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts Receivable",
        "label": "Trade receivables [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for trade receivables. [Refer: Trade receivables]"
       }
      }
     },
     "auth_ref": [
      "r236",
      "r240",
      "r332",
      "r366"
     ]
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2023",
     "localname": "TradingSymbol",
     "presentation": [
      "http://xpinc.com/role/Cover"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Trading Symbol",
        "label": "Trading Symbol",
        "documentation": "Trading symbol of an instrument as listed on an exchange."
       }
      }
     },
     "auth_ref": []
    },
    "xp_TransferOfClassOfShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "TransferOfClassOfShares",
     "presentation": [
      "http://xpinc.com/role/EquitySummaryofissuancesandconversationsofsharesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfer of classes",
        "label": "Transfer of class of shares",
        "documentation": "Transfer of class of shares"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TravelExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TravelExpense",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "ifrs-full_OtherExpenseByNature",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Travel",
        "label": "Travel expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense arising from travel."
       }
      }
     },
     "auth_ref": [
      "r366"
     ]
    },
    "ifrs-full_TreasuryShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TreasuryShares",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/Consolidatedbalancesheets": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/Consolidatedbalancesheets",
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Treasury shares",
        "terseLabel": "Treasury shares",
        "label": "Treasury shares"
       }
      },
      "en": {
       "role": {
        "documentation": "An entity\u2019s own equity instruments, held by the entity or other members of the consolidated group."
       }
      }
     },
     "auth_ref": [
      "r92",
      "r301"
     ]
    },
    "ifrs-full_TreasurySharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TreasurySharesMember",
     "presentation": [
      "http://xpinc.com/role/Consolidatedstatementsofchangesinequity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Treasury shares",
        "label": "Treasury shares [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the entity\u2019s own equity instruments, held by the entity or other members of the consolidated group."
       }
      }
     },
     "auth_ref": [
      "r6"
     ]
    },
    "ifrs-full_TypesOfFinancialAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TypesOfFinancialAssetsAxis",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Types of financial assets [axis]",
        "label": "Types of financial assets [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r253",
      "r254"
     ]
    },
    "ifrs-full_TypesOfFinancialLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TypesOfFinancialLiabilitiesAxis",
     "presentation": [
      "http://xpinc.com/role/SecuritiespurchasedsoldunderresalerepurchaseagreementsSecuritiessoldunderrepurchaseagreementsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Types of financial liabilities [axis]",
        "label": "Types of financial liabilities [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r253",
      "r254"
     ]
    },
    "ifrs-full_TypesOfHedgesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TypesOfHedgesAxis",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingHedgediteminformationDetails",
      "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails",
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Types of hedges [axis]",
        "label": "Types of hedges [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r221",
      "r226",
      "r230"
     ]
    },
    "ifrs-full_TypesOfHedgesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TypesOfHedgesMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingHedgediteminformationDetails",
      "http://xpinc.com/role/HedgeaccountingHedgeditemmaturityDetails",
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hedges",
        "label": "Hedges [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all types of hedges. It also represents the standard value for the 'Types of hedges' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r221",
      "r226",
      "r230"
     ]
    },
    "ifrs-full_TypesOfInterestRatesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TypesOfInterestRatesAxis",
     "presentation": [
      "http://xpinc.com/role/BorrowingsDetails",
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Types of interest rates [axis]",
        "label": "Types of interest rates [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r398"
     ]
    },
    "ifrs-full_TypesOfRisksAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TypesOfRisksAxis",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Types of risks [axis]",
        "label": "Types of risks [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r194",
      "r195",
      "r196",
      "r198",
      "r218",
      "r234",
      "r235"
     ]
    },
    "ifrs-full_TypesOfRisksMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TypesOfRisksMember",
     "presentation": [
      "http://xpinc.com/role/HedgeaccountingSummaryofdetailedinformationabouthedginginstrumentsDetails",
      "http://xpinc.com/role/LoanoperationsLoanoperationsbyconcentrationDetails",
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsSummaryofsensitivityanalysisDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Risks [member]",
        "label": "Risks [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all types of risks. It also represents the standard value for the 'Types of risks' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r194",
      "r195",
      "r196",
      "r198",
      "r218",
      "r234",
      "r235"
     ]
    },
    "ifrs-full_TypesOfSharebasedPaymentArrangementsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "TypesOfSharebasedPaymentArrangementsAxis",
     "presentation": [
      "http://xpinc.com/role/SharebasedplanActivityofRSUsandPSUsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Types of share-based payment arrangements [axis]",
        "label": "Types of share-based payment arrangements [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r203"
     ]
    },
    "country_US": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2023",
     "localname": "US",
     "presentation": [
      "http://xpinc.com/role/TotalrevenueandincomeSummaryofdisaggregationbygeographiclocationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "United States",
        "label": "UNITED STATES"
       }
      }
     },
     "auth_ref": []
    },
    "xp_UnitedStatesGovernmentBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "UnitedStatesGovernmentBondsMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Us government bonds",
        "label": "United States Government Bonds [Member]",
        "documentation": "United States Government Bonds"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_UnobservableInputsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "UnobservableInputsAxis",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unobservable inputs [axis]",
        "label": "Unobservable inputs [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r170",
      "r396"
     ]
    },
    "ifrs-full_UnobservableInputsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "UnobservableInputsMember",
     "presentation": [
      "http://xpinc.com/role/DeterminationoffairvalueDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unobservable inputs [member]",
        "label": "Unobservable inputs [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all the unobservable inputs. It also represents the standard value for the 'Unobservable inputs' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r170",
      "r396"
     ]
    },
    "ifrs-full_UnusedProvisionReversedOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "UnusedProvisionReversedOtherProvisions",
     "crdr": "debit",
     "presentation": [
      "http://xpinc.com/role/ProvisionsandcontingentliabilitiesSummaryofchangesinotherprovisionsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Reversed",
        "label": "Unused provision reversed, other provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount reversed for unused other provisions. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r105"
     ]
    },
    "ifrs-full_UnusedTaxLossesForWhichNoDeferredTaxAssetRecognised": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "UnusedTaxLossesForWhichNoDeferredTaxAssetRecognised",
     "presentation": [
      "http://xpinc.com/role/IncometaxAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unused tax losses for which no deferred tax asset recognised",
        "label": "Unused tax losses for which no deferred tax asset recognised"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of unused tax losses for which no deferred tax asset is recognised in the statement of financial position. [Refer: Unused tax losses [member]]"
       }
      }
     },
     "auth_ref": [
      "r56"
     ]
    },
    "ifrs-full_UnusedTaxLossesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "UnusedTaxLossesMember",
     "presentation": [
      "http://xpinc.com/role/IncometaxSummaryofcomponentsofdeferredtaxassetsanddeferredtaxliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax losses carryforwards",
        "label": "Unused tax losses [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for tax losses that have been incurred and are carried forward for use against future taxable profit."
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "ifrs-full_UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "durationItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill",
     "presentation": [
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofusefullivesofintangibleassetsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Estimate useful life (years)",
        "label": "Useful life measured as period of time, intangible assets other than goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The useful life, measured as period of time, used for intangible assets other than goodwill. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r111"
     ]
    },
    "xp_VaivoaEducacaoFinanceiraLtda.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "VaivoaEducacaoFinanceiraLtda.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Vaivoa Educa\u00e7\u00e3o Financeira Ltda. [Member]",
        "label": "Vaivoa Educa\u00e7\u00e3o Financeira Ltda. [Member]",
        "documentation": "Vaivoa Educa\u00e7\u00e3o Financeira Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ValueAddedTaxPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "ValueAddedTaxPayables",
     "crdr": "credit",
     "calculation": {
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails": {
       "parentTag": "xp_PayablesOnSocialSecurityAndTaxes",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/TaxandsocialsecurityobligationsSummaryofTaxandSocialSecurityObligationsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contributions over revenue (PIS and COFINS)",
        "label": "Value added tax payables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of payables related to a value added tax."
       }
      }
     },
     "auth_ref": [
      "r369"
     ]
    },
    "xp_ValueOfSharesIssuedDuringThePeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "ValueOfSharesIssuedDuringThePeriod",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/EquityAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Value of shares issued during the period",
        "label": "Value of shares issued during the period",
        "documentation": "Represents Value of shares issued during the period."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_VehiclesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "VehiclesMember",
     "presentation": [
      "http://xpinc.com/role/PropertyequipmentintangibleassetsandleasesSummaryofpropertyandequipmentDetails",
      "http://xpinc.com/role/SummaryofsignificantaccountingpoliciesSummaryofdepreciationofpropertyandequipmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Vehicle",
        "label": "Vehicles [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing vehicles used in the entity's operations, specifically to include aircraft, motor vehicles and ships. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r374"
     ]
    },
    "xp_W2DTecnologiaESolucoesLtda.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "W2DTecnologiaESolucoesLtda.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "W2D Tecnologia e Solu\u00e7\u00f5es Ltda. [Member]",
        "label": "W2D Tecnologia e Solu\u00e7\u00f5es Ltda. [Member]",
        "documentation": "W2D Tecnologia e Solu\u00e7\u00f5es Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_WagesAndSalaries": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "WagesAndSalaries",
     "crdr": "debit",
     "calculation": {
      "http://xpinc.com/role/OperatingexpensesbynatureDetails": {
       "parentTag": "xp_PersonnelExpenses",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://xpinc.com/role/OperatingexpensesbynatureDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Compensation",
        "label": "Wages and salaries"
       }
      },
      "en": {
       "role": {
        "documentation": "A class of employee benefits expense that represents wages and salaries. [Refer: Employee benefits expense]"
       }
      }
     },
     "auth_ref": [
      "r378"
     ]
    },
    "xp_WarrantLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "WarrantLiabilitiesMember",
     "presentation": [
      "http://xpinc.com/role/DerivativefinancialinstrumentsSummaryofderivativefinancialinstrumentsportfolioassetsandliabilitiesbytypeofinstrumentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Others",
        "label": "Warrant Liabilities [Member]",
        "documentation": "Warrant Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "xp_WealthHighGovernanceHoldingDeParticipaesSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "WealthHighGovernanceHoldingDeParticipaesSAMember",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Wealth High Governance Holding de Participa\u00e7\u00f5es S.A.",
        "label": "Wealth High Governance Holding De Participa\u00e7\u00f5es S.A. [Member]",
        "documentation": "Wealth High Governance Holding De Participa\u00e7\u00f5es S.A."
       }
      }
     },
     "auth_ref": []
    },
    "xp_WealthHighGovernanceHoldingDeParticipaesSAOPrimoRicoMdiaEducacionalEParticipaesLtdaAndNK112EmpreendimentosEParticipaesSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "WealthHighGovernanceHoldingDeParticipaesSAOPrimoRicoMdiaEducacionalEParticipaesLtdaAndNK112EmpreendimentosEParticipaesSAMember",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Wealth High Governance Holding De Participa\u00e7\u00f5es S.A., O Primo Rico M\u00eddia, Educacional e Participa\u00e7\u00f5es Ltda. and NK112 Empreendimentos e Participa\u00e7\u00f5es S.A.",
        "label": "Wealth High Governance Holding De Participa\u00e7\u00f5es S.A., O Primo Rico M\u00eddia, Educacional e Participa\u00e7\u00f5es Ltda. And NK112 Empreendimentos e Participa\u00e7\u00f5es S.A. [Member]",
        "documentation": "Wealth High Governance Holding De Participa\u00e7\u00f5es S.A., O Primo Rico M\u00eddia, Educacional e Participa\u00e7\u00f5es Ltda. And NK112 Empreendimentos e Participa\u00e7\u00f5es S.A."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_WeightedAverageFairValueAtMeasurementDateOtherEquityInstrumentsGranted": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "WeightedAverageFairValueAtMeasurementDateOtherEquityInstrumentsGranted",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/SharebasedplanAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted average fair value at measurement date, other equity instruments granted",
        "label": "Weighted average fair value at measurement date, other equity instruments granted"
       }
      },
      "en": {
       "role": {
        "documentation": "The weighted average fair value at the measurement date of granted equity instruments other than share options. [Refer: Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r204"
     ]
    },
    "ifrs-full_WeightedAverageShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full",
     "localname": "WeightedAverageShares",
     "presentation": [
      "http://xpinc.com/role/EarningspersharebasicanddilutedDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Basic weighted average number of outstanding shares (in shares)",
        "label": "Weighted average number of ordinary shares used in calculating basic earnings per share"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of ordinary shares outstanding at the beginning of the period, adjusted by the number of ordinary shares bought back or issued during the period multiplied by a time-weighting factor."
       }
      }
     },
     "auth_ref": [
      "r95"
     ]
    },
    "xp_WithholdingTaxesPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "WithholdingTaxesPayable",
     "crdr": "credit",
     "presentation": [
      "http://xpinc.com/role/TaxandsocialsecurityobligationsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Withholding taxes payable",
        "label": "Withholding taxes payable",
        "documentation": "Withholding taxes payable"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPACAcquisitionCorpMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPACAcquisitionCorpMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails",
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails",
      "http://xpinc.com/role/OtherfinancialassetsandfinancialliabilitiesOtherfinancialliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XPAC Acquisition Corp.",
        "label": "XPAC Acquisition Corp. [Member]",
        "documentation": "XPAC Acquisition Corp."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPACSponsorLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPACSponsorLLCMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XPAC Sponsor LLC",
        "label": "XPAC Sponsor LLC [Member]",
        "documentation": "XPAC Sponsor LLC"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPAdministradoraDeBeneficiosLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPAdministradoraDeBeneficiosLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Administradora de Benef\u00edcios Ltda",
        "label": "XP Administradora de Benef\u00edcios Ltda [Member]",
        "documentation": "XP Administradora de Benef\u00edcios Ltda"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPAdvisorsIncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPAdvisorsIncMember",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Advisors Inc",
        "label": "XP Advisors Inc [Member]",
        "documentation": "XP Advisors Inc"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPAdvisoryGestoRecursosLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPAdvisoryGestoRecursosLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Advisory Gest\u00e3o Recursos Ltda.",
        "label": "XP Advisory Gest\u00e3o Recursos Ltda. [Member]",
        "documentation": "XP Advisory Gest\u00e3o Recursos Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPAdvisoryUSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPAdvisoryUSMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Advisory US",
        "label": "XP Advisory US [Member]",
        "documentation": "XP Advisory US"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPAlesiaFundSPCLSharesBrazilInternacionalFundSPCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPAlesiaFundSPCLSharesBrazilInternacionalFundSPCMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Alesia Fund SP CL Shares - Brazil Internacional Fund SPC.",
        "label": "XP Alesia Fund SP CL Shares - Brazil Internacional Fund SPC. [Member]",
        "documentation": "XP Alesia Fund SP CL Shares - Brazil Internacional Fund SPC."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPAllocationAssetManagementLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPAllocationAssetManagementLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Allocation Asset Management Ltda.",
        "label": "XP Allocation Asset Management Ltda. [Member]",
        "documentation": "XP Allocation Asset Management Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPAtivosDigitaisIntermediacoesSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPAtivosDigitaisIntermediacoesSAMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Xtage Intermedia\u00e7\u00e3o S.A.",
        "label": "XP Ativos Digitais Intermedia\u00e7\u00f5es S.A. [Member]",
        "documentation": "XP Ativos Digitais Intermedia\u00e7\u00f5es S.A."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPComercializadoraDeEnergiaLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPComercializadoraDeEnergiaLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Comercializadora de Energia Ltda.",
        "label": "XP Comercializadora de Energia Ltda. [Member]",
        "documentation": "XP Comercializadora de Energia Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPControle3ParticipacoesSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPControle3ParticipacoesSAMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Controle 3 Participa\u00e7\u00f5es S.A.",
        "label": "XP Controle 3 Participacoes S.A. [Member]",
        "documentation": "XP Controle 3 Participacoes S.A."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPControle4ParticipaesSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPControle4ParticipaesSAMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Controle 4 Participa\u00e7\u00f5es S.A.",
        "label": "XP Controle 4 Participa\u00e7\u00f5es S.A. [Member]",
        "documentation": "XP Controle 4 Participa\u00e7\u00f5es S.A."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPControle5ParticipacoesLtda.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPControle5ParticipacoesLtda.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Controle 5 Participa\u00e7\u00f5es Ltda. [Member]",
        "label": "XP Controle 5 Participa\u00e7\u00f5es Ltda. [Member]",
        "documentation": "XP Controle 5 Participa\u00e7\u00f5es Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPControle6ParticipacoesS.AMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPControle6ParticipacoesS.AMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Controle 6 Participacoes S.A [Member]",
        "label": "XP Controle 6 Participacoes S.A [Member]",
        "documentation": "XP Controle 6 Participacoes S.A"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPCorretoraDeSegurosLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPCorretoraDeSegurosLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Corretora de Seguros Ltda.",
        "label": "XP Corretora de Seguros Ltda. [Member]",
        "documentation": "XP Corretora de Seguros Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPDistribuidoraDeTitulosEValoresMobiliriosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPDistribuidoraDeTitulosEValoresMobiliriosMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Distribuidora de T\u00edtulos e Valores Mobili\u00e1rios",
        "label": "XP Distribuidora de Titulos e Valores Mobili\u00e1rios [Member]",
        "documentation": "XP Distribuidora de Titulos e Valores Mobili\u00e1rios"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPEInfomoneyEducaoAssessoriaEmpresarialEParticipaesLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPEInfomoneyEducaoAssessoriaEmpresarialEParticipaesLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XPE Infomoney Educa\u00e7\u00e3o Assessoria Empresarial e Participa\u00e7\u00f5es Ltda.",
        "label": "XPE Infomoney Educa\u00e7\u00e3o Assessoria Empresarial e Participa\u00e7\u00f5es Ltda. [Member]",
        "documentation": "XPE Infomoney Educa\u00e7\u00e3o Assessoria Empresarial e Participa\u00e7\u00f5es Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPEnergiaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPEnergiaMember",
     "presentation": [
      "http://xpinc.com/role/FinancinginstrumentspayableDebtsecuritiesadditionalinformationDetails",
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Energia",
        "label": "XP Energia [Member]",
        "documentation": "XP Energia"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPEventosLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPEventosLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Eventos Ltda.",
        "label": "XP Eventos Ltda. [Member]",
        "documentation": "XP Eventos Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPFIPManagersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPFIPManagersMember",
     "presentation": [
      "http://xpinc.com/role/InvestmentsinassociatesandjointventuresDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP FIP Managers",
        "label": "XP FIP Managers [Member]",
        "documentation": "XP FIP Managers"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPFinanasAssessoriaFinanceiraLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPFinanasAssessoriaFinanceiraLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Finan\u00e7as Assessoria Financeira Ltda.",
        "label": "XP Finan\u00e7as Assessoria Financeira Ltda. [Member]",
        "documentation": "XP Finan\u00e7as Assessoria Financeira Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPGestoDeRecursosLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPGestoDeRecursosLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Gest\u00e3o de Recursos Ltda.",
        "label": "XP Gest\u00e3o de Recursos Ltda. [Member]",
        "documentation": "XP Gest\u00e3o de Recursos Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPHighYieldFundSPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPHighYieldFundSPMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP High Yield Fund SP",
        "label": "XP High Yield Fund SP [Member]",
        "documentation": "XP High Yield Fund SP"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPHoldingInternationalLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPHoldingInternationalLLCMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Holding International LLC",
        "label": "XP Holding International LLC [Member]",
        "documentation": "XP Holding International LLC"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPHoldingUKLtdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPHoldingUKLtdMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Holding UK Ltd",
        "label": "XP Holding UK Ltd [Member]",
        "documentation": "XP Holding UK Ltd"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPHoldingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPHoldingsMember",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Holdings",
        "label": "XP Holdings [Member]",
        "documentation": "XP Holdings"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPHoldingsUKLtdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPHoldingsUKLtdMember",
     "presentation": [
      "http://xpinc.com/role/ManagementoffinancialrisksandfinancialinstrumentsAdditionalinformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Holdings UK Ltd",
        "label": "XP Holdings UK Ltd [Member]",
        "documentation": "XP Holdings UK Ltd"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPInternationalFundSPCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPInternationalFundSPCMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP International Fund SPC",
        "label": "XP International Fund SPC [Member]",
        "documentation": "XP International Fund SPC"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPInvestimentosCorretoraDeCambioTitulosEValoresMobiliariosSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPInvestimentosCorretoraDeCambioTitulosEValoresMobiliariosSAMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Investimentos Corretora de C\u00e2mbio, T\u00edtulos e Valores Mobili\u00e1rios S.A.",
        "label": "XP Investimentos Corretora de Cambio. Titulos e Valores Mobiliarios S.A. [Member]",
        "documentation": "XP Investimentos Corretora de Cambio. Titulos e Valores Mobiliarios S.A."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPInvestimentosNonConvertibleDebenturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPInvestimentosNonConvertibleDebenturesMember",
     "presentation": [
      "http://xpinc.com/role/SecuritiesSummaryofSecuritiesontheFinancialLiabilitiesClassifiedatFairValueThroughProfitorLossDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Investimentos Non-Convertible Debentures",
        "label": "XP Investimentos Non-Convertible Debentures [Member]",
        "documentation": "XP Investimentos Non-Convertible Debentures"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPInvestimentosSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPInvestimentosSAMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Investimentos S.A.",
        "label": "XP Investimentos S.A. [Member]",
        "documentation": "XP Investimentos S.A."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPInvestmentsUKLLPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPInvestmentsUKLLPMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Investments UK LLP",
        "label": "XP Investments UK LLP [Member]",
        "documentation": "XP Investments UK LLP"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPInvestmentsUSLLCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPInvestmentsUSLLCMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Investments US, LLC",
        "label": "XP Investments US, LLC [Member]",
        "documentation": "XP Investments US, LLC"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPLTGestoDeRecursosLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPLTGestoDeRecursosLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Controle 5 Participa\u00e7\u00f5es Ltda.",
        "label": "XP LT Gest\u00e3o de Recursos Ltda. [Member]",
        "documentation": "XP LT Gest\u00e3o de Recursos Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPManagersFundoDeInvestimentoEmParticipaesMultiestratgiaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPManagersFundoDeInvestimentoEmParticipaesMultiestratgiaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Managers Fundo de Investimento em Participa\u00e7\u00f5es Multiestrat\u00e9gia",
        "label": "XP Managers Fundo de Investimento em Participa\u00e7\u00f5es Multiestrat\u00e9gia [Member]",
        "documentation": "XP Managers Fundo de Investimento em Participa\u00e7\u00f5es Multiestrat\u00e9gia"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPPEGestoDeRecursosLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPPEGestoDeRecursosLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP PE Gest\u00e3o de Recursos Ltda.",
        "label": "XP PE Gest\u00e3o de Recursos Ltda. [Member]",
        "documentation": "XP PE Gest\u00e3o de Recursos Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPPhalanxCTFundMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPPhalanxCTFundMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Phalanx CT Fund",
        "label": "XP Phalanx CT Fund [Member]",
        "documentation": "XP Phalanx CT Fund"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPPrivateEuropeSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPPrivateEuropeSAMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Private (Europe) S.A.",
        "label": "XP Private (Europe) S.A. [Member]",
        "documentation": "XP Private (Europe) S.A."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPRepresentacaoSegurosLtda.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPRepresentacaoSegurosLtda.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Representa\u00e7\u00e3o Seguros Ltda. [Member]",
        "label": "XP Representa\u00e7\u00e3o Seguros Ltda. [Member]",
        "documentation": "XP Representa\u00e7\u00e3o Seguros Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPSportsAssetManagementLtda.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPSportsAssetManagementLtda.Member",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Sports Asset Management Ltda. [Member]",
        "label": "XP Sports Asset Management Ltda. [Member]",
        "documentation": "XP Sports Asset Management Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPVidaEPrevidenciaSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPVidaEPrevidenciaSAMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Vida e Previdencia S.A.",
        "label": "XP Vida e Previdencia S.A. [Member]",
        "documentation": "XP Vida e Previdencia S.A."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XPVistaAssetManagementLtdaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XPVistaAssetManagementLtdaMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XP Vista Asset Management Ltda.",
        "label": "XP Vista Asset Management Ltda. [Member]",
        "documentation": "XP Vista Asset Management Ltda."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XProjectLTDMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XProjectLTDMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XProject LTD",
        "label": "XProject LTD [Member]",
        "documentation": "XProject LTD"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XProjectMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XProjectMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryoffairvalueoftheidentifiableassetsacquiredandliabilitiesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "XProject",
        "label": "XProject [Member]",
        "documentation": "XProject"
       }
      }
     },
     "auth_ref": []
    },
    "xp_XchangeIntermediacoSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XchangeIntermediacoSAMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Xchange Intermediac\u00e3o S.A.",
        "label": "Xchange Intermediac\u00e3o S.A. [Member]",
        "documentation": "Xchange Intermediac\u00e3o S.A."
       }
      }
     },
     "auth_ref": []
    },
    "xp_XperienceMarketServicesLLCViMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xpinc.com/20231231",
     "localname": "XperienceMarketServicesLLCViMember",
     "presentation": [
      "http://xpinc.com/role/GroupstructureSummaryofdirectandindirectinterestsofcompanyinitssubsidiariesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Xperience Market Services LLC",
        "label": "Xperience Market Services LLC (vi) [Member]",
        "documentation": "Xperience Market Services LLC (vi)"
       }
      }
     },
     "auth_ref": []
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Topic": "220",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.5-03.1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147483621/220-10-S99-2"
  },
  "r1": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "106",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_106_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r2": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_106_d_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r3": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_106_d_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r4": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_106_d_iii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r5": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_106_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r6": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "106",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_106&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r7": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "106A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_106A&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r8": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "125",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_125&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r9": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "138",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_138_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r10": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r11": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r12": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r13": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "l",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_l&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r14": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "m",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_m&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r15": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "n",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_n&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r16": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "o",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_o&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r17": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "q",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_q&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r18": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "r",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_r&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r19": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "55",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_55&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r20": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "56",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_56&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r21": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "61",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_61_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r22": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "61",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_61_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r23": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "61",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_61&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r24": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "7",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_7&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r25": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "78",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_78_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r26": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "78",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_78_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r27": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_79_a_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r28": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_79_a_iii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r29": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_79_a_iv&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r30": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_79_a_vi&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r31": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "Clause": "vii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_79_a_vii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r32": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_79_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r33": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_79_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r34": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_79&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r35": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "81A",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81A_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r36": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "81A",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81A_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r37": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "81A",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81A_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r38": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "81B",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81B_a_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r39": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "81B",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81B_a_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r40": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "81B",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81B_b_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r41": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "82",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_82_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r42": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "82",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_82_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r43": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "82",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_82_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r44": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "90",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_90&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r45": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "91",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_91_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r46": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "91",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_91_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r47": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "98",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_98_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r48": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "98",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_98_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r49": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "99",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_99&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r50": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "10",
   "IssueDate": "2023-01-01",
   "Paragraph": "21",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=10&code=ifrs-tx-2023-en-r&anchor=para_21&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r51": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "10",
   "IssueDate": "2023-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=10&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IAS10_g17-22_TI",
   "URIDate": "2023-03-23"
  },
  "r52": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_79&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r53": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "81",
   "Subparagraph": "ab",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_ab&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r54": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "81",
   "Subparagraph": "c",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_c_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r55": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "81",
   "Subparagraph": "c",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_c_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r56": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "81",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r57": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_g_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r58": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_g_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r59": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_g&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r60": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IAS12_g79-88_TI",
   "URIDate": "2023-03-23"
  },
  "r61": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r62": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r63": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_e_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r64": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_e_iii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r65": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_e_v&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r66": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "vii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_e_vii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r67": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_e_viii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r68": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r69": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r70": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "75",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_75_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r71": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IAS16_g73-79_TI",
   "URIDate": "2023-03-23"
  },
  "r72": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "138",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_138&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r73": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "140",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_140_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r74": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "141",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_141_f&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r75": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "141",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_141_g&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r76": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "142",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_142&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r77": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2023-en-r&anchor=para_17&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r78": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2023-01-01",
   "Paragraph": "18",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2023-en-r&anchor=para_18&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r79": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2023-01-01",
   "Paragraph": "19",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2023-en-r&anchor=para_19&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r80": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2023-01-01",
   "Section": "Disclosures",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IAS24_g13-24_TI",
   "URIDate": "2023-03-23"
  },
  "r81": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "26",
   "IssueDate": "2023-01-01",
   "Paragraph": "35",
   "Subparagraph": "b",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2023-en-r&anchor=para_35_b_vi&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r82": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "26",
   "IssueDate": "2023-01-01",
   "Paragraph": "35",
   "Subparagraph": "b",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2023-en-r&anchor=para_35_b_viii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r83": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2023-01-01",
   "Paragraph": "10",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_10&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r84": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2023-01-01",
   "Paragraph": "16",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_16_b_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r85": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2023-01-01",
   "Paragraph": "16",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_16_b_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r86": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2023-01-01",
   "Paragraph": "16",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_16_b_iii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r87": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2023-01-01",
   "Paragraph": "16",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_16_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r88": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_17_b_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r89": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_17_b_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r90": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_17_b_iii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r91": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_17_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r92": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "32",
   "IssueDate": "2023-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=32&code=ifrs-tx-2023-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r93": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2023-01-01",
   "Paragraph": "66",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2023-en-r&anchor=para_66&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r94": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2023-01-01",
   "Paragraph": "67",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2023-en-r&anchor=para_67&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r95": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2023-01-01",
   "Paragraph": "70",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2023-en-r&anchor=para_70_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r96": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2023-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IAS33_g70-73A_TI",
   "URIDate": "2023-03-23"
  },
  "r97": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2023-01-01",
   "Paragraph": "126",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2023-en-r&anchor=para_126&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r98": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2023-01-01",
   "Paragraph": "130",
   "Subparagraph": "d",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2023-en-r&anchor=para_130_d_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r99": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2023-01-01",
   "Paragraph": "134",
   "Subparagraph": "d",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2023-en-r&anchor=para_134_d_iv&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r100": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2023-01-01",
   "Paragraph": "134",
   "Subparagraph": "d",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2023-en-r&anchor=para_134_d_v&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r101": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2023-01-01",
   "Paragraph": "134",
   "Subparagraph": "e",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2023-en-r&anchor=para_134_e_iv&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r102": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2023-01-01",
   "Paragraph": "134",
   "Subparagraph": "e",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2023-en-r&anchor=para_134_e_v&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r103": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "84",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_84_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r104": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "84",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_84_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r105": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "84",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_84_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r106": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "84",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_84&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r107": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "86",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_86_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r108": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "86",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_86&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r109": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "88",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_88&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r110": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IAS37_g84-92_TI",
   "URIDate": "2023-03-23"
  },
  "r111": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r112": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r113": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_e_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r114": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_e_vi&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r115": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r116": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r117": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "39",
   "IssueDate": "2023-01-01",
   "Paragraph": "102",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=39&code=ifrs-tx-2023-en-r&anchor=para_102_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r118": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "39",
   "IssueDate": "2023-01-01",
   "Paragraph": "86",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=39&code=ifrs-tx-2023-en-r&anchor=para_86_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r119": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "39",
   "IssueDate": "2023-01-01",
   "Paragraph": "86",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=39&code=ifrs-tx-2023-en-r&anchor=para_86_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r120": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "39",
   "IssueDate": "2023-01-01",
   "Paragraph": "86",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=39&code=ifrs-tx-2023-en-r&anchor=para_86_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r121": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2023-01-01",
   "Paragraph": "32A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2023-en-r&anchor=para_32A&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r122": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2023-01-01",
   "Paragraph": "76",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2023-en-r&anchor=para_76&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r123": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2023-en-r&anchor=para_79_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r124": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2023-en-r&anchor=para_79_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r125": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2023-01-01",
   "Paragraph": "50",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2023-en-r&anchor=para_50&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r126": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2023-en-r&anchor=para_54_f&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r127": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "10",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_10&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r128": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "18",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_18_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r129": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "25",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_25&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r130": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "28",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_28&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r131": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "31",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_31&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r132": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r133": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "39",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_39&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r134": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "44B",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_44B_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r135": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "44B",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_44B_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r136": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "44B",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_44B_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r137": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "45",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_45&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r138": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "46",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_46&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r139": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "50",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_50_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r140": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Section": "Presentation of a statement of cash flows",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IAS07_g10-17_TI",
   "URIDate": "2023-03-23"
  },
  "r141": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "24",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2023-en-r&anchor=para_24_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r142": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "24",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2023-en-r&anchor=para_24_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r143": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "32",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2023-en-r&anchor=para_32_a_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r144": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "32",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2023-en-r&anchor=para_32_a_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r145": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "10",
   "IssueDate": "2023-01-01",
   "Paragraph": "22",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=10&code=ifrs-tx-2023-en-r&anchor=para_22&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r146": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "1",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_1&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r147": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "12",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_12_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r148": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "12",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_12_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r149": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "12",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_12_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r150": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "12",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_12_f&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r151": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "19B",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_19B_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r152": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "19B",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_19B_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r153": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "19B",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_19B_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r154": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "2",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_2_b_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r155": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "21",
   "Subparagraph": "a",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_21_a_iv&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r156": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B10",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B10_a&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r157": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "ix",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B12_b_ix&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r158": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B12_b_v&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r159": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B12_b_viii&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r160": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B13",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B13_a&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r161": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B13",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B13_b&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r162": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B13",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B13_c&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r163": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B13",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B13_g&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r164": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B16",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B16_c&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r165": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B4",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B4_a&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r166": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B4",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B4_b&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r167": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B4",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B4_d&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r168": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "93",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r169": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "93",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r170": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "93",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r171": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "93",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r172": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "93",
   "Subparagraph": "h",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_h_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r173": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "93",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r174": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IFRS13_g91-99_TI",
   "URIDate": "2023-03-23"
  },
  "r175": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "14",
   "IssueDate": "2023-01-01",
   "Paragraph": "33",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=14&code=ifrs-tx-2023-en-r&anchor=para_33_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r176": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2023-01-01",
   "Paragraph": "105",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2023-en-r&anchor=para_105&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r177": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2023-01-01",
   "Paragraph": "116",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2023-en-r&anchor=para_116_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r178": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2023-01-01",
   "Paragraph": "120",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2023-en-r&anchor=para_120_b_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r179": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "47",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_47_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r180": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "47",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_47_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r181": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "53",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_53_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r182": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "53",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_53_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r183": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "53",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_53_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r184": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "53",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_53_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r185": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "53",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_53_g&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r186": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "53",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_53_h&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r187": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "53",
   "Subparagraph": "j",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_53_j&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r188": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "53",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_53&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r189": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "94",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_94&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r190": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "97",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_97&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r191": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "109",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_109&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r192": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "109A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_109A&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r193": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "120",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_120&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r194": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "124",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_124&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r195": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "125",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_125&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r196": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "127",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_127&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r197": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "128",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_128_a_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r198": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "128",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_128_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r199": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "132",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_132_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r200": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "C32",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_C32&doctype=Appendix&subtype=C",
   "URIDate": "2023-03-23"
  },
  "r201": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2023-01-01",
   "Paragraph": "44",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2023-en-r&anchor=para_44&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r202": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2023-01-01",
   "Paragraph": "45",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2023-en-r&anchor=para_45_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r203": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2023-01-01",
   "Paragraph": "45",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2023-en-r&anchor=para_45&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r204": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2023-01-01",
   "Paragraph": "47",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2023-en-r&anchor=para_47_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r205": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B64",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_c&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r206": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B64",
   "Subparagraph": "f",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_f_iv&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r207": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B64",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_f&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r208": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B64",
   "Subparagraph": "g",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_g_i&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r209": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B64",
   "Subparagraph": "q",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_q_i&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r210": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B64",
   "Subparagraph": "q",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_q_ii&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r211": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B64",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r212": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B67",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B67_c&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r213": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B67",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B67_d&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r214": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B67",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B67&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r215": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "5",
   "IssueDate": "2023-01-01",
   "Paragraph": "33",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2023-en-r&anchor=para_33_b_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r216": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "11A",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_11A_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r217": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "20",
   "Subparagraph": "a",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20_a_viii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r218": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "21C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_21C&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r219": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "22C",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_22C_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r220": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "23B",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_23B_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r221": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24A&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r222": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24B",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24B_a_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r223": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24B",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24B_a_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r224": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24B",
   "Subparagraph": "a",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24B_a_iv&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r225": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24B",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24B_b_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r226": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24B",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24B&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r227": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24C",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24C_a_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r228": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24C",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24C_b_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r229": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24C",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24C_b_ii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r230": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24C&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r231": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24E",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24E_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r232": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "25",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_25&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r233": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "31",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_31&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r234": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_33&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r235": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r236": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35H",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35H_b_iii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r237": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35H",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35H&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r238": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35I",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35I&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r239": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35K",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35K&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r240": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35M",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35M_b_iii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r241": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35M",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35M&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r242": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "40",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_40_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r243": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "42E",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_42E_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r244": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "42I",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_42I&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r245": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_6&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r246": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "7",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_7&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r247": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "8",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_8_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r248": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "8",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_8_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r249": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "8",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_8_f&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r250": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "8",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_8_g&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r251": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "8",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_8_h&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r252": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "8",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_8&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r253": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B51",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B51&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r254": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B52",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B52&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r255": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Section": "Credit risk",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IFRS07_g35A-38_TI",
   "URIDate": "2023-03-23"
  },
  "r256": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Section": "Defined terms",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&doctype=Appendix&subtype=A&dita_xref=IFRS07_APPA_TI",
   "URIDate": "2023-03-23"
  },
  "r257": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "23",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r258": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "23",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23_g&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r259": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "23",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23_h&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r260": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "23",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r261": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "28",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r262": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "28",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r263": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "28",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r264": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "28",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r265": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "28",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r266": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "32",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_32&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r267": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "33",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_33_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r268": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r269": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "9",
   "IssueDate": "2023-01-01",
   "Paragraph": "6.5.13",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=9&code=ifrs-tx-2023-en-r&anchor=para_6.5.13_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r270": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "9",
   "IssueDate": "2023-01-01",
   "Paragraph": "7.2.34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=9&code=ifrs-tx-2023-en-r&anchor=para_7.2.34&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r271": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "9",
   "IssueDate": "2023-01-01",
   "Paragraph": "7.2.42",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=9&code=ifrs-tx-2023-en-r&anchor=para_7.2.42&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r272": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expired 2023-01-01",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "16",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_16&doctype=Standard&book=b",
   "URIDate": "2023-03-23"
  },
  "r273": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expired 2023-01-01",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "22",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_22&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r274": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expired 2023-01-01",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "24",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_24_a_i&doctype=Standard&book=b",
   "URIDate": "2023-03-23"
  },
  "r275": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expired 2023-01-01",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "37",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_37&doctype=Standard&book=b",
   "URIDate": "2023-03-23"
  },
  "r276": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expired 2023-01-01",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "8",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_8_c&doctype=Standard&book=b",
   "URIDate": "2023-03-23"
  },
  "r277": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "41",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-41"
  },
  "r278": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "280",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "41",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147482810/280-10-50-41"
  },
  "r279": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-1"
  },
  "r280": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-2"
  },
  "r281": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480524/946-210-50-6"
  },
  "r282": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r283": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column C)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2"
  },
  "r284": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r285": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column F)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  },
  "r286": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "948",
   "SubTopic": "310",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-29(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479851/948-310-S99-1"
  },
  "r287": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r288": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r289": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r290": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column E))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r291": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column F))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r292": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column G))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r293": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column H))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r294": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Column I))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r295": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "970",
   "SubTopic": "360",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-28(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479438/970-360-S99-1"
  },
  "r296": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "13H",
   "Subparagraph": "(b)",
   "SubTopic": "40",
   "Topic": "944",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480046/944-40-55-13H"
  },
  "r297": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "102",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_102&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r298": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "103",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_103&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r299": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "108",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_108&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r300": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "78",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_78_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r301": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "78",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_78_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r302": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "10",
   "IssueDate": "2023-01-01",
   "Paragraph": "22",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=10&code=ifrs-tx-2023-en-r&anchor=para_22_f&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r303": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "80",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_80_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r304": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "37",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_37_g&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r305": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "147",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_147_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r306": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2023-01-01",
   "Paragraph": "127",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2023-en-r&anchor=para_127&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r307": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "119",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_119_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r308": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "119",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_119_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r309": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "14",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_14_f&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r310": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "16",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_16_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r311": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "16",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_16_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r312": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_17_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r313": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_17_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r314": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_17_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r315": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "20",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r316": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "44C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_44C&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r317": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "44D",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_44D&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r318": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Section": "A Statement of cash flows for an entity other than a financial institution",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&doctype=Illustrative%20Examples&dita_xref=IAS07_IE_A_TI",
   "URIDate": "2023-03-23"
  },
  "r319": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Section": "C Reconciliation of liabilities arising from financing activities",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&doctype=Illustrative%20Examples&dita_xref=IAS07_IE_C_TI",
   "URIDate": "2023-03-23"
  },
  "r320": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B10",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B10_b&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r321": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "B23",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B23_c&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r322": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "B6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_B6&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r323": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "IE63",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_IE63&doctype=Illustrative%20Examples",
   "URIDate": "2023-03-23"
  },
  "r324": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "53",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2023-en-r&anchor=para_53&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r325": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2023-01-01",
   "Paragraph": "113",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2023-en-r&anchor=para_113_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r326": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "B64",
   "Subparagraph": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_i&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r327": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2023-01-01",
   "Paragraph": "IE72",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_IE72&doctype=Illustrative%20Examples",
   "URIDate": "2023-03-23"
  },
  "r328": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "32",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_32&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r329": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35H",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35H&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r330": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35I",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35I_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r331": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35M",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35M&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r332": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "35N",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35N&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r333": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_6&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r334": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B11",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B11_a&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r335": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B11",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B11_b&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r336": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B11",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B11_c&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r337": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B11",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B11_d&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r338": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B11",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B11&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r339": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B35",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B35_a&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r340": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B35",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B35_b&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r341": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B35",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B35_g&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r342": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "B35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_B35&doctype=Appendix&subtype=B",
   "URIDate": "2023-03-23"
  },
  "r343": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "IG20B",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_IG20B&doctype=Implementation%20Guidance",
   "URIDate": "2023-03-23"
  },
  "r344": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "IG20C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_IG20C&doctype=Implementation%20Guidance",
   "URIDate": "2023-03-23"
  },
  "r345": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "IG20D",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_IG20D&doctype=Implementation%20Guidance",
   "URIDate": "2023-03-23"
  },
  "r346": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "IG31A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_IG31A&doctype=Implementation%20Guidance",
   "URIDate": "2023-03-23"
  },
  "r347": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "IG40B",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_IG40B&doctype=Implementation%20Guidance",
   "URIDate": "2023-03-23"
  },
  "r348": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "23",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r349": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2023-01-01",
   "Paragraph": "28",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r350": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "91",
   "Subparagraph": "(b)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479777/606-10-55-91"
  },
  "r351": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480493/946-210-55-1"
  },
  "r352": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12"
  },
  "r353": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b"
  },
  "r354": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r355": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r356": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-K",
   "Number": "249",
   "Section": "310"
  },
  "r357": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Number": "249",
   "Section": "220",
   "Subsection": "f"
  },
  "r358": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Number": "249",
   "Section": "240",
   "Subsection": "f"
  },
  "r359": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Section": "13",
   "Subsection": "a-1"
  },
  "r360": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w"
  },
  "r361": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r362": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "405"
  },
  "r363": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "10",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_10_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r364": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_106_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r365": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "108",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_108&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r366": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "112",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_112_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r367": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "117",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_117&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r368": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "55",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_55&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r369": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "78",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_78&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r370": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_79_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r371": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "85",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_85&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r372": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81_g&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r373": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2023-01-01",
   "Paragraph": "81",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2023-en-r&anchor=para_81&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r374": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "37",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_37&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r375": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r376": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2023-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2023-en-r&anchor=para_73_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r377": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "141",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_141&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r378": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2023-01-01",
   "Paragraph": "9",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2023-en-r&anchor=para_9&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r379": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "84",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_84_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r380": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2023-01-01",
   "Paragraph": "88",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2023-en-r&anchor=para_88&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r381": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r382": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_e_i&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r383": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_e_iv&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r384": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "vii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_e_vii&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r385": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118_e&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r386": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "118",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_118&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r387": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2023-01-01",
   "Paragraph": "119",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_119&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r388": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2023-01-01",
   "Paragraph": "79",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2023-en-r&anchor=para_79_c&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r389": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2023-01-01",
   "Paragraph": "54",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2023-en-r&anchor=para_54_f&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r390": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "17",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_17&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r391": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "20",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20_a&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r392": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "20",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20_b&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r393": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "20",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r394": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "45",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_45&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r395": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "93",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_d&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r396": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2023-01-01",
   "Paragraph": "93",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2023-en-r&anchor=para_93_h&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r397": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2023-01-01",
   "Paragraph": "45",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2023-en-r&anchor=para_45&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r398": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "39",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_39&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r399": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2023-01-01",
   "Paragraph": "7",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_7&doctype=Standard",
   "URIDate": "2023-03-23"
  },
  "r400": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expired 2023-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2023-01-01",
   "Paragraph": "117",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2017-en-b&anchor=para_117_b&doctype=Standard&forcepdf=true",
   "URIDate": "2023-03-23"
  },
  "r401": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "606",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "5",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479806/606-10-50-5"
  },
  "r402": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "944",
   "SubTopic": "30",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "2B",
   "Subparagraph": "(a)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147479432/944-30-50-2B"
  },
  "r403": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-1"
  },
  "r404": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-2"
  },
  "r405": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 1)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-3"
  },
  "r406": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org//1943274/2147480032/946-320-S99-6"
  }
 }
}
