What you need
You need your date of birth, your time of birth, and the place of birth (or at least its time zone). The date tells you roughly where the Moon was; the time and place pin it down to the minute. Because the Moon moves about half a degree an hour, an error of two hours moves it a full degree, which is enough to cross a boundary.
Use the ordinary solar (Gregorian) date. If your family records your birthday in the lunar calendar, convert it first. A lunar date entered as if it were solar will put the Moon weeks away from its real position.
Step 1: where was the Moon?
The first step is astronomical. From the date, time and place, an ephemeris (a table of planetary positions) gives the Moon's longitude: its position along the zodiac, from 0 to 360 degrees. Modern software does this with high precision using the same astronomical models observatories use.
At this stage the longitude is tropical, measured from the spring equinox, which is how Western astrology and astronomy measure it.
Step 2: the sidereal correction
Vedic astrology measures from a fixed point among the stars instead of the equinox. The difference between the two, the ayanamsa, is about 24.2 degrees today and grows by roughly one degree every 72 years. Subtracting it from the tropical longitude gives the sidereal longitude, the Moon's position in the Vedic zodiac.
Several ayanamsa values exist. This site uses Lahiri (Chitrapaksha), the Indian government standard. Others, such as Raman or Krishnamurti, differ by a fraction of a degree to about a degree and a half, which can change the birth star for people born near a boundary.
Step 3: divide by 13°20′
Each birth star spans 13 degrees 20 minutes (13.333 degrees). Divide the Moon's sidereal longitude by 13.333, round down, and add one: that is the number of your birth star, counting from Ashwini as 1 to Revati as 27.
For example, a sidereal Moon at 100 degrees gives 100 ÷ 13.333 = 7.5. Round down to 7, add one, and you get star number 8, Pushya, which runs from 93°20′ to 106°40′. The fraction left over tells you how far through the star the Moon had travelled, here about halfway. That fraction is used twice more: to find the pada and to work out how much of the first dasha period remains at birth.
Step 4: the pada
Each star divides into four padas of 3 degrees 20 minutes. In the example above, the Moon is 6°40′ into Pushya, which is exactly two padas in, so it falls in the third pada. Each pada carries a naming syllable and maps to a sign in the navamsa chart, which adds a layer of detail to the reading.
If you do not know your birth time
Without a time, the usual convention is to assume noon, which places the Moon within about six and a half degrees of its true position. On most days the Moon stays in one star the whole day, so the result is right. But the Moon spends roughly a day in each star and the changeover can happen at any hour, so for about one person in four the star changes at some point during their birth day.
Some practical ways to narrow it down: birth certificates in many countries record the time; hospitals sometimes keep records; parents often remember whether it was morning or night, which halves the uncertainty. If you cannot find out, read both possible stars and see which description fits. This site shows a provisional result and tells you when your birth day straddles two stars.
Why it is worth getting right
The birth star sets more than a personality description. It decides the first planet of your dasha sequence and therefore the timing of every chapter afterwards. It is the main input to compatibility matching. And it is the basis for choosing auspicious days in the traditional calendar. A wrong star shifts all of these at once, which is why a few minutes spent finding your birth time pays off.
Checking your result
The easiest independent check is a printed or online panchang, the traditional Indian almanac. For every day it lists the birth star the Moon occupies and the time at which it changes. If your birth time falls before the change, you have the earlier star; if after, the later one. Be sure the panchang is set for the time zone of your birthplace.
Two technical traps catch many people. The first is daylight saving time. Several countries have used it in some years and not others; South Korea, for example, observed it in 1987 and 1988, and earlier in some years between 1948 and 1960. A birth time recorded during daylight saving is one hour ahead of standard time, which moves the Moon about half a degree. The second is births abroad: always use the local time and place of birth, not the time in your home country.
If two sites still disagree after these checks, the difference is almost always the ayanamsa. Compare the Moon's sidereal longitude on both: a gap of about one degree or more points to a different ayanamsa rather than an error.