Nadi Dosha Calculator

Nadi Dosha Calculator helps evaluate Nadi Kuta in Vedic matchmaking by identifying dosha presence, cancellation rules, severity, and marriage suitability. It delivers structured, decision-ready results for couples seeking accurate kundli compatibility analysis.

DOSHA FREE
NADI KUTA SCORE
/8
STATUS: — MATCH: —
Dosha Presence
Bhanga (Cancel)
Marriage Permission
Risk Domain
01 Core Nadi Facts
Boy Nadi Profile
Element
System
Girl Nadi Profile
Element
System
Nadi Matching Result
Dosha
Type
02 Dosha Severity Engine
Severity Class
Intensity
Status
Bhanga Status
Rule
Authority
Marriage Permission Verdict
Advice
Shastra
03 Biological & Family Impact
Progeny Risk Indicator
Delay
Loss
Health Compatibility
Vitality
Nerves
Lineage Stability
Vamsha
Continuity
04 Relationship Dynamics
Temperament Harmony (Gana)
Score
Match
Intimacy Compatibility (Yoni)
Relation
Score
Mental Harmony
Wavelength
Clash
05 Decision Support
Remedy Requirement
Priority
Type
Remedy Strength Level
Effort
Duration
Astrologer Recommendation
Consult
Review

The Nadi Dosha Calculator is a digital assessment tool designed to process specific astrological data points into a quantified compatibility profile. This application functions by accepting user-defined inputs regarding birth stars (Nakshatras), quarter divisions (Padas), and lineage classifications (Gotra). It then executes a predefined logical sequence to determine the presence or absence of “Nadi Dosha,” a specific calculation variable within the Nadi Kuta system of Vedic compatibility algorithms.

The primary function of the Nadi Dosha Calculator is to compare the “Nadi” attribute assigned to two selected Nakshatras. In the underlying code, every Nakshatra is mapped to one of three Nadi categories: index 0 (Adi/Vata), index 1 (Madhya/Pitta), or index 2 (Antya/Kapha). The tool evaluates whether these indices match. If they are identical, the system flags a potential conflict known as “Dosha.” If they differ, the system assigns a maximum compatibility score.

Beyond the core Nadi check, the Nadi Dosha Calculator integrates a multi-layered verification engine. This engine checks for “Bhanga” (cancellation) exceptions based on Rasi (Moon sign) placement and Nakshatra distance. It also computes secondary compatibility metrics, specifically “Gana” (temperament) and “Yoni” (instinctual affinity), using hardcoded scoring matrices. The final output serves as a numerical and categorical dashboard, presenting the user with calculated scores, risk domain identifications, and algorithmic verdicts such as “Allowed” or “Denied” based strictly on the programmed logic conditions.

Inputs Used by the Nadi Dosha Calculator

To perform its calculations, the Nadi Dosha Calculator requires five distinct inputs. Each input corresponds to a variable used in the logical comparison statements within the script.

1. Boy’s Nakshatra

  • Data Type: Selection Index (0–26).
  • Definition: This input selects one object from the NAKSHATRAS constant array. The array contains 27 objects, ranging from “Ashwini” (Index 0) to “Revati” (Index 26).
  • Usage: The code retrieves specific properties associated with the selected Nakshatra, including its nad (Nadi type), rasi (Zodiac sign), gan (Temperament class), and yon (Animal symbol).

2. Girl’s Nakshatra

  • Data Type: Selection Index (0–26).
  • Definition: Similar to the Boy’s Nakshatra, this input selects the second entity for comparison from the same NAKSHATRAS data structure.
  • Usage: This input provides the comparison values (nad2, gan2, etc.) against which the first input is evaluated.

3. Boy’s Pada

  • Data Type: Integer (1, 2, 3, or 4).
  • Definition: This value represents the specific quarter of the Nakshatra.
  • Usage: This integer is used specifically in the “Pada Bhinda” exception logic. The Nadi Dosha Calculator checks if the integer value of the Boy’s Pada (p1) is strictly unequal to the Girl’s Pada (p2) when the Nakshatras are identical.

4. Girl’s Pada

  • Data Type: Integer (1, 2, 3, or 4).
  • Definition: The corresponding quarter division for the second subject.
  • Usage: Used in the conditional statement if (i1 === i2 && p1 !== p2) to trigger specific cancellation rules.

5. Gotra Status

  • Data Type: String Value (“diff” or “same”).
  • Definition: This input acts as a binary switch indicating lineage relationship.
  • Usage: This is a “hard override” variable. If the user selects “Same (Sagotra)”, the code immediately sets the severity variable to “Prohibited” and the permission variable to “Denied,” regardless of the Nadi score. This simulates the “Sagotra Dosha” rule.

How the Nadi Dosha Calculator Works

The execution flow of the Nadi Dosha Calculator follows a linear, step-by-step process defined in the calcDosha function. The logic moves from data retrieval to primary comparison, followed by exception checking, secondary scoring, and final aggregation.

Step 1: Data Retrieval and Parsing

Upon initialization, the code parses the user’s dropdown selections into integers. It retrieves the full data objects for both selected Nakshatras from the NAKSHATRAS array. For example, if “Krittika” is selected, the code loads its Nadi index (nad: 2), Rasi (rasi: "Mesha" or "Vrishabha"), Gana (gan: 2), and Yoni (yon: "Sheep").

Step 2: Core Nadi Comparison

The script executes the primary conditional check: const isNadiSame = (nad1 === nad2);.

  • Different Nadi: If nad1 is not equal to nad2, the variable nadiPoints is set to 8 (the maximum score), and doshaPresent is set to “NO”.
  • Same Nadi: If nad1 equals nad2, nadiPoints is set to 0, and doshaPresent is set to “YES”. This state triggers the “Bhanga” (Cancellation) verification subroutine.

Step 3: Bhanga (Exception) Verification

If the core Nadi comparison results in a match (Dosha), the Nadi Dosha Calculator runs a series of if/else if statements to see if the penalty can be neutralized. The system checks three specific conditions in this order:

  1. Pada Bhinda: The code checks if the Nakshatra indices are identical (i1 === i2) but the Padas are different (p1 !== p2). If true, isCancelled becomes true, and the status is recorded as “Pada Bhinda.”
  2. Rasi Ekatva: The code checks if the Rasi strings match (nak1.rasi === nak2.rasi) but the Nakshatra indices differ (i1 !== i2). If true, isCancelled becomes true, labeled as “Rasi Ekatva.”
  3. Rasi Bhinda: The code checks if the Rasi strings do not match. Within this block, it calculates the absolute distance between the Nakshatra indices (Math.abs(i1 - i2)). If this mathematical distance is greater than 8, isCancelled becomes true, labeled as “Rasi Bhinda.”

Step 4: Severity and Permission Logic

The code assigns final status strings based on the boolean states determined above:

  • Excellent: If Nadi is not same.
  • Denied (Sagotra): If the sagotra input was active (overrides all else).
  • Allowed (Conditional): If Nadi is same, but isCancelled is true. The severity is marked as “Neutralized.”
  • Not Recommended: If Nadi is same and isCancelled is false. The severity is marked as “Severe.”

Step 5: Secondary Compatibility Scoring (Gana and Yoni)

Parallel to the Nadi check, the calculator computes two other metrics using matrix logic:

  • Gana (Temperament): The code compares the gan indices (0=Deva, 1=Manushya, 2=Rakshasa).
    • Identical Gana or Deva(0)/Manushya(1) pairs result in 6 points.
    • Manushya(1)/Deva(0) results in 5 points.
    • Specific crosses like Deva(0)/Rakshasa(2) yield 1 point.
    • Oppositional pairs like Manushya(1)/Rakshasa(2) yield 0 points.
  • Yoni (Instinct): The code checks the yon strings against the YONI_ENEMIES object.
    • Same Yoni Animal = 4 points.
    • Enemy Pair (e.g., “Horse” vs “Buffalo”) = 0 points.
    • All other combinations = 2.5 points.

Step 6: Visual Rendering

Finally, the Nadi Dosha Calculator pushes these calculated values to the DOM elements, updating the score gauge, the status badges (e.g., “DOSHA FREE” or “HIGH RISK”), and the detailed data grid. A bar chart is generated using Chart.js to visualize the normalized scores out of 10.

Results and Metrics Explained

The Nadi Dosha Calculator outputs several specific metrics. Below is the mathematical and logical definition of each output field generated by the code.

Nadi Kuta Score

This is a discrete integer value, either 0 or 8.

  • 8/8: Indicates that the nad index of the first input does not equal the nad index of the second input, OR that a cancellation rule was applied (displayed as “8*”).
  • 0/8: Indicates that the nad indices are identical and no exception logic (isCancelled) was successfully triggered.

Dosha Severity Class

This metric categorizes the level of algorithmic conflict detected.

  • None: No Nadi overlap detected (nad1 !== nad2).
  • Neutralized: Nadi overlap exists (nad1 === nad2), but one of the three Bhanga conditions returned true.
  • Severe: Nadi overlap exists, and all Bhanga conditions returned false.
  • Prohibited: The Gotra input was set to “Same,” initiating a hard stop in the logic.

Gana Harmony Score

A value ranging from 0 to 6. This represents the result of the conditional matrix comparing the gan properties.

  • 6/6: Represents “Harmonious” alignment (Same Gana or Deva-Manushya).
  • 0/6 or 1/6: Represents “Discordant” alignment (involving Rakshasa-Manushya or Rakshasa-Deva pairings).

Yoni Compatibility Score

A value of 0, 2.5, or 4.

  • 4: Perfect Match (Identical yon strings).
  • 0: “Vaira” or Enemy match. This is determined by the YONI_ENEMIES lookup table which defines specific mutually exclusive pairs (e.g., “Cat” and “Rat”).
  • 2.5: Neutral match. Any pair not identical and not found in the enemy list.

Risk Domain

The code maps the Nadi index to a specific “biological” or “functional” label if a Dosha is present.

  • Health/Physiology: Output if Nadi index is 0 (Adi).
  • Progeny/Genetics: Output if Nadi index is 1 (Madhya).
  • Longevity/Stability: Output if Nadi index is 2 (Antya).
  • Lineage/Genetic: Output if Gotra is “Same.”

Interpreting the Calculation Output

The output of the Nadi Dosha Calculator should be interpreted as a direct reflection of the programmed conditions. The values are not qualitative judgments but result from strict if/then logic.

High Scores (8/8 Nadi, 6/6 Gana, 4/4 Yoni)

A high score in the Nadi section indicates that the selected Nakshatras belong to different Nadi groups (Vata, Pitta, Kapha) or that a specific exception rule (Bhanga) was satisfied. A high Gana score implies the gan indices follow the “Deva/Manushya” or “Same/Same” logic paths. A high Yoni score indicates identical animal symbols in the data set. In the tool’s display, these trigger the “DOSHA FREE” or “EXCEPTION APPLIED” badges.

Low Scores (0/8 Nadi, 0/6 Gana, 0/4 Yoni)

A score of 0 in the Nadi section signifies a collision: both Nakshatras share the same Nadi index (e.g., both are index 1, Madhya), and the inputs failed to meet the distance or Rasi requirements for cancellation. A score of 0 in Yoni signifies the inputs selected a pair explicitly defined as enemies in the YONI_ENEMIES constant. These values trigger the “HIGH RISK” and “Severe” status labels on the dashboard.

The “Consult” Flag

The Nadi Dosha Calculator includes a logic branch for recommendations. If the calculated severity is “Severe” or “Prohibited,” the tool outputs “YES” for “Consult.” If the severity is “Neutralized,” it outputs “Maybe.” This is a mechanical trigger based on the final severity string, prompting the user to acknowledge the mathematical conflict found in the data.

Assumptions and Calculation Limits

The Nadi Dosha Calculator operates within a specific set of boundaries and assumptions defined by its code structure.

  1. Fixed Dataset: The tool relies on a static array (NAKSHATRAS) of 27 entries. It does not account for variations in Nakshatra boundaries or alternative ayanamsa calculations. The Rasi (Sign) assignment for each Nakshatra is hardcoded (e.g., Krittika is split into Mesha and Vrishabha entries manually).
  2. Binary Nadi Logic: The Nadi calculation is binary; indices either match or they do not. The code does not implement fractional scores for Nadi.
  3. Specific Cancellation Rules: The tool only recognizes three specific cancellation rules: Pada Bhinda, Rasi Ekatva, and Rasi Bhinda (defined as distance > 8). Other cancellation rules found in broader astrological texts are not included in this code.
  4. Gotra Override: The Gotra input is a simple toggle. The code assumes that any “Same” Gotra selection warrants a “Prohibited” status, without analyzing the specific names of the Gotras.
  5. Yoni Enemy List: The “Enemy” status in Yoni matching is limited to the specific pairs defined in the YONI_ENEMIES object (Horse/Buffalo, Elephant/Lion, Sheep/Monkey, Serpent/Mongoose, Dog/Deer, Cat/Rat, Cow/Tiger). Any other non-identical pair defaults to 2.5 points.
  6. Hardcoded Scoring: The points (8 for Nadi, 6 for Gana, 4 for Yoni) are fixed constants.

Estimation Disclaimer

The results provided by this Nadi Dosha Calculator are algorithmic estimates based on standard Vedic matching logic implemented in JavaScript. These calculations are mathematical models and may not reflect the nuance or full scope of a professional astrological analysis. Users should view these scores as theoretical data points derived strictly from the inputs provided.

Related Tools & Calculators: