In this paper we study some products related to quadratic residues and quartic residues modulo primes. Let p be an odd prime and let A be any integer. We mainly determine completely the product fp(A):=∏p∤i2−Aij−j21≤i,j≤(p−1)/2(i2−Aij−j2) modulo p; for example, if p≡1(mod4) then fp(A)≡{−(A2+4)(p−1)/4(modp)(−A2−4)(p−1)/4(modp)if (pA2+4)=1,if (pA2+4)=−1, where (p⋅) denotes the Legendre symbol. We also determine ∏p∤2i2+5ij+2j2i,j=1(p−1)/2(2i2+5ij+2j2) and ∏p∤2i2−5ij+2j2i,j=1(p−1)/2(2i2−5ij+2j2) modulo p.