Built and fact-checked by the DocNectar team — see our editorial standards
Key Features
Instant Calculation
Get accurate results in real time with our optimized algorithm.
Mobile Friendly
Fully responsive design. Works on all devices & screen sizes.
Privacy Focused
Your data stays on your device. We don't store any inputs.
100% Free
No hidden costs. This tool is completely free forever.
The Hadamard product multiplies two matrices of the same size element by element, unlike standard matrix multiplication which combines rows and columns — it's a common operation in machine learning (element-wise gating) and image processing (masking).
This calculator finds the Hadamard product of two same-size matrices, from 2×2 up to 6×6.
How it works
Enter the shared size and the elements of Matrix A and Matrix B. The calculator multiplies each pair of matching entries directly — the entry in row i, column j of the result is simply that same position from A times that same position from B.
- Click Calculate to see your results.
Examples
A 2×2 example
For A = [[1,2],[3,4]] and B = [[5,6],[7,8]], the Hadamard product is [[5,12],[21,32]].
Who should use it
- Coursework involving element-wise matrix operations.
- Understanding gating or masking operations used in machine learning.
Industry applications
- Machine learning and neural networks
- Image and signal processing
Advantages
- Simple, fast calculation — each entry only depends on the matching entries in A and B.
- Supports matrices up to 6×6.
Limitations
- Only defined for matrices of exactly the same size.
Common mistakes to avoid
- Confusing the Hadamard product with standard matrix multiplication, which uses a completely different formula.
- Trying to compute the Hadamard product for matrices of different sizes, which isn't defined.
Best practices
- Double check both matrices are exactly the same size before entering them — the calculator won't combine mismatched dimensions.
Tips
- If you see the notation A∘B or A⊙B in a textbook, that's the Hadamard product — different from the plain "AB" notation used for standard matrix multiplication.