Here's the system I'm using for my homebrewed version of dnd:
EXPERIENCE POINTS
Experience points (or xps) measure your advancement as a character, dictating when you level up and thus impacting how powerful you are. The number of xps you have determines your character level.
Level- XP
1- 0 to 999
2- 1,000 to 1,999
3- 2,000 to 3,999
4- 4,000 to 5,999
5- 6,000 to 8,999
6- 9,000 to 11,999
7- 12,000 to 15,999
8- 16,000 to 19,999
9- 20,000 to 24,999
10- 25,000 and up
XP for Roleplaying
Each pc receives an individual xp award for each of four categories: CLASS, RACE, ALIGNMENT, and PERSONAL CONCERNS. For each category, a pc can earn 25 xp per session, for a total of 100 xp per session for all four categories.
At the end of the session, each player has a chance to explain how they roleplayed each of the four categories. It is easy to gain the xp for doing so, and the assumption is that each pc will earn all four categories of xp each session with minimal effort. For example, an elf could claim racial xp by pointing out that they slept in a tree, or they were snooty to other races because they're short-lived, or for going off about how elven jewelry is superior. A wizard could claim class xp by telling the DM that they spent time studying a book, or that they tried to figure out how a curse worked, or that they traded spells with another wizard. Someone could claim personal xp for spending time with their father, or for going to their favorite restaurant, or for discovering that they love to dance.
You cannot earn roleplaying xp simply for using class or race features, but you can earn them for using them in an appropriate way.
Catch-up XP
In a mixed level group, each pc that isn't the highest level gets bonus xp equal to 40 xp per level the highest level pc is above them.
XP for Danger
At the end of the session, the DM determines how much of the session was spent dealing with dangers, including combat, traps, and hazards, and how deadly the dangers were.
If up to 25% of the session was spent dealing with dangers, each pc earns a base 50 xp.
If up to 50% of the session was spent dealing with dangers, each pc earns a base 100 xp.
If up to 75% of the session was spent dealing with dangers, each pc earns a base 200 xp.
If more than 75% of the session was spent dealing with dangers, each pc earns a base 250 xp.
This base number is multiplied by the level of the danger.
If no pc was bloodied during the session, x.5.
If half or fewer of the party was bloodied during the session, x1.
If more than half the party is bloodied during the session, or at least one pc dropped unconscious, x1.5.
If at least one pc died during the session, x2.
XP for Goals
Each pc can choose to assign themselves up to three minor goals and one major goal at a time. A major goal should be one that can't be accomplished easily or quickly- it should take considerable effort and many sessions to accomplish. Achieving a minor goal should take some dedicated effort but be achievable with a few sessions of effort. A pc who achieves a minor goal receives 50 xp; a pc who achieves a major goal receives 200 xp.
In addition, the party as a whole can have goals as well. If the party achieves a minor goal, each pc receives 50 xp. If the party achieves a major goal (such as finishing a long adventure), each pc receives 200 xp.
Goals are also used for things like rescuing captives, clearing out a dungeon level, finishing an adventure, etc.