Determinants for matrices up to 3x3 can be found just by multiplying the right diagonals (\)and adding them together then by multiplying the left diagonals (/) and subtracting them from the total.
For a 2x2 matrix there is 1 right and 1 left diagonal and for a 3x3 matrix there are 3 right and 3 left diagonals. However, for larger matrices this method will not usually result in the determinant. Instead you have to use cofactors to calculate the matrix.
The cofactor of element (i,j) where i is the row and j is the column is the determinant of the matrix excluding the ith row and jth column.
The determinant of a matrix is then the sum along any row or column of the matrix of each cofactor, multiplied by its corresponding element multiplied by -1^(i+ j)
Suppose you have the 2x2 matrix
|a b|
|c d|
The cofactor of a is
|- -|
|- d|
which is just d (you don't subsisute 0 for the excluded row and column you just assume they don't exist.
Similarly, the cofactor of b is
|- -|
|c -|
which is just c.
So the determinant along row 1 is
D = -1^(1+1)*a*d + (-1)^(1+2)*b*c
D = ad-bc
which is just what you'd expect.
If I wanted to calculate the determinant over column 2 (b d) then the cofactor of b is c and the cofactor of d is a and
D = -1^(1+2)*b*c + -1^(2+2)*d*a
D = -bc+da
D = ad-bc
again. Now when you use this method to calculate the determinant of a 3x3 matrix, the cofactors will be determinants of 2x2 matrices (since a full row and column of a 3x3 matrix are excluded) which you know how to compute. Similarly, the cofactors of a 4x4 matrix are determinants of 3x3 matrices and you will see this is sort of a recursive relation.
Once you understand how to use cofactors, calculating a determinant of any matrix will become though tedious.
One tip is to calculate the determinant over a row or column with the most 0s since you don't need to calculate the cofactor of any 0 element.