A college student is helping young adults feel more confident in the future of their love life with a new insurance policy tool.
Finding "the one" can be something that happens early in life for some people — or later on for others.
In 2022, the average age of marriage for a female was 30, while the average age of marriage for a male was 32, according to the Knot.
ARIZONA WOMAN, 27, MARRIES BEST FRIEND'S DAD, 54, AND NOW THEY ALL VACATION TOGETHER
Liam McGregor, however, is making sure that even those at the age of 30 and 32 have an "insurance policy" for living a life in marriage.
In 2017, McGregor and another college student started the Marriage Pact — a tool for students at Stanford University to have a spousal "backup plan."
Essentially, students who sign up will take a questionnaire that will then match them with someone on campus. They'll receive some "quality" results of their survey plus an email address to reach out to the person if they so choose.
BEST MAN LOSES FRIENDS AND GIRLFRIEND AFTER DRUNKENLY PROPOSING MID-RECEPTION
McGregor told Fox News Digital the purpose of the pact.
"A marriage pact is an informal agreement between two people that if both parties remain unmarried by the time they turn 30 or 40, to simply marry each other," he said.
He added, "When you look up from your career in your mid-30s and realize you never prioritized ‘the one’ … you're going to need a backup plan. The Marriage Pact matches you with your optimal backup plan in your community, based on what really matters in lifelong relationships."
The questions on the Marriage Pact vary based on the particular college campus — and students can be matched only with others from their same school.
DIVORCED BEST FRIENDS ANNOUNCE THAT WHEN DATING MEN, THEY ‘COME AS A PACKAGE’ DEAL
The 50-question survey is based on core values, according to the Associated Press, and includes questions about communication styles, conflict resolution, smoking and drug habits and more.
McGregor told Fox News Digital the algorithm doesn't ask for pictures, height or any of the other typical dating site criteria — saying there's "no swiping or search[ing]."
An example of a question used at the University of Michigan is: "There is a place for revenge when someone has wronged me."
From there, the students must rate their response on a scale of one to seven, with one being "turn the other cheek" and seven being "plotting rn (right now)."
A question on the Boston College Marriage Pact is: "I would end a friendship over differing political views."
Notre Dame has one that reads: "I would send older relatives to a nursing home."
Based on how individuals respond, the algorithm attempts to match them with their optimal marriage backup plan partner.
TEXAS COUPLE SAYS ‘I DO’ IN 100% TOTALITY DURING SOLAR ECLIPSE: ‘JUST MAGICAL’
"It's designed using decades of relationship science research to match you with the person who you're most likely to be compatible with in the long term," he said.
The economics student, who graduated from Stanford University in 2020, had over 1,000 people sign up from Stanford on the first day, followed by another 1,000 the next and so on.
McGregor said that by the end of the first week of Marriage Pact, 60% of Stanford students had signed up to get their "optimal marital backup plan."
McGregor told Fox News Digital he was "floored" by the initial response to the survey.
"The way people describe it, it's the only thing people can talk about for weeks when the Marriage Pact happens at their school," he said.
Now, seven years later, Marriage Pact is on 88 college campuses across the country and has nearly 500,000 participants.
The U.S. Department of Education and Marriage Pact say there are 14 schools where students are more likely to make a pact by the end of their senior year than students who will graduate.
McGregor said students from 15 different schools initially tried to join the Marriage Pact when it was released at Stanford — and the interest grew from there.
CLICK HERE TO SIGN UP FOR OUR LIFESTYLE NEWSLETTER
In the fall of 2020, the Marriage Pact was in seven schools — and by the spring of 2021, it was in 50.
McGregor told the AP that about 30% of matches meet up in person and one in nine of those end up dating for a year or longer — many actually getting married.
For example, Max Walker and Melia Summers joined the Marriage Pact as New York University students in the fall of 2020.
Walker was at the New York campus, while Summers was at NYU’s Abu Dhabi campus, per the AP.
Summers eventually decided to do a semester in New York. That's when she and Walker met for the first time and went on a date — nearly one year after their match.
The pair will wed in June 2024 after having a match rate of 99.65%.
McGregor said that some of the successful relationships from the Marriage Pact "make sense."
"The matching algorithm is really good, so it's just fun for me to see it choose people's best matches out of thousands of possible people at their school," he said.
As for if McGregor is in a Marriage Pact, he politely said "no comment."
The Associated Press contributed reporting.
For more Lifestyle articles, visit www.foxnews.com/lifestyle.