Crab and shrimp wastes could be used as the cheapest raw materials for carotenoid pigments and also as an alternative to synthetic colors. The recovery of these valuable components from the aquatic waste could improve the aquatic processing industry and minimize the pollution potential of these wastes. In this research, Astaxanthin was used as the target extraction by using high performance liquid chromatography to analyze the extended pigments under different ultrasound assisted extraction (UAE) and microwave-assisted extraction (MAE) conditions,namely, number of extraction times, the extraction duration, ultrasound and microwave power and solvent to waste ratio, in order to understand the best condition of extraction. The optimal conditions for extracting crab wastes by UAE were at 3 times extraction with the solvent to waste ratio of 15: 1 ml/g, and a power of 90 W 2lasting for 30 second. Finally the astaxanthin yield was 1407. 12 ±,0. 58 μ, g/g and for shrimp wastes were at 1 times extraction with the solvent to waste ratio of 10: 1 ml/g, and a power of 150 W lasting for 150 second that ultimately the astaxanthin yield was 1257. 43 ±,0. 02 μ, g/g. The optimal conditions for extracting crab wastes by MAE were at 3 times extraction with the solvent to waste ratio of 15: 1 ml/g, and a power of 400 W lasting for 6 second. Finally the astaxanthin yield was 1082. 07 ±, 0. 25 μ, g/g and for shrimp wastes were at 3 times extraction with the solvent to waste ratio of 15: 1 ml/g, and a power of 600 W lasting for 6 second that ultimately the astaxanthin yield was1470. 25 ±,0. 47 μ, g/g. In comparison to the traditional method (soaking), the minimum amounts of carotenoid extraction from crab and shrimp wastes were respectively 95 and 11 times, respectively. Therefore, the method of response surface methodology in optimizing the process condition is one of the effective methods for carotenoid extraction from crab and shrimp wastes.