{"id":3411,"date":"2026-05-03T10:59:21","date_gmt":"2026-05-03T08:59:21","guid":{"rendered":"https:\/\/neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/"},"modified":"2026-10-12T13:35:01","modified_gmt":"2026-10-12T11:35:01","slug":"perceptron-the-main-component-of-neural-networks","status":"publish","type":"blog","link":"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/","title":{"rendered":"Mathematics of the perceptron neuron model"},"content":{"rendered":"<style>.ndb{width:100vw;margin-left:calc(50% - 50vw);background:#eeeeee;padding:22px 24px 14px;font-family:\"Outfit\",\"Roboto\",Arial,sans-serif;color:#1b2635}.ndb *{box-sizing:border-box}.ndb a{text-decoration:none}.ndb-wrap{width:min(100%,1200px);margin:0 auto}.ndb-lead{font-size:18px;line-height:1.6;color:#3a4a5a;font-weight:300;margin:0 0 22px}.ndb-lead a{color:#2d799f;font-weight:600}.ndb-toc{list-style:none;display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:0 0 42px;padding:0}.ndb-toc a{padding:10px 18px;background:#f2f2f2;border-radius:22px;color:#12354b!important;font-size:14px;font-weight:600;box-shadow:-6px -6px 12px rgba(255,255,255,.9),6px 6px 12px rgba(30,83,116,.10)}.ndb-toc a:hover{color:#2d799f!important}.ndb-card{margin:0 0 42px;padding:0;background:transparent;border-radius:0;box-shadow:none;scroll-margin-top:90px}.ndb-card h2{margin:0 0 20px;padding-bottom:12px;color:#001233;font-size:24px;font-weight:700;position:relative;border-bottom:1px solid #dbe5ec}.ndb-card h2:after{content:\"\";position:absolute;left:0;bottom:-1px;width:62px;height:3px;background:#56a1c8;border-radius:2px}.ndb-card p{margin:0 0 14px;font-size:16.5px;line-height:1.62;color:#33424f}.ndb-card a{color:#2d799f;font-weight:500}.ndb-card ul{margin:0 0 14px;padding-left:22px}.ndb-card li{margin:5px 0;font-size:16px;line-height:1.5;color:#33424f}.ndb-card img:not([src$=\".svg\"]):not([data-src$=\".svg\"]){display:block;width:auto;max-width:min(560px,100%);height:auto;margin:22px auto;border-radius:12px;box-shadow:0 12px 28px rgba(0,18,51,.12)}.ndb-card img[src$=\".svg\"],.ndb-card img[data-src$=\".svg\"]{display:inline-block;max-width:24px;height:auto;margin:0 6px -4px 0}.ndb-card table{border-collapse:separate;border-spacing:0;width:auto;max-width:100%;margin:22px 0;font-size:15px;background:#fbfcfd;border-radius:12px;overflow:hidden;box-shadow:0 10px 24px rgba(0,18,51,.08)}.ndb-card th,.ndb-card td{padding:11px 16px;border-bottom:1px solid #e6ecf0;text-align:left;vertical-align:top}.ndb-card thead th{background:#12354b!important;color:#fff!important;font-weight:600;text-align:center}.ndb-card tbody th{background:#e9f1f6!important;color:#12354b!important;font-weight:600}.ndb-card td{background:#fbfcfd!important;color:#33424f!important}.ndb-card pre{margin:22px 0;padding:22px 24px;background:#0b1830!important;color:#e6eef5!important;border-radius:14px;overflow-x:auto;font-family:Consolas,Menlo,monospace;font-size:12.5px;line-height:1.5;white-space:pre}.ndb-card--accent{background:transparent}.ndb-eq{text-align:center;margin:22px 0;overflow-x:auto}.ndb-card iframe{max-width:100%;border-radius:12px;margin:8px 0}.ndb-card .mjx-chtml.MJXc-display{overflow-x:auto;overflow-y:hidden;max-width:100%;padding:2px 0 8px}.ndb-card .mjx-chtml.MathJax_CHTML{font-size:18px!important}@media(max-width:820px){.ndb-card{padding:0}.ndb-card h2{font-size:21px}}@media(max-width:640px){.ndb{padding:12px 14px}}<\/style><div class=\"ndb\"><div class=\"ndb-wrap\"><div class=\"ndb-lead\"><p>One of the hottest topics of artificial intelligence and machine learning are&nbsp;<a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network\/\">neural networks<\/a>. These are computational models based on the brain&#8217;s structure, whose most significant property is their ability to learn from data.<\/p>\n<p><a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network\/\">Neural networks<\/a>&nbsp;are usually arranged as sequences of layers. In turn, layers are made up of individual neurons. Therefore, neurons are the basic information processing units in neural networks.<\/p>\n<p>The most widely used neuron model is the perceptron. This is the neuron model behind&nbsp;<a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network\/#PerceptronLayer\">perceptron layers<\/a> (also called dense layers), which are present in the majority of&nbsp;<a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network\/\">neural networks<\/a>.<\/p>\n<p>This post takes the perceptron apart one piece at a time. It starts from the equation that defines it, follows a complete numerical example with four inputs, and ends with the step from a single neuron to a dense layer:<\/p>\n<ol>\n<li><a href=\"#PerceptronEquation\">The perceptron in one equation<\/a>.<\/li>\n<li><a href=\"#WorkedExample\">Computing a neuron by hand<\/a>.<\/li>\n<li><a href=\"#WeightsAndBias\">What the weights and the bias do<\/a>.<\/li>\n<li><a href=\"#ActivationFunction\">Choosing the activation function<\/a>.<\/li>\n<li><a href=\"#DenseLayer\">From one perceptron to a dense layer<\/a>.<\/li>\n<li><a href=\"#Conclusions\">Conclusions<\/a>.<\/li>\n<\/ol>\n<\/div><ul class=\"ndb-toc\"><li><a href=\"#PerceptronEquation\">One equation<\/a><\/li><li><a href=\"#WorkedExample\">Worked example<\/a><\/li><li><a href=\"#WeightsAndBias\">Weights and bias<\/a><\/li><li><a href=\"#ActivationFunction\">Activation functions<\/a><\/li><li><a href=\"#DenseLayer\">Dense layer<\/a><\/li><li><a href=\"#Conclusions\">Conclusions<\/a><\/li><\/ul><div class=\"ndb-card\" id=\"PerceptronEquation\"><span id=\"PerceptronElements\" aria-hidden=\"true\"><\/span><span id=\"OutputFunction\" aria-hidden=\"true\"><\/span><h2>The perceptron in one equation<\/h2><p>A perceptron turns a list of numbers into a single number, and it does so in two stages. The first stage is linear: it multiplies every input by a weight, adds the results and adds a constant. The second stage is nonlinear: it passes that sum through a fixed function. The whole computation fits in one line,<\/p>\n<div class=\"ndb-eq\">$$ y = a\\left(b + \\sum_{i=1}^{n} w_i\\, x_i\\right). $$<\/div>\n<p>The following table summarizes the symbols in this formula.<\/p>\n<table>\n<thead><tr><th>Symbol<\/th><th>Name<\/th><th>Meaning<\/th><\/tr><\/thead>\n<tbody>\n<tr><th>\\( \\mathbf{x}=(x_1,\\ldots,x_n) \\)<\/th><td>Inputs<\/td><td>In the first layer of a model, the scaled values of the input variables; deeper in the network, the outputs of the previous layer.<\/td><\/tr>\n<tr><th>\\( \\mathbf{w}=(w_1,\\ldots,w_n) \\)<\/th><td>Weights<\/td><td>One for each input; they set how much, and in which direction, each input counts.<\/td><\/tr>\n<tr><th>\\( b \\)<\/th><td>Bias<\/td><td>A constant term that does not depend on the inputs.<\/td><\/tr>\n<tr><th>\\( c = b + \\sum_{i} w_i x_i \\)<\/th><td>Combination<\/td><td>The result of the linear stage, also known as net input or pre-activation.<\/td><\/tr>\n<tr><th>\\( a(\\cdot) \\)<\/th><td>Activation function<\/td><td>The nonlinear function applied to the combination.<\/td><\/tr>\n<tr><th>\\( y = a(c) \\)<\/th><td>Output<\/td><td>The value that the neuron passes on to the next layer or returns as a prediction.<\/td><\/tr>\n<\/tbody>\n<\/table>\n<p><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/perceptron-anatomy.svg\" alt=\"Perceptron diagram: each input is multiplied by its weight, the products and the bias are added into the combination c, and the activation function turns c into the output y\" width=\"640\" height=\"300\" style=\"display:block;width:100%;max-width:640px;height:auto;margin:22px auto;border-radius:12px;box-shadow:0 12px 28px rgba(0,18,51,.12)\"><\/p>\n<p>Only the weights and the bias change during training. A perceptron with \\( n \\) inputs therefore has \\( n+1 \\) trainable parameters. The activation function, on the other hand, is part of the design of the network and stays fixed.<\/p>\n<\/div><div class=\"ndb-card\" id=\"WorkedExample\"><span id=\"CombinationFunction\" aria-hidden=\"true\"><\/span><h2>Computing a neuron by hand<\/h2><p>A numerical example makes the equation concrete. Consider a neuron in the first hidden layer of a model with four input variables. The scaling layer has already transformed the raw data, and the neuron receives<\/p>\n<div class=\"ndb-eq\">$$ \\mathbf{x} = (0.6,\\ {-1.3},\\ 0.5,\\ 0.9). $$<\/div>\n<p>Its parameters, obtained by training, are a bias \\( b = 0.35 \\) and the weights \\( \\mathbf{w} = (1.5,\\ 0.4,\\ {-0.7},\\ {-1.2}) \\), five parameters in total. The neuron uses the hyperbolic tangent as activation function.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/perceptron-worked-example.svg\" alt=\"Worked example: four inputs with their weights, the bias 0.35, the combination -0.70 and the output tanh(-0.70) = -0.604\" width=\"640\" height=\"330\" style=\"display:block;width:100%;max-width:640px;height:auto;margin:22px auto;border-radius:12px;box-shadow:0 12px 28px rgba(0,18,51,.12)\"><\/p>\n<p><strong>Step 1: the combination.<\/strong> Each input is multiplied by its weight:<\/p>\n<table>\n<thead><tr><th>Input<\/th><th>Value \\( x_i \\)<\/th><th>Weight \\( w_i \\)<\/th><th>Product \\( w_i x_i \\)<\/th><\/tr><\/thead>\n<tbody>\n<tr><th>1<\/th><td>0.6<\/td><td>1.5<\/td><td>0.90<\/td><\/tr>\n<tr><th>2<\/th><td>\u22121.3<\/td><td>0.4<\/td><td>\u22120.52<\/td><\/tr>\n<tr><th>3<\/th><td>0.5<\/td><td>\u22120.7<\/td><td>\u22120.35<\/td><\/tr>\n<tr><th>4<\/th><td>0.9<\/td><td>\u22121.2<\/td><td>\u22121.08<\/td><\/tr>\n<tr><th>Sum<\/th><td><\/td><td><\/td><td>\u22121.05<\/td><\/tr>\n<\/tbody>\n<\/table>\n<p>Adding the bias to the sum of the products gives<\/p>\n<div class=\"ndb-eq\">$$ c = 0.35 + (-1.05) = -0.70. $$<\/div>\n<p><strong>Step 2: the activation.<\/strong> The hyperbolic tangent of the combination is the output of the neuron:<\/p>\n<div class=\"ndb-eq\">$$ y = \\tanh(-0.70) \\approx -0.604. $$<\/div>\n<p>That is all a perceptron does in a forward pass: four multiplications, four additions and one evaluation of the activation function. A dense layer repeats this for each of its neurons, and a network repeats it layer after layer.<\/p>\n<\/div><div class=\"ndb-card\" id=\"WeightsAndBias\"><span id=\"NeuronParameters\" aria-hidden=\"true\"><\/span><h2>What the weights and the bias do<\/h2><p>A weight tells how sensitive the combination is to its input. If \\( x_i \\) changes by an amount \\( \\Delta \\) and the other inputs stay the same, the combination changes by exactly \\( w_i \\Delta \\). The sign of the weight gives the direction of the effect and its magnitude gives the strength; a weight near zero means that the neuron practically ignores that input.<\/p>\n<p>Back to the example: if the second input rises from \u22121.3 to 1.3, the combination grows by \\( 0.4 \\times 2.6 = 1.04 \\), from \u22120.70 to 0.34, and the output changes from \u22120.604 to \\( \\tanh(0.34) \\approx 0.327 \\). The same change in the third input would move the combination by \\( -0.7 \\times 2.6 = -1.82 \\): in the opposite direction and 1.75 times as far.<\/p>\n<p>The bias is the value that the combination takes when all the inputs are zero. It lets the neuron give a nonzero response to a zero input, and it shifts the region of the input space where the activation function moves from low to high values. A common notational shortcut treats it as one more weight: add a constant input \\( x_0 = 1 \\) with weight \\( w_0 = b \\), and the combination becomes the single sum \\( c = \\sum_{i=0}^{n} w_i x_i \\).<\/p>\n<p>There is also a geometric way to see this. The inputs for which \\( c = 0 \\) form a hyperplane in the input space: a line when there are two inputs, a plane when there are three. The weight vector is perpendicular to that hyperplane, and its distance from the origin is \\( |b| \/ \\lVert \\mathbf{w} \\rVert \\). The combination is positive on one side and negative on the other, so a single perceptron can only separate two classes if a hyperplane can split them. Combining many perceptrons removes that limitation.<\/p>\n<\/div><div class=\"ndb-card\" id=\"ActivationFunction\"><h2>Choosing the activation function<\/h2><p>The combination is a linear function of the inputs. The activation function is where nonlinearity enters the model: without it, any stack of layers would reduce to a single linear transformation, however deep it was. Which function to use depends on the position of the neuron in the network and on what its output has to represent. Neural Designer supports several of them; these four cover most dense layers:<\/p>\n<ul>\n<li><a href=\"#LinearActivation\">Linear activation<\/a>.<\/li>\n<li><a href=\"#LogisticActivation\">Logistic activation<\/a>.<\/li>\n<li><a href=\"#HyperbolicTangentActivation\">Hyperbolic tangent activation<\/a>.<\/li>\n<li><a href=\"#RectifiedLinearActivation\">Rectified linear (ReLU) activation<\/a>.<\/li>\n<\/ul>\n<p>To compare them, each subsection applies the function to the combination of our example, \\( c = -0.70 \\).<\/p>\n<h3 id=\"LinearActivation\">Linear activation<\/h3>\n<p>The linear activation returns the combination unchanged:<\/p>\n<div class=\"ndb-eq\">$$ a(c) = c. $$<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/linear.webp\" alt=\"Linear activation function\"><\/p>\n<p>Its output can take any real value, so it places no bounds on the prediction. That makes it the standard choice for the output layer of <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-networks-applications\/#Approximation\">approximation<\/a> models, whose targets are continuous quantities such as a temperature or a price. In the example, the output would be \u22120.70.<\/p>\n<h3 id=\"LogisticActivation\">Logistic activation<\/h3>\n<p>The logistic function, also called the sigmoid, maps any real number into the interval between 0 and 1:<\/p>\n<div class=\"ndb-eq\">$$ a(c) = \\frac{1}{1+e^{-c}}. $$<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/logistic.webp\" alt=\"Logistic activation function\"><\/p>\n<p>Large negative combinations give outputs close to 0, large positive ones give outputs close to 1, and \\( c = 0 \\) gives exactly 0.5. Because the output always lies strictly between 0 and 1, it can be read as a probability, and Neural Designer uses this function in the output layer of <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-networks-applications\/#Classification\">binary classification<\/a> models. In the example, \\( a(-0.70) = 1\/(1+e^{0.70}) \\approx 0.332 \\).<\/p>\n<h3 id=\"HyperbolicTangentActivation\">Hyperbolic tangent activation<\/h3>\n<p>The hyperbolic tangent has the same S shape as the logistic function, but it is symmetric about the origin and its values lie between \u22121 and 1:<\/p>\n<div class=\"ndb-eq\">$$ a(c) = \\tanh(c) = \\frac{e^{c}-e^{-c}}{e^{c}+e^{-c}}. $$<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/hyperbolic_tangent.webp\" alt=\"Hyperbolic tangent activation function\"><\/p>\n<p>The two functions are closely related, since \\( \\tanh(c) = 2\\,\\sigma(2c) &#8211; 1 \\), where \\( \\sigma \\) denotes the logistic function. Close to \\( c = 0 \\), the hyperbolic tangent is almost the identity; for large \\( |c| \\), it flattens out towards \u22121 or 1. Its outputs are centered on zero, which usually makes the training of the next layer easier, and it is a frequent choice for the hidden layers of <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-networks-applications\/#Approximation\">approximation<\/a> and <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-networks-applications\/#Classification\">classification<\/a> models. In the example, \\( \\tanh(-0.70) \\approx -0.604 \\).<\/p>\n<h3 id=\"RectifiedLinearActivation\">Rectified linear (ReLU) activation<\/h3>\n<p>The rectified linear unit sets negative combinations to zero and lets zero or positive ones pass unchanged:<\/p>\n<div class=\"ndb-eq\">$$ a(c) = \\max(0,\\ c). $$<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/rectified-linear-activation.webp\" alt=\"rectified linear activation function\"><\/p>\n<p>Evaluating it only takes a comparison, and its slope is exactly 1 for every positive combination, so the gradients used in training do not shrink as they travel back through many active neurons. For these reasons, it is the usual hidden activation in deep and convolutional networks. In the example, the combination is negative and the output is 0: for this input the neuron is inactive and, during training, it would pass no gradient to its weights.<\/p>\n<p>The following table summarizes the four functions and their outputs for the combination of the example.<\/p>\n<table>\n<thead><tr><th>Activation<\/th><th>Range<\/th><th>Output for \\( c=-0.70 \\)<\/th><th>Usual place in the network<\/th><\/tr><\/thead>\n<tbody>\n<tr><th>Linear<\/th><td>\\( (-\\infty,\\ \\infty) \\)<\/td><td>\u22120.700<\/td><td>Output layer of approximation and forecasting models<\/td><\/tr>\n<tr><th>Logistic<\/th><td>\\( (0,\\ 1) \\)<\/td><td>0.332<\/td><td>Output layer of binary classification models<\/td><\/tr>\n<tr><th>Hyperbolic tangent<\/th><td>\\( (-1,\\ 1) \\)<\/td><td>\u22120.604<\/td><td>Hidden layers<\/td><\/tr>\n<tr><th>ReLU<\/th><td>\\( [0,\\ \\infty) \\)<\/td><td>0<\/td><td>Hidden layers, especially in deep networks<\/td><\/tr>\n<\/tbody>\n<\/table>\n<\/div><div class=\"ndb-card\" id=\"DenseLayer\"><h2>From one perceptron to a dense layer<\/h2><p>A single perceptron produces one number and can only draw one hyperplane through the input space. Useful models need many of them working together. A dense layer, also called a perceptron layer, places \\( m \\) perceptrons side by side: all of them read the same \\( n \\) inputs, and each one has its own weights and bias.<\/p>\n<p>If the weight vectors are stacked as the rows of an \\( m \\times n \\) matrix \\( \\mathbf{W} \\) and the biases are collected in a vector \\( \\mathbf{b} \\), the whole layer is computed at once as<\/p>\n<div class=\"ndb-eq\">$$ \\mathbf{y} = a\\left(\\mathbf{b} + \\mathbf{W}\\mathbf{x}\\right), $$<\/div>\n<p>where the activation function acts on each of the \\( m \\) combinations separately. Such a layer has \\( m(n+1) \\) parameters: if the neuron of our example were one of three neurons in a dense layer with four inputs, the layer would have \\( 3 \\times (4+1) = 15 \\) parameters.<\/p>\n<p>Dense layers are chained: what one layer produces is what the next one receives. With nonlinear activations in the hidden layers, a chain of such layers can represent very complex relationships between inputs and targets, and training adjusts all the weights and biases together to minimize the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy\/#LossIndex\">loss index<\/a>. For classification with more than two classes, the output layer uses the softmax function instead of an element-wise activation, so that the outputs are probabilities that add up to 1. The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network\/#DenseLayer\">Neural network tutorial<\/a> describes dense layers and the other layer types in more detail.<\/p>\n<\/div><div class=\"ndb-card ndb-card--accent\" id=\"Conclusions\"><h2>Conclusions<\/h2><p>A perceptron is a weighted sum followed by a nonlinear function. Its weights and bias decide how much each input counts, and its activation function decides the shape and the range of the response. Working through a neuron by hand, as we did with four inputs, is the quickest way to see what each parameter does.<\/p>\n<p>By itself, a perceptron can only split the input space with a hyperplane. That limit disappears when many perceptrons work together: grouped into dense layers, with the layers chained one after another, they can learn highly nonlinear relationships from data.<\/p>\n<p><img decoding=\"async\" style=\"width: 400px; max-width: 100%;\" src=\"https:\/\/www.neuraldesigner.com\/images\/neural_network.webp\" alt=\"Deep Neural Network\"><\/p>\n<p>Although we have seen the functioning of the perceptron in this post, other neuron models have different characteristics and are used for different purposes.<\/p>\n<p>Some of them are the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network\/#ScalingLayer\">scaling neuron<\/a>, the principal components neuron, or the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network\/#UnscalingLayer\">unscaling neuron<\/a>.<\/p>\n<p>Some neuron models only make sense when they are contextualized in a layer and cannot be defined individually. Some of these are the recurrent, long-short term memory (LSTM) or&nbsp;<a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network\/#ProbabilisticLayer\">probabilistic<\/a> layers.<\/p>\n<aside class=\"ndb-cta\" aria-labelledby=\"perceptron-cta-title\" style=\"margin:2rem 0 0;padding:1.5rem;border:1px solid #d8e2ef;border-radius:12px;background:#f6f9fc;\">\n<h2 id=\"perceptron-cta-title\" style=\"margin-top:0;\">Build a neural network from perceptrons<\/h2>\n<p>Move from the neuron equations in this article to a complete trainable model in Neural Designer, including architecture design, training, testing, and deployment.<\/p>\n<p style=\"display:flex;flex-wrap:wrap;gap:0.75rem;margin-bottom:0;\">\n<a href=\"https:\/\/www.neuraldesigner.com\/downloads\/\" data-nd-cta=\"perceptron-article-download\" onclick=\"if(typeof gtag==='function'){gtag('event','cta_click',{cta_name:'perceptron_article_download',link_url:this.href});}\" style=\"display:inline-block;padding:0.75rem 1rem;border-radius:6px;background:#1261a0;color:#fff;text-decoration:none;font-weight:600;\">Download Neural Designer<\/a>\n<a href=\"https:\/\/www.neuraldesigner.com\/learning\/user-guide\/design-a-neural-network\/\" data-nd-cta=\"perceptron-article-guide\" onclick=\"if(typeof gtag==='function'){gtag('event','cta_click',{cta_name:'perceptron_article_guide',link_url:this.href});}\" style=\"display:inline-block;padding:0.75rem 1rem;border:1px solid #1261a0;border-radius:6px;color:#1261a0;text-decoration:none;font-weight:600;\">Build a neural network in 7 steps<\/a>\n<\/p>\n<\/aside>\n<\/div><\/div><\/div>","protected":false},"author":13,"featured_media":1730,"template":"","categories":[],"tags":[36],"class_list":["post-3411","blog","type-blog","status-publish","has-post-thumbnail","hentry","tag-tutorials"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Perceptron Formula: The Math of the Neuron Model Explained<\/title>\n<meta name=\"description\" content=\"The perceptron formula step by step: weights, bias, combination and activation function, with a worked numerical example and the step to a dense layer.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Perceptron Formula: The Math of the Neuron Model Explained\" \/>\n<meta property=\"og:description\" content=\"The perceptron formula step by step: weights, bias, combination and activation function, with a worked numerical example and the step to a dense layer.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/\" \/>\n<meta property=\"og:site_name\" content=\"Neural Designer\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-12T11:35:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/perceptron-neuron-blog.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@NeuralDesigner\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/\",\"url\":\"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/\",\"name\":\"Perceptron Formula: The Math of the Neuron Model Explained\",\"isPartOf\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/perceptron-neuron-blog.webp\",\"datePublished\":\"2026-05-03T08:59:21+00:00\",\"dateModified\":\"2026-10-12T11:35:01+00:00\",\"description\":\"The perceptron formula step by step: weights, bias, combination and activation function, with a worked numerical example and the step to a dense layer.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/#primaryimage\",\"url\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/perceptron-neuron-blog.webp\",\"contentUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/perceptron-neuron-blog.webp\",\"width\":1200,\"height\":628,\"caption\":\"Perceptron neuron\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.neuraldesigner.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Blog\",\"item\":\"https:\/\/www.neuraldesigner.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Mathematics of the perceptron neuron model\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#website\",\"url\":\"https:\/\/www.neuraldesigner.com\/\",\"name\":\"Neural Designer\",\"description\":\"No-code AI Platform\",\"publisher\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.neuraldesigner.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#organization\",\"name\":\"Neural Designer\",\"url\":\"https:\/\/www.neuraldesigner.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png\",\"contentUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png\",\"width\":1024,\"height\":223,\"caption\":\"Neural Designer\"},\"image\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/NeuralDesigner\",\"https:\/\/es.linkedin.com\/showcase\/neuraldesigner\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Perceptron Formula: The Math of the Neuron Model Explained","description":"The perceptron formula step by step: weights, bias, combination and activation function, with a worked numerical example and the step to a dense layer.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/","og_locale":"en_US","og_type":"article","og_title":"Perceptron Formula: The Math of the Neuron Model Explained","og_description":"The perceptron formula step by step: weights, bias, combination and activation function, with a worked numerical example and the step to a dense layer.","og_url":"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/","og_site_name":"Neural Designer","article_modified_time":"2026-10-12T11:35:01+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/perceptron-neuron-blog.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_site":"@NeuralDesigner","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/","url":"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/","name":"Perceptron Formula: The Math of the Neuron Model Explained","isPartOf":{"@id":"https:\/\/www.neuraldesigner.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/#primaryimage"},"image":{"@id":"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/#primaryimage"},"thumbnailUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/perceptron-neuron-blog.webp","datePublished":"2026-05-03T08:59:21+00:00","dateModified":"2026-10-12T11:35:01+00:00","description":"The perceptron formula step by step: weights, bias, combination and activation function, with a worked numerical example and the step to a dense layer.","breadcrumb":{"@id":"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/#primaryimage","url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/perceptron-neuron-blog.webp","contentUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/perceptron-neuron-blog.webp","width":1200,"height":628,"caption":"Perceptron neuron"},{"@type":"BreadcrumbList","@id":"https:\/\/www.neuraldesigner.com\/blog\/perceptron-the-main-component-of-neural-networks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.neuraldesigner.com\/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https:\/\/www.neuraldesigner.com\/blog\/"},{"@type":"ListItem","position":3,"name":"Mathematics of the perceptron neuron model"}]},{"@type":"WebSite","@id":"https:\/\/www.neuraldesigner.com\/#website","url":"https:\/\/www.neuraldesigner.com\/","name":"Neural Designer","description":"No-code AI Platform","publisher":{"@id":"https:\/\/www.neuraldesigner.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.neuraldesigner.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.neuraldesigner.com\/#organization","name":"Neural Designer","url":"https:\/\/www.neuraldesigner.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png","contentUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png","width":1024,"height":223,"caption":"Neural Designer"},"image":{"@id":"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/NeuralDesigner","https:\/\/es.linkedin.com\/showcase\/neuraldesigner\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/blog\/3411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/users\/13"}],"version-history":[{"count":10,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/blog\/3411\/revisions"}],"predecessor-version":[{"id":24333,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/blog\/3411\/revisions\/24333"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/media\/1730"}],"wp:attachment":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/media?parent=3411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/categories?post=3411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/tags?post=3411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}