<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:01a0a575-54e9-7b89-8482-a0c8b6e7954f,g:068fd81e-d3a1-4af0-b843-7929f3abb338-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item"/>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="ufcs-20260930.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_01a10b60-aa01-7231-8bbf-2540dff606f0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_01a10b60-aa01-7c4f-a7f3-429094bd1ecb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_01a10b60-aa01-7231-8bbf-2540dff606f0" xlink:to="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_01a10b60-aa01-7c4f-a7f3-429094bd1ecb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnearnedPremiums_01a10b60-aa01-7385-bbd6-a62b4e239046" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnearnedPremiums"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_01a10b60-aa01-7231-8bbf-2540dff606f0" xlink:to="loc_us-gaap_UnearnedPremiums_01a10b60-aa01-7385-bbd6-a62b4e239046" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_AccruedExpensesAndOtherLiabilities_01a10b60-aa01-723e-b201-4644bbdd4125" xlink:href="ufcs-20260930.xsd#ufcs_AccruedExpensesAndOtherLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_01a10b60-aa01-7231-8bbf-2540dff606f0" xlink:to="loc_ufcs_AccruedExpensesAndOtherLiabilities_01a10b60-aa01-723e-b201-4644bbdd4125" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_01a10b60-aa01-75af-9924-e64c35cfe498" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_01a10b60-aa01-7231-8bbf-2540dff606f0" xlink:to="loc_us-gaap_LongTermDebt_01a10b60-aa01-75af-9924-e64c35cfe498" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_01a10b46-54da-7bce-a9ac-3c621b3119ca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Investments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_01a10b46-54da-7d0a-888a-394ffe19bece" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_01a10b46-54da-7bce-a9ac-3c621b3119ca" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_01a10b46-54da-7d0a-888a-394ffe19bece" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_01a10b46-54da-7ba7-b756-6ca8bcb81e36" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_01a10b46-54da-7bce-a9ac-3c621b3119ca" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_01a10b46-54da-7ba7-b756-6ca8bcb81e36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLongTermInvestments_01a10b46-54da-71dd-897c-64d80706a677" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLongTermInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_01a10b46-54da-7bce-a9ac-3c621b3119ca" xlink:to="loc_us-gaap_OtherLongTermInvestments_01a10b46-54da-71dd-897c-64d80706a677" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_01a0a575-5656-7e1f-a241-26ab0b2c091d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_01a0a575-5656-7186-98b5-cffce23e1d05" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_01a0a575-5656-7e1f-a241-26ab0b2c091d" xlink:to="loc_us-gaap_Liabilities_01a0a575-5656-7186-98b5-cffce23e1d05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_01a0a575-5656-72ea-9d00-3801024a7e45" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_01a0a575-5656-7e1f-a241-26ab0b2c091d" xlink:to="loc_us-gaap_StockholdersEquity_01a0a575-5656-72ea-9d00-3801024a7e45" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_01a0a575-5656-7cf1-85c0-ab53c47fd3b4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_01a0a575-5656-7fa2-bc46-b618ccc92c11" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01a0a575-5656-7cf1-85c0-ab53c47fd3b4" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_01a0a575-5656-7fa2-bc46-b618ccc92c11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidReinsurancePremiums_01a0a575-5656-7f23-b876-61ab1aa34ba8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PrepaidReinsurancePremiums"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01a0a575-5656-7cf1-85c0-ab53c47fd3b4" xlink:to="loc_us-gaap_PrepaidReinsurancePremiums_01a0a575-5656-7f23-b876-61ab1aa34ba8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedInvestmentIncomeReceivable_01a0a575-5656-7a6c-a6ce-5e6042e1cd74" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedInvestmentIncomeReceivable"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01a0a575-5656-7cf1-85c0-ab53c47fd3b4" xlink:to="loc_us-gaap_AccruedInvestmentIncomeReceivable_01a0a575-5656-7a6c-a6ce-5e6042e1cd74" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_01a0a575-5656-7d3d-9dfa-08724fee5610" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Investments"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01a0a575-5656-7cf1-85c0-ab53c47fd3b4" xlink:to="loc_us-gaap_Investments_01a0a575-5656-7d3d-9dfa-08724fee5610" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_01a0a575-5656-77f4-931b-5d3eb0266606" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01a0a575-5656-7cf1-85c0-ab53c47fd3b4" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_01a0a575-5656-77f4-931b-5d3eb0266606" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceRecoverablesOnPaidAndUnpaidLosses_01a0a575-5656-7258-9b38-39c5d27e6308" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReinsuranceRecoverablesOnPaidAndUnpaidLosses"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01a0a575-5656-7cf1-85c0-ab53c47fd3b4" xlink:to="loc_us-gaap_ReinsuranceRecoverablesOnPaidAndUnpaidLosses_01a0a575-5656-7258-9b38-39c5d27e6308" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_01a0a575-5656-7a42-b25a-d7f3a9fb0d15" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01a0a575-5656-7cf1-85c0-ab53c47fd3b4" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_01a0a575-5656-7a42-b25a-d7f3a9fb0d15" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_01a0a575-5656-7d97-9567-34e8530579c3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01a0a575-5656-7cf1-85c0-ab53c47fd3b4" xlink:to="loc_us-gaap_OtherAssets_01a0a575-5656-7d97-9567-34e8530579c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredPolicyAcquisitionCostsAndValueOfBusinessAcquired_01a0a575-5656-7890-b4d0-282b9cc68639" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredPolicyAcquisitionCostsAndValueOfBusinessAcquired"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01a0a575-5656-7cf1-85c0-ab53c47fd3b4" xlink:to="loc_us-gaap_DeferredPolicyAcquisitionCostsAndValueOfBusinessAcquired_01a0a575-5656-7890-b4d0-282b9cc68639" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_01a0a575-5656-714a-971e-70a81a81f946" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01a0a575-5656-7cf1-85c0-ab53c47fd3b4" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_01a0a575-5656-714a-971e-70a81a81f946" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsReceivableAtCarryingValue_01a0a575-5656-755d-ac9f-fbc285054a7f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PremiumsReceivableAtCarryingValue"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01a0a575-5656-7cf1-85c0-ab53c47fd3b4" xlink:to="loc_us-gaap_PremiumsReceivableAtCarryingValue_01a0a575-5656-755d-ac9f-fbc285054a7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReceivable_01a0a575-5656-7c29-be85-60535570d196" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReceivable"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_01a0a575-5656-7cf1-85c0-ab53c47fd3b4" xlink:to="loc_us-gaap_IncomeTaxReceivable_01a0a575-5656-7c29-be85-60535570d196" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_01a0a575-5656-769f-8cd8-3f908fa728af" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_01a0a575-5656-7f42-9842-7a752f8277d4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_01a0a575-5656-769f-8cd8-3f908fa728af" xlink:to="loc_us-gaap_CommonStockValue_01a0a575-5656-7f42-9842-7a752f8277d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_01a0a575-5656-753b-8dd6-5c52bb46e4a1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_01a0a575-5656-769f-8cd8-3f908fa728af" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_01a0a575-5656-753b-8dd6-5c52bb46e4a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_01a0a575-5656-7ae0-acd6-618d85770557" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_01a0a575-5656-769f-8cd8-3f908fa728af" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_01a0a575-5656-7ae0-acd6-618d85770557" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_01a0a575-5656-7d47-ac4e-abd058593752" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_01a0a575-5656-769f-8cd8-3f908fa728af" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_01a0a575-5656-7d47-ac4e-abd058593752" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/ConsolidatedStatementsofIncomeUnaudited" xlink:type="simple" xlink:href="ufcs-20260930.xsd#ConsolidatedStatementsofIncomeUnaudited"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/ConsolidatedStatementsofIncomeUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_01a0a575-5657-7a1e-ac70-553ab114eca3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_01a0a575-5657-7f17-96d5-be0e570e698b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_01a0a575-5657-7a1e-ac70-553ab114eca3" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_01a0a575-5657-7f17-96d5-be0e570e698b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_01a0a575-5657-74bd-9c38-cfd66d5846d6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_01a0a575-5657-7a1e-ac70-553ab114eca3" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_01a0a575-5657-74bd-9c38-cfd66d5846d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BenefitsLossesAndExpenses_01a0a575-5656-7ff5-844e-844d4dc4faa4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BenefitsLossesAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredNet_01a0a575-5656-72c0-8ee2-dcda48e28891" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PolicyholderBenefitsAndClaimsIncurredNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_01a0a575-5656-7ff5-844e-844d4dc4faa4" xlink:to="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredNet_01a0a575-5656-72c0-8ee2-dcda48e28891" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherUnderwritingExpense_01a0a575-5656-77f7-882b-8174f603052a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherUnderwritingExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_01a0a575-5656-7ff5-844e-844d4dc4faa4" xlink:to="loc_us-gaap_OtherUnderwritingExpense_01a0a575-5656-77f7-882b-8174f603052a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_OtherNonunderwritingExpenses_01a0a575-5657-733d-8f3d-3e285e743aa3" xlink:href="ufcs-20260930.xsd#ufcs_OtherNonunderwritingExpenses"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_01a0a575-5656-7ff5-844e-844d4dc4faa4" xlink:to="loc_ufcs_OtherNonunderwritingExpenses_01a0a575-5657-733d-8f3d-3e285e743aa3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_DeferredPolicyAcquisitionCostAmortizationExpenseAndAmortizationOfValueOfBusinessAcquiredVoba_01a0a575-5657-7d27-9297-f7c7f2bda6de" xlink:href="ufcs-20260930.xsd#ufcs_DeferredPolicyAcquisitionCostAmortizationExpenseAndAmortizationOfValueOfBusinessAcquiredVoba"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_01a0a575-5656-7ff5-844e-844d4dc4faa4" xlink:to="loc_ufcs_DeferredPolicyAcquisitionCostAmortizationExpenseAndAmortizationOfValueOfBusinessAcquiredVoba_01a0a575-5657-7d27-9297-f7c7f2bda6de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_01a0a575-5657-7769-9e68-e04ec4c6c027" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_01a0a575-5656-7ff5-844e-844d4dc4faa4" xlink:to="loc_us-gaap_InterestExpense_01a0a575-5657-7769-9e68-e04ec4c6c027" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_01a0a575-5656-7494-b21b-63dae16f3b35" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BenefitsLossesAndExpenses_01a0a575-5656-702a-a87f-33032772dc5d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BenefitsLossesAndExpenses"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_01a0a575-5656-7494-b21b-63dae16f3b35" xlink:to="loc_us-gaap_BenefitsLossesAndExpenses_01a0a575-5656-702a-a87f-33032772dc5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_01a0a575-5656-7d71-8f9a-c33a1b0442f2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_01a0a575-5656-7494-b21b-63dae16f3b35" xlink:to="loc_us-gaap_Revenues_01a0a575-5656-7d71-8f9a-c33a1b0442f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_01a0a575-5657-77a5-ad7d-31e6c1f3528b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Revenues"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsEarnedNet_01a0a575-5657-76de-a2e3-fe21c4e367b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PremiumsEarnedNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_01a0a575-5657-77a5-ad7d-31e6c1f3528b" xlink:to="loc_us-gaap_PremiumsEarnedNet_01a0a575-5657-76de-a2e3-fe21c4e367b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_01a0a575-5657-7023-a1c8-ed000968f8e3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetInvestmentIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_01a0a575-5657-77a5-ad7d-31e6c1f3528b" xlink:to="loc_us-gaap_NetInvestmentIncome_01a0a575-5657-7023-a1c8-ed000968f8e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedInvestmentGainsLosses_01a0a575-5657-7c4f-9f18-c561d711d512" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RealizedInvestmentGainsLosses"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_01a0a575-5657-77a5-ad7d-31e6c1f3528b" xlink:to="loc_us-gaap_RealizedInvestmentGainsLosses_01a0a575-5657-7c4f-9f18-c561d711d512" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIncome_01a0a575-5657-7f45-977d-b709e793ac85" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherIncome"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_01a0a575-5657-77a5-ad7d-31e6c1f3528b" xlink:to="loc_us-gaap_OtherIncome_01a0a575-5657-7f45-977d-b709e793ac85" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/ConsolidatedStatementsofComprehensiveIncomeUnaudited" xlink:type="simple" xlink:href="ufcs-20260930.xsd#ConsolidatedStatementsofComprehensiveIncomeUnaudited"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/ConsolidatedStatementsofComprehensiveIncomeUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_01a10b76-3ecf-785e-a446-95df51de7a47" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_01a10b76-3ecf-7d22-a000-c88f39ae4dfc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_01a10b76-3ecf-785e-a446-95df51de7a47" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_01a10b76-3ecf-7d22-a000-c88f39ae4dfc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_01a0a575-5657-7159-91f2-0a69abcc91b5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_01a0a575-5657-7519-b422-69efa00e329b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_01a0a575-5657-7159-91f2-0a69abcc91b5" xlink:to="loc_us-gaap_NetIncomeLoss_01a0a575-5657-7519-b422-69efa00e329b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_01a0a575-5657-7f67-9f37-70ef7ed80380" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_01a0a575-5657-7159-91f2-0a69abcc91b5" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_01a0a575-5657-7f67-9f37-70ef7ed80380" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_01a0a575-5657-773d-a787-2910d61b034c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_01a0a575-5657-7159-91f2-0a69abcc91b5" xlink:to="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_01a0a575-5657-773d-a787-2910d61b034c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_01a0a575-5657-77e8-be58-e0d951f3102d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_01a0a575-5657-7b83-b127-9d5e251a40ba" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_01a0a575-5657-77e8-be58-e0d951f3102d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_01a0a575-5657-7b83-b127-9d5e251a40ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeReclassificationAdjustmentsAndTax_01a0a575-5657-74f7-90fe-39c6c457adb1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeReclassificationAdjustmentsAndTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_01a0a575-5657-77e8-be58-e0d951f3102d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeReclassificationAdjustmentsAndTax_01a0a575-5657-74f7-90fe-39c6c457adb1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossBeforeReclassificationAndTax_01a0a575-5657-7baf-993c-a5490aa154d7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossBeforeReclassificationAndTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_01a0a575-5657-77e8-be58-e0d951f3102d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossBeforeReclassificationAndTax_01a0a575-5657-7baf-993c-a5490aa154d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_01a0a575-5657-7380-8b05-9b12bd16e6a6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_01a0a575-5657-755d-9d6e-09164d3a695c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_01a0a575-5657-7380-8b05-9b12bd16e6a6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_01a0a575-5657-755d-9d6e-09164d3a695c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_01a0a575-5657-7172-b784-0a9b37b3d995" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_01a0a575-5657-7380-8b05-9b12bd16e6a6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_01a0a575-5657-7172-b784-0a9b37b3d995" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_01a0a575-5657-7cc2-91d7-0dd8033a1121" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_01a0a575-5657-78e4-adbe-e031ecfaa990" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_01a0a575-5657-7cc2-91d7-0dd8033a1121" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_01a0a575-5657-78e4-adbe-e031ecfaa990" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_01a0a575-5657-7d66-89de-69a4dfdb773c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAociCurrentPeriodTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_01a0a575-5657-7cc2-91d7-0dd8033a1121" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_01a0a575-5657-7d66-89de-69a4dfdb773c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/ConsolidatedStatementsofCashFlowsUnaudited" xlink:type="simple" xlink:href="ufcs-20260930.xsd#ConsolidatedStatementsofCashFlowsUnaudited"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/ConsolidatedStatementsofCashFlowsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_01a0a575-5657-7cbb-89e7-5cdc8c426876" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_01a0a575-5657-7578-8043-63475e15776b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_01a0a575-5657-7cbb-89e7-5cdc8c426876" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_01a0a575-5657-7578-8043-63475e15776b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_01a0a575-5657-79ec-ab63-4df3d2430d91" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_01a0a575-5657-7cbb-89e7-5cdc8c426876" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_01a0a575-5657-79ec-ab63-4df3d2430d91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a0a575-5657-7dde-b11f-6930d591fb69" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_01a0a575-5657-7cbb-89e7-5cdc8c426876" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a0a575-5657-7dde-b11f-6930d591fb69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_01a0a575-5657-779d-bd92-07225c229d39" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_01a0a575-5657-73cf-b817-55c7243aeb96" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_01a0a575-5657-779d-bd92-07225c229d39" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_01a0a575-5657-73cf-b817-55c7243aeb96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_01a0a575-5657-7b05-a2b2-d148e10a023d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_01a0a575-5657-779d-bd92-07225c229d39" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_01a0a575-5657-7b05-a2b2-d148e10a023d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfOtherInvestments_01a0a575-5657-78d7-9b49-d6625359bf75" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleAndMaturityOfOtherInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_01a0a575-5657-779d-bd92-07225c229d39" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfOtherInvestments_01a0a575-5657-78d7-9b49-d6625359bf75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_01a0a575-5657-795c-8e69-8b69addf59e7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_01a0a575-5657-779d-bd92-07225c229d39" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_01a0a575-5657-795c-8e69-8b69addf59e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireOtherInvestments_01a10ce2-41ed-7702-a1b0-16ccd9d84131" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireOtherInvestments"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_01a0a575-5657-779d-bd92-07225c229d39" xlink:to="loc_us-gaap_PaymentsToAcquireOtherInvestments_01a10ce2-41ed-7702-a1b0-16ccd9d84131" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromProductiveAssets_01a10ce2-41ed-749c-b896-a037b629810d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForProceedsFromProductiveAssets"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_01a0a575-5657-779d-bd92-07225c229d39" xlink:to="loc_us-gaap_PaymentsForProceedsFromProductiveAssets_01a10ce2-41ed-749c-b896-a037b629810d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_01a17810-4f14-740e-bedd-2071f6513d00" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_us-gaap_NetIncomeLoss_01a17810-4f14-740e-bedd-2071f6513d00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_01a17810-4f14-7139-9db5-920295534d3e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_01a17810-4f14-7139-9db5-920295534d3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_01a17810-4f14-7c79-991b-e549a78f11a1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_01a17810-4f14-7c79-991b-e549a78f11a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_01a17810-4f14-745c-924b-6a4b2a432ca6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_us-gaap_ShareBasedCompensation_01a17810-4f14-745c-924b-6a4b2a432ca6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnInvestments_01a17810-4f14-7b0c-84de-79349df3b8a4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnInvestments"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_us-gaap_GainLossOnInvestments_01a17810-4f14-7b0c-84de-79349df3b8a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_01a17810-4f14-7d10-8c6d-8bb407321617" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_01a17810-4f14-7d10-8c6d-8bb407321617" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_01a17810-4f14-78af-ba24-33ea7de19e93" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_01a17810-4f14-78af-ba24-33ea7de19e93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPremiumsReceivable_01a17810-4f14-7cb6-85e8-9ec4f7682e95" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInPremiumsReceivable"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_us-gaap_IncreaseDecreaseInPremiumsReceivable_01a17810-4f14-7cb6-85e8-9ec4f7682e95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_IncreaseDecreaseInDeferredPolicyAcquisitionCostAndValueOfBusinessAcquired_01a17810-4f14-747c-9853-bb2816b39914" xlink:href="ufcs-20260930.xsd#ufcs_IncreaseDecreaseInDeferredPolicyAcquisitionCostAndValueOfBusinessAcquired"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_ufcs_IncreaseDecreaseInDeferredPolicyAcquisitionCostAndValueOfBusinessAcquired_01a17810-4f14-747c-9853-bb2816b39914" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInReinsuranceRecoverable_01a17810-4f14-7f7f-871d-fcfbd2fb9330" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInReinsuranceRecoverable"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_us-gaap_IncreaseDecreaseInReinsuranceRecoverable_01a17810-4f14-7f7f-871d-fcfbd2fb9330" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidReinsurancePremiums_01a17810-4f14-76c9-a3ad-1f420f2d9f90" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInPrepaidReinsurancePremiums"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidReinsurancePremiums_01a17810-4f14-76c9-a3ad-1f420f2d9f90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesReceivable_01a17810-4f14-7eda-82eb-e2ef4f5417fa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesReceivable"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesReceivable_01a17810-4f14-7eda-82eb-e2ef4f5417fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_01a17810-4f14-7639-971d-93de0ad76911" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_01a17810-4f14-7639-971d-93de0ad76911" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInFuturePolicyBenefitReserves_01a17810-4f14-7d2d-9ffd-31780c9008fd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInFuturePolicyBenefitReserves"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_us-gaap_IncreaseDecreaseInFuturePolicyBenefitReserves_01a17810-4f14-7d2d-9ffd-31780c9008fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInUnearnedPremiums_01a17810-4f14-7a71-a3c8-21a24af5d29b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInUnearnedPremiums"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_us-gaap_IncreaseDecreaseInUnearnedPremiums_01a17810-4f14-7a71-a3c8-21a24af5d29b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_IncreaseDecreaseInAccruedExpensesAndOtherLiabilities_01a17810-4f14-7d8a-a66a-13b77c6c4e3e" xlink:href="ufcs-20260930.xsd#ufcs_IncreaseDecreaseInAccruedExpensesAndOtherLiabilities"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_ufcs_IncreaseDecreaseInAccruedExpensesAndOtherLiabilities_01a17810-4f14-7d8a-a66a-13b77c6c4e3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_01a17810-4f14-7e98-a632-09608b2031a7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01a17810-4f14-7edf-9090-adba1b762911" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_01a17810-4f14-7e98-a632-09608b2031a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_01a10bd2-557b-71bd-af57-a3de6bd7d63f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_01a10bd2-557b-7ef7-963f-2775ee9d94a2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_01a10bd2-557b-71bd-af57-a3de6bd7d63f" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt_01a10bd2-557b-7ef7-963f-2775ee9d94a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_01a10bd2-557b-7649-94fb-47d202408b51" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_01a10bd2-557b-71bd-af57-a3de6bd7d63f" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_01a10bd2-557b-7649-94fb-47d202408b51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_01a10bd2-557b-74b0-81df-0eac639abf17" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_01a10bd2-557b-71bd-af57-a3de6bd7d63f" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_01a10bd2-557b-74b0-81df-0eac639abf17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_01a10bd2-557b-7184-9ecc-a750ab128e56" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsOfDividends"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_01a10bd2-557b-71bd-af57-a3de6bd7d63f" xlink:to="loc_us-gaap_PaymentsOfDividends_01a10bd2-557b-7184-9ecc-a750ab128e56" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSFairValueofInvestmentsDetails" xlink:type="simple" xlink:href="ufcs-20260930.xsd#SUMMARYOFINVESTMENTSFairValueofInvestmentsDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSFairValueofInvestmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5657-78c7-8877-3247c2184b8b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_01a0a575-5657-72cb-816c-7c27e8500a77" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5657-78c7-8877-3247c2184b8b" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_01a0a575-5657-72cb-816c-7c27e8500a77" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_01a0a575-5657-7054-8e9e-3aa7704da055" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5657-78c7-8877-3247c2184b8b" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_01a0a575-5657-7054-8e9e-3aa7704da055" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_01a0a575-5657-72a0-961e-bf103c09d33f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5657-78c7-8877-3247c2184b8b" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_01a0a575-5657-72a0-961e-bf103c09d33f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_01a0a575-5657-70a0-9757-9e00920a2434" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5657-78c7-8877-3247c2184b8b" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_01a0a575-5657-70a0-9757-9e00920a2434" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSMaturitiesDetails" xlink:type="simple" xlink:href="ufcs-20260930.xsd#SUMMARYOFINVESTMENTSMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5657-7fec-b56e-bd26ad6e2356" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_01a0a575-5657-7697-b992-31e721aae5a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5657-7fec-b56e-bd26ad6e2356" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_01a0a575-5657-7697-b992-31e721aae5a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_01a0a575-5657-7656-99c9-d063500ee422" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5657-7fec-b56e-bd26ad6e2356" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_01a0a575-5657-7656-99c9-d063500ee422" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_01a0a575-5657-701d-b5c8-90ce2267fa28" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5657-7fec-b56e-bd26ad6e2356" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_01a0a575-5657-701d-b5c8-90ce2267fa28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_01a0a575-5657-7e9b-9b6a-282d030bb170" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5657-7fec-b56e-bd26ad6e2356" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_01a0a575-5657-7e9b-9b6a-282d030bb170" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_01a0a575-5657-7459-a62d-928d9245dabd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5657-7fec-b56e-bd26ad6e2356" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_01a0a575-5657-7459-a62d-928d9245dabd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_01a0a575-5657-7a22-a82a-78acf6e575bf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_01a0a575-5657-774b-96ed-5294906e4d8a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_01a0a575-5657-7a22-a82a-78acf6e575bf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_01a0a575-5657-774b-96ed-5294906e4d8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_01a0a575-5657-7c9b-bac4-17a5df73d0a9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_01a0a575-5657-7a22-a82a-78acf6e575bf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_01a0a575-5657-7c9b-bac4-17a5df73d0a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_01a0a575-5657-7be1-890d-373d071a645b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_01a0a575-5657-7a22-a82a-78acf6e575bf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_01a0a575-5657-7be1-890d-373d071a645b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_01a0a575-5657-7adf-b0fa-f97455efd774" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_01a0a575-5657-7a22-a82a-78acf6e575bf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_01a0a575-5657-7adf-b0fa-f97455efd774" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_01a0a575-5657-71b2-8d9d-73f72b803707" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_01a0a575-5657-7a22-a82a-78acf6e575bf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_01a0a575-5657-71b2-8d9d-73f72b803707" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSUnrealizedGainandLossDetails" xlink:type="simple" xlink:href="ufcs-20260930.xsd#SUMMARYOFINVESTMENTSUnrealizedGainandLossDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSUnrealizedGainandLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_01a0a575-5657-7ac1-97ad-2a2896d49798" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax_01a0a575-5657-738d-96f3-6e90a45d04a0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_01a0a575-5657-7ac1-97ad-2a2896d49798" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax_01a0a575-5657-738d-96f3-6e90a45d04a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_01a0a575-5657-7cee-86d0-0ff51e40ef05" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_01a0a575-5657-7ac1-97ad-2a2896d49798" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_01a0a575-5657-7cee-86d0-0ff51e40ef05" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSFixedMaturitiesUnrealizedLossDetails" xlink:type="simple" xlink:href="ufcs-20260930.xsd#SUMMARYOFINVESTMENTSFixedMaturitiesUnrealizedLossDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSFixedMaturitiesUnrealizedLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_01a0a575-5657-7627-aeaf-0c5a2922cd93" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_01a0a575-5657-7144-a3f4-defc8887bddc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_01a0a575-5657-7627-aeaf-0c5a2922cd93" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_01a0a575-5657-7144-a3f4-defc8887bddc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_01a0a575-5657-79fc-ba12-2b5dd86631b1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_01a0a575-5657-7627-aeaf-0c5a2922cd93" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_01a0a575-5657-79fc-ba12-2b5dd86631b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_01a0a575-5657-7c0e-8bee-5032f7d53fcd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_01a0a575-5657-78d9-9b8f-0a53a78d64e9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_01a0a575-5657-7c0e-8bee-5032f7d53fcd" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_01a0a575-5657-78d9-9b8f-0a53a78d64e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_01a0a575-5657-7da1-b6b6-6ab322a7528b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_01a0a575-5657-7c0e-8bee-5032f7d53fcd" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_01a0a575-5657-7da1-b6b6-6ab322a7528b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSCarryingValueofCommercialMortgageLoansandAdditionalInformationDetails" xlink:type="simple" xlink:href="ufcs-20260930.xsd#SUMMARYOFINVESTMENTSCarryingValueofCommercialMortgageLoansandAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSCarryingValueofCommercialMortgageLoansandAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_01a0a575-5657-7bbb-9490-1091119fbdfe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_01a0a575-5657-7f04-85e3-7133d496f693" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_01a0a575-5657-7bbb-9490-1091119fbdfe" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_01a0a575-5657-7f04-85e3-7133d496f693" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5657-7abe-a3cb-9fddf657c4fe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_01a0a575-5657-7bbb-9490-1091119fbdfe" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5657-7abe-a3cb-9fddf657c4fe" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSAmortizedCostBasisbyYearofOriginationandCreditQualityIndicatorDetails" xlink:type="simple" xlink:href="ufcs-20260930.xsd#SUMMARYOFINVESTMENTSAmortizedCostBasisbyYearofOriginationandCreditQualityIndicatorDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSAmortizedCostBasisbyYearofOriginationandCreditQualityIndicatorDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5700-7f99-a904-6628690f2dc5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_01a0a575-5700-7b87-b8f9-d27fd8ee625b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5700-7f99-a904-6628690f2dc5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_01a0a575-5700-7b87-b8f9-d27fd8ee625b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_01a0a575-5700-769c-8268-53239a60c3a8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5700-7f99-a904-6628690f2dc5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_01a0a575-5700-769c-8268-53239a60c3a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_FinancingReceivableExcludingAccruedInterestYearSixOriginatedFiveYearsBeforeCurrentFiscalYear_01a0a575-5700-7d22-b877-a14dee86f6d2" xlink:href="ufcs-20260930.xsd#ufcs_FinancingReceivableExcludingAccruedInterestYearSixOriginatedFiveYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5700-7f99-a904-6628690f2dc5" xlink:to="loc_ufcs_FinancingReceivableExcludingAccruedInterestYearSixOriginatedFiveYearsBeforeCurrentFiscalYear_01a0a575-5700-7d22-b877-a14dee86f6d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_FinancingReceivableExcludingAccruedInterestYearSevenOriginatedSixYearsBeforeCurrentFiscalYear_01a0a575-5700-7667-b4de-ff76d9c80513" xlink:href="ufcs-20260930.xsd#ufcs_FinancingReceivableExcludingAccruedInterestYearSevenOriginatedSixYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5700-7f99-a904-6628690f2dc5" xlink:to="loc_ufcs_FinancingReceivableExcludingAccruedInterestYearSevenOriginatedSixYearsBeforeCurrentFiscalYear_01a0a575-5700-7667-b4de-ff76d9c80513" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanSixYearsBeforeCurrentFiscalYear_01a0a575-5700-7cbc-950e-7035f6392276" xlink:href="ufcs-20260930.xsd#ufcs_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanSixYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_01a0a575-5700-7f99-a904-6628690f2dc5" xlink:to="loc_ufcs_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanSixYearsBeforeCurrentFiscalYear_01a0a575-5700-7cbc-950e-7035f6392276" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSNetInvestmentGainsandLossesDetails" xlink:type="simple" xlink:href="ufcs-20260930.xsd#SUMMARYOFINVESTMENTSNetInvestmentGainsandLossesDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSNetInvestmentGainsandLossesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedInvestmentGainsLosses_01a0a575-5701-7385-a133-63c3639a792e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RealizedInvestmentGainsLosses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_01a0a575-5701-7d22-b584-102e9c833f5b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedInvestmentGainsLosses_01a0a575-5701-7385-a133-63c3639a792e" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_01a0a575-5701-7d22-b584-102e9c833f5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfOtherInvestments_01a0a575-5701-7525-bdec-9ba21f0465a1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnSaleOfOtherInvestments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedInvestmentGainsLosses_01a0a575-5701-7385-a133-63c3639a792e" xlink:to="loc_us-gaap_GainLossOnSaleOfOtherInvestments_01a0a575-5701-7525-bdec-9ba21f0465a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_01a0a575-5701-7e6f-971a-ad3953c59d3d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedInvestmentGainsLosses_01a0a575-5701-7385-a133-63c3639a792e" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_01a0a575-5701-7e6f-971a-ad3953c59d3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAllowanceForCreditLossNotToSellBeforeRecoveryCreditLossPreviouslyRecordedExpenseReversal_01a0a575-5701-7c44-8ae4-6bd36bc75706" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAllowanceForCreditLossNotToSellBeforeRecoveryCreditLossPreviouslyRecordedExpenseReversal"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedInvestmentGainsLosses_01a0a575-5701-7385-a133-63c3639a792e" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAllowanceForCreditLossNotToSellBeforeRecoveryCreditLossPreviouslyRecordedExpenseReversal_01a0a575-5701-7c44-8ae4-6bd36bc75706" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSNetInvestmentIncomeDetails" xlink:type="simple" xlink:href="ufcs-20260930.xsd#SUMMARYOFINVESTMENTSNetInvestmentIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSNetInvestmentIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeNet_01a0a575-5701-7804-b2a2-52cff284aa06" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_01a0a575-5701-75dc-88c5-370e52d2064b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeInvestmentExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeNet_01a0a575-5701-7804-b2a2-52cff284aa06" xlink:to="loc_us-gaap_InvestmentIncomeInvestmentExpense_01a0a575-5701-75dc-88c5-370e52d2064b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_InvestmentIncomeGross_01a0a575-5701-76cb-b35b-0a14e1f37da6" xlink:href="ufcs-20260930.xsd#ufcs_InvestmentIncomeGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeNet_01a0a575-5701-7804-b2a2-52cff284aa06" xlink:to="loc_ufcs_InvestmentIncomeGross_01a0a575-5701-76cb-b35b-0a14e1f37da6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_InvestmentIncomeGross_01a0a575-5701-7148-ab3b-9a46189c7247" xlink:href="ufcs-20260930.xsd#ufcs_InvestmentIncomeGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_01a0a575-5701-7c9c-b78f-1522525c8615" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ufcs_InvestmentIncomeGross_01a0a575-5701-7148-ab3b-9a46189c7247" xlink:to="loc_us-gaap_InvestmentIncomeInterest_01a0a575-5701-7c9c-b78f-1522525c8615" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_InvestmentIncomeOther_01a0a575-5701-77bf-b9c1-b5180f1f4d88" xlink:href="ufcs-20260930.xsd#ufcs_InvestmentIncomeOther"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ufcs_InvestmentIncomeGross_01a0a575-5701-7148-ab3b-9a46189c7247" xlink:to="loc_ufcs_InvestmentIncomeOther_01a0a575-5701-77bf-b9c1-b5180f1f4d88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_InvestmentIncomeGainLossOnOtherLongTermInvestments_01a0a575-5701-73a7-8ccd-92252a9d856f" xlink:href="ufcs-20260930.xsd#ufcs_InvestmentIncomeGainLossOnOtherLongTermInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ufcs_InvestmentIncomeGross_01a0a575-5701-7148-ab3b-9a46189c7247" xlink:to="loc_ufcs_InvestmentIncomeGainLossOnOtherLongTermInvestments_01a0a575-5701-73a7-8ccd-92252a9d856f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSFinancialInstrumentsMeasuredatFairValueDetails" xlink:type="simple" xlink:href="ufcs-20260930.xsd#FAIRVALUEOFFINANCIALINSTRUMENTSFinancialInstrumentsMeasuredatFairValueDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSFinancialInstrumentsMeasuredatFairValueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_01a0a575-5701-7c6a-9782-c9929744ddca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_01a0a575-5701-7729-980e-4779093ddc55" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_01a0a575-5701-7c6a-9782-c9929744ddca" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_01a0a575-5701-7729-980e-4779093ddc55" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_01a0a575-5701-7f59-b82a-1c687f24a9b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_01a0a575-5701-7c6a-9782-c9929744ddca" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_01a0a575-5701-7f59-b82a-1c687f24a9b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashSurrenderValueFairValueDisclosure_01a0a575-5701-7327-a372-48f904e77a0c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashSurrenderValueFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_01a0a575-5701-7c6a-9782-c9929744ddca" xlink:to="loc_us-gaap_CashSurrenderValueFairValueDisclosure_01a0a575-5701-7327-a372-48f904e77a0c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSFairValueofFinancialInstrumentsThatAreNotCarriedatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="ufcs-20260930.xsd#FAIRVALUEOFFINANCIALINSTRUMENTSFairValueofFinancialInstrumentsThatAreNotCarriedatFairValueonaRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSFairValueofFinancialInstrumentsThatAreNotCarriedatFairValueonaRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_01a0a575-5701-7914-ab41-01d84620475d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_01a0a575-5701-7299-94a8-f1add48e4e20" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_01a0a575-5701-7914-ab41-01d84620475d" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_01a0a575-5701-7299-94a8-f1add48e4e20" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_01a0a575-5701-7bc1-b2df-7dff42dae837" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LoansReceivableFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_01a0a575-5701-7914-ab41-01d84620475d" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_01a0a575-5701-7bc1-b2df-7dff42dae837" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AlternativeInvestment_01a0a575-5701-760d-aa5d-de2527e31728" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AlternativeInvestment"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_01a0a575-5701-7914-ab41-01d84620475d" xlink:to="loc_us-gaap_AlternativeInvestment_01a0a575-5701-760d-aa5d-de2527e31728" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_01a0a575-5701-73bc-a35b-ca8647a73591" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_01a0a575-5701-7730-8cab-00ebb1b721fd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_01a0a575-5701-73bc-a35b-ca8647a73591" xlink:to="loc_us-gaap_LongTermDebtFairValue_01a0a575-5701-7730-8cab-00ebb1b721fd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/RESERVESFORLOSSESANDLOSSSETTLEMENTEXPENSESChangesinPropertyandCasualtyLossesandLossSettlementExpenseReservesDetails" xlink:type="simple" xlink:href="ufcs-20260930.xsd#RESERVESFORLOSSESANDLOSSSETTLEMENTEXPENSESChangesinPropertyandCasualtyLossesandLossSettlementExpenseReservesDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/RESERVESFORLOSSESANDLOSSSETTLEMENTEXPENSESChangesinPropertyandCasualtyLossesandLossSettlementExpenseReservesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_01a0a575-5701-70f0-88e4-1b6050a04362" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForLossesAndLossAdjustmentExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1_01a0a575-5701-76f5-8932-5b62bed269df" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_01a0a575-5701-70f0-88e4-1b6050a04362" xlink:to="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1_01a0a575-5701-76f5-8932-5b62bed269df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1_01a0a575-5701-7887-aa0a-5ab68c7c2633" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_01a0a575-5701-70f0-88e4-1b6050a04362" xlink:to="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1_01a0a575-5701-7887-aa0a-5ab68c7c2633" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1_01a0a575-5701-78cc-b6c2-148c88e8aa8a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense_01a0a575-5701-7465-8ca0-dbc776777d08" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1_01a0a575-5701-78cc-b6c2-148c88e8aa8a" xlink:to="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense_01a0a575-5701-7465-8ca0-dbc776777d08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense_01a0a575-5701-71f2-b04b-84bc46d723d6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1_01a0a575-5701-78cc-b6c2-148c88e8aa8a" xlink:to="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense_01a0a575-5701-71f2-b04b-84bc46d723d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet_01a0a575-5701-75d2-a2ba-78d82449cfc6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_01a0a575-5701-7ddb-b755-56ca09b9c16f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet_01a0a575-5701-75d2-a2ba-78d82449cfc6" xlink:to="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_01a0a575-5701-7ddb-b755-56ca09b9c16f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseCededLossAndLossSettlementExpense_01a0a575-5701-7170-948d-7a568503dc1a" xlink:href="ufcs-20260930.xsd#ufcs_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseCededLossAndLossSettlementExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet_01a0a575-5701-75d2-a2ba-78d82449cfc6" xlink:to="loc_ufcs_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseCededLossAndLossSettlementExpense_01a0a575-5701-7170-948d-7a568503dc1a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/EMPLOYEEBENEFITSDetails" xlink:type="simple" xlink:href="ufcs-20260930.xsd#EMPLOYEEBENEFITSDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/EMPLOYEEBENEFITSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_01a0a575-5701-7d6e-89ff-30e8b7e0c99e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_01a0a575-5701-7675-87ae-07daef6295f9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_01a0a575-5701-7d6e-89ff-30e8b7e0c99e" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_01a0a575-5701-7675-87ae-07daef6295f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_01a0a575-5701-707b-9e23-46c724abd5e2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_01a0a575-5701-7d6e-89ff-30e8b7e0c99e" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_01a0a575-5701-707b-9e23-46c724abd5e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_01a0a575-5701-7904-951a-663b69d0f097" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_01a0a575-5701-7d6e-89ff-30e8b7e0c99e" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_01a0a575-5701-7904-951a-663b69d0f097" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_01a0a575-5701-7acd-9ba6-98164ad3e930" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_01a0a575-5701-7d6e-89ff-30e8b7e0c99e" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_01a0a575-5701-7acd-9ba6-98164ad3e930" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/EARNINGSPERCOMMONSHAREDetails" xlink:type="simple" xlink:href="ufcs-20260930.xsd#EARNINGSPERCOMMONSHAREDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/EARNINGSPERCOMMONSHAREDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_01a0a575-5701-7251-be32-6804f3eec7c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_01a0a575-5701-754d-8544-2d0c33f6f099" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_01a0a575-5701-7251-be32-6804f3eec7c0" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_01a0a575-5701-754d-8544-2d0c33f6f099" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_01a0a575-5701-725b-a3f1-020d5c01193e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_01a0a575-5701-7251-be32-6804f3eec7c0" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_01a0a575-5701-725b-a3f1-020d5c01193e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/LEASECOMMITMENTSComponentsofOperatingLeasesDetails" xlink:type="simple" xlink:href="ufcs-20260930.xsd#LEASECOMMITMENTSComponentsofOperatingLeasesDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/LEASECOMMITMENTSComponentsofOperatingLeasesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_01a0a575-5701-7fa3-80e0-018e2529daea" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_01a0a575-5701-7283-8f5e-b44ab936e83c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_01a0a575-5701-7fa3-80e0-018e2529daea" xlink:to="loc_us-gaap_OperatingLeaseCost_01a0a575-5701-7283-8f5e-b44ab936e83c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubleaseIncome_01a0a575-5701-7517-8307-3e5798100d57" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubleaseIncome"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_01a0a575-5701-7fa3-80e0-018e2529daea" xlink:to="loc_us-gaap_SubleaseIncome_01a0a575-5701-7517-8307-3e5798100d57" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLeaseIncome_01a0a575-5701-7e85-b5d4-183513b2a275" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLeaseIncome"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_01a0a575-5701-7fa3-80e0-018e2529daea" xlink:to="loc_us-gaap_OperatingLeaseLeaseIncome_01a0a575-5701-7e85-b5d4-183513b2a275" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/INCOMETAXSummaryofComponentsofIncomeTaxExpenseBenefitDetails" xlink:type="simple" xlink:href="ufcs-20260930.xsd#INCOMETAXSummaryofComponentsofIncomeTaxExpenseBenefitDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/INCOMETAXSummaryofComponentsofIncomeTaxExpenseBenefitDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_01a0a575-5701-70db-8139-4146a608fa59" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_01a0a575-5701-7637-881b-70e7b8526201" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_01a0a575-5701-70db-8139-4146a608fa59" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_01a0a575-5701-7637-881b-70e7b8526201" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_01a0a575-5701-7fea-83d9-79ded2086a92" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_01a0a575-5701-70db-8139-4146a608fa59" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_01a0a575-5701-7fea-83d9-79ded2086a92" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
