How much mora required to upgrade weapon to maximum level on genshin impact?

When leveling a weapon, 10 XP costs 1 Mora (unless recycling a weapon that is already leveling, see below). (1/2/3/4/5 stars). Upgrading Chuck weapons restores 80% of experience at no additional mora cost (e.g. using a level 20 3 star weapon gives 1,800 + 0.8 * 53,475 = 44,580 experience, or 180 mora cost).

Upgrading 4-star and 5-star weapons requires spending approximately 750,000 and 1.31 million moras respectively.

5 star weapons mora costs

Level Exp to Next Level Total EXP Cost per EXP
1 600 0 1216
2 950 600 1216
3 1,350 1,550 1216
4 1,800 2,900 1216
5 2,325 4,700 1216
6 2,925 7,025 1216
7 3,525 9,950 1216
8 4,200 13,475 1216
9 4,950 17,675 1216
10 5,700 22,625 1216
11 6,525 28,325 1216
12 7,400 34,850 1216
13 8,300 42,250 1216
14 9,225 50,550 1216
15 10,200 59,775 1216
16 11,250 69,975 1216
17 12,300 81,225 1216
18 13,425 93,525 1216
19 14,600 106,950 1216
20 15,750 121,550 1216
21 17,850 137,300 6228
22 19,175 155,150 6228
23 20,550 174,325 6228
24 21,975 194,875 6228
25 23,450 216,850 6228
26 24,950 240,300 6228
27 26,475 265,250 6228
28 28,050 291,725 6228
29 29,675 319,775 6228
30 31,350 349,450 6228
31 33,050 380,800 6228
32 34,800 413,850 6228
33 36,575 448,650 6228
34 38,400 485,225 6228
35 40,250 523,625 6228
36 42,150 563,875 6228
37 44,100 606,025 6228
38 46,100 650,125 6228
39 48,125 696,225 6228
40 50,150 744,350 6228
41 54,875 794,500 6282
42 57,125 849,375 6282
43 59,400 906,500 6282
44 61,725 965,900 6282
45 64,100 1,027,625 6282
46 66,500 1,091,725 6282
47 68,925 1,158,225 6282
48 71,400 1,227,150 6282
49 73,950 1,298,550 6282
50 76,500 1,372,500 6282
51 83,075 1,449,000 9278
52 85,850 1,532,075 9278
53 88,650 1,617,925 9278
54 91,550 1,706,575 9278
55 94,425 1,798,125 9278
56 97,400 1,892,550 9278
57 100,350 1,989,950 9278
58 103,400 2,090,300 9278
59 106,475 2,193,700 9278
60 109,575 2,300,175 9278
61 118,350 2,409,750 12992
62 121,700 2,528,100 12992
63 125,100 2,649,800 12992
64 128,550 2,774,900 12992
65 132,050 2,903,450 12992
66 135,575 3,035,500 12992
67 139,125 3,171,075 12992
68 142,725 3,310,200 12992
69 146,375 3,452,925 12992
70 150,075 3,599,300 12992
71 161,525 3,749,375 17504
72 165,500 3,910,900 17504
73 169,500 4,076,400 17504
74 173,550 4,245,900 17504
75 177,650 4,419,450 17504
76 181,800 4,597,100 17504
77 186,000 4,778,900 17504
78 190,250 4,964,900 17504
79 194,525 5,155,150 17504
80 198,875 5,349,675 17504
81 234,725 5,548,550 37148
82 263,825 5,783,275 37148
83 296,400 6,047,100 37148
84 332,975 6,343,500 37148
85 373,950 6,676,475 37148
86 419,925 7,050,425 37148
87 471,375 7,470,350 37148
88 529,050 7,941,725 37148
89 593,675 8,470,775 37148
90 MAX 9,064,450 37148

Mora costs for The ascension weapon

For 3 star weapon to go

From lvl 20 to 20*, you need 5000 moras,

From lvl 40 to 40*, you need 10000 moras

From lvl 50 to 50*, you need 15000 moras

From lvl 60 to 60*, you need 20000 moras

From lvl 70 to 70*, you need 26000 moras

From lvl 80 to 80*, you need 30000 moras

For 4 star weapons to go

from lvl 20 to 20*, you need 5000 moras,

From lvl 40 to 40*, you need 15,000 moras

From lvl 50 to 50*, you need 20,000 moras

From lvl 60 to 60*, you need 30,000 moras

From lvl 70 to 70*, you need 35,000 moras

From lvl 80 to 80*, you need 45,000 moras

For 5 star weapons to go

From lvl 20 to 20*, you need 10,000 moras

From lvl 40 to 40*, you need 20,000 moras

From lvl 50 to 50*, you need 30,000 moras

From lvl 60 to 60*, you need 45,000 moras

From lvl 70 to 70*, you need 55,000 moras

From lvl 80 to 80*, you need 65,000 moras

If you have the Shogun Raiden, these costs can be divided by 2 if it's a sword or a polearm.