Neural Network Parameters Calculator
Calculate total parameters, weights, biases, and memory requirements for neural network architectures.
Inputs
Results
Total Parameters
118,282
Memory Required
0.45 MB
Total Weights118,016
Total Biases266
Memory Required0 GB
How to Use This Calculator
- Enter the network architecture: number of layers and units per layer.
- Input the input feature dimension and output classes or units.
- Review the total parameter count (weights + biases) for each layer and the network total.
- Compare parameter count to your dataset size: aim for at least 10 samples per parameter to avoid overfitting.
- Use the parameter count to estimate memory footprint and training compute requirements.
How the result changes with Neurons per Hidden Layer
| Neurons per Hidden Layer | Total Parameters | Memory Required |
|---|---|---|
| 10,001 | 107,980,807 | 411.91 MB |
| 35,001 | 1,252,930,807 | 4,779.55 MB |
| 65,000 | 4,276,740,010 | 16,314.47 MB |
| 90,000 | 8,171,640,010 | 31,172.33 MB |
What each input means
- Input Neurons
- Number of input neurons
- Hidden Layers
- Number of hidden layers
- Neurons per Hidden Layer
- Number of neurons in each hidden layer
- Output Neurons
- Number of output neurons
- Bias Terms
- Whether to include bias terms
How this is calculated
Formula
Parameters = (Input × Hidden) + (Hidden × Hidden) + (Hidden × Output) + BiasesWorked example, using the default values
- Identify Input Parameters4 parametersInput Neurons = 784, Hidden Layers = 2, Neurons per Hidden Layer = 128, Output Neurons = 10 = 5 input(s) provided
- Calculate Total ParametersTotal Parameters118282 = 118282
- Calculate Memory RequiredMemory Required0.45 = 0.45
- Calculate Total WeightsTotal Weights118016 = 118016
- Calculate Total BiasesTotal Biases266 = 266
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Machine Learning & AI
Gradient Descent Calculator
Calculate gradient descent parameters, convergence rate, effective learning rate, and training time estimates.
Machine Learning & AIModel Performance Metrics Calculator
Calculate accuracy, precision, recall, F1 score, MCC, AUC, and other classification performance metrics.
Machine Learning & AINeural Network Trainer Calculator
Complete neural network training analysis. Architecture design, learning rates, batch sizes, regularization, and activation functions.
More in Technology & Computing.